claude-all-hands 1.0.1 → 1.0.2

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 (160) hide show
  1. package/.claude/agents/code-simplifier.md +52 -0
  2. package/.claude/agents/curator.md +189 -245
  3. package/.claude/agents/documentor.md +147 -0
  4. package/.claude/agents/planner.md +123 -166
  5. package/.claude/agents/researcher.md +58 -41
  6. package/.claude/agents/surveyor.md +81 -0
  7. package/.claude/agents/worker.md +74 -0
  8. package/.claude/commands/audit-docs.md +94 -0
  9. package/.claude/commands/continue.md +120 -0
  10. package/.claude/commands/create-docs.md +100 -0
  11. package/.claude/commands/create-skill.md +107 -0
  12. package/.claude/commands/create-specialist.md +111 -0
  13. package/.claude/commands/curator-audit.md +4 -0
  14. package/.claude/commands/debug.md +183 -0
  15. package/.claude/commands/plan.md +199 -102
  16. package/.claude/commands/validate.md +11 -0
  17. package/.claude/commands/whats-next.md +106 -134
  18. package/.claude/envoy/envoy +11 -14
  19. package/.claude/envoy/package-lock.json +1388 -0
  20. package/.claude/envoy/package.json +29 -0
  21. package/.claude/envoy/src/cli.ts +126 -0
  22. package/.claude/envoy/src/commands/base.ts +216 -0
  23. package/.claude/envoy/src/commands/gemini.ts +999 -0
  24. package/.claude/envoy/src/commands/git.ts +639 -0
  25. package/.claude/envoy/src/commands/index.ts +73 -0
  26. package/.claude/envoy/src/commands/knowledge.ts +187 -0
  27. package/.claude/envoy/src/commands/perplexity.ts +129 -0
  28. package/.claude/envoy/src/commands/plan/core.ts +134 -0
  29. package/.claude/envoy/src/commands/plan/findings.ts +446 -0
  30. package/.claude/envoy/src/commands/plan/gates.ts +672 -0
  31. package/.claude/envoy/src/commands/plan/index.ts +135 -0
  32. package/.claude/envoy/src/commands/plan/lifecycle.ts +648 -0
  33. package/.claude/envoy/src/commands/plan/plan-file.ts +138 -0
  34. package/.claude/envoy/src/commands/plan/prompts.ts +285 -0
  35. package/.claude/envoy/src/commands/plan/protocols.ts +166 -0
  36. package/.claude/envoy/src/commands/repomix.ts +99 -0
  37. package/.claude/envoy/src/commands/tavily.ts +220 -0
  38. package/.claude/envoy/src/commands/xai.ts +168 -0
  39. package/.claude/envoy/src/lib/design.ts +41 -0
  40. package/.claude/envoy/src/lib/feedback-schemas.ts +154 -0
  41. package/.claude/envoy/src/lib/findings.ts +215 -0
  42. package/.claude/envoy/src/lib/gates.ts +572 -0
  43. package/.claude/envoy/src/lib/git.ts +132 -0
  44. package/.claude/envoy/src/lib/index.ts +188 -0
  45. package/.claude/envoy/src/lib/knowledge.ts +594 -0
  46. package/.claude/envoy/src/lib/markdown.ts +75 -0
  47. package/.claude/envoy/src/lib/observability.ts +262 -0
  48. package/.claude/envoy/src/lib/paths.ts +130 -0
  49. package/.claude/envoy/src/lib/plan-io.ts +117 -0
  50. package/.claude/envoy/src/lib/prompts.ts +231 -0
  51. package/.claude/envoy/src/lib/protocols.ts +314 -0
  52. package/.claude/envoy/src/lib/repomix.ts +133 -0
  53. package/.claude/envoy/src/lib/retry.ts +138 -0
  54. package/.claude/envoy/src/lib/watcher.ts +167 -0
  55. package/.claude/envoy/tsconfig.json +21 -0
  56. package/.claude/hooks/scripts/scan_agents.py +62 -0
  57. package/.claude/hooks/scripts/scan_commands.py +50 -0
  58. package/.claude/hooks/scripts/scan_skills.py +46 -70
  59. package/.claude/hooks/scripts/validate_artifacts.py +128 -0
  60. package/.claude/hooks/startup.sh +26 -24
  61. package/.claude/protocols/bug-discovery.yaml +55 -0
  62. package/.claude/protocols/debugging.yaml +51 -0
  63. package/.claude/protocols/discovery.yaml +53 -0
  64. package/.claude/protocols/implementation.yaml +84 -0
  65. package/.claude/settings.json +37 -97
  66. package/.claude/skills/brainstorming/SKILL.md +54 -0
  67. package/.claude/skills/commands-development/SKILL.md +630 -0
  68. package/.claude/skills/commands-development/references/arguments.md +252 -0
  69. package/.claude/skills/commands-development/references/patterns.md +796 -0
  70. package/.claude/skills/commands-development/references/tool-restrictions.md +376 -0
  71. package/.claude/skills/discovery-mode/SKILL.md +108 -0
  72. package/.claude/skills/hooks-development/SKILL.md +332 -0
  73. package/.claude/skills/hooks-development/references/command-vs-prompt.md +269 -0
  74. package/.claude/skills/hooks-development/references/examples.md +658 -0
  75. package/.claude/skills/hooks-development/references/hook-types.md +463 -0
  76. package/.claude/skills/hooks-development/references/input-output-schemas.md +469 -0
  77. package/.claude/skills/hooks-development/references/matchers.md +470 -0
  78. package/.claude/skills/hooks-development/references/troubleshooting.md +587 -0
  79. package/.claude/skills/implementation-mode/SKILL.md +171 -0
  80. package/.claude/skills/research-tools/SKILL.md +35 -33
  81. package/.claude/skills/skills-development/SKILL.md +192 -0
  82. package/.claude/skills/skills-development/references/api-security.md +226 -0
  83. package/.claude/skills/skills-development/references/be-clear-and-direct.md +531 -0
  84. package/.claude/skills/skills-development/references/common-patterns.md +595 -0
  85. package/.claude/skills/skills-development/references/core-principles.md +437 -0
  86. package/.claude/skills/skills-development/references/executable-code.md +175 -0
  87. package/.claude/skills/skills-development/references/iteration-and-testing.md +474 -0
  88. package/.claude/skills/skills-development/references/recommended-structure.md +168 -0
  89. package/.claude/skills/skills-development/references/skill-structure.md +372 -0
  90. package/.claude/skills/skills-development/references/use-xml-tags.md +466 -0
  91. package/.claude/skills/skills-development/references/using-scripts.md +113 -0
  92. package/.claude/skills/skills-development/references/using-templates.md +112 -0
  93. package/.claude/skills/skills-development/references/workflows-and-validation.md +510 -0
  94. package/.claude/skills/skills-development/templates/router-skill.md +73 -0
  95. package/.claude/skills/skills-development/templates/simple-skill.md +33 -0
  96. package/.claude/skills/skills-development/workflows/add-reference.md +96 -0
  97. package/.claude/skills/skills-development/workflows/add-script.md +93 -0
  98. package/.claude/skills/skills-development/workflows/add-template.md +74 -0
  99. package/.claude/skills/skills-development/workflows/add-workflow.md +120 -0
  100. package/.claude/skills/skills-development/workflows/audit-skill.md +138 -0
  101. package/.claude/skills/skills-development/workflows/create-domain-expertise-skill.md +605 -0
  102. package/.claude/skills/skills-development/workflows/create-new-skill.md +191 -0
  103. package/.claude/skills/skills-development/workflows/get-guidance.md +121 -0
  104. package/.claude/skills/skills-development/workflows/upgrade-to-router.md +161 -0
  105. package/.claude/skills/skills-development/workflows/verify-skill.md +204 -0
  106. package/.claude/skills/subagents-development/SKILL.md +325 -0
  107. package/.claude/skills/subagents-development/references/context-management.md +567 -0
  108. package/.claude/skills/subagents-development/references/debugging-agents.md +714 -0
  109. package/.claude/skills/subagents-development/references/error-handling-and-recovery.md +502 -0
  110. package/.claude/skills/subagents-development/references/evaluation-and-testing.md +374 -0
  111. package/.claude/skills/subagents-development/references/orchestration-patterns.md +591 -0
  112. package/.claude/skills/subagents-development/references/subagents.md +508 -0
  113. package/.claude/skills/subagents-development/references/writing-subagent-prompts.md +517 -0
  114. package/.claude/statusline.sh +24 -0
  115. package/bin/cli.js +110 -72
  116. package/package.json +1 -1
  117. package/.claude/agents/explorer.md +0 -62
  118. package/.claude/agents/parallel-worker.md +0 -121
  119. package/.claude/commands/curation-fix.md +0 -92
  120. package/.claude/commands/new-branch.md +0 -36
  121. package/.claude/commands/parallel-discovery.md +0 -69
  122. package/.claude/commands/parallel-orchestration.md +0 -99
  123. package/.claude/commands/plan-checkpoint.md +0 -37
  124. package/.claude/envoy/commands/__init__.py +0 -1
  125. package/.claude/envoy/commands/base.py +0 -95
  126. package/.claude/envoy/commands/parallel.py +0 -439
  127. package/.claude/envoy/commands/perplexity.py +0 -86
  128. package/.claude/envoy/commands/plans.py +0 -451
  129. package/.claude/envoy/commands/tavily.py +0 -156
  130. package/.claude/envoy/commands/vertex.py +0 -358
  131. package/.claude/envoy/commands/xai.py +0 -124
  132. package/.claude/envoy/envoy.py +0 -122
  133. package/.claude/envoy/pyrightconfig.json +0 -4
  134. package/.claude/envoy/requirements.txt +0 -2
  135. package/.claude/hooks/capture-queries.sh +0 -3
  136. package/.claude/hooks/scripts/enforce_planning.py +0 -118
  137. package/.claude/hooks/scripts/enforce_rg.py +0 -34
  138. package/.claude/hooks/scripts/validate_skill.py +0 -81
  139. package/.claude/skills/claude-envoy-curation/SKILL.md +0 -162
  140. package/.claude/skills/claude-envoy-usage/SKILL.md +0 -46
  141. package/.claude/skills/command-development/SKILL.md +0 -206
  142. package/.claude/skills/command-development/examples/simple-commands.md +0 -212
  143. package/.claude/skills/command-development/references/frontmatter-reference.md +0 -221
  144. package/.claude/skills/hook-development/SKILL.md +0 -127
  145. package/.claude/skills/hook-development/examples/command-hooks.md +0 -301
  146. package/.claude/skills/hook-development/examples/prompt-hooks.md +0 -114
  147. package/.claude/skills/hook-development/references/event-reference.md +0 -226
  148. package/.claude/skills/repomix-extraction/SKILL.md +0 -91
  149. package/.claude/skills/skill-development/SKILL.md +0 -168
  150. package/.claude/skills/skill-development/examples/complete-skill-examples.md +0 -281
  151. package/.claude/skills/skill-development/references/progressive-disclosure.md +0 -141
  152. package/.claude/skills/skill-development/references/writing-style.md +0 -180
  153. package/.claude/skills/skill-development/scripts/validate-skill.sh +0 -144
  154. package/.claude/skills/specialist-builder/SKILL.md +0 -327
  155. package/.claude/skills/specialist-builder/docs/agent-catalog.md +0 -28
  156. package/.claude/skills/specialist-builder/examples/complete-agent-examples.md +0 -206
  157. package/.claude/skills/specialist-builder/references/system-prompt-patterns.md +0 -281
  158. package/.claude/skills/specialist-builder/references/triggering-examples.md +0 -162
  159. package/.claude/skills/specialist-builder/scripts/validate-agent.sh +0 -137
  160. /package/.claude/{envoy/claude-envoy.py → skills/claude-envoy-patterns/SKILL.md} +0 -0
