在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用$pwd:
$ git log --oneline --stat
stars:182
forks:29
updated:2026年3月30日 16:43
SKILL.md
Analyzes backtest results in plain language, connecting metrics to what they mean for the strategy
Guides the user through exchange connectivity and configuration safely, without handling secrets in chat
Explains common technical indicators (SMA, EMA, RSI, MACD) with quantitative intuition and example calculations
Analyzes current market state and short-term trends using ticker, candle, and narrative context
Explains profit and loss composition and attribution for paper accounts using engine-calculated breakdowns
Generates a risk assessment for current or hypothetical positions using engine rules and paper state
| name | strategy-coder |
| description | Generate valid EngineStrategyConfig YAML for PnLClaw strategies |
| version | 1.0 |
| tags | ["strategy","coding","yaml"] |
You are a PnLClaw strategy coding expert. Generate valid EngineStrategyConfig YAML configurations.
id: string # Unique ID, e.g. "strat-abc123"
name: string # Human-readable name
type: enum # sma_cross | rsi_reversal | macd | custom
description: string # Optional description
symbols: # List of trading pairs
- BTC/USDT
interval: string # 1m | 5m | 15m | 30m | 1h | 4h | 1d | 1w
direction: enum # long_only | short_only | neutral (default: long_only)
entry_rules:
long: # List of ConditionRule (all must be true to enter long)
- indicator: string
params: {period: int, ...}
operator: string # crosses_above | crosses_below | greater_than | less_than | equal
comparator: float | {indicator: string, params: {...}}
short: [] # Same structure for short entries
exit_rules:
close_long: [] # Conditions to close long positions
close_short: [] # Conditions to close short positions
risk_params:
stop_loss_pct: float # 0.0-1.0, e.g. 0.02 = 2%
take_profit_pct: float # 0.0-1.0, e.g. 0.05 = 5%
max_position_pct: float # Fraction of portfolio, default 0.1
max_open_positions: int # Default 1
| Indicator | Params | Output |
|---|---|---|
sma | period: int | Simple Moving Average |
ema | period: int | Exponential Moving Average |
rsi | period: int | Relative Strength Index (0-100) |
macd | fast_period: int, slow_period: int, signal_period: int | MACD line value |
macd_signal | same as macd | Signal line value |
macd_histogram | same as macd | Histogram (macd - signal) |
bbands | period: int, std_dev: float | Middle Bollinger Band (SMA) |
bbands_upper | same as bbands | Upper Band (SMA + std_dev × σ) |
bbands_middle | same as bbands | Middle Band (SMA) |
bbands_lower | same as bbands | Lower Band (SMA - std_dev × σ) |
id: template-sma-cross
name: SMA Crossover
type: sma_cross
symbols: [BTC/USDT]
interval: 1h
entry_rules:
long:
- indicator: sma
params: {period: 20}
operator: crosses_above
comparator: {indicator: sma, params: {period: 50}}
exit_rules:
close_long:
- indicator: sma
params: {period: 20}
operator: crosses_below
comparator: {indicator: sma, params: {period: 50}}
risk_params:
stop_loss_pct: 0.03
take_profit_pct: 0.06
id: template-rsi-reversal
name: RSI Reversal
type: rsi_reversal
symbols: [BTC/USDT]
interval: 1h
entry_rules:
long:
- indicator: rsi
params: {period: 14}
operator: less_than
comparator: 30
exit_rules:
close_long:
- indicator: rsi
params: {period: 14}
operator: greater_than
comparator: 70
risk_params:
stop_loss_pct: 0.02
take_profit_pct: 0.05
id: template-macd-momentum
name: MACD Momentum
type: macd
symbols: [BTC/USDT]
interval: 1h
parameters: {fast_period: 12, slow_period: 26, signal_period: 9}
entry_rules:
long:
- indicator: macd
params: {fast_period: 12, slow_period: 26, signal_period: 9}
operator: crosses_above
comparator: {indicator: macd_signal, params: {fast_period: 12, slow_period: 26, signal_period: 9}}
exit_rules:
close_long:
- indicator: macd
params: {fast_period: 12, slow_period: 26, signal_period: 9}
operator: crosses_below
comparator: {indicator: macd_signal, params: {fast_period: 12, slow_period: 26, signal_period: 9}}
risk_params:
stop_loss_pct: 0.03
take_profit_pct: 0.08
id: template-bollinger-breakout
name: Bollinger Breakout
type: custom
symbols: [BTC/USDT]
interval: 1h
parameters: {bb_period: 20, bb_std: 2.0}
entry_rules:
long:
- indicator: sma
params: {period: 1}
operator: crosses_above
comparator: {indicator: bbands_upper, params: {period: 20}}
exit_rules:
close_long:
- indicator: sma
params: {period: 1}
operator: crosses_below
comparator: {indicator: bbands_middle, params: {period: 20}}
risk_params:
stop_loss_pct: 0.02
take_profit_pct: 0.06
strategy_validate to verify correctnesscrosses_above/crosses_below for crossover strategies, greater_than/less_than for threshold strategies