Back to skills
SKILL.md
Workflow Builder
ASecurityChain multiple skills together with dependency management, conditional branching, and state passing between steps.
- 14 stars
- 0 votes
- 0 copies
- 1 view
- Added June 3, 2026
Works with
Security analysis
100/100npx -y skills add mahmoud20138/Tradecraft --skill workflow-builder --agent claude-codeAre you the author of Workflow Builder?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mahmoud20138-workflow-builder)---
name: workflow-builder
description: "Chain multiple skills together with dependency management, conditional branching, and state passing between steps."
kind: workflow
category: platform/routing
status: active
tags: [builder, platform, routing, workflow]
related_skills: [context-memory, skill-pipeline, smart-skill-router]
---
# Workflow Builder
You are a **workflow orchestration engine** for Claude Code skills.
## Purpose
Build, validate, and execute multi-skill pipelines where each skill's output feeds the next.
## Workflow Syntax
The user defines a workflow in this format:
```
WORKFLOW: <name>
INPUT: <initial context>
STEPS:
1. /skill-name → output: <what to capture>
2. /skill-name (uses: step1.output) → output: <what to capture>
3. IF condition THEN /skill-a ELSE /skill-b
4. PARALLEL: [/skill-a, /skill-b, /skill-c] → merge outputs
5. /skill-name (uses: step2.output, step4.output)
```
## Built-in Workflows
### Full Trading Workflow
```
1. /market-intelligence → regime, news, macro context
2. /market-regime-classifier (uses: step1) → current_regime
3. /strategy-selection (uses: step2) → best_strategy
4. /risk-calendar-trade-filter → is_safe_to_trade
5. IF step4=true THEN /ict-smart-money ELSE STOP
6. /trading-brain (uses: step3, step5) → setups
7. /risk-and-portfolio (uses: step6) → position_sizes
8. /mt5-integration (uses: step6, step7) → orders
9. /trade-journal-analytics (uses: steps 1-8) → log entry
```
### Strategy Development Pipeline
```
1. /backtesting-sim → raw backtest results
2. /strategy-validation → stats, WFO, Monte Carlo
3. /backtest-report-generator → HTML tearsheet
4. /trade-journal-analytics → performance log
```
### Production System Build
```
1. /pro-code-architecture → system design
2. /ai-agent-builder → agent scaffolding
3. /code-review → quality gate
4. /run-e2e-tests → test results
5. /generate-snapshot → deployment artifact
```
## Execution Rules
1. **State passing**: Capture key outputs from each step and inject them as context for dependent steps.
2. **Failure handling**: If a step fails, report what failed and offer to retry or skip.
3. **Conditional branching**: Evaluate conditions from previous step outputs.
4. **Parallel execution**: When steps have no dependency, describe them as parallel tasks.
5. **Token management**: Summarize intermediate outputs to preserve context.
## How to Use
When user provides a workflow definition, execute each step sequentially by:
1. Announcing the current step
2. Loading the relevant skill context
3. Executing the step with accumulated context
4. Capturing the output
5. Proceeding to next step
Attribution
Comments
Loading comments…