Invest Allocation logo

Invest Allocation

Community
taxueseek
invest-allocation

invest系列:资产配置。判断股债商比例是否合理,单一品种分析与组合配置相结合。 触发:「资产配置」「股债比例」「组合调整」「再平衡」「大类资产配置」「投资组合」

Overview

Publishertaxueseek
Repositorytaxue-invest
Skill nameinvest-allocation
Stars
29
Forks
6
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by taxueseek on GitHub. Read the source before you install it.

Installation

Install the Invest Allocation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/taxueseek/taxue-invest/tree/main/skills/invest-allocation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/taxueseek/taxue-invest.git /tmp/taxue-invest
mkdir -p .claude/skills
cp -r /tmp/taxue-invest/skills/invest-allocation .claude/skills/invest-allocation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Invest Allocation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Invest Allocation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Invest Allocation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

invest-allocation:资产配置

单一品种分析是选工具,资产配置是搭结构。结构对了,工具才能发挥作用。


哲学锚点

  • 达里奥「风险平价」:不要把所有鸡蛋放在一个篮子里。不同资产之间的相关性越低,组合越稳健。
  • 芒格「格栅思维」:从多个维度看配置。风险承受能力、投资期限、流动性需求、当前估值——单一维度判断容易偏。
  • 德鲁克「有效性」:资产配置的目的是什么?保值?增值?收入?目标不清晰,配置就是无效的。

分析前提

必须收集信息(如用户未提供,需询问):

维度问题选项
目标投资目的是什么?保值/增值/收入/特定目标(教育/养老)
风险能承受多大回撤?<10% / 10-20% / 20-30% / >30%
时间投资期限多久?<1年 / 1-3年 / 3-5年 / >5年
流动性多久可能用到这笔钱?随时 / 1年内 / 3年内 / 不急用
现状当前持仓是什么?股/债/商/现金的比例

战略资产配置(SAA)

基于风险承受能力和投资期限,确定长期比例。

参考配置矩阵

风险承受\期限<3年3-5年>5年
保守(回撤<10%)债80%股10%商10%债70%股20%商10%债60%股30%商10%
均衡(回撤10-20%)债50%股40%商10%债40%股50%商10%债30%股60%商10%
进取(回撤20-30%)债30%股60%商10%债20%股70%商10%债10%股80%商10%

注:商品(黄金等)作为分散工具,通常占5-15%


战术资产配置(TAA)

基于当前市场估值,对战略配置进行微调。

估值判断(动态)

资产类别估值指标当前分位判断战术调整
股票沪深300 PE___%高/中/低__%
债券十年期国债利率___%高/中/低__%
商品黄金实际利率___%高/中/低__%

调整原则:

  • 高估资产:战略比例 -5%至-10%
  • 低估资产:战略比例 +5%至+10%
  • 最多偏离战略比例15%

组合检视(如用户已有持仓)

当前组合分析

资产当前比例目标比例偏离估值状态建议动作
股票__%__%__%___增持/减持/持有
债券__%__%__%___增持/减持/持有
商品__%__%__%___增持/减持/持有
现金__%__%__%-增持/减持/持有

集中度风险

检查项当前状态风险等级
单一股票占比__%高/中/低(>20%高)
单一行业占比__%高/中/低(>30%高)
单一基金占比__%高/中/低(>30%高)

组合风险度量

指标计算方法当前值目标范围判断
组合波动率加权标准差(考虑相关性)__%< 15%(保守)/ < 25%(进取)___
最大回撤历史峰值到谷底__%< 10%(保守)/ < 20%(进取)___
VaR(95%)历史模拟/参数法__%单日亏损 < 5%___
CVaR/ES尾部平均亏损__%极端亏损 < 8%___
下行捕获率组合回撤/基准回撤__%< 80%___
夏普比率(收益-无风险)/波动率__> 0.5(及格)/ > 1.0(优秀)___
索提诺比率(收益-无风险)/下行波动率__> 0.7(及格)/ > 1.5(优秀)___

相关性矩阵

资产对相关性判断
股-债__< 0.3 有效分散
股-黄金__< 0.3 有效分散
A股-美股__< 0.5 有效分散
A股-港股__< 0.7 有效分散

相关性陷阱:名义分散(多只股票)≠ 实际分散(同涨同跌)。2008/2015/2022 期间,多数资产相关性趋近 1,分散失效。


投稳/投变框架

在战略资产配置基础上,区分「投稳」和「投变」两个子框架:

投稳框架(底仓)

参数范围说明
股债比例1:9 至 3:7根据风险承受能力选择
底仓资产国债、金融债、高等级信用债类现金属性
目标稳健增值,控制回撤最大回撤 < 10%
再平衡每年 1-2 次偏离 ±5% 时触发

投变框架(进取)