@@ -0,0 +1,605 @@
1
+ # Workflow: Create Exhaustive Domain Expertise Skill
2
+
3
+ <objective>
4
+ Build a comprehensive execution skill that does real work in a specific domain. Domain expertise skills are full-featured build skills with exhaustive domain knowledge in references, complete workflows for the full lifecycle (build → debug → optimize → ship), and can be both invoked directly by users AND loaded by other skills (like create-plans) for domain knowledge.
5
+ </objective>
6
+
7
+ <critical_distinction>
8
+ **Regular skill:** "Do one specific task"
9
+ **Domain expertise skill:** "Do EVERYTHING in this domain, with complete practitioner knowledge"
10
+
11
+ Examples:
12
+ - `expertise/macos-apps` - Build macOS apps from scratch through shipping
13
+ - `expertise/python-games` - Build complete Python games with full game dev lifecycle
14
+ - `expertise/rust-systems` - Build Rust systems programs with exhaustive systems knowledge
15
+ - `expertise/web-scraping` - Build scrapers, handle all edge cases, deploy at scale
16
+
17
+ Domain expertise skills:
18
+ - ✅ Execute tasks (build, debug, optimize, ship)
19
+ - ✅ Have comprehensive domain knowledge in references
20
+ - ✅ Are invoked directly by users ("build a macOS app")
21
+ - ✅ Can be loaded by other skills (create-plans reads references for planning)
22
+ - ✅ Cover the FULL lifecycle, not just getting started
23
+ </critical_distinction>
24
+
25
+ <required_reading>
26
+ **Read these reference files NOW:**
27
+ 1. references/recommended-structure.md
28
+ 2. references/core-principles.md
29
+ 3. references/use-xml-tags.md
30
+ </required_reading>
31
+
32
+ <process>
33
+ ## Step 1: Identify Domain
34
+
35
+ Ask user what domain expertise to build:
36
+
37
+ **Example domains:**
38
+ - macOS/iOS app development
39
+ - Python game development
40
+ - Rust systems programming
41
+ - Machine learning / AI
42
+ - Web scraping and automation
43
+ - Data engineering pipelines
44
+ - Audio processing / DSP
45
+ - 3D graphics / shaders
46
+ - Unity/Unreal game development
47
+ - Embedded systems
48
+
49
+ Get specific: "Python games" or "Python games with Pygame specifically"?
50
+
51
+ ## Step 2: Confirm Target Location
52
+
53
+ Explain:
54
+ ```
55
+ Domain expertise skills go in: ~/.claude/skills/expertise/{domain-name}/
56
+
57
+ These are comprehensive BUILD skills that:
58
+ - Execute tasks (build, debug, optimize, ship)
59
+ - Contain exhaustive domain knowledge
60
+ - Can be invoked directly by users
61
+ - Can be loaded by other skills for domain knowledge
62
+
63
+ Name suggestion: {suggested-name}
64
+ Location: ~/.claude/skills/expertise/{suggested-name}/
65
+ ```
66
+
67
+ Confirm or adjust name.
68
+
69
+ ## Step 3: Identify Workflows
70
+
71
+ Domain expertise skills cover the FULL lifecycle. Identify what workflows are needed.
72
+
73
+ **Common workflows for most domains:**
74
+ 1. **build-new-{thing}.md** - Create from scratch
75
+ 2. **add-feature.md** - Extend existing {thing}
76
+ 3. **debug-{thing}.md** - Find and fix bugs
77
+ 4. **write-tests.md** - Test for correctness
78
+ 5. **optimize-performance.md** - Profile and speed up
79
+ 6. **ship-{thing}.md** - Deploy/distribute
80
+
81
+ **Domain-specific workflows:**
82
+ - Games: `implement-game-mechanic.md`, `add-audio.md`, `polish-ui.md`
83
+ - Web apps: `setup-auth.md`, `add-api-endpoint.md`, `setup-database.md`
84
+ - Systems: `optimize-memory.md`, `profile-cpu.md`, `cross-compile.md`
85
+
86
+ Each workflow = one complete task type that users actually do.
87
+
88
+ ## Step 4: Exhaustive Research Phase
89
+
90
+ **CRITICAL:** This research must be comprehensive, not superficial.
91
+
92
+ ### Research Strategy
93
+
94
+ Run multiple web searches to ensure coverage:
95
+
96
+ **Search 1: Current ecosystem**
97
+ - "best {domain} libraries 2024 2025"
98
+ - "popular {domain} frameworks comparison"
99
+ - "{domain} tech stack recommendations"
100
+
101
+ **Search 2: Architecture patterns**
102
+ - "{domain} architecture patterns"
103
+ - "{domain} best practices design patterns"
104
+ - "how to structure {domain} projects"
105
+
106
+ **Search 3: Lifecycle and tooling**
107
+ - "{domain} development workflow"
108
+ - "{domain} testing debugging best practices"
109
+ - "{domain} deployment distribution"
110
+
111
+ **Search 4: Common pitfalls**
112
+ - "{domain} common mistakes avoid"
113
+ - "{domain} anti-patterns"
114
+ - "what not to do {domain}"
115
+
116
+ **Search 5: Real-world usage**
117
+ - "{domain} production examples GitHub"
118
+ - "{domain} case studies"
119
+ - "successful {domain} projects"
120
+
121
+ ### Verification Requirements
122
+
123
+ For EACH major library/tool/pattern found:
124
+ - **Check recency:** When was it last updated?
125
+ - **Check adoption:** Is it actively maintained? Community size?
126
+ - **Check alternatives:** What else exists? When to use each?
127
+ - **Check deprecation:** Is anything being replaced?
128
+
129
+ **Red flags for outdated content:**
130
+ - Articles from before 2023 (unless fundamental concepts)
131
+ - Abandoned libraries (no commits in 12+ months)
132
+ - Deprecated APIs or patterns
133
+ - "This used to be popular but..."
134
+
135
+ ### Documentation Sources
136
+
137
+ Use Context7 MCP when available:
138
+ ```
139
+ mcp__context7__resolve-library-id: {library-name}
140
+ mcp__context7__get-library-docs: {library-id}
141
+ ```
142
+
143
+ Focus on official docs, not tutorials.
144
+
145
+ ## Step 5: Organize Knowledge Into Domain Areas
146
+
147
+ Structure references by domain concerns, NOT by arbitrary categories.
148
+
149
+ **For game development example:**
150
+ ```
151
+ references/
152
+ ├── architecture.md # ECS, component-based, state machines
153
+ ├── libraries.md # Pygame, Arcade, Panda3D (when to use each)
154
+ ├── graphics-rendering.md # 2D/3D rendering, sprites, shaders
155
+ ├── physics.md # Collision, physics engines
156
+ ├── audio.md # Sound effects, music, spatial audio
157
+ ├── input.md # Keyboard, mouse, gamepad, touch
158
+ ├── ui-menus.md # HUD, menus, dialogs
159
+ ├── game-loop.md # Update/render loop, fixed timestep
160
+ ├── state-management.md # Game states, scene management
161
+ ├── networking.md # Multiplayer, client-server, P2P
162
+ ├── asset-pipeline.md # Loading, caching, optimization
163
+ ├── testing-debugging.md # Unit tests, profiling, debugging tools
164
+ ├── performance.md # Optimization, profiling, benchmarking
165
+ ├── packaging.md # Building executables, installers
166
+ ├── distribution.md # Steam, itch.io, app stores
167
+ └── anti-patterns.md # Common mistakes, what NOT to do
168
+ ```
169
+
170
+ **For macOS app development example:**
171
+ ```
172
+ references/
173
+ ├── app-architecture.md # State management, dependency injection
174
+ ├── swiftui-patterns.md # Declarative UI patterns
175
+ ├── appkit-integration.md # Using AppKit with SwiftUI
176
+ ├── concurrency-patterns.md # Async/await, actors, structured concurrency
177
+ ├── data-persistence.md # Storage strategies
178
+ ├── networking.md # URLSession, async networking
179
+ ├── system-apis.md # macOS-specific frameworks
180
+ ├── testing-tdd.md # Testing patterns
181
+ ├── testing-debugging.md # Debugging tools and techniques
182
+ ├── performance.md # Profiling, optimization
183
+ ├── design-system.md # Platform conventions
184
+ ├── macos-polish.md # Native feel, accessibility
185
+ ├── security-code-signing.md # Signing, notarization
186
+ └── project-scaffolding.md # CLI-based setup
187
+ ```
188
+
189
+ **For each reference file:**
190
+ - Pure XML structure
191
+ - Decision trees: "If X, use Y. If Z, use A instead."
192
+ - Comparison tables: Library vs Library (speed, features, learning curve)
193
+ - Code examples showing patterns
194
+ - "When to use" guidance
195
+ - Platform-specific considerations
196
+ - Current versions and compatibility
197
+
198
+ ## Step 6: Create SKILL.md
199
+
200
+ Domain expertise skills use router pattern with essential principles:
201
+
202
+ ```yaml
203
+ ---
204
+ name: build-{domain-name}
205
+ description: Build {domain things} from scratch through shipping. Full lifecycle - build, debug, test, optimize, ship. {Any specific constraints like "CLI-only, no IDE"}.
206
+ ---
207
+
208
+ <essential_principles>
209
+ ## How {This Domain} Works
210
+
211
+ {Domain-specific principles that ALWAYS apply}
212
+
213
+ ### 1. {First Principle}
214
+ {Critical practice that can't be skipped}
215
+
216
+ ### 2. {Second Principle}
217
+ {Another fundamental practice}
218
+
219
+ ### 3. {Third Principle}
220
+ {Core workflow pattern}
221
+ </essential_principles>
222
+
223
+ <intake>
224
+ **Ask the user:**
225
+
226
+ What would you like to do?
227
+ 1. Build a new {thing}
228
+ 2. Debug an existing {thing}
229
+ 3. Add a feature
230
+ 4. Write/run tests
231
+ 5. Optimize performance
232
+ 6. Ship/release
233
+ 7. Something else
234
+
235
+ **Then read the matching workflow from `workflows/` and follow it.**
236
+ </intake>
237
+
238
+ <routing>
239
+ | Response | Workflow |
240
+ |----------|----------|
241
+ | 1, "new", "create", "build", "start" | `workflows/build-new-{thing}.md` |
242
+ | 2, "broken", "fix", "debug", "crash", "bug" | `workflows/debug-{thing}.md` |
243
+ | 3, "add", "feature", "implement", "change" | `workflows/add-feature.md` |
244
+ | 4, "test", "tests", "TDD", "coverage" | `workflows/write-tests.md` |
245
+ | 5, "slow", "optimize", "performance", "fast" | `workflows/optimize-performance.md` |
246
+ | 6, "ship", "release", "deploy", "publish" | `workflows/ship-{thing}.md` |
247
+ | 7, other | Clarify, then select workflow or references |
248
+ </routing>
249
+
250
+ <verification_loop>
251
+ ## After Every Change
252
+
253
+ {Domain-specific verification steps}
254
+
255
+ Example for compiled languages:
256
+ ```bash
257
+ # 1. Does it build?
258
+ {build command}
259
+
260
+ # 2. Do tests pass?
261
+ {test command}
262
+
263
+ # 3. Does it run?
264
+ {run command}
265
+ ```
266
+
267
+ Report to the user:
268
+ - "Build: ✓"
269
+ - "Tests: X pass, Y fail"
270
+ - "Ready for you to check [specific thing]"
271
+ </verification_loop>
272
+
273
+ <reference_index>
274
+ ## Domain Knowledge
275
+
276
+ All in `references/`:
277
+
278
+ **Architecture:** {list files}
279
+ **{Domain Area}:** {list files}
280
+ **{Domain Area}:** {list files}
281
+ **Development:** {list files}
282
+ **Shipping:** {list files}
283
+ </reference_index>
284
+
285
+ <workflows_index>
286
+ ## Workflows
287
+
288
+ All in `workflows/`:
289
+
290
+ | File | Purpose |
291
+ |------|---------|
292
+ | build-new-{thing}.md | Create new {thing} from scratch |
293
+ | debug-{thing}.md | Find and fix bugs |
294
+ | add-feature.md | Add to existing {thing} |
295
+ | write-tests.md | Write and run tests |
296
+ | optimize-performance.md | Profile and speed up |
297
+ | ship-{thing}.md | Deploy/distribute |
298
+ </workflows_index>
299
+ ```
300
+
301
+ ## Step 7: Write Workflows
302
+
303
+ For EACH workflow identified in Step 3:
304
+
305
+ ### Workflow Template
306
+
307
+ ```markdown
308
+ # Workflow: {Workflow Name}
309
+
310
+ <required_reading>
311
+ **Read these reference files NOW before {doing the task}:**
312
+ 1. references/{relevant-file}.md
313
+ 2. references/{another-relevant-file}.md
314
+ 3. references/{third-relevant-file}.md
315
+ </required_reading>
316
+
317
+ <process>
318
+ ## Step 1: {First Action}
319
+
320
+ {What to do}
321
+
322
+ ## Step 2: {Second Action}
323
+
324
+ {What to do - actual implementation steps}
325
+
326
+ ## Step 3: {Third Action}
327
+
328
+ {What to do}
329
+
330
+ ## Step 4: Verify
331
+
332
+ {How to prove it works}
333
+
334
+ ```bash
335
+ {verification commands}
336
+ ```
337
+ </process>
338
+
339
+ <anti_patterns>
340
+ Avoid:
341
+ - {Common mistake 1}
342
+ - {Common mistake 2}
343
+ - {Common mistake 3}
344
+ </anti_patterns>
345
+
346
+ <success_criteria>
347
+ A well-{completed task}:
348
+ - {Criterion 1}
349
+ - {Criterion 2}
350
+ - {Criterion 3}
351
+ - Builds/runs without errors
352
+ - Tests pass
353
+ - Feels {native/professional/correct}
354
+ </success_criteria>
355
+ ```
356
+
357
+ **Key workflow characteristics:**
358
+ - Starts with required_reading (which references to load)
359
+ - Contains actual implementation steps (not just "read references")
360
+ - Includes verification steps
361
+ - Has success criteria
362
+ - Documents anti-patterns
363
+
364
+ ## Step 8: Write Comprehensive References
365
+
366
+ For EACH reference file identified in Step 5:
367
+
368
+ ### Structure Template
369
+
370
+ ```xml
371
+ <overview>
372
+ Brief introduction to this domain area
373
+ </overview>
374
+
375
+ <options>
376
+ ## Available Approaches/Libraries
377
+
378
+ <option name="Library A">
379
+ **When to use:** [specific scenarios]
380
+ **Strengths:** [what it's best at]
381
+ **Weaknesses:** [what it's not good for]
382
+ **Current status:** v{version}, actively maintained
383
+ **Learning curve:** [easy/medium/hard]
384
+
385
+ ```code
386
+ # Example usage
387
+ ```
388
+ </option>
389
+
390
+ <option name="Library B">
391
+ [Same structure]
392
+ </option>
393
+ </options>
394
+
395
+ <decision_tree>
396
+ ## Choosing the Right Approach
397
+
398
+ **If you need [X]:** Use [Library A]
399
+ **If you need [Y]:** Use [Library B]
400
+ **If you have [constraint Z]:** Use [Library C]
401
+
402
+ **Avoid [Library D] if:** [specific scenarios]
403
+ </decision_tree>
404
+
405
+ <patterns>
406
+ ## Common Patterns
407
+
408
+ <pattern name="Pattern Name">
409
+ **Use when:** [scenario]
410
+ **Implementation:** [code example]
411
+ **Considerations:** [trade-offs]
412
+ </pattern>
413
+ </patterns>
414
+
415
+ <anti_patterns>
416
+ ## What NOT to Do
417
+
418
+ <anti_pattern name="Common Mistake">
419
+ **Problem:** [what people do wrong]
420
+ **Why it's bad:** [consequences]
421
+ **Instead:** [correct approach]
422
+ </anti_pattern>
423
+ </anti_patterns>
424
+
425
+ <platform_considerations>
426
+ ## Platform-Specific Notes
427
+
428
+ **Windows:** [considerations]
429
+ **macOS:** [considerations]
430
+ **Linux:** [considerations]
431
+ **Mobile:** [if applicable]
432
+ </platform_considerations>
433
+ ```
434
+
435
+ ### Quality Standards
436
+
437
+ Each reference must include:
438
+ - **Current information** (verify dates)
439
+ - **Multiple options** (not just one library)
440
+ - **Decision guidance** (when to use each)
441
+ - **Real examples** (working code, not pseudocode)
442
+ - **Trade-offs** (no silver bullets)
443
+ - **Anti-patterns** (what NOT to do)
444
+
445
+ ### Common Reference Files
446
+
447
+ Most domains need:
448
+ - **architecture.md** - How to structure projects
449
+ - **libraries.md** - Ecosystem overview with comparisons
450
+ - **patterns.md** - Design patterns specific to domain
451
+ - **testing-debugging.md** - How to verify correctness
452
+ - **performance.md** - Optimization strategies
453
+ - **deployment.md** - How to ship/distribute
454
+ - **anti-patterns.md** - Common mistakes consolidated
455
+
456
+ ## Step 9: Validate Completeness
457
+
458
+ ### Completeness Checklist
459
+
460
+ Ask: "Could a user build a professional {domain thing} from scratch through shipping using just this skill?"
461
+
462
+ **Must answer YES to:**
463
+ - [ ] All major libraries/frameworks covered?
464
+ - [ ] All architectural approaches documented?
465
+ - [ ] Complete lifecycle addressed (build → debug → test → optimize → ship)?
466
+ - [ ] Platform-specific considerations included?
467
+ - [ ] "When to use X vs Y" guidance provided?
468
+ - [ ] Common pitfalls documented?
469
+ - [ ] Current as of 2024-2025?
470
+ - [ ] Workflows actually execute tasks (not just reference knowledge)?
471
+ - [ ] Each workflow specifies which references to read?
472
+
473
+ **Specific gaps to check:**
474
+ - [ ] Testing strategy covered?
475
+ - [ ] Debugging/profiling tools listed?
476
+ - [ ] Deployment/distribution methods documented?
477
+ - [ ] Performance optimization addressed?
478
+ - [ ] Security considerations (if applicable)?
479
+ - [ ] Asset/resource management (if applicable)?
480
+ - [ ] Networking (if applicable)?
481
+
482
+ ### Dual-Purpose Test
483
+
484
+ Test both use cases:
485
+
486
+ **Direct invocation:** "Can a user invoke this skill and build something?"
487
+ - Intake routes to appropriate workflow
488
+ - Workflow loads relevant references
489
+ - Workflow provides implementation steps
490
+ - Success criteria are clear
491
+
492
+ **Knowledge reference:** "Can create-plans load references to plan a project?"
493
+ - References contain decision guidance
494
+ - All options compared
495
+ - Complete lifecycle covered
496
+ - Architecture patterns documented
497
+
498
+ ## Step 10: Create Directory and Files
499
+
500
+ ```bash
501
+ # Create structure
502
+ mkdir -p ~/.claude/skills/expertise/{domain-name}
503
+ mkdir -p ~/.claude/skills/expertise/{domain-name}/workflows
504
+ mkdir -p ~/.claude/skills/expertise/{domain-name}/references
505
+
506
+ # Write SKILL.md
507
+ # Write all workflow files
508
+ # Write all reference files
509
+
510
+ # Verify structure
511
+ ls -R ~/.claude/skills/expertise/{domain-name}
512
+ ```
513
+
514
+ ## Step 11: Document in create-plans
515
+
516
+ Update `~/.claude/skills/create-plans/SKILL.md` to reference this new domain:
517
+
518
+ Add to the domain inference table:
519
+ ```markdown
520
+ | "{keyword}", "{domain term}" | expertise/{domain-name} |
521
+ ```
522
+
523
+ So create-plans can auto-detect and offer to load it.
524
+
525
+ ## Step 12: Final Quality Check
526
+
527
+ Review entire skill:
528
+
529
+ **SKILL.md:**
530
+ - [ ] Name matches directory (build-{domain-name})
531
+ - [ ] Description explains it builds things from scratch through shipping
532
+ - [ ] Essential principles inline (always loaded)
533
+ - [ ] Intake asks what user wants to do
534
+ - [ ] Routing maps to workflows
535
+ - [ ] Reference index complete and organized
536
+ - [ ] Workflows index complete
537
+
538
+ **Workflows:**
539
+ - [ ] Each workflow starts with required_reading
540
+ - [ ] Each workflow has actual implementation steps
541
+ - [ ] Each workflow has verification steps
542
+ - [ ] Each workflow has success criteria
543
+ - [ ] Workflows cover full lifecycle (build, debug, test, optimize, ship)
544
+
545
+ **References:**
546
+ - [ ] Pure XML structure (no markdown headings)
547
+ - [ ] Decision guidance in every file
548
+ - [ ] Current versions verified
549
+ - [ ] Code examples work
550
+ - [ ] Anti-patterns documented
551
+ - [ ] Platform considerations included
552
+
553
+ **Completeness:**
554
+ - [ ] A professional practitioner would find this comprehensive
555
+ - [ ] No major libraries/patterns missing
556
+ - [ ] Full lifecycle covered
557
+ - [ ] Passes the "build from scratch through shipping" test
558
+ - [ ] Can be invoked directly by users
559
+ - [ ] Can be loaded by create-plans for knowledge
560
+
561
+ </process>
562
+
563
+ <success_criteria>
564
+ Domain expertise skill is complete when:
565
+
566
+ - [ ] Comprehensive research completed (5+ web searches)
567
+ - [ ] All sources verified for currency (2024-2025)
568
+ - [ ] Knowledge organized by domain areas (not arbitrary)
569
+ - [ ] Essential principles in SKILL.md (always loaded)
570
+ - [ ] Intake routes to appropriate workflows
571
+ - [ ] Each workflow has required_reading + implementation steps + verification
572
+ - [ ] Each reference has decision trees and comparisons
573
+ - [ ] Anti-patterns documented throughout
574
+ - [ ] Full lifecycle covered (build → debug → test → optimize → ship)
575
+ - [ ] Platform-specific considerations included
576
+ - [ ] Located in ~/.claude/skills/expertise/{domain-name}/
577
+ - [ ] Referenced in create-plans domain inference table
578
+ - [ ] Passes dual-purpose test: Can be invoked directly AND loaded for knowledge
579
+ - [ ] User can build something professional from scratch through shipping
580
+ </success_criteria>
581
+
582
+ <anti_patterns>
583
+ **DON'T:**
584
+ - Copy tutorial content without verification
585
+ - Include only "getting started" material
586
+ - Skip the "when NOT to use" guidance
587
+ - Forget to check if libraries are still maintained
588
+ - Organize by document type instead of domain concerns
589
+ - Make it knowledge-only with no execution workflows
590
+ - Skip verification steps in workflows
591
+ - Include outdated content from old blog posts
592
+ - Skip decision trees and comparisons
593
+ - Create workflows that just say "read the references"
594
+
595
+ **DO:**
596
+ - Verify everything is current
597
+ - Include complete lifecycle (build → ship)
598
+ - Provide decision guidance
599
+ - Document anti-patterns
600
+ - Make workflows execute real tasks
601
+ - Start workflows with required_reading
602
+ - Include verification in every workflow
603
+ - Make it exhaustive, not minimal
604
+ - Test both direct invocation and knowledge reference use cases
605
+ </anti_patterns>