claude-dev-kit 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/.claude/agents/angelic-workshop-energy-clearing.md +113 -0
  2. package/.claude/agents/angelic-workshop-intake.md +84 -0
  3. package/.claude/agents/angelic-workshop-integration.md +140 -0
  4. package/.claude/agents/angelic-workshop-invocation.md +92 -0
  5. package/.claude/agents/angelic-workshop-lead.md +225 -0
  6. package/.claude/agents/angelic-workshop-transmission.md +108 -0
  7. package/.claude/agents/deep-think-partner.md +41 -0
  8. package/.claude/agents/dev-backend.md +74 -0
  9. package/.claude/agents/dev-e2e.md +101 -0
  10. package/.claude/agents/dev-frontend.md +82 -0
  11. package/.claude/agents/dev-lead.md +144 -0
  12. package/.claude/agents/dev-reviewer.md +122 -0
  13. package/.claude/agents/dev-test.md +88 -0
  14. package/.claude/agents/documentation-manager.md +73 -0
  15. package/.claude/agents/haiku-executor.md +8 -0
  16. package/.claude/agents/pm-groomer.md +98 -0
  17. package/.claude/agents/pm-prp-writer.md +144 -0
  18. package/.claude/agents/pm-sizer.md +84 -0
  19. package/.claude/agents/project-manager.md +91 -0
  20. package/.claude/agents/system-architect.md +98 -0
  21. package/.claude/agents/validation-gates.md +121 -0
  22. package/.claude/agents/workflow-builder.md +416 -0
  23. package/.claude/commands/ai/detect.md +117 -0
  24. package/.claude/commands/ai/route.md +128 -0
  25. package/.claude/commands/ai/switch.md +121 -0
  26. package/.claude/commands/bs/brainstorm_full.md +149 -0
  27. package/.claude/commands/bs/claude.md +37 -0
  28. package/.claude/commands/bs/codex.md +37 -0
  29. package/.claude/commands/bs/gemini.md +37 -0
  30. package/.claude/commands/bs/glm.md +37 -0
  31. package/.claude/commands/bs/grok.md +37 -0
  32. package/.claude/commands/bs/kimi.md +37 -0
  33. package/.claude/commands/bs/minimax.md +37 -0
  34. package/.claude/commands/bs/ollama.md +71 -0
  35. package/.claude/commands/code/build-and-fix.md +80 -0
  36. package/.claude/commands/code/simplify.md +77 -0
  37. package/.claude/commands/dev/backend.md +47 -0
  38. package/.claude/commands/dev/e2e.md +49 -0
  39. package/.claude/commands/dev/frontend.md +45 -0
  40. package/.claude/commands/dev/review.md +48 -0
  41. package/.claude/commands/dev/test.md +54 -0
  42. package/.claude/commands/dev-epic.md +121 -0
  43. package/.claude/commands/dev-issue.md +79 -0
  44. package/.claude/commands/dev.md +134 -0
  45. package/.claude/commands/execute-prp.md +113 -0
  46. package/.claude/commands/fix-github-issue.md +14 -0
  47. package/.claude/commands/generate-prp.md +73 -0
  48. package/.claude/commands/git/status.md +14 -0
  49. package/.claude/commands/haiku.md +13 -0
  50. package/.claude/commands/improve.md +178 -0
  51. package/.claude/commands/init.md +311 -0
  52. package/.claude/commands/pm/groom.md +58 -0
  53. package/.claude/commands/pm/plan-epic.md +74 -0
  54. package/.claude/commands/pm/size.md +46 -0
  55. package/.claude/commands/pm.md +47 -0
  56. package/.claude/commands/primer.md +16 -0
  57. package/.claude/commands/self-improve.md +243 -0
  58. package/.claude/commands/think.md +68 -0
  59. package/.claude/commands/workflow/angelic-workshop.md +89 -0
  60. package/.claude/commands/workflow/build.md +91 -0
  61. package/.claude/hooks/pre-tool-use/block-dangerous-commands.js +196 -0
  62. package/.claude/hooks/skill-activation-prompt/package-lock.json +560 -0
  63. package/.claude/hooks/skill-activation-prompt/package.json +16 -0
  64. package/.claude/hooks/skill-activation-prompt/skill-activation-prompt.ts +135 -0
  65. package/.claude/hooks/skill-activation-prompt/skill-rules.json +50 -0
  66. package/.claude/hooks/stop/context_monitor.py +155 -0
  67. package/.claude/hooks/stop/learning_logger.py +218 -0
  68. package/.claude/skills/ai-router/SKILL.md +119 -0
  69. package/.claude/skills/build-and-fix/SKILL.md +271 -0
  70. package/.claude/skills/build-and-fix/examples/javascript-lint-fix.md +37 -0
  71. package/.claude/skills/build-and-fix/language-configs/javascript.yaml +139 -0
  72. package/.claude/skills/build-and-fix/references/config-schema.md +120 -0
  73. package/.claude/skills/build-and-fix/references/error-patterns.md +273 -0
  74. package/.claude/skills/code-investigator/SKILL.md +299 -0
  75. package/.claude/skills/code-investigator/references/investigation-workflows.md +542 -0
  76. package/.claude/skills/code-investigator/references/language-specific.md +761 -0
  77. package/.claude/skills/code-investigator/references/search-patterns.md +258 -0
  78. package/.claude/skills/code-investigator/references/serena-patterns.md +328 -0
  79. package/.claude/skills/stack-detector/SKILL.md +153 -0
  80. package/.claude/skills/verification-before-completion/SKILL.md +143 -0
  81. package/.claude/templates/claude-md-template.md +56 -0
  82. package/.claude/templates/stacks/express-node.md +134 -0
  83. package/.claude/templates/stacks/fastapi.md +152 -0
  84. package/.claude/templates/stacks/generic.md +101 -0
  85. package/.claude/templates/stacks/nextjs-prisma.md +235 -0
  86. package/README.md +499 -0
  87. package/bin/claude-dev-kit.js +11 -0
  88. package/package.json +31 -0
  89. package/scripts/install.sh +448 -0
@@ -0,0 +1,47 @@
1
+ ---
2
+ description: "Run the project-manager orchestrator. Plans, grooms, and sizes the backlog. Pass a specific goal or let PM assess the current state."
3
+ argument-hint: [goal description | empty]
4
+ ---
5
+
6
+ # /pm — Project Manager
7
+
8
+ Activate the `project-manager` agent to assess and act on the project backlog.
9
+
10
+ ## Steps
11
+
12
+ ### 1. Gather backlog context
13
+ ```bash
14
+ gh issue list --state open --limit 100 --json number,title,labels,milestone,body | head -200
15
+ ```
16
+
17
+ ### 2. Read project conventions
18
+ Read `CLAUDE.md` to extract stack, test commands, and any project-specific planning conventions.
19
+
20
+ ### 3. Spawn the project-manager agent
21
+
22
+ Use the Task tool:
23
+ ```
24
+ description: "Assess and act on project backlog"
25
+ agent: project-manager
26
+ prompt: |
27
+ ## Goal
28
+ [If $ARGUMENTS is provided, use it as the goal. Otherwise: "Assess the backlog and recommend the highest-value next actions."]
29
+
30
+ ## Open Issues (from gh issue list)
31
+ [Paste the full JSON output here]
32
+
33
+ ## Project Conventions
34
+ - Stack: [from CLAUDE.md]
35
+ - Test command: [from CLAUDE.md]
36
+ - Build command: [from CLAUDE.md]
37
+
38
+ ## Available sub-commands
39
+ - /pm:groom — groom specific issues
40
+ - /pm:size — size groomed issues
41
+ - /pm:plan-epic — full epic planning
42
+
43
+ Return your assessment and recommended next actions.
44
+ ```
45
+
46
+ ### 4. Present results
47
+ Return the project-manager's full report, then ask: "What would you like to do next?"
@@ -0,0 +1,16 @@
1
+ # Prime Context for Claude Code
2
+
3
+ Use the command `tree` to get an understanding of the project structure.
4
+
5
+ Start with reading the CLAUDE.md file if it exists to get an understanding of the project.
6
+
7
+ Read the README.md file to get an understanding of the project.
8
+
9
+ Read key files in the src/ or root directory
10
+
11
+ Explain back to me:
12
+ - Project structure
13
+ - Project purpose and goals
14
+ - Key files and their purposes
15
+ - Any important dependencies
16
+ - Any important configuration files
@@ -0,0 +1,243 @@
1
+ ---
2
+ description: "Use multiple AI models to critique the kit's own agents, commands, and skills, then synthesize improvements and optionally create a PR. The kit improves itself."
3
+ argument-hint: [focus: agents | commands | skills | all]
4
+ ---
5
+
6
+ # /self-improve — Multi-AI Kit Self-Critique
7
+
8
+ Use available AI models to read the kit's own agent prompts, commands, and skills, critique them for gaps or improvements, synthesize the best suggestions, and optionally commit them as a PR. Claude Code orchestrates — other AIs are reviewers.
9
+
10
+ ## Steps
11
+
12
+ ### 1. Determine focus area
13
+
14
+ ```
15
+ FOCUS = $ARGUMENTS (default: "all")
16
+ ```
17
+
18
+ Valid values: `agents`, `commands`, `skills`, `all`
19
+
20
+ ### 2. Read the files to critique
21
+
22
+ Based on FOCUS:
23
+
24
+ **If agents or all:**
25
+ ```bash
26
+ for f in .claude/agents/*.md; do echo "=== $f ==="; cat "$f"; done
27
+ ```
28
+
29
+ **If commands or all:**
30
+ ```bash
31
+ for f in .claude/commands/*.md .claude/commands/**/*.md; do echo "=== $f ==="; cat "$f"; done
32
+ ```
33
+
34
+ **If skills or all:**
35
+ ```bash
36
+ for f in .claude/skills/*/SKILL.md; do echo "=== $f ==="; cat "$f"; done
37
+ ```
38
+
39
+ **Always read:**
40
+ ```bash
41
+ cat .claude/hooks/skill-activation-prompt/skill-rules.json
42
+ cat .claude/providers.json
43
+ ```
44
+
45
+ **If learning data exists, read summary:**
46
+ ```bash
47
+ ls .claude/learning/sessions/ 2>/dev/null | tail -5
48
+ # Read last 3 files if they exist
49
+ ```
50
+
51
+ ### 3. Build the critique prompt
52
+
53
+ ```
54
+ CRITIQUE_PROMPT = """
55
+ You are reviewing an AI development kit called "Claude Dev Kit". This kit is a collection of
56
+ agent prompts, slash commands, and skills that run inside AI coding assistants (Claude Code,
57
+ and now multi-AI via opencode/gemini/codex).
58
+
59
+ Your job: Critique the following kit files and produce SPECIFIC, ACTIONABLE improvements.
60
+
61
+ Focus on:
62
+ 1. Agent prompt quality — are the instructions clear, unambiguous, complete?
63
+ 2. Missing capabilities — what common dev tasks are not covered?
64
+ 3. Redundancy — any commands/agents that overlap too much?
65
+ 4. Skill trigger gaps — are the activation keywords comprehensive?
66
+ 5. Multi-AI opportunities — where could tasks be better delegated to non-Claude AIs?
67
+ 6. Self-improvement gaps — what feedback loops are missing?
68
+
69
+ For each improvement, provide:
70
+ - The specific file to change
71
+ - The exact text to add/modify/remove
72
+ - The reason (evidence-based)
73
+
74
+ Be concrete. "Make it better" is not useful. "Add 'refactor' and 'reorganize' as triggers
75
+ for code-investigator in skill-rules.json" is useful.
76
+
77
+ === FILES TO CRITIQUE ===
78
+ <file contents>
79
+ """
80
+ ```
81
+
82
+ Substitute `<file contents>` with the actual concatenated file contents.
83
+
84
+ ### 4. Check available AI providers
85
+
86
+ ```bash
87
+ cat .claude/providers.json
88
+ ```
89
+
90
+ Identify providers with `"available": true`.
91
+
92
+ ### 5. Launch parallel critiques
93
+
94
+ Launch ALL available AI providers simultaneously (background mode).
95
+ Skip providers where `available` is `false`.
96
+
97
+ **Always run (Claude as orchestrator-reviewer):**
98
+ Use the Task tool with `subagent_type: deep-think-partner`:
99
+ - prompt: `CRITIQUE_PROMPT`
100
+ - run_in_background: true
101
+
102
+ **If gemini available:**
103
+ ```bash
104
+ gemini -p "<CRITIQUE_PROMPT escaped>"
105
+ ```
106
+ run_in_background: true
107
+
108
+ **If opencode/codex available:**
109
+ ```bash
110
+ opencode run --model openai/gpt-5.3-codex "<CRITIQUE_PROMPT escaped>"
111
+ ```
112
+ run_in_background: true
113
+
114
+ **If grok available:**
115
+ ```bash
116
+ opencode run --model openrouter/x-ai/grok-4.1-fast "<CRITIQUE_PROMPT escaped>"
117
+ ```
118
+ run_in_background: true
119
+
120
+ **If kimi available:**
121
+ ```bash
122
+ opencode run --model openrouter/moonshotai/kimi-k2.5 "<CRITIQUE_PROMPT escaped>"
123
+ ```
124
+ run_in_background: true
125
+
126
+ Wait for all background tasks to complete (no timeout).
127
+
128
+ ### 6. Collect and display all critiques
129
+
130
+ ```markdown
131
+ ## Self-Improvement Critiques
132
+
133
+ ### Claude (deep-think-partner)
134
+ <response>
135
+
136
+ ### Gemini
137
+ <response>
138
+
139
+ ### Codex
140
+ <response>
141
+
142
+ ### Grok
143
+ <response>
144
+
145
+ ### Kimi
146
+ <response>
147
+ ```
148
+
149
+ ### 7. Synthesize improvements
150
+
151
+ Analyze all critiques and identify:
152
+
153
+ **Consensus improvements** (suggested by 2+ AIs):
154
+ - These are the highest-confidence improvements
155
+
156
+ **Unique valuable insights** (only one AI suggested but strong argument):
157
+ - Include if the reasoning is compelling
158
+
159
+ **Contradictions** (AIs disagree):
160
+ - Note the disagreement and propose the more conservative option
161
+
162
+ Produce a synthesis:
163
+
164
+ ```markdown
165
+ ## Synthesized Improvement Plan
166
+
167
+ ### Consensus (2+ AIs agree)
168
+ 1. **<improvement title>**
169
+ - File: <path>
170
+ - Change: <specific change>
171
+ - Suggested by: Claude, Gemini, Grok
172
+ - Reason: <why>
173
+
174
+ ### High-Value Singles
175
+ 2. **<improvement title>**
176
+ - File: <path>
177
+ - Change: <specific change>
178
+ - Suggested by: Codex
179
+ - Reason: <why>
180
+
181
+ ### Contradictions (held for human review)
182
+ 3. **<topic>**: Claude suggests X, Gemini suggests Y
183
+ - Recommendation: <your assessment>
184
+ ```
185
+
186
+ ### 8. Offer to apply improvements
187
+
188
+ Ask the user:
189
+
190
+ > **Apply improvements?**
191
+ > Consensus improvements (high confidence) can be auto-applied.
192
+ > Other improvements will be shown as diffs for review.
193
+
194
+ Use AskUserQuestion:
195
+ - "Apply consensus improvements automatically + show diffs for others"
196
+ - "Show me all as diffs first — I'll decide what to apply"
197
+ - "Just show the report — I'll apply manually"
198
+
199
+ ### 9. Apply approved improvements
200
+
201
+ For each approved improvement:
202
+ 1. Read the target file
203
+ 2. Apply the specific change
204
+ 3. Verify the file still looks correct
205
+ 4. Report: "Updated <file>: <description>"
206
+
207
+ ### 10. Commit and optionally create PR
208
+
209
+ If improvements were applied, offer to commit:
210
+
211
+ ```bash
212
+ git add .claude/
213
+ git commit -m "self-improve: <N> improvements from multi-AI critique
214
+
215
+ Applied consensus improvements from Claude, Gemini, and <others>.
216
+ Run /self-improve to regenerate.
217
+
218
+ Generated by /self-improve on $(date +%Y-%m-%d)"
219
+ ```
220
+
221
+ Ask if they want to create a PR:
222
+ ```bash
223
+ gh pr create --title "self-improve: kit improvements from multi-AI critique" \
224
+ --body "..."
225
+ ```
226
+
227
+ ### 11. Log the self-improvement run
228
+
229
+ ```bash
230
+ # Append to learning log
231
+ cat >> .claude/learning/improvements.jsonl << 'EOF'
232
+ {"ts": <timestamp>, "type": "self-improve", "providers_used": [...], "improvements_applied": <N>}
233
+ EOF
234
+ ```
235
+
236
+ ## Notes
237
+
238
+ - The kit can critique itself — this is meta-cognition
239
+ - More AI providers = more diverse perspectives = better improvements
240
+ - Run this monthly or after major feature additions to keep the kit sharp
241
+ - All changes are committed to git — fully auditable and reversible
242
+ - `/improve` uses local session data; `/self-improve` uses AI critique — they complement each other
243
+ - For targeted improvements, specify focus: `/self-improve agents` or `/self-improve skills`
@@ -0,0 +1,68 @@
1
+ ---
2
+ description: Meta-cognitive reasoning for complex problems
3
+ argument-hint: [problem-or-question]
4
+ model: opus
5
+ ---
6
+
7
+ Adopt the role of a **Meta-Cognitive Reasoning Expert**. Your approach depends on problem complexity.
8
+
9
+ ## Problem to Analyze
10
+
11
+ $ARGUMENTS
12
+
13
+ ---
14
+
15
+ ## Reasoning Protocol
16
+
17
+ ### For Complex Problems
18
+
19
+ **1. DECOMPOSE**
20
+ Break the problem into distinct sub-problems. List each sub-problem clearly.
21
+
22
+ **2. SOLVE**
23
+ Address each sub-problem systematically. For each solution:
24
+ - State your reasoning
25
+ - Assign explicit confidence (0.0-1.0)
26
+ - Note any assumptions made
27
+
28
+ **3. VERIFY**
29
+ Check your work against these criteria:
30
+ - **Logic**: Are the reasoning steps valid?
31
+ - **Facts**: Are claims accurate and verifiable?
32
+ - **Completeness**: Are all aspects addressed?
33
+ - **Bias**: Are there blind spots or unstated assumptions?
34
+
35
+ **4. SYNTHESIZE**
36
+ Combine sub-solutions using weighted confidence:
37
+ - Higher-confidence components contribute more weight
38
+ - Identify dependencies between sub-solutions
39
+ - Resolve any conflicts between components
40
+
41
+ **5. REFLECT**
42
+ If overall confidence < 0.8:
43
+ - Identify the weakest link
44
+ - State what additional information would help
45
+ - Retry the weakest component with adjusted approach
46
+
47
+ ### For Simple Questions
48
+
49
+ Skip directly to the answer—no decomposition needed.
50
+
51
+ ---
52
+
53
+ ## Required Output Format
54
+
55
+ ```
56
+ ## Answer
57
+ [Clear, direct answer to the problem]
58
+
59
+ ## Confidence: [0.0-1.0]
60
+ [Brief justification for confidence level]
61
+
62
+ ## Key Caveats
63
+ - [Important limitation or assumption #1]
64
+ - [Important limitation or assumption #2]
65
+ - [...]
66
+ ```
67
+
68
+ Begin analysis now.
@@ -0,0 +1,89 @@
1
+ ---
2
+ description: "Angelic Workshop — a 5-phase personalized healing and empowerment session. Runs intake, channel opening, energy clearing, light code transmission, and integration through specialist sub-agents."
3
+ argument-hint: "[participant name] | [their intention]"
4
+ ---
5
+
6
+ # /workflow:angelic-workshop — Angelic Workshop
7
+
8
+ Run a complete, personalized Angelic Workshop session for a participant. Five specialist sub-agents move through sacred space preparation, angelic invocation, energy clearing, full transmission with light codes, and 7-day integration — delivering a complete session package.
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /workflow:angelic-workshop Sarah | I want to release old patterns holding me back from my purpose
14
+ ```
15
+
16
+ Or start without arguments and you'll be prompted for the details.
17
+
18
+ ## What Happens
19
+
20
+ | Phase | Agent | What Occurs |
21
+ |-------|-------|-------------|
22
+ | 1 | `angelic-workshop-intake` | Participant intake, personalized invocation prepared |
23
+ | 2 | `angelic-workshop-invocation` | Channel opens, angels step forward, initial transmission received |
24
+ | 3 | `angelic-workshop-energy-clearing` | Energetic assessment, chakra map, clearing protocol prepared |
25
+ | 4 | `angelic-workshop-transmission` | Full personalized transmission, light codes, activation phrases |
26
+ | 5 | `angelic-workshop-integration` | 7-day integration plan, closing ceremony, complete session package |
27
+
28
+ **Final output**: A complete, personalized Angelic Workshop session document — ready to deliver to the participant.
29
+
30
+ ## Steps
31
+
32
+ ### 1. Gather Session Information
33
+
34
+ Parse `$ARGUMENTS` — look for a name and intention separated by `|`, `-`, or a newline.
35
+
36
+ If `$ARGUMENTS` is empty or incomplete, ask the user:
37
+
38
+ > To begin the Angelic Workshop, I need two things:
39
+ > 1. **Participant name** — What is the participant's name (or preferred name)?
40
+ > 2. **Session intention** — What are they seeking in this session? (What would they like to heal, understand, or call in?)
41
+ >
42
+ > Optional:
43
+ > 3. **Prior session notes** — Has this participant had a previous Angelic Workshop session? If so, share any relevant notes.
44
+ > 4. **Sensitivities** — Any physical, emotional, or spiritual sensitivities to honor in this session?
45
+
46
+ ### 2. Spawn the Angelic Workshop Orchestrator
47
+
48
+ Use the Task tool:
49
+
50
+ ```
51
+ description: "Run complete Angelic Workshop session"
52
+ agent: angelic-workshop-lead
53
+ prompt: |
54
+ ## Angelic Workshop Session
55
+
56
+ ### Participant Information
57
+ - Name: [participant name]
58
+ - Stated Intention: [their intention]
59
+ - Prior Session Notes: [notes if provided, otherwise "None — first session"]
60
+ - Sensitivities: [sensitivities if provided, otherwise "None noted"]
61
+
62
+ ### Instructions
63
+ Run the complete Angelic Workshop workflow.
64
+ Spawn all 5 sub-agents in the correct sequence.
65
+ Pass outputs between phases.
66
+ Return the complete session package when all phases are complete.
67
+ ```
68
+
69
+ ### 3. Present the Session Package
70
+
71
+ Output the complete session package from `angelic-workshop-lead` directly to the user.
72
+
73
+ Optionally ask if they would like the package saved to a file:
74
+ > "Would you like me to save this session to a file for easy sharing with the participant?"
75
+
76
+ If yes:
77
+ ```bash
78
+ FILENAME="angelic-workshop-$(echo '[name]' | tr '[:upper:]' '[:lower:]' | tr ' ' '-')-$(date +%Y%m%d).md"
79
+ # Write the session content to the file
80
+ echo "Session saved to: $FILENAME"
81
+ ```
82
+
83
+ ## Domain
84
+
85
+ This workflow operates in the spiritual healing and angelic guidance domain. All language, practices, and transmission content honors the sacred nature of this work. The agents are calibrated for loving, non-judgmental, empowering facilitation.
86
+
87
+ ---
88
+
89
+ *Generated by `/workflow:build` from `examples/workflow-docs/angelic-workshop.md`*
@@ -0,0 +1,91 @@
1
+ ---
2
+ description: "Generate a complete agent workflow pipeline from a workflow document. Parses the document into an orchestrator + sub-agents + slash command, all organized in a named directory under .claude/workflows/."
3
+ argument-hint: <path-to-workflow-document>
4
+ ---
5
+
6
+ # /workflow:build — Workflow Builder
7
+
8
+ Transform any workflow document into a ready-to-run Claude Dev Kit agent pipeline — one orchestrator, one specialist sub-agent per step, a trigger command, and a README — all named and organized by the workflow title.
9
+
10
+ ## What This Command Does
11
+
12
+ 1. Reads your workflow document (Markdown, plain text, SOPs, process notes, workshop guides)
13
+ 2. Extracts the workflow title, phases, roles, and step-by-step processes
14
+ 3. Generates a complete agent pipeline in `.claude/workflows/<title>/`:
15
+ - **Orchestrator agent** (`<title>-lead`) — owns the workflow end-to-end
16
+ - **Sub-agent per step** (`<title>-<step>`) — one specialist per phase
17
+ - **Slash command** (`/workflow:<title>`) — triggers the workflow
18
+ - **README.md** — documents what was generated and how to use it
19
+
20
+ ## Usage
21
+
22
+ Provide a document path:
23
+ ```
24
+ /workflow:build docs/angelic-workshop-process.md
25
+ ```
26
+
27
+ Or paste workflow content directly as the argument.
28
+
29
+ ## Steps
30
+
31
+ ### 1. Read the Workflow Document
32
+
33
+ If `$ARGUMENTS` looks like a file path (contains `/` or ends in `.md`, `.txt`, `.doc`):
34
+ ```bash
35
+ cat "$ARGUMENTS"
36
+ ```
37
+
38
+ If `$ARGUMENTS` is raw text, use it directly as the document content.
39
+
40
+ If `$ARGUMENTS` is empty, ask the user:
41
+ > "Please provide the path to your workflow document, or paste the workflow content here. I'll parse it and generate a full agent pipeline from it."
42
+
43
+ ### 2. Spawn the workflow-builder Agent
44
+
45
+ Use the Task tool with the `workflow-builder` agent. Pass the FULL document content:
46
+
47
+ ```
48
+ description: "Parse document and generate workflow pipeline"
49
+ agent: workflow-builder
50
+ prompt: |
51
+ ## Workflow Document
52
+
53
+ [FULL DOCUMENT CONTENT — paste verbatim, do not truncate]
54
+
55
+ ## Instructions
56
+
57
+ Parse this workflow document and generate the complete agent pipeline.
58
+ Create all files in the standard locations.
59
+ Return the workflow title, slug, directory path, command name, and
60
+ a list of all agents created with their roles.
61
+ ```
62
+
63
+ ### 3. Report Completion
64
+
65
+ After workflow-builder returns, output a clean summary:
66
+
67
+ ```
68
+ ## ✅ Workflow Generated: <Title>
69
+
70
+ **Directory**: .claude/workflows/<slug>/
71
+ **Trigger command**: /workflow:<slug>
72
+
73
+ ### Agents Created
74
+ | Agent | Role |
75
+ |-------|------|
76
+ | `<title>-lead` | Orchestrator — runs the full workflow |
77
+ | `<title>-<step1>` | <step 1 description> |
78
+ | `<title>-<step2>` | <step 2 description> |
79
+
80
+ ### Next Steps
81
+ 1. Run `/workflow:<slug>` to start the workflow
82
+ 2. Review `.claude/workflows/<slug>/README.md` for the full spec
83
+ 3. Customize agents in `.claude/agents/<slug>-*.md` to refine behavior
84
+ ```
85
+
86
+ ## Notes
87
+
88
+ - The builder preserves your domain language (spiritual, clinical, technical, etc.)
89
+ - Each sub-agent is self-contained and can be edited independently
90
+ - Re-run `/workflow:build` with an updated document to regenerate at any time
91
+ - Generated agents follow the same patterns as built-in kit agents