Communitygithub.com

infometa/workbuddyskills

Portfolio risk management tool. Converts investment theses into executable position management plans: optimal position sizing, hedging strategies, risk exposure management, and monitoring rules.

What is workbuddyskills?

This AI agent skill enables automated portfolio risk management by transforming investment theses and trade ideas into structured, rule-based position management plans. It guides users through six phases: thesis confirmation, position sizing constraints (stop-loss budget, volatility, liquidity, concentration, correlation), hedging assessment (beta, sector, tail, FX risks), risk exposure documentation, monitoring rules (trigger-action pairs), and periodic review schedules. The skill helps determine appropriate position sizes by taking the minimum of all constraint-determined maximums, evaluates hedge tools (ETF shorts, index futures, options, pairs trades) with cost/benefit analysis, and produces a standardized risk management summary. It supports platforms like Claude Code, Cursor, and Codex, and is particularly useful for systematic investors, portfolio managers, and analysts who need to enforce discipline in position sizing and risk control, ensuring rules are set before emotion takes over during market volatility.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/infometa/workbuddyskills/tree/HEAD/experts/equity-research/skills/portfolio-risk

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Portfolio Risk Management

Description

Convert investment theses and trade ideas into a complete risk management plan. Core objectives: determine appropriate position size, design suitable hedges (if needed), specify retained risk exposure, and establish ongoing monitoring and adjustment rules.

Core Principles

  1. Position size is determined by the tightest constraint: Among liquidity, volatility, concentration, stop-loss budget, etc., take the strictest one.
  2. Hedging and position are not independent: Hedging changes effective exposure—must be considered together.
  3. Rules before emotions: Set rules when calm; execute rules during volatility.
  4. Alpha vs. unintended risk: Identify risks you intentionally take (alpha sources) versus risks you unintentionally bear (need hedging/avoidance).

Workflow

Phase 1: Thesis Confirmation

  1. Confirm underlying investment thesis and direction (from long-short pitch or other analysis).
  2. Specify expected holding period.
  3. Confirm confidence level and evidence completeness.
  4. Identify alpha sources: What risk exposure generates your profit?

Phase 2: Position Sizing

Constraint Checklist

Constraint TypeSpecific LimitImplied Max Position
Stop-Loss BudgetMax loss per trade ≤ X% of portfolioPosition = Budget / Expected max decline
VolatilityPosition volatility contribution ≤ X%Derived from individual stock volatility
LiquidityExit time ≤ X daysPosition ≤ X days × Avg daily volume × Participation rate
ConcentrationSingle position ≤ X% of portfolioHard cap
CorrelationSimilar exposure total ≤ X%Consider existing correlated positions

Final Position = min(Upper limits from each constraint)

Phase 3: Hedging Assessment (if applicable)

  1. What needs hedging:
    • Beta / Systemic risk
    • Sector / Factor risk
    • Event tail risk
    • Currency risk
  2. Hedging tool selection:
    • Short sector ETF
    • Index futures
    • Option protection (Put buy / Collar)
    • Pairs trade (short weaker peer in same sector)
  3. Hedge cost and benefit:
    • Hedge cost / Carry
    • Degree of protection
    • Impact on alpha (over-hedging may lose upside)
  4. Alternatives to hedging:
    • Reduce position to equivalent risk
    • Cost comparison

Phase 4: Risk Exposure Summary

Intentionally retained exposure (Alpha sources):
• [Describe risks you intentionally take]

Hedged/avoided exposure:
• [Describe risks that have been hedged]

Residual/unhedged exposure:
• [Describe risks still borne but unhedged, and reasons]

Phase 5: Monitoring Rules

Establish clear "If X happens, do Y" rules:

Trigger ConditionActionPriority
Stock price breaks below ¥XX (stop-loss)Reduce to X% or liquidateMandatory
Thesis invalidation condition triggeredLiquidate within 3 daysMandatory
Target price reachedReduce to X%Disciplined
Sudden volatility spike >X%Assess if position is too largeReview
Liquidity deteriorationInitiate exit earlyReview
Catalyst realized and positiveCan add to X%Opportunity
Valuation becomes attractive againCan replenish to X%Opportunity
Hedge expires/becomes ineffectiveAssess renewal or go nakedDisciplined

Phase 6: Periodic Review Plan

  • Check thesis validity every [week/month]
  • Update assessment within 24 hours after earnings release
  • Increase monitoring frequency when position exceeds X%

Output Format

Risk Management Summary

═══════════════════════════════════════
Risk Management Plan | [Underlying Name] ([Ticker])
Direction: [Long/Short]
Date: YYYY-MM-DD
═══════════════════════════════════════

## Position Suggestion
- Suggested position: X% of portfolio
- Binding constraint: [What is the tightest constraint]
- Entry method: [All at once / In batches] at [price range]
- Expected holding period: X months

## Hedging Plan
- Hedging instrument: [Specific description]
- Hedge cost: X% annualized
- Degree of protection: Downside protected beyond X%
- Effective exposure: Position X% - Hedge = Net exposure X%

## Risk/Reward
- Target return: +XX% (X months)
- Maximum expected loss: -XX% (stop-loss trigger)
- Risk/reward ratio: X:1
- Probability-weighted expectation: +XX%

## Monitoring Rules
[List from table above]

## Exit Plan
- Take profit: [Conditions and target]
- Stop loss: [Conditions and level]
- Time stop: [If thesis not realized within X months]
═══════════════════════════════════════

Notes

  • Position sizing is the first line of risk management, more important than hedging.
  • "No hedge + small position" is often superior to "large position + expensive hedge."
  • Hedging may introduce new risks (basis risk, margin risk).
  • Monitoring rules must be established before building the position, not afterward.
  • Stop-loss is a discipline issue, not a prediction issue—no need to argue "whether it will hit stop-loss."
  • Hedging cannot eliminate all risks; it only changes the form and cost of risk.
  • Liquidity is nonlinear: normal-period liquidity does not represent stressed-period liquidity.
  • This tool outputs research references and does not constitute personal investment advice.

Individual skills in this repo

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

infometa/workbuddyskills

Track the IP portfolio — registrations, renewals, maintenance fees, and use declarations. Use when checking what's renewing, adding or updating an asset, recording a maintenance filing, or auditing the register for gaps, lapses, and use-in-commerce questions. Receives handoffs from prosecution and clearance work.

infometa/workbuddyskills

在实体与证据审计完成后,按本次任务目标、硬约束和适用判断项生成当前批次、累计企业组合、替补、排除与目标进度。仅在用户明确或确认优先标准时生成业务优先批次。用于首次编排、约束或关键来源变化后重算、继续下一批或复核现有清单;唯一写 TargetPortfolio,不改实体或证据。

infometa/workbuddyskills

Roll up the portfolio from _log.yaml — risk distribution, upcoming deadlines, stale matters, materiality totals, stage distribution, and flagged anomalies. Use when the user asks "where do we stand", "how many open matters", or wants a portfolio rollup or status across all active matters.

infometa/workbuddyskills

description: Track and analyze portfolio company performance against plan. Ingests monthly/quarterly financial packages (Excel, PDF), extracts KPIs, flags variances to budget, and produces summary dashboards. Use when reviewing portfolio company financials, preparing board materials, or monitoring covenant compliance. Triggers on "review portfolio company", "monthly financials", "how is [company] performing", "covenant check", or "portfolio update".

infometa/workbuddyskills

Analyze portfolio allocation drift and generate rebalancing trade recommendations across accounts. Considers tax implications, transaction costs, and wash sale rules. Triggers on "rebalance", "portfolio drift", "allocation check", "rebalancing trades", or "my portfolio is out of balance".

infometa/workbuddyskills

Review fixed income portfolios by pricing multiple bonds, retrieving reference data, analyzing cashflows, and running scenario analysis. Use when reviewing bond portfolios, computing portfolio duration and DV01, analyzing cashflow waterfalls, stress testing rate scenarios, or assessing portfolio composition.

infometa/workbuddyskills

Generate a complete, deployable landing page from a brief. Produces a single self-contained HTML file with Tailwind CSS, responsive design, dark mode, semantic HTML, SEO and OG meta tags. Use for marketing pages, product launches, coming soon pages, one-page sites, and static pages ready for deployment.

infometa/workbuddyskills

为产品宣传片生成高度贴合画面节奏的 BGM 方案与音乐生成 Prompt。读取 brief、storyboard、EDL、DESIGN 或成片,输出音乐风格、BPM、情绪曲线、卡点表、Mureka/Skywork Music Maker 英文 prompt、负面 prompt 和剪辑建议。当用户要“配乐”“BGM”“背景音乐”“音乐 prompt”“卡点”“按转场做音乐”时触发。

Related Skills