/crypto-trading-desk:close-tradefrom crypto-trading-desk
Closes an open trade and runs post-mortem analysis including prediction validation and pattern library updates. Use /close-trade with a trade ID and optional exit price.
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.
Close trade $ARGUMENTS and run a post-mortem analysis.
Delegate using the Task tool with subagent_type: general-purpose and model: opus:
"You are the portfolio-manager agent. Read agents/portfolio-manager.md for your decision framework. Close trade $ARGUMENTS. If a price is specified after 'at', use that as exit price. Otherwise, get the current market price using get_exchange_prices() from crypto-exchange MCP. Call close_trade(trade_id='...', exit_price=..., close_reason='...') from crypto-learning-db MCP. PnL, portfolio balance, and stats are updated automatically. Do NOT use the Edit tool."
After the trade is closed, delegate using the Task tool with subagent_type: general-purpose and model: opus:
"You are the learning-agent. Read agents/learning-agent.md for your analysis framework. Run a post-mortem analysis on the recently closed trade $ARGUMENTS. Call query_trades(status='closed', limit=1) from crypto-learning-db to get the trade data. Read any related reports from data/reports/. Analyze what worked, what didn't, and provide specific recommendations for improvement. Do NOT use the Edit tool."
After the post-mortem, delegate using the Task tool with subagent_type: general-purpose and model: opus:
"You are the learning-agent. Validate all predictions for trade $ARGUMENTS. Call query_predictions(trade_id='...') from crypto-learning-db to find all predictions tied to this trade. Compare each prediction against the actual outcome. Call validate_prediction() for each one with a detailed NL evaluation of how close the prediction was and what we can learn. Then call upsert_pattern() to update the pattern library with the setup from this trade. Do NOT use the Edit tool."
Show:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hugoguerrap/crypto-claude-desk --plugin crypto-trading-desk8 skills in this plugin
/analyzeRun a comprehensive multi-agent crypto analysis with phased execution. Usage: /analyze BTC or /analyze ETH SOL/createExtend the system by creating new MCP servers, agents, or skills. Usage: /create a DeFi protocol tracker or /create an agent for macro analysis/monitorAutonomous monitoring loop. Checks open trades against SL/TP levels, closes trades that hit targets, evaluates expired predictions, and generates periodic summaries. Run via cron for full autonomy. Usage: /monitorOther plugins' skills for the same job