资产配置师

v2.0.0

[何时使用]当用户需要资产配置方案时;当用户问"我应该如何配置资产"时;当进行生命周期规划时;当需要定投计划时

0· 151·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for lj22503/asset-allocator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "资产配置师" (lj22503/asset-allocator) from ClawHub.
Skill page: https://clawhub.ai/lj22503/asset-allocator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install asset-allocator

ClawHub CLI

Package manager switcher

npx clawhub@latest install asset-allocator
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (资产配置) match the provided content: guidance, templates, examples, and a local allocation calculator script. There are no unrelated environment variables, binaries, or external services requested. The included Python script implements the same lifecycle-based allocation logic described in SKILL.md.
Instruction Scope
SKILL.md stays within the stated purpose (risk assessment, allocation, rebalancing, SIP plans, templates/examples). It does not instruct reading system files or contacting external endpoints. Note: there is a usability inconsistency — SKILL.md/input schema uses Chinese enum values for risk_tolerance (保守/平衡/积极) and parameter name 'risk_tolerance', while scripts/allocation-calculator.py expects an English CLI flag '--risk' with choices ['conservative','balanced','aggressive']. This mismatch could cause runtime errors if the agent passes the SKILL.md values directly.
Install Mechanism
No install spec; the skill is instruction-only with a bundled, small Python script. No downloads or extraction from external URLs, no package installs, and no code obfuscation were found.
Credentials
No required environment variables, credentials, or config paths. The Python script is self-contained, uses only CLI args and local computation, and does not access environment secrets.
Persistence & Privilege
always:false and default invocation settings. The skill does not request persistent system privileges or modify other skills or system configuration. Nothing indicates it writes outside its own files.
Assessment
This package appears to be a straightforward asset-allocation helper and is internally coherent. Before installing or invoking: 1) Note the input mismatch — the SKILL.md schema uses Chinese risk labels but the bundled script expects English values ('conservative','balanced','aggressive') and a '--risk' flag; either the agent wrapper or the script should be adapted. 2) The script runs locally and contains no network calls, but if your agent platform executes skills remotely or logs inputs, treat any financial numbers you send as potentially stored/visible. 3) Review and test the script with non-sensitive sample data to confirm behavior. 4) Remember this is educational guidance, not professional financial advice — consult a licensed adviser for personalized recommendations.

Like a lobster shell, security has layers — review code before you run it.

asset-allocationvk97ebbetp4d7jvhpsdn83csg45836ydmlatestvk97ebbetp4d7jvhpsdn83csg45836ydmlifecyclevk97ebbetp4d7jvhpsdn83csg45836ydmportfoliovk97ebbetp4d7jvhpsdn83csg45836ydm
151downloads
0stars
1versions
Updated 1mo ago
v2.0.0
MIT-0

资产配置师 📈

基于《漫步华尔街》- 伯顿·马尔基尔 (1973)


📋 功能描述

根据生命周期设计资产配置方案,实现长期稳健收益。

适用场景:

  • 资产配置规划
  • 生命周期投资
  • 定投计划制定
  • 再平衡策略

边界条件:

  • 不替代专业理财建议
  • 需考虑个人情况
  • 市场有风险
  • 历史表现不代表未来

🎯 核心功能

功能 1:风险承受能力评估

评估因素:

因素评估说明
年龄X 岁年轻/中年/退休
风险偏好保守/平衡/积极主观风险承受
投资期限X 年长/中/短
收入稳定性稳定/不稳定收入来源
应急资金充足/不足3-6 个月生活费

综合风险等级: 保守/平衡/积极

功能 2:资产配置方案

标准配置(根据年龄):

资产类别配置比例说明
股票X%国内 X%,国际 X%
债券X%国债 X%,信用债 X%
现金X%货币基金/银行存款
另类X%黄金/REITs/大宗商品

简化公式: 股票比例 = 100 - 年龄

风险调整:

  • 保守型:股票比例 -10%
  • 积极型:股票比例 +10%

功能 3:基金推荐

股票部分:

类型推荐基金比例说明
国内指数沪深 300ETFX%大盘蓝筹
国际指数标普 500ETFX%全球配置
行业基金可选X%增强收益

债券部分:

类型推荐基金比例说明
国债国债 ETFX%低风险
信用债信用债基金X%中等风险

功能 4:再平衡策略

再平衡规则:

  • 频率:每年 1 次(建议生日或年初)
  • 阈值:偏离>5% 时调整
  • 方法:卖出高估资产,买入低估资产

示例:

目标配置:股票 60%,债券 40%
当前配置:股票 70%,债券 30%
操作:卖出 10% 股票,买入债券

功能 5:定投计划

月度定投建议:

项目金额比例
国内指数基金X 元X%
国际指数基金X 元X%
债券基金X 元X%

定投原则:

  • 固定时间(如每月发薪日)
  • 固定金额
  • 长期坚持
  • 不止损

⚠️ 常见错误

错误 1:机械套用年龄公式