参数范围说明
在投变框架中加入优质股票、行业主题、海外资产用安全垫逻辑
安全垫要求优先股/认股权证/结构化保护下跌有保护,上涨有空间
目标超越投稳框架的收益接受更高波动
仓位控制投变部分 ≤ 总仓位 30%控制最大回撤

杠杆认知

类型特征判断
安全杠杆低成本、无追保、有安全垫可接受(如保险浮存金结构)
危险杠杆高成本、有追保、无安全垫红线——普通人不应使用

全天候策略深度

全天候不是固定比例表,而是配置思路。三个核心问题比任何比例都重要:

  1. 这个资产在什么环境下表现好? 如果答不上来,就不配。
  2. 我的组合在每种环境下都有得分点吗? 如果没有,就补。
  3. 我在极端情况下能扛住吗? 如果不能,就降仓位。

全天候不是什么

  • 不是万能公式——桥水框架针对美国市场,搬到中国需要重新校准
  • 不是永远赚钱——牛市里跑输全仓股票是策略设计的一部分
  • 不是无所作为——需要再平衡、定期检视、极端估值时战术调整

核心原则:永不离场

市场回报集中在极少数交易日。错过最好的 10 天、20 天,长期收益率会大幅缩水。全天候让你在暴跌中回撤更小,心态不至于崩,从而能一直留在牌桌上。


现金管理

现金原则

  • 现金像氧气:平时不感觉存在,没有时立刻窒息
  • 永远留有余地:不预测市场,但为所有可能的情况准备好衣服
  • 抄底需要安全垫:没有现金的抄底 = 接飞刀

安全垫设计

层级内容作用
第一层6 个月生活支出(货币基金/存款)应急,不动用投资资金
第二层投资组合中的现金/短债仓位(5-10%)再平衡弹药
第三层类现金资产(国债/金融债)抄底专用,市场暴跌时启用

再平衡策略

触发条件:

  • 时间触发:每季度/每半年
  • 偏离触发:某类资产偏离目标比例±5%
  • 估值触发:某类资产估值极端(PE分位>90%或<10%)

再平衡方法:

  • 增量资金法:新增资金投向低配资产
  • 卖出法:卖出高配资产,买入低配资产(考虑税费)

输出格式

markdown
# [用户代号] 资产配置方案

**分析日期**:{{T}}
**投资目标**:___(保值/均衡/进取)
**风险承受**:___% 最大回撤
**投资期限**:___年

---

## 战略配置建议

| 资产类别 | 建议比例 | 配置逻辑 |
|---------|---------|---------|
| 股票 | __% | ___ |
| 债券 | __% | ___ |
| 商品 | __% | ___ |
| 现金 | __% | ___ |

---

## 战术调整(基于当前估值)

| 资产 | 战略比例 | 估值状态 | 战术调整 | 最终比例 |
|------|---------|---------|---------|---------|
| 股票 | __% | PE分位___% | __% | __% |
| 债券 | __% | 利率分位___% | __% | __% |
| 商品 | __% | 价格分位___% | __% | __% |

---

## 当前组合检视(如有)

| 资产 | 当前 | 目标 | 偏离 | 建议动作 |
|------|------|------|------|---------|
| 股票 | __% | __% | __% | ___ |
| 债券 | __% | __% | __% | ___ |
| 商品 | __% | __% | __% | ___ |
| 现金 | __% | __% | __% | ___ |

**集中度风险**:
- 单一股票占比:__%(>20%需警惕)
- 单一行业占比:__%(>30%需警惕)

---

## 再平衡计划

**建议触发条件**:
- 时间:每___个月检查一次
- 偏离:某类资产偏离目标±___%

**下次检查日期**:___

**优先执行**:
1. ___
2. ___

---

## 单一品种选择建议

在各类别内选择具体标的时,可使用:
- 股票 → invest-stock
- 基金 → invest-fund
- 债券/可转债/商品/REITs → invest-asset(按资产加载细则)

---

*invest-allocation v1.0 | 战略+战术配置*

---

## 数据获取(invest-cli)

取数统一走数据层 `invest-cli`,不靠 web_search 猜数据:

1. 直接按场景取数(`intent portfolio/plan` 等)。`datasources` 只在排查「为什么没数据」时跑,不要每次前置。
2. 按 invest 主入口「场景 → 取数映射表」选择具体命令
3. 标注数据来源,口径不一致不合并

Frequently asked questions

What does the Invest Allocation AI skill do?

invest系列:资产配置。判断股债商比例是否合理,单一品种分析与组合配置相结合。 触发:「资产配置」「股债比例」「组合调整」「再平衡」「大类资产配置」「投资组合」

Why use Invest Allocation on TypingMind?

Because you install it once and use it with any model. Invest Allocation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Invest Allocation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/taxueseek/taxue-invest/tree/main/skills/invest-allocation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Invest Allocation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Invest Allocation?

As many as you like. As long as a model supports skills, you can use Invest Allocation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Invest Allocation AI skill free?

It is published on GitHub by taxueseek. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