agentsclimarketplace

Master trading workflow

Skill mahmoud20138/Tradecraft/plugins/tradecraft/skills/master-trading-workflow

102 Claude Code skills across 7 categories -- trading strategies, Azure, VSCode extensions, AI prompts, and custom automation skills

Install
npx -y skills add mahmoud20138/Tradecraft --skill master-trading-workflow

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Master 18-phase trading workflow — the definitive skill sequence for any trade. Covers infrastructure through automation. Use for "trading workflow", "full process", "trade checklist", "how to trade", "complete trading plan", "master plan", "what skills to run", "trade from scratch".

SKILL.md

23.1 KB, as published. Nobody here has run it

Master Trading Workflow — 18-Phase Skill Sequence

You are a master trading process orchestrator. This is the definitive, ordered skill sequence for any trade — from pre-market preparation through post-trade optimization. Every phase gates the next. Never skip upstream phases.

Invocation

/master-trading-workflow EURUSD H4
/master-trading-workflow XAUUSD H1 phase:scan
/master-trading-workflow all-pairs morning-brief
/master-trading-workflow BTCUSD daily review-only

Options:

  • phase:<name> — Start from a specific phase (assumes prior phases done)
  • morning-brief — Phases 1-7 only (pre-market routine)
  • review-only — Phases 15-17 only (post-trade review)
  • full-auto — All 18 phases, autonomous execution
  • conservative — 0.5% risk, R:R min 3:1, A-grade setups only
  • aggressive — 2% risk, R:R min 1.5:1, A+B setups
  • analysis-only — Phases 1-10 (no execution)

THE MASTER SEQUENCE

PREPARE → CONTEXT → SENTIMENT → REGIME → FILTER → PLAN → SCAN → ANALYZE → STRATEGY → CONFIRM → RISK → REFINE → EXECUTE → MANAGE → REVIEW → BACKTEST → OPTIMIZE → AUTOMATE
  P1        P2         P3         P4       P5      P6     P7       P8        P9         P10      P11     P12      P13       P14      P15       P16        P17        P18

Phase 1 — Infrastructure & Data Setup

Gate: Platform connected, data flowing, alerts configured.

StepSkillActionOutput
1.1market-data-ingestionConnect broker feeds, verify data quality{feeds_active, latency_ms, pairs_available}
1.2tick-data-storageConfirm historical data loaded for backtesting{pairs_loaded, date_range, gaps[]}
1.3mt5-integrationConnect MT5, verify account, check spreads{connected, balance, leverage, spread_map}
1.4mt5-chart-browserOpen charts, apply indicator templates{charts_open[], indicators_applied}
1.5context-memoryLoad prior session state & learnings{last_session, open_positions, notes}
1.6realtime-alert-pipelineArm condition monitors & price alerts{alerts_active, conditions[]}
1.7discord-webhookVerify Discord alert channel ready{webhook_active}
1.8telegram-botVerify Telegram notifications ready{bot_active}
1.9notion-syncPull watchlist & notes from Notion{watchlist[], notes}

Skip condition: If platform already connected and session is continuing, skip to Phase 2.


Phase 2 — Macro & Big-Picture Context

Gate: You have a macro bias before looking at any chart.

StepSkillActionOutput
2.1news-intelligenceMorning brief — what happened overnight?{headlines[], impact_summary}
2.2economic-calendarMap today's high-impact events with times{events[], blackout_windows[]}
2.3economic-indicator-trackerCheck leading indicators — recession risk?{indicators{}, cycle_phase, risk_level}
2.4macro-economic-dashboardDXY, VIX, yields, equity futures snapshot{dxy, vix, us10y, spx_futures, bias}
2.5cross-asset-relationshipsIntermarket correlations — any divergences?{correlations{}, divergences[], flags[]}
2.6fundamental-analysisCompany/sector fundamentals (equities only){valuation, earnings, sector_strength}
2.7institutional-timelineCOT data, institutional positioning{cot_data, smart_money_flow, bias}
2.8market-intelligenceFull intelligence synthesis{macro_score, direction_bias, confidence}

Decision point: If macro is extremely uncertain or conflicting — reduce size in Phase 11.


Phase 3 — Sentiment & Alternative Data

Gate: Gauge crowd positioning to avoid crowded trades.

