projects/investment/skills/portfolio_editor/SKILL.md
Add, update, remove, reset, or sync portfolio holdings from natural-language instructions or daily position screenshots, updating portfolio_state.json and related snapshot files while explaining provider support and downstream workflow impact.
npx skillsauth add Andy-HNU/AndyClaw portfolio_editorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过自然语言或每日持仓截图驱动持仓对象的新增、修改、删除、整仓同步与校验,安全更新:
system/portfolio_state.jsonsystem/portfolio_state_previous.json优先识别为以下动作之一:
addupdateremovesync_snapshotreset_portfoliosync_snapshot 表示用户当天提供的截图是当前仓位真值,应以截图为准更新整仓。
reset_portfolio 表示将测试数据清空,恢复到生产初始空仓模板。
用户提供的资产信息,尽量包含:
categoryasset_typesymbolvaluesharesaverage_costprofittheme若来源是截图,还应尝试提取:
portfolio_state.jsonportfolio_state_previous.json当前建议优先支持:
bond_fundetfindex_fundthematic_fundcommodity 中的黄金cash若用户给出的资产不属于以上类型:
unsupported_asset_typesystem/portfolio_state.template.jsonreset_portfolioadd
symbol 或 name 已存在,则转为 updateupdate
remove
symbol 优先,其次 namesync_snapshot
portfolio_state.json 先保存到 portfolio_state_previous.jsonportfolio_state.jsonreset_portfolio
portfolio_state.jsonportfolio_state_previous.jsoncategory 只负责永久组合大类:
stockbondgoldcashasset_type 负责更细的查询和分析类型:
bond_fundetfindex_fundthematic_fundcommoditycashsymbol 必须尽量使用真实 provider 能识别的代码theme 优先用于新闻和研究对象聚合;没有则可留空portfolio_state.json新增资产对象后,应检查并说明:
refresh-pricessignal-reviewweekly-reviewmonthly-reviewasset_research.json原则:
portfolio_state.json,应默认进入后续分析、预警、报告、新闻流程asset_type 不支持:允许写入,但要明确标记“当前无法直接查询真实行情”shares_missingtools
Compact long Telegram chat sessions and prevent silent non-replies caused by high context usage. Use when a Telegram conversation becomes slow, misses replies, or session tokens are high (for example above ~80-85%), and when the user asks to clean, rotate, or shrink Telegram context.
tools
Send local files to Telegram chats through OpenClaw CLI delivery. Use when a user asks to send or forward a file (md/txt/pdf/image/video) to Telegram, especially from workspace paths. Supports direct chat targets and group/topic targets.
tools
轻量自我改进记录技能。用于把错误、用户纠正、知识缺口、功能诉求写入 `.learnings/`,并在每天回顾时将高价值经验提升到 AGENTS.md / SOUL.md / TOOLS.md / MEMORY.md。适用于“避免重复犯错、沉淀经验、降低长期 token 浪费”的场景;默认不启用高频 hooks。
data-ai
轻量主动代理增强。用于在不显著增加 token 的前提下引入 4 个高价值机制:VBR(先验证再汇报)、Autonomous vs Prompted Cron 区分、工具迁移检查清单、会话压缩恢复流程。适用于避免“改了文本没改机制”、减少自动任务失效、提高会话连续性。