portfolio-management
Skill10 starsChanged 6 months agoMITView on GitHub
查询与分析用户的投资组合:交易账户、可用资金、当前持仓、行业分布、历史收益与组合快照。 当用户询问"我的账户余额"、"资金情况"、"现在有哪些持仓"、"仓位分布"、"持仓收益"、 "账户资产"、"组合表现",或要求基于真实持仓进行分析时,**务必使用此技能**。
1 other project uses a version of this.
Adopted by
Most recently taken up by
- from68/claude-portfolio-management-skillstheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- from68/claude-portfolio-management-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-learningSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- event-driven-analysisSkill
- fundamental-analysisSkill
- investment-notesSkill
- macro-analysisSkill
- market-data-lookupSkill
- market-info-recordingSkill
- report-consultingSkill
- risk-assessmentSkill
- sentiment-analysisSkill
- stock-analysisSkill
- task-managementSkill
- technical-analysisSkill
- transaction-managementSkill
- valuation-modelsSkill
The file
Files
投资组合查询与分析
用户问及"自己的"资产、账户、持仓、资金时,必须查询真实数据,禁止凭空编造或沿用上一次对话的记忆。
账户与资金
- 余额:调用
accountBalanceTool(可直接读取账户资金字段;传before_transaction_id可计算到某笔交易之前的余额)。 - 账户列表 / 市场与币种:
dbQueryTool查表accounts(列:account_name, market, currency, userId)。 - 已删除账户会自动过滤,无需担心脏数据。
持仓
用 dbQueryTool 查表 asset_positions(列:account_id, symbol, quantity, average_price_cents, sector, currency;sector 取值 stock/etf/fund/crypto):
{"table": "asset_positions", "orderBy": "quantity", "orderDirection": "DESC", "limit": 50}- 聚焦某个账户时加条件:
{"table": "asset_positions", "whereColumn": "account_id", "whereValue": 1}。 - 平均成本以"分"为单位(average_price_cents),金额计算时除以 100。市值全部以分计价,换算时注意。
- 类型分布:按
sector字段在回答中分组统计,不要逐行罗列全部记录。
快照与收益
- 组合快照:
dbQueryTool查表portfolio_snapshots(列:account_id, snapshot_date, total_value_cents, cash_balance_cents, positions 为 JSON 持仓明细),适合做净值曲线、期间对比。 - 收益指标:表
revenue_metrics。 - 交易流水:见
transaction-management技能(不要用 dbQuery 逐笔查交易再做账户级汇总,优先用工具)。
组合分析要求
- 先拿全量持仓与账户,再下结论;给出文字结论 + 分组数据。
- 集中度分析:单一标的或单一 sector 占比超过默认阈值(如 40%)时必须提示。
- 涉及市值/收益计算时,用
stockGetPriceTool取最新价格配合持仓数量计算,并注明计算口径与价格时点。 - 无法获取价格时明确说明,不要估算后冒充实测值。
限制
- 本技能只做查询与分析。重开账户、修改账户等管理操作不在 Agent 能力范围内,提示用户去应用对应页面完成。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