StepSkillActionOutput
3.1social-sentiment-scraperTwitter/X, Reddit, TradingView sentiment{sentiment_score, crowd_position, extremes[]}
3.2stocksight-sentimentQuantified NLP sentiment scoring{nlp_score, trend, sources[]}
3.3alternative-data-integratorGoogle Trends, web traffic, shipping data{alt_signals[], strength, novelty}
3.4volatility-surface-analyzerIV rank, vol skew, term structure{iv_rank, skew, term_structure, signal}

Contrarian flag: If crowd sentiment >80% one direction → flag potential reversal.


Phase 4 — Market Regime Classification

Gate: Know the regime BEFORE choosing a strategy.

StepSkillActionOutput
4.1market-regime-classifierML classification: trending/ranging/volatile/quiet{regime, strength, confidence, duration}
4.2market-breadth-analyzerBroad market health — how many pairs trending?{trending_pct, breadth_score, divergences[]}
4.3correlation-crisisAre correlations breaking down?{crisis_level, affected_pairs[], risk}
4.4correlation-regime-switcherShould we switch strategy sets?{switch_signal, from_regime, to_regime}
4.5hurst-exponent-dynamics-crisis-predictionChaos analysis — crisis early warning{hurst, fractal_dim, crisis_prob}
4.6session-profilerCurrent session stats & historical edge{session, avg_range, best_pairs[], volatility}

Critical rule: Trending regime → trend-following strategies only. Ranging → mean reversion only. Volatile → reduce size or sit out.


Phase 5 — Risk Calendar & Trade Filter

Gate: Decide IF you should trade at all today. This phase has VETO power.

StepSkillActionOutput
5.1risk-calendar-trade-filterEvent blackout zones, session quality{safe_to_trade, blackout_until, reason}
5.2trade-psychology-coachEmotional check-in — am I tilted?{emotional_state, tilt_score, discipline_rating}
5.3borsellino-10-commandmentsDiscipline framework gut-check{commandments_check, violations[], score}
5.4drawdown-playbookAm I in drawdown? Size reduction needed?{drawdown_pct, playbook_action, size_modifier}

HARD STOP conditions (do NOT proceed):

  • safe_to_trade = false (high-impact news within 30min)
  • tilt_score > 7 (emotional compromise)
  • drawdown_pct > 6% (playbook says sit out)
  • discipline_rating < 5 (broken rules recently)

If any HARD STOP triggers → LOG reason, STOP, revisit next session.


Phase 6 — Pre-Market Planning & Watchlist

Gate: Have a written plan before any analysis.

StepSkillActionOutput
6.1trading-plan-builderBuild today's plan: session, watchlist, rules{plan, watchlist[], max_trades, risk_budget}
6.2trading-fundamentalsReview core trading knowledge relevant to today{concepts[], reminders[]}
6.3smc-beginner-pro-guideSMC methodology refresher (if using ICT/SMC){checklist, key_concepts}

Deliverable: A written daily plan with:

  • Max 6 pairs on watchlist (ranked A/B/C)
  • Max trades today: 3
  • Max daily risk: 2-4%
  • Max per-trade risk: 1-2%
  • Session focus (London/NY/Tokyo)
  • Rules for today (written, not mental)

Phase 7 — Scanning & Screening

Gate: Find the 3-6 best opportunities from the entire universe.

StepSkillActionOutput
7.1pair-scanner-screenerScan all pairs for setups matching regime{matches[], scores{}, ranked_list[]}
7.2chart-visionAI chart image analysis on top candidates{patterns_detected[], quality_scores{}}
7.3smart-money-trap-detectorFlag fake breakouts & stop hunts on candidates{traps[], warnings[], safe_pairs[]}
7.4liquidity-analysisMap liquidity pools & order flow on candidates{liquidity_map{}, targets[], sweeps[]}

Filter rule: Only advance pairs with scanner score > 70 AND no active traps.


Phase 8 — Technical Analysis (Deep Dive)

Gate: Full analysis on shortlisted pairs only (max 3-4).

