Back up / restore openInvest's local state — memory/ (holdings, strategy, user profile, committee records, dream logs) + db/ (trade ledger, job run history, market-data cache) + .env (SMTP/API credentials) + user_profile.json. All of this data is .gitignore'd with no historical versions in git, so a single accidental overwrite (e.g. slipping and running some one-off migration/init script) means real data loss — no git revert available. Proactive trigger scenarios — "backup invest data / 备份一下 openInvest 的数据", "my holdings/strategy look wiped / 我的持仓/策略好像被清空了", "invest data is lost / invest 数据丢了", "restore invest backup / 恢复一下 invest 的备份", before any reinstall/migration of the openInvest deployment on this machine, or right before running an unfamiliar migration/init script (back up first, then act).
$npx -y skills add longsizhuo/openinvest --skill invest-backupInstalls into the current project.
Run `npx skills use "https://github.com/longsizhuo/openinvest" --skill "longsizhuo/openinvest/invest-backup"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/longsizhuo/openinvest" that are relevant to the current task. Run `npx skills add "https://github.com/longsizhuo/openinvest"` and select the relevant skills, then follow their instructions.