失败案例:
• 机械套用"100-年龄"公式
• 忽视个人风险承受能力差异
• 结果:配置与实际不匹配

正确做法:
✓ 综合评估年龄/收入/目标/经验
✓ 风险偏好测试作为参考
✓ 配置方案个性化调整

预防清单:
- [ ] 是否评估了风险承受能力?
- [ ] 配置是否符合投资目标?
- [ ] 是否有应急资金?
- [ ] 是否需要调整标准公式?

错误 2:忽视应急资金

失败案例:
• 把所有钱都投入股市
• 急用钱时被迫低位卖出
• 结果:实际亏损

正确做法:
✓ 先留足 3-6 个月支出作为应急资金
✓ 应急资金放货币基金/活期存款
✓ 剩余资金再投资

预防清单:
- [ ] 是否有 3-6 个月应急资金?
- [ ] 应急资金是否隔离?
- [ ] 是否用急钱投资?

错误 3:频繁调整配置

失败案例:
• 每天看账户,频繁调整
• 追涨杀跌,高买低卖
• 结果:收益跑输定投

正确做法:
✓ 设定再平衡频率(每年 1 次)
✓ 设定阈值(偏离>5% 才调整)
✓ 忽略短期波动

预防清单:
- [ ] 再平衡频率是否合理?
- [ ] 是否达到调整阈值?
- [ ] 是否因情绪调整?

错误 4:过度分散

失败案例:
• 买 20+ 只基金
• 每只都买一点
• 结果:收益被稀释,管理困难

正确做法:
✓ 核心 - 卫星策略
✓ 核心:3-5 只宽基指数(80%)
✓ 卫星:1-2 只行业基金(20%,可选)

预防清单:
- [ ] 基金数量是否>10 只?
- [ ] 是否有重复配置?
- [ ] 是否过于复杂?

错误 5:忽视成本

失败案例:
• 买高费率主动基金
• 频繁交易产生手续费
• 结果:成本侵蚀收益

正确做法:
✓ 优先选择低费率指数基金
✓ ETF 费率通常<0.5%
✓ 减少交易频率

预防清单:
- [ ] 基金费率是否<1%?
- [ ] 交易频率是否过高?
- [ ] 是否有更低成本选择?

错误 6:定投中断

失败案例:
• 市场下跌停止定投
• 市场高涨盲目加仓
• 结果:成本摊高,收益降低

正确做法:
✓ 固定时间固定金额
✓ 自动扣款,强制储蓄
✓ 越跌越买(同样的钱买更多份额)

预防清单:
- [ ] 是否设置了自动扣款?
- [ ] 市场下跌时是否坚持?
- [ ] 是否有长期规划(10 年 +)?

🔗 相关资源

渐进式披露结构

核心文档(本文件):

  • asset-allocator 技能详情

参考资料(references/):

  • references/allocation-theory.md - 马尔基尔资产配置理论
  • references/rebalancing-strategy.md - 再平衡策略详解

示例集合(examples/):

  • examples/balanced-example.md - 平衡型配置示例(35 岁)
  • examples/conservative-example.md - 保守型配置示例(55 岁)
  • examples/aggressive-example.md - 积极型配置示例(28 岁)

模板文件(templates/):

  • templates/allocation-template.md - 配置方案模板
  • templates/rebalance-template.md - 再平衡计算模板

计算工具(scripts/ & calculators/):

  • scripts/allocation-calculator.py - 配置比例计算脚本
  • calculators/rebalance-calculator.md - 再平衡计算公式

📊 输入参数

{
  "age": {
    "type": "number",
    "required": true,
    "description": "年龄"
  },
  "risk_tolerance": {
    "type": "string",
    "enum": ["保守", "平衡", "积极"],
    "required": true,
    "description": "风险偏好"
  },
  "investment_goal": {
    "type": "string",
    "enum": ["退休", "购房", "教育", "增值"],
    "required": true,
    "description": "投资目标"
  },
  "time_horizon": {
    "type": "number",
    "required": true,
    "description": "投资期限(年)"
  },
  "total_assets": {
    "type": "number",
    "required": true,
    "description": "总资产规模"
  },
  "monthly_income": {
    "type": "number",
    "required": false,
    "description": "月收入"
  },
  "emergency_fund": {
    "type": "boolean",
    "required": true,
    "description": "是否有应急资金"
  }
}

📤 输出格式

{
  "status": "success",
  "data": {
    "risk_assessment": {
      "age_group": "年轻 | 中年 | 退休",
      "risk_level": "保守 | 平衡 | 积极",
      "recommendation": ""
    },
    "allocation_plan": {
      "stocks": {
        "percentage": 0,
        "domestic": 0,
        "international": 0
      },
      "bonds": {
        "percentage": 0,
        "government": 0,
        "corporate": 0
      },
      "cash": {
        "percentage": 0
      },
      "alternatives": {
        "percentage": 0
      }
    },
    "fund_recommendations": [],
    "rebalancing_strategy": {
      "frequency": "",
      "threshold": ""
    },
    "investment_plan": {
      "monthly_amount": 0,
      "funds": []
    }
  }
}

🧪 使用示例

示例 1:35 岁平衡型配置

输入:

年龄:35 岁
风险偏好:平衡
投资目标:退休
投资期限:25 年
总资产:100 万
月收入:2 万
应急资金:是

输出:

【风险承受能力评估】

| 因素 | 评估 | 说明 |
|------|------|------|
| 年龄 | 35 岁 | 中年,时间充裕 |
| 风险偏好 | 平衡 | 中等风险承受 |
| 投资期限 | 25 年 | 长期投资 |
| 收入稳定性 | 稳定 | 月收入 2 万 |
| 应急资金 | 充足 | 已预留 |

综合风险等级:平衡

【资产配置方案】

标准配置(35 岁):
股票比例 = 100 - 35 = 65%

| 资产类别 | 配置比例 | 说明 |
|---------|---------|------|
| 股票 | 65% | 国内 40%,国际 25% |
| 债券 | 25% | 国债 15%,信用债 10% |
| 现金 | 5% | 货币基金 |
| 另类 | 5% | 黄金/REITs |

【基金推荐】

股票部分:
| 类型 | 推荐基金 | 比例 | 说明 |
|------|---------|------|------|
| 国内指数 | 沪深 300ETF | 25% | 大盘蓝筹 |
| 国内指数 | 中证 500ETF | 15% | 中小盘 |
| 国际指数 | 标普 500ETF | 15% | 美国市场 |
| 国际指数 | 纳斯达克 ETF | 10% | 科技成长 |

债券部分:
| 类型 | 推荐基金 | 比例 | 说明 |
|------|---------|------|------|
| 国债 | 国债 ETF | 15% | 低风险 |
| 信用债 | 信用债基金 | 10% | 中等风险 |

【再平衡策略】

频率:每年 1 次(建议生日)
阈值:偏离>5% 时调整
方法:卖出高估资产,买入低估资产

【定投计划】

月度定投:1 万元
| 基金 | 金额 | 比例 |
|------|------|------|
| 沪深 300ETF | 4000 元 | 40% |
| 中证 500ETF | 2000 元 | 20% |
| 标普 500ETF | 2000 元 | 20% |
| 国债 ETF | 2000 元 | 20% |

定投原则:
- 固定时间(每月发薪日)
- 固定金额
- 长期坚持
- 不止损

示例 2:55 岁保守型配置

输入:

年龄:55 岁
风险偏好:保守
投资目标:保值
投资期限:10 年
总资产:300 万
月收入:3 万
应急资金:是

输出:

【风险承受能力评估】

综合风险等级:保守

【资产配置方案】

标准配置(55 岁):
股票比例 = 100 - 55 = 45%
保守型调整:45% - 10% = 35%

| 资产类别 | 配置比例 | 说明 |
|---------|---------|------|
| 股票 | 35% | 国内 20%,国际 15% |
| 债券 | 50% | 国债 30%,信用债 20% |
| 现金 | 10% | 货币基金 |
| 另类 | 5% | 黄金 |

【投资建议】

建议:保守配置
理由:
1. 接近退休,保本为主
2. 股票比例降至 35%
3. 债券比例提高至 50%
4. 现金比例提高至 10%

📚 核心理念

马尔基尔核心原则

1. 定期定额投资(不择时)
2. 分散化(不要把所有鸡蛋放一个篮子)
3. 低成本(选择低费率指数基金)
4. 再平衡(每年调整一次)
5. 长期思维(忽略短期波动)

生命周期配置

股票比例 = 100 - 年龄

核心逻辑:
- 年轻:风险承受力强,高股票比例
- 年长:风险承受力弱,高债券比例
- 动态调整,随年龄变化

健康公式

长期稳健收益 = 资产配置 × 定期定额 × 再平衡 × 时间

关键变量:
- 资产配置:匹配生命周期
- 定期定额:不择时,持续投入
- 再平衡:强制低买高卖
- 时间:复利效应

🔗 相关文件

  • README.md - 技能包目录导航
  • ../SKILL.md - 投资框架主技能
  • references/allocation-theory.md - 马尔基尔资产配置理论
  • examples/balanced-example.md - 平衡型配置示例
  • examples/conservative-example.md - 保守型配置示例
  • examples/aggressive-example.md - 积极型配置示例
  • templates/allocation-template.md - 配置方案模板
  • scripts/allocation-calculator.py - 配置计算脚本
  • calculators/rebalance-calculator.md - 再平衡计算

更新日志

  • v2.0.0 (2026-03-19): 按照 SKILL-STANDARD-v2.md 重构,添加 Front Matter、坑点章节、相关资源 📈
  • v1.0.0 (2026-03-13): 初始版本,资产配置师上线 📈

资产配置决定 90% 的收益。坚持定投,穿越牛熊。 📈

Comments

Loading comments...