StepSkillActionOutput
8.1technical-analysisFull indicator suite — RSI, MACD, MAs, S/R{indicators{}, levels{}, signals[]}
8.2price-actionPure PA reading — candle patterns, structure{pa_signal, pattern, strength}
8.3volume-analysisVolume confirmation — divergence, climax{vol_signal, divergence, climax_detected}
8.4market-structure-bos-chochBOS, CHoCH, premium/discount zones{structure, bos_levels[], choch_levels[], zone}
8.5ict-smart-moneyOrder blocks, FVGs, breakers, mitigation{ob_levels[], fvg_levels[], bias, entry_zones[]}
8.6ict-trading-toolICT tool-specific implementation{tool_output}
8.7smc-python-libraryProgrammatic SMC level detection{levels{}, zones{}, targets[]}
8.8elliott-wave-engineWave count & forecast{wave_count, current_wave, target, invalidation}
8.9harmonic-pattern-engineGartley/Butterfly/Bat/Crab detection{pattern, completion_zone, prz, sl, tp}
8.10fibonacci-harmonic-waveFib levels & harmonic confluence{fib_levels{}, confluence_zones[]}
8.11poc-bounce-strategyVolume Profile POC analysis{poc_level, value_area, bounce_prob}
8.12mtf-confluence-scorerMulti-timeframe alignment score{mtf_score, aligned_tfs[], direction, grade}

Minimum confluence requirement: MTF score >= 70% AND at least 3 confirming factors.


Phase 9 — Strategy Selection & Signal Generation

Gate: Match the RIGHT strategy to the regime + setup.

StepSkillActionOutput
9.1strategy-selectionRegime-aware strategy matching{strategy, confidence, edge_historical}
9.2trading-brainCore orchestrator — routes to optimal strategy{recommendation, reasoning, alternatives[]}
9.3smart-skill-routerAuto-select optimal skill chain{chain[], priority, estimated_edge}

Then execute the matched strategy:

RegimePrimary SkillsFallback
Trendingbreakout-strategy-engine, dan-zanger-breakout-strategyict-smart-money
Rangingmean-reversion-engine, poc-bounce-strategygrid-trading-engine
Volatilenews-straddle-strategy, capitulation-mean-reversionrisk-calendar-trade-filter → WAIT
Quiet/Asianasian-session-scalper, session-scalpinggap-trading-strategy
Breakoutbreakout-strategy-engine, dan-zanger-breakout-strategyzone-refinement-sniper-entry
Reversalcapitulation-mean-reversion, jdub-price-action-strategyharmonic-pattern-engine
Multi-pairmulti-pair-basket-trader, cross-asset-arbitrage-enginesynthetic-pair-constructor
Grid/DCAgrid-trading-enginemean-reversion-engine
Goldgold-orb-eabreakout-strategy-engine

Phase 10 — Signal Aggregation & Confirmation

Gate: Never trade on a single signal. Require consensus.

StepSkillActionOutput
10.1ai-signal-aggregatorWeighted voting across ALL active strategies{aggregate_signal, confidence, agreement_pct}
10.2ai-trading-crew50-agent debate → consensus (for high-conviction){consensus, bull_count, bear_count, veto}
10.3trading-agents-llmMulti-agent LLM cross-validation{llm_signal, reasoning[], dissent[]}
10.4skill-pipelineAuto-chain verification pipeline{pipeline_result, stages_passed}
10.5workflow-builderCustom multi-skill confirmation chain{workflow_result, all_passed}

Minimum consensus: agreement_pct >= 65% AND no veto from risk team.


Phase 11 — Risk Sizing & Pre-Trade Checks

Gate: Know your exact risk BEFORE entering.

StepSkillActionOutput
11.1risk-and-portfolioPosition sizing (% risk model){lots, risk_dollars, risk_pct, portfolio_heat}
11.2risk-of-ruinProbability of ruin at this size{ruin_prob, kelly_fraction, optimal_size}
11.3real-time-risk-monitorCurrent portfolio exposure check{open_risk, correlation_risk, max_drawdown}
11.4portfolio-optimizationOptimal allocation vs existing positions{allocation, rebalance_needed, conflicts[]}
11.5spread-slippage-cost-analyzerTrue cost of this trade{spread_cost, expected_slippage, total_cost}
11.6market-impact-modelWill my order move the market?{impact_bps, optimal_algo, split_recommended}

Hard rules:

  • Never risk > 2% per trade (1% default)
  • Portfolio heat never > 6% total
  • R:R minimum 2:1 (1.5:1 aggressive only)
  • Ruin probability must be < 1%

Size modifiers from earlier phases:

  • Drawdown active → multiply size by drawdown modifier (Phase 5.4)
  • Low confidence signal → reduce by 50%
  • Macro uncertainty → reduce by 25%

Phase 12 — Entry Refinement (Sniper Entry)

Gate: Refine entry to maximize R:R. Don't market-order in.

StepSkillActionOutput
12.1zone-refinement-sniper-entryDrop TF, find smaller zones inside larger zones{refined_entry, refined_sl, new_rr, improvement}
12.2strategy-validationFinal pre-entry validation checklist{valid, checklist{}, warnings[]}

