/crypto-trading-desk:monitorfrom crypto-trading-desk
Monitors open trades and automatically closes them when SL or TP is hit. Evaluates expired predictions and generates summaries. Designed for cron-based autonomous operation.
Ships in crypto-trading-desk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Closes the autonomous loop: check trades, close hits, evaluate predictions, generate summaries.
All agents use subagent_type: general-purpose with explicit model to ensure MCP tool access. Include "Do NOT use the Edit tool" in every prompt.
Delegate using Task with subagent_type: general-purpose, model: haiku:
"You are the market-monitor agent. Get current prices for ALL symbols that have open trades. Call get_portfolio_state() from crypto-learning-db first to see which symbols have open positions. Then use get_exchange_prices(symbol=...) from crypto-exchange MCP to get live prices for each symbol. Return a JSON object like: {"BTC/USDT": 98500, "ETH/USDT": 3200} Do NOT use the Edit tool."
Using the prices from Step 1 and the open trades from get_portfolio_state():
For each open trade, check:
stop_loss? Did price rise to or above take_profit?stop_loss? Did price drop to or below take_profit?If SL or TP was hit, delegate using Task with subagent_type: general-purpose, model: opus:
"You are the portfolio-manager agent. Close trade {trade_id}. Current price is ${price}. The {SL/TP} at ${level} was hit. Call close_trade(trade_id='{trade_id}', exit_price={price}, close_reason='{SL/TP} hit at ${level}') from crypto-learning-db. Do NOT use the Edit tool."
For open trades that were NOT closed (still active), check if the trade is profitable:
If profitable AND the current stop_loss hasn't been optimally trailed, delegate using Task with subagent_type: general-purpose, model: sonnet:
"You are the risk-specialist agent. Read agents/risk-specialist.md for context. Trade {trade_id} ({symbol}, {side}) is profitable. Entry: ${entry}, Current: ${price}, SL: ${stop_loss}, TP: ${take_profit}. Analyze whether to trail the stop-loss. Use calculate_volatility(symbol=...) and get_support_resistance(symbol=...) from crypto-technical MCP. If you recommend adjusting, call update_trade(trade_id='{trade_id}', stop_loss={new_sl}, notes='your reasoning') from crypto-learning-db. Rules: only trail in profitable direction, never widen the stop, leave room for normal volatility. Do NOT use the Edit tool."
For each trade closed in Step 2, delegate using Task with subagent_type: general-purpose, model: opus:
"You are the learning-agent. Read agents/learning-agent.md for your analysis framework. Trade {trade_id} was just closed ({result}, PnL: {pnl}). Do a full post-mortem:
Delegate using Task with subagent_type: general-purpose, model: opus:
"You are the learning-agent. Call find_expired_predictions(current_prices='{prices_json}') from crypto-learning-db using the current prices. For each expired prediction:
Check if today is the last day of the month (or within 2 days of month end).
If yes, delegate using Task with subagent_type: general-purpose, model: opus:
"You are the learning-agent. Generate a monthly summary. Call generate_summary(summary_type='monthly') from crypto-learning-db. Also check if it's end of quarter — if so, call generate_summary(summary_type='quarterly') too. Do NOT use the Edit tool."
Present a summary of what happened:
## Monitor Report
**Open Trades:** X active
**Trades Closed This Run:** X (list with PnL)
**Predictions Evaluated:** X expired validated
**Summary Generated:** Yes/No
### Next Actions
- [Any trades approaching SL/TP levels]
- [Any concerning patterns noticed]
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/analyzeRun a comprehensive multi-agent crypto analysis with phased execution. Usage: /analyze BTC or /analyze ETH SOL/close-tradeClose an open trade and run post-mortem analysis. Usage: /close-trade trade_001 or /close-trade trade_001 at 98500/createExtend the system by creating new MCP servers, agents, or skills. Usage: /create a DeFi protocol tracker or /create an agent for macro analysis/portfolioView current portfolio status, open trades, and performance stats. Usage: /portfolionpx claudepluginhub hugoguerrap/crypto-claude-desk --plugin crypto-trading-deskOther plugins' skills for the same job