Drawdown

From bytesagain/ai-skills · View interactive version

Drawdown is an AI agent skill from the GitHub repository bytesagain/ai-skills. Drawdown analysis reference — maximum drawdown, peak-to-trough, recovery time, risk metrics. Use when evaluating portfolio risk, stress-testing strategies, or measuring downside exposure.

How to use this skill

Skill file

Drawdown — Drawdown Analysis & Risk Measurement Reference

Quick-reference skill for understanding, calculating, and applying drawdown metrics in portfolio management and risk analysis.

When to Use

Commands

`intro`

scripts/script.sh intro

Overview of drawdown — definition, significance, and types.

`calculate`

scripts/script.sh calculate

How to calculate drawdown — formulas, step-by-step, and time series methods.

`metrics`

scripts/script.sh metrics

Key drawdown metrics — MDD, Calmar ratio, Ulcer Index, pain index.

`historical`

scripts/script.sh historical

Major historical drawdowns — market crashes, recovery timelines.

`management`

scripts/script.sh management

Drawdown management — position sizing, stop-losses, risk budgeting.

`recovery`

scripts/script.sh recovery

Recovery analysis — math of recovery, time to recover, asymmetry of losses.

`comparison`

scripts/script.sh comparison

Drawdown vs other risk measures — volatility, VaR, CVaR, Sortino.

`examples`

scripts/script.sh examples

Worked examples with calculations and strategy evaluation.

`help`

scripts/script.sh help

`version`

scripts/script.sh version

Configuration

| Variable | Description |

|----------|-------------|

| DRAWDOWN_DIR | Data directory (default: ~/.drawdown/) |


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.