Sniper entry rules:

  • Drop from H4 → H1 → M15 to find nested zone
  • Entry must be inside the refined zone
  • SL behind the refined zone (not the original)
  • This alone can improve R:R from 2:1 to 5:1+

Phase 13 — Execution

Gate: Pull the trigger. No hesitation if all phases passed.

StepSkillActionOutput
13.1execution-algo-tradingTWAP/VWAP/Iceberg for larger orders{algo, slices[], estimated_fill}
13.2mt5-integrationPlace order on MT5{ticket, entry, sl, tp, status}
13.3trading-autopilotFull autonomous execution (if full-auto mode){autopilot_result}
13.4multi-strategy-orchestrationManage multiple concurrent strategies{active_strategies[], positions[]}
13.5autohedge-swarmAuto-hedge correlated positions if needed{hedge_orders[], net_exposure}
13.6trade-copier-signal-broadcasterBroadcast signal to copier/followers{broadcast_sent, recipients}
13.7market-making-hftMarket making execution (if applicable){mm_orders[], spread_captured}

Post-execution immediate:

  • Confirm fill price vs expected
  • Verify SL/TP are set correctly
  • Log entry in journal
  • Set alerts for TP1, TP2, breakeven

Phase 14 — Position Management & Monitoring

Gate: Manage the trade — don't just set and forget.

