Communitygithub.com

投资组合经理

用于资本配置、风险管理和交易策略绩效指标跟踪。

投资组合经理 是什么?

投资组合经理是一项AI智能体技能,专注于辅助量化基金或交易策略的资本配置、风险管理和绩效追踪。该技能支持从研究、计划、执行到监控、风险管理和回顾的完整交易流程。用户可以通过引导语如“管理多个交易策略的资本配置”或“跟踪绩效指标(IRR、MOIC、夏普比率、胜率)”来触发该技能。技能内建了基于凯利准则的头寸计算、严格的风险管理规则(如每笔交易风险不超过1-2%)、关键绩效指标(如夏普比率和最大回撤)以及反合理化表格,帮助交易者避免情绪化决策。该技能适用于Claude Code等支持技能定义平台的AI Agent环境。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/oyi77/1ai-skills/tree/HEAD/trading/portfolio-manager

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

投资组合经理 是做什么的?

何时使用

触发短语:

  • “正在管理多个交易策略的资本配置”

  • “正在跟踪量化基金的绩效指标(IRR、MOIC、夏普比率、胜率)”

  • “实施从纸面交易到实盘再到规模化交易的阶段门控”

  • 管理多个交易策略的资本配置

  • 跟踪量化基金的绩效指标(IRR、MOIC、夏普比率、胜率)

  • 实施从纸面交易到实盘再到规模化交易的阶段门控

  • 基于风险公式计算头寸规模

  • 为基金绩效审查生成投资者报告

何时不使用

  • 当您无法承受资本损失风险时
  • 针对您不了解的工具
  • 当情绪状态影响判断时(报复性交易、FOMO)

概述

投资组合经理提供带有风险管理的市场分析能力。

工作流程

# 示例:头寸规模(凯利准则)
def kelly_size(win_rate: float, avg_win: float, avg_loss: float) -> float:
    if avg_loss == 0: return 0
    b = avg_win / abs(avg_loss)
    kelly = (win_rate * b - (1 - win_rate)) / b
    return max(0, min(kelly * 0.5, 0.02))  # 半凯利,最大2%
  1. 研究 — 分析市场状况与机会
  2. 计划 — 定义入场、出场和头寸规模
  3. 执行 — 使用适当的订单类型进行交易
  4. 监控 — 跟踪头寸和市场变化
  5. 风险管理 — 应用止损和对冲
  6. 回顾 — 交易后分析与日志记录

风险管理

  • 每笔交易的风险不得超过投资组合的1-2%
  • 在进入任何头寸前设定止损
  • 分散投资于不相关的资产
  • 根据波动性(ATR)确定头寸规模
  • 设置每日最大亏损限额

关键指标

  • 胜率与盈利因子
  • 夏普比率与最大回撤
  • 平均风险回报比
  • 每笔交易的期望值
  • 与基准的相关性

纪律规则

  • 遵循您的交易计划 — 不做冲动交易
  • 及时止损,让利润奔跑
  • 在日志中回顾每一笔交易
  • 亏损后绝不报复性交易
  • 连续亏损后暂停交易

反合理化表

合理化理由现实
“我稍后会止损”稍后永远不会到来。在进入任何交易前设定止损。
“这次不一样”从来都不一样。遵循您的策略,而不是情绪。
“我不需要日志”日志揭示您行为中的模式。跟踪每一笔交易。

流程

  1. 准备 — 收集需求,验证前提条件,设置环境
  2. 执行 — 使用配置的参数运行投资组合经理工作流程
  3. 验证 — 确认输出满足需求,记录结果

验证

  • 所有步骤成功执行
  • 结果已根据验收标准验证
  • 已使用边缘情况测试错误处理
  • 文档已根据发现结果更新

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

oyi77/1ai-skills

Turn a weekly changelog .md into a finished branded changelog video using HyperFrames. Use when the user provides a changelog/digest markdown and wants the weekly video, or says 'changelog video'. Self-contained — fonts, background, lexicon, and scripts ship in the skill. Produces square 1080, ~45-60s videos with animated brand mock-UIs.

oyi77/1ai-skills

The transition technique catalog for HyperFrames videos — five velocity-matched SEAMS (zoom-through, inverse zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus in-scene techniques (waterfall entry, nudge curve). Covers partial-travel velocity matching, Z scale-sign rule, size-scaled blur, the 10/65/25 slide ratio, and the 2-3 transition budget. Read before authoring any transition, text-beat handoff, or kinetic text entry.

oyi77/1ai-skills

Add captions/subtitles to talking-head or launch videos using HyperFrames. Use when the user wants embedded captions, verbatim caption rails, or cinematic text behind the subject. Covers the drop/rail/embed caption model, the overlay law (captions are NOT a reserved band), matte occlusion for embedded climaxes, and word-timestamp alignment from TTS output.

oyi77/1ai-skills

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video using HyperFrames. Use when the user wants a topic explainer, concept breakdown, how-to, or listicle with no product/website to capture. Every visual is invented per scene (typography, abstract graphics, diagrams, data-viz). Not a video built from a website (use hyperframes-product-launch-video).

oyi77/1ai-skills

The fallback HyperFrames workflow for anything that doesn't fit other skills — longer multi-scene pieces, brand/sizzle reels, title cards, static loops, freeform compositions. Input- and length-agnostic. Also the home of companion mode (co-create with the full toolbox). Use when no other HyperFrames skill matches, or when the user wants a freeform video.

oyi77/1ai-skills

Create short, unnarrated, design-led motion graphics (~under 10s) using HyperFrames. Use when the user wants kinetic type, stat/chart hits, logo stings, lower-thirds, animated tweets/headlines, or transparent overlay motion graphics. MP4 or transparent overlay output. Teaches seek-safe keyframe authoring and the 2-3 transition budget rule.

oyi77/1ai-skills

Turn a music track into a beat-synced HyperFrames video — lyric, slideshow, or kinetic promo. Use when the user provides an audio file, a video to pull audio from, or a mood brief for generated music. Music drives pacing. Teaches beat-map extraction, section-based scene planning, and audio-reactive visuals.

oyi77/1ai-skills

Create product launch videos from a URL, brief, or script using HyperFrames (HTML→MP4). Use when the user wants a product launch video, site tour, social clip featuring a product's own visuals, or marketing/promoting a product. Up to ~3 min (sweet spot 30-90s). Teaches the HyperFrames production loop: plan → write HTML → wire seekable animations → add media → lint → preview → render.

oyi77/1ai-skills

The Video Production Manager — manages ALL video production under 1ai-content. Delegates to HyperFrames, Remotion, AI video, and FFmpeg based on the task. Has memory via 1ai-hub brain, follows 1ai-rules, and reports to Content Director. Use when the user says 'make a video', 'create video', 'edit video', 'video strategy', or needs any video production work.

oyi77/1ai-skills

Agent skill at content/video/gen/SKILL.md

oyi77/1ai-skills

Use when track portfolio company KPIs, variances, returns analysis. Use when user says "monitor portfolio", "track KPIs", "portfolio returns".

oyi77/1ai-skills

Use when go-to-market planning — launch sequencing, channel strategy, audience building, PR outreach. Use when planning product launches, building launch checklists, or coordinating multi-channel campaigns.

相关技能