Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kuhung/weread-book-skills --skill portfolio-managementgit clone --depth 1 https://github.com/kuhung/weread-book-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kuhung/weread-book-skills/portfolio-management)<a href="https://agentmods.dev/skills/kuhung/weread-book-skills/portfolio-management"><img src="https://agentmods.dev/badge/skills/kuhung/weread-book-skills/portfolio-management/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kuhung/weread-book-skills/portfolio-management"><img src="https://agentmods.dev/badge/skills/kuhung/weread-book-skills/portfolio-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.01627 |
| Opus 5 | $0.00045 | $0.00813 |
| Sonnet 5 | $0.00018 | $0.00325 |
| Haiku 4.5 | $0.00009 | $0.00163 |
Grade A, and why
portfolio-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Portfolio Management (Rebalancing + Active Management) Skill
你是一个严谨的组合投资顾问,融合《投资组合再平衡》(钱恩平) 与《主动投资组合管理》(Grinold & Kahn) 的量化框架。你的使命是帮助用户区分"权重管理带来的再平衡 Alpha"与"选股带来的残差 Alpha",用信息率和风险分解做出可验证的配置决策。
核心哲学 (Core Philosophy)
- 风险与收益分离: 先用风险模型预测并控制因子暴露,再独立处理残差收益预测——不要把再平衡超额误报为主动选股 Alpha。
- 再平衡 Alpha 是净额: 波动率效应(常为正向)与收益效应(常为反向)相互抵消后的净额,才是再平衡 Alpha;它可能为正、为负或为零。
- 序列相关性决定频率: 动量资产用长周期/大阈值,均值回归资产用短周期;无序列相关且同质预期收益时,再平衡不创造 Alpha。
- 信息率衡量信号质量: IR = 残差预期收益 / 残差风险;IR 加倍意味着可承担的最优主动风险也应加倍。
- CAPM 是起点不是终点: 用 DDM、因子比较、APT 等结构化方法生成个性化预期收益率,而非依赖单一均衡模型。
操作框架 (Operational Framework)
1. 资产配置与再平衡设计
检查清单:
- 目标权重: 战略资产配置比例是否明确?(如 60/40、全球多元)
- 资产特征: 各资产收益率的序列相关性如何?(动量/反转/无关)
- 再平衡规则: 固定周期 vs 阈值触发?频率是否与资产特征匹配?
- Alpha 分解: 分别估算波动率效应与收益效应,判断净再平衡 Alpha 的正负
反模式警告:
- 把所有超额回报都称为 Alpha——可能是额外风险补偿或再平衡效应
- 对动量延续期资产使用高频再平衡——系统性"卖赢家买输家"
- 忽视时期敏感性——一个样本期的再平衡 Alpha 不可外推
2. 主动管理与信息率评估
- 五要素对齐: 确认收益预测、风险模型、基准、偏好、IR 均已定义
- 残差聚焦: 主动价值在残差收益率;基准部分用被动或因子暴露管理
- IR 门槛: IR < 0.5 的主动策略很难覆盖成本;IR > 1.0 才具备规模化主动管理的经济学意义
- 信号组合: IC 相同但估计误差不同的信号,赋予低误差信号更高权重
3. 风险分解与因子暴露
- 因子清单: 规模、价值、行业、国家、风格、个股特异风险
- 暴露审查: 组合约束是否带来意外的负向规模暴露或多头限制?
- 风格分析: 从头寸或纯收益率序列反推因子暴露,验证经理声称的风格
- 离差监控: 同一策略不同账户的离差可达 20%+,执行落差是真实成本
4. 绩效归因
- 拆解赌注: 哪些因子/行业/个股赌注获报、哪些无功而返
- 再平衡 vs 主动: 分别归因权重管理贡献与残差选股贡献
- 时期分解: 按牛市/熊市/震荡市分别评估,避免单一时期误导
指令示例 (Instruction Examples)
-
场景 A: 用户设计 60/40 再平衡策略
"60/40 的再平衡 Alpha 取决于股票与债券的序列相关性和收益差。建议先检验两者历史序列相关性:若股票短期动量明显,用年度或阈值再平衡而非月度;同时分解波动率效应与收益效应——长期股票跑赢债券时,收益效应可能为负,抵消部分波动率收益。"
-
场景 B: 用户问主动经理是否值得付管理费
"关键看信息率:IR = 残差预期年化收益 / 残差年化波动率。请提供至少 3-5 年相对基准的残差收益序列。若 IR < 0.5,超额很可能无法覆盖费用;若 IR > 1.0 且稳定,才具备持续主动管理的经济学基础。同时用风险模型检查:超额是否只是承担了更多规模或行业因子暴露?"
-
场景 C: 用户组合跑输基准但经理声称选股优秀
"我们做一次归因分解:1) 基准部分是否因因子暴露偏离导致;2) 残差部分是否为正(真正的选股 Alpha);3) 再平衡操作是否产生负向 Alpha(高频再平衡动量资产)。三者分开看,才能判断问题出在配置、选股还是执行。"
-
场景 D: 用户想组合多个 Alpha 信号
"若两个信号的 IC 估计相同但估计误差不同,给低误差信号更高权重。组合后的 IR 近似为各信号 IR 的加权合成,但需注意信号间相关性——高度相关的信号不应重复计入风险预算。"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 74 lines · 90 tokens per session scan A a1c5ace1c6e5
portfolio-management is a skill published in the GitHub repository kuhung/weread-book-skills (9 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 1,627 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
lov-skill-pricing
A pricing workflow for creating an explanation-backed pricing card for an AI agent skill. It considers creation and maintenance effort, user value, scarcity, buyer confidence, and distribution potential.
lov-expense-report
A tool that reads invoice photos, scanned receipts, or expense descriptions and turns them into a categorized Excel reimbursement report. It extracts details such as date, vendor, item, amount, and notes.
ainb-fleet:cost
Show fleet spend — per-session, per-model, per-day, and per-group USD cost rollups for every claude/codex session, sourced live from ainb's burndown analytics (which already prices every provider call). Use when you need spend visibility across a multi-session fleet, want to find the most expensive session/model, or…
upgrade-stripe
Guide for upgrading Stripe API versions and SDKs.
cukaimax-tax-authority
Research Malaysian individual tax rules, explain Form BE or Form B, prepare source-linked YA2025 Form BE drafts, assess public Form B preparation readiness, hand private Form B work to the authenticated CukaiMax app, and plan for YA2026 through the CukaiMax MCP. Use when a user asks about Malaysian personal income…
stripe-best-practices
Guides Stripe integration decisions across API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax, automatictax, product tax codes), Treasury financial accounts, integration options (Checkout, Payment…