StepSkillActionOutput
14.1realtime-alert-pipelinePrice alerts at key levels, TP1/TP2/BE{alerts_armed[]}
14.2real-time-risk-monitorLive P&L, drawdown, exposure tracking{live_pnl, max_adverse, risk_status}
14.3trade-psychology-coachMid-trade emotional check (don't move stops!){discipline_check, urges_detected[], advice}
14.4discord-webhookPush live updates to Discord{notifications_sent}
14.5telegram-botPush mobile alerts for key events{alerts_sent}
14.6loopPoll position status on interval{monitoring_active, interval}

Management rules:

  • Move SL to breakeven after TP1 hit
  • Trail stop using prior-bar-highs/lows method
  • Partial close 50% at TP1, let rest run to TP2
  • NEVER widen stop loss
  • NEVER add to a losing position
  • Re-check regime if trade duration exceeds 2x expected

Phase 15 — Post-Trade Review & Journaling

Gate: Every trade teaches something. No exceptions.

StepSkillActionOutput
15.1trade-journal-analyticsLog full trade: entry, exit, setup type, R-multiple{journal_entry, r_multiple, tags[]}
15.2notion-syncSync journal entry to Notion database{synced, notion_page_id}
15.3trade-psychology-coachPost-trade emotional debrief{debrief, emotional_errors[], discipline_score}
15.4context-memorySave learnings for next session{memories_saved[]}

Journal must include:

  • Screenshot of entry & exit
  • Setup type and strategy used
  • R-multiple result
  • What went right
  • What went wrong
  • Emotional state during trade
  • Would you take this trade again? Why/why not?
  • One lesson for next time

Phase 16 — Backtesting & Validation

Gate: Prove the strategy works over N trades before sizing up.

StepSkillActionOutput
16.1backtesting-simRun historical simulation on strategy{trades, win_rate, profit_factor, max_dd}
16.2backtest-report-generatorEquity curves, Monte Carlo, tearsheets{report_url, sharpe, sortino, calmar}
16.3statistics-timeseriesStatistical edge validation — is it real?{p_value, t_stat, edge_significant}
16.4strategy-validationWalk-forward, out-of-sample testing{oos_result, degradation_pct, robust}

Minimum requirements before live:

  • 100+ backtest trades
  • Win rate > 45% with R:R > 2:1 (or > 55% with R:R > 1:1)
  • Profit factor > 1.5
  • Max drawdown < 15%
  • Walk-forward efficiency > 50%
  • Monte Carlo 95th percentile still profitable

Phase 17 — Optimization & Evolution

Gate: Continuously improve what's working. Kill what isn't.

StepSkillActionOutput
17.1strategy-genetic-optimizerEvolve parameters via genetic algorithms{optimized_params, improvement_pct}
17.2ml-tradingTrain ML models on trade features{model, accuracy, feature_importance[]}
17.3quant-ml-tradingQuantitative ML strategy development{quant_model, alpha_decay, signals[]}
17.4skill-analyticsWhich skills & strategies perform best?{top_skills[], underperformers[], recommendations[]}

Optimization rules:

  • Never optimize on less than 200 trades
  • Always hold out 30% for validation
  • If optimized result is >2x better than base → suspect overfitting
  • Re-validate quarterly

Phase 18 — Automation & Bot Deployment

Gate: Automate proven, validated strategies only.

StepSkillActionOutput
18.1freqtrade-botDeploy crypto trading bot{bot_id, strategy, pairs[], status}
18.2tensortrade-rlTrain RL agent on strategy{agent, reward_curve, episodes}
18.3trading-gym-rl-envRL environment for training{env_config, observation_space, action_space}
18.4openalice-trading-agentDeploy autonomous AI agent{agent_id, status, watchlist[]}
18.5polymarket-prediction-agentsPrediction market bot{agent_id, markets[], edge}
18.6ritmex-crypto-agentCrypto agent deployment{agent_id, strategy, status}

Automation rules:

  • Only automate strategies with 6+ months live track record
  • Start with 25% of manual size
  • Kill switch: auto-stop if drawdown > 10%
  • Weekly human review mandatory
  • Never automate a strategy you don't fully understand

Asset-Specific Reference Layer

Called as-needed based on instrument type.

AssetSkillWhen to Invoke
Stocksequities-tradingEquity-specific edge, market hours, earnings
Forexforex-tradingFX sessions, pip calculations, carry
Futuresfutures-tradingContract specs, rollover, margin
Optionsoptions-tradingGreeks, spreads, expiry management
Cryptocrypto-defi-tradingDeFi, funding rates, on-chain data

Quick Reference: Phase Gates

Phase 1  → Platform connected?               YES → Continue | NO → Fix setup
Phase 2  → Macro bias formed?                YES → Continue | NO → Wait for clarity
Phase 3  → Sentiment extreme?                YES → Flag contrarian | NO → Continue
Phase 4  → Regime identified?                YES → Continue | NO → Default to ranging
Phase 5  → Safe to trade?                    YES → Continue | NO → STOP (hard veto)
Phase 6  → Plan written?                     YES → Continue | NO → Write it now
Phase 7  → Setups found?                     YES → Continue | NO → No trade today
Phase 8  → Confluence >= 70%?                YES → Continue | NO → Skip this pair
Phase 9  → Strategy matched to regime?       YES → Continue | NO → Re-check Phase 4
Phase 10 → Consensus >= 65%?                 YES → Continue | NO → Downgrade or skip
Phase 11 → Risk sized correctly?             YES → Continue | NO → Recalculate
Phase 12 → Sniper entry refined?             YES → Continue | NO → Use standard entry
Phase 13 → Order placed & confirmed?         YES → Continue | NO → Troubleshoot
Phase 14 → Monitoring active?                YES → Continue | NO → Set alerts NOW
Phase 15 → Trade journaled?                  YES → Continue | NO → Journal before next trade
Phase 16 → Strategy backtested?              YES → Continue | NO → Paper trade first
Phase 17 → Parameters current?               YES → Continue | NO → Schedule optimization
Phase 18 → Bot supervised?                   YES → Continue | NO → Add kill switch

Daily Routine Template

Pre-Market (35 min)

06:30  Phase 2 — Macro scan (5 min)
06:35  Phase 3 — Sentiment check (5 min)
06:40  Phase 4 — Regime classification (3 min)
06:43  Phase 5 — Risk filter & psychology (5 min)
06:48  Phase 6 — Write today's plan (7 min)
06:55  Phase 7 — Scan & shortlist (10 min)
07:05  READY — Wait for session open

Active Trading

Phase 8-12 — On each setup (5-15 min per pair)
Phase 13    — Execute when all gates pass
Phase 14    — Monitor until exit

Post-Market (15 min)

Phase 15 — Journal all trades (10 min)
Phase 15 — Lessons & memory save (5 min)

Weekly

Phase 16 — Backtest new ideas
Phase 17 — Review & optimize parameters
Phase 18 — Review bot performance

Emergency Protocols

SituationAction
Flash crashClose all positions, invoke drawdown-playbook
Black swan newsrisk-calendar-trade-filter → assess, likely close all
Platform disconnectUse mobile backup, don't panic-close
Tilt detectedtrade-psychology-coach → STOP trading, walk away
Max daily loss hitSTOP. No more trades today. Journal and review.
Correlation breakdowncorrelation-crisis → reduce exposure, hedge

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.