claude-code-workflow 6.3.48 โ†’ 6.3.49

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 (211) hide show
  1. package/.claude/CLAUDE.md +6 -8
  2. package/.claude/agents/action-planning-agent.md +28 -45
  3. package/.claude/agents/cli-lite-planning-agent.md +93 -1
  4. package/.claude/agents/code-developer.md +144 -27
  5. package/.claude/commands/ccw-coordinator.md +175 -21
  6. package/.claude/commands/ccw-debug.md +832 -0
  7. package/.claude/commands/ccw.md +90 -9
  8. package/.claude/commands/cli/cli-init.md +1 -0
  9. package/.claude/commands/issue/convert-to-plan.md +718 -0
  10. package/.claude/commands/issue/from-brainstorm.md +382 -0
  11. package/.claude/commands/memory/tips.md +332 -0
  12. package/.claude/commands/workflow/analyze-with-file.md +804 -0
  13. package/.claude/commands/workflow/brainstorm/auto-parallel.md +18 -43
  14. package/.claude/commands/workflow/brainstorm/role-analysis.md +705 -0
  15. package/.claude/commands/workflow/brainstorm-with-file.md +1153 -0
  16. package/.claude/commands/workflow/debug-with-file.md +7 -5
  17. package/.claude/commands/workflow/execute.md +6 -4
  18. package/.claude/commands/workflow/lite-plan.md +2 -2
  19. package/.claude/commands/workflow/plan-verify.md +162 -327
  20. package/.claude/commands/workflow/plan.md +162 -26
  21. package/.claude/commands/workflow/replan.md +78 -2
  22. package/.claude/commands/workflow/{review-fix.md โ†’ review-cycle-fix.md} +6 -6
  23. package/.claude/commands/workflow/review-module-cycle.md +2 -2
  24. package/.claude/commands/workflow/review-session-cycle.md +2 -2
  25. package/.claude/commands/workflow/tools/conflict-resolution.md +16 -26
  26. package/.claude/commands/workflow/tools/context-gather.md +81 -118
  27. package/.claude/commands/workflow/tools/task-generate-agent.md +94 -10
  28. package/.claude/skills/ccw-help/command.json +4 -4
  29. package/.claude/skills/lite-skill-generator/SKILL.md +650 -0
  30. package/.claude/skills/lite-skill-generator/templates/simple-skill.md +68 -0
  31. package/.claude/skills/lite-skill-generator/templates/style-guide.md +64 -0
  32. package/.claude/skills/skill-generator/SKILL.md +277 -85
  33. package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +4 -15
  34. package/.claude/skills/skill-generator/phases/02-structure-generation.md +72 -17
  35. package/.claude/skills/skill-generator/phases/03-phase-generation.md +218 -51
  36. package/.claude/skills/skill-generator/phases/04-specs-templates.md +111 -41
  37. package/.claude/skills/skill-generator/phases/05-validation.md +139 -56
  38. package/.claude/skills/skill-generator/templates/autonomous-action.md +78 -268
  39. package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +14 -0
  40. package/.claude/skills/skill-generator/templates/code-analysis-action.md +12 -0
  41. package/.claude/skills/skill-generator/templates/llm-action.md +12 -0
  42. package/.claude/skills/skill-generator/templates/script-template.md +368 -0
  43. package/.claude/skills/skill-generator/templates/sequential-phase.md +14 -0
  44. package/.claude/skills/skill-generator/templates/skill-md.md +14 -0
  45. package/.claude/skills/skill-tuning/SKILL.md +130 -266
  46. package/.claude/skills/skill-tuning/phases/orchestrator.md +95 -283
  47. package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +90 -198
  48. package/.claude/skills/skill-tuning/specs/tuning-strategies.md +193 -1345
  49. package/.claude/workflows/cli-templates/schemas/plan-verify-agent-schema.json +47 -0
  50. package/.claude/workflows/cli-templates/schemas/verify-json-schema.json +158 -0
  51. package/.claude/workflows/cli-tools-usage.md +1 -1
  52. package/.codex/AGENTS.md +1 -3
  53. package/.codex/prompts/analyze-with-file.md +607 -0
  54. package/.codex/prompts/brainstorm-to-cycle.md +455 -0
  55. package/.codex/prompts/brainstorm-with-file.md +933 -0
  56. package/.codex/prompts/debug-with-file.md +15 -20
  57. package/.codex/skills/ccw-cli-tools/SKILL.md +559 -0
  58. package/ccw/dist/commands/cli.d.ts.map +1 -1
  59. package/ccw/dist/commands/cli.js +29 -5
  60. package/ccw/dist/commands/cli.js.map +1 -1
  61. package/ccw/dist/commands/issue.d.ts +2 -0
  62. package/ccw/dist/commands/issue.d.ts.map +1 -1
  63. package/ccw/dist/commands/issue.js +62 -20
  64. package/ccw/dist/commands/issue.js.map +1 -1
  65. package/ccw/dist/config/litellm-api-config-manager.d.ts.map +1 -1
  66. package/ccw/dist/config/litellm-api-config-manager.js +5 -3
  67. package/ccw/dist/config/litellm-api-config-manager.js.map +1 -1
  68. package/ccw/dist/config/litellm-provider-models.d.ts +73 -0
  69. package/ccw/dist/config/litellm-provider-models.d.ts.map +1 -0
  70. package/ccw/dist/config/litellm-provider-models.js +172 -0
  71. package/ccw/dist/config/litellm-provider-models.js.map +1 -0
  72. package/ccw/dist/config/provider-models.d.ts +25 -51
  73. package/ccw/dist/config/provider-models.d.ts.map +1 -1
  74. package/ccw/dist/config/provider-models.js +84 -149
  75. package/ccw/dist/config/provider-models.js.map +1 -1
  76. package/ccw/dist/config/storage-paths.d.ts.map +1 -1
  77. package/ccw/dist/config/storage-paths.js +23 -5
  78. package/ccw/dist/config/storage-paths.js.map +1 -1
  79. package/ccw/dist/core/auth/csrf-middleware.js +3 -3
  80. package/ccw/dist/core/auth/csrf-middleware.js.map +1 -1
  81. package/ccw/dist/core/dashboard-generator.d.ts.map +1 -1
  82. package/ccw/dist/core/dashboard-generator.js +3 -1
  83. package/ccw/dist/core/dashboard-generator.js.map +1 -1
  84. package/ccw/dist/core/routes/claude-routes.d.ts.map +1 -1
  85. package/ccw/dist/core/routes/claude-routes.js +206 -14
  86. package/ccw/dist/core/routes/claude-routes.js.map +1 -1
  87. package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
  88. package/ccw/dist/core/routes/cli-routes.js.map +1 -1
  89. package/ccw/dist/core/routes/commands-routes.d.ts +7 -0
  90. package/ccw/dist/core/routes/commands-routes.d.ts.map +1 -0
  91. package/ccw/dist/core/routes/commands-routes.js +480 -0
  92. package/ccw/dist/core/routes/commands-routes.js.map +1 -0
  93. package/ccw/dist/core/routes/model-routes.d.ts +11 -0
  94. package/ccw/dist/core/routes/model-routes.d.ts.map +1 -0
  95. package/ccw/dist/core/routes/model-routes.js +112 -0
  96. package/ccw/dist/core/routes/model-routes.js.map +1 -0
  97. package/ccw/dist/core/routes/nav-status-routes.d.ts.map +1 -1
  98. package/ccw/dist/core/routes/nav-status-routes.js +84 -1
  99. package/ccw/dist/core/routes/nav-status-routes.js.map +1 -1
  100. package/ccw/dist/core/routes/provider-routes.d.ts +11 -0
  101. package/ccw/dist/core/routes/provider-routes.d.ts.map +1 -0
  102. package/ccw/dist/core/routes/provider-routes.js +67 -0
  103. package/ccw/dist/core/routes/provider-routes.js.map +1 -0
  104. package/ccw/dist/core/routes/skills-routes.d.ts.map +1 -1
  105. package/ccw/dist/core/routes/skills-routes.js +219 -7
  106. package/ccw/dist/core/routes/skills-routes.js.map +1 -1
  107. package/ccw/dist/core/routes/system-routes.d.ts.map +1 -1
  108. package/ccw/dist/core/routes/system-routes.js +58 -6
  109. package/ccw/dist/core/routes/system-routes.js.map +1 -1
  110. package/ccw/dist/core/server.d.ts.map +1 -1
  111. package/ccw/dist/core/server.js +13 -0
  112. package/ccw/dist/core/server.js.map +1 -1
  113. package/ccw/dist/mcp-server/index.js +2 -2
  114. package/ccw/dist/mcp-server/index.js.map +1 -1
  115. package/ccw/dist/tools/claude-cli-tools.d.ts +48 -11
  116. package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
  117. package/ccw/dist/tools/claude-cli-tools.js +146 -50
  118. package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
  119. package/ccw/dist/tools/cli-config-manager.d.ts +1 -13
  120. package/ccw/dist/tools/cli-config-manager.d.ts.map +1 -1
  121. package/ccw/dist/tools/cli-config-manager.js +3 -27
  122. package/ccw/dist/tools/cli-config-manager.js.map +1 -1
  123. package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
  124. package/ccw/dist/tools/cli-executor-core.js +7 -2
  125. package/ccw/dist/tools/cli-executor-core.js.map +1 -1
  126. package/ccw/dist/tools/cli-executor-state.d.ts.map +1 -1
  127. package/ccw/dist/tools/cli-history-store.d.ts +11 -0
  128. package/ccw/dist/tools/cli-history-store.d.ts.map +1 -1
  129. package/ccw/dist/tools/cli-history-store.js +82 -2
  130. package/ccw/dist/tools/cli-history-store.js.map +1 -1
  131. package/ccw/dist/tools/command-registry.d.ts +7 -0
  132. package/ccw/dist/tools/command-registry.d.ts.map +1 -1
  133. package/ccw/dist/tools/command-registry.js +14 -1
  134. package/ccw/dist/tools/command-registry.js.map +1 -1
  135. package/ccw/dist/tools/generate-module-docs.d.ts.map +1 -1
  136. package/ccw/dist/tools/generate-module-docs.js +11 -7
  137. package/ccw/dist/tools/generate-module-docs.js.map +1 -1
  138. package/ccw/dist/tools/litellm-executor.d.ts +1 -0
  139. package/ccw/dist/tools/litellm-executor.d.ts.map +1 -1
  140. package/ccw/dist/tools/litellm-executor.js +11 -9
  141. package/ccw/dist/tools/litellm-executor.js.map +1 -1
  142. package/ccw/dist/types/skill-types.d.ts +97 -0
  143. package/ccw/dist/types/skill-types.d.ts.map +1 -0
  144. package/ccw/dist/types/skill-types.js +6 -0
  145. package/ccw/dist/types/skill-types.js.map +1 -0
  146. package/ccw/src/commands/cli.ts +36 -5
  147. package/ccw/src/commands/issue.ts +81 -26
  148. package/ccw/src/config/litellm-api-config-manager.ts +5 -3
  149. package/ccw/src/config/litellm-provider-models.ts +222 -0
  150. package/ccw/src/config/provider-models.ts +91 -190
  151. package/ccw/src/config/storage-paths.ts +20 -5
  152. package/ccw/src/core/auth/csrf-middleware.ts +3 -3
  153. package/ccw/src/core/dashboard-generator.ts +3 -1
  154. package/ccw/src/core/routes/claude-routes.ts +233 -15
  155. package/ccw/src/core/routes/cli-routes.ts +2 -3
  156. package/ccw/src/core/routes/commands-routes.ts +620 -0
  157. package/ccw/src/core/routes/nav-status-routes.ts +95 -1
  158. package/ccw/src/core/routes/provider-routes.ts +78 -0
  159. package/ccw/src/core/routes/skills-routes.ts +266 -45
  160. package/ccw/src/core/routes/system-routes.ts +102 -50
  161. package/ccw/src/core/server.ts +13 -0
  162. package/ccw/src/mcp-server/index.ts +2 -2
  163. package/ccw/src/templates/dashboard-css/18-cli-settings.css +35 -0
  164. package/ccw/src/templates/dashboard-css/37-commands.css +193 -0
  165. package/ccw/src/templates/dashboard-js/components/navigation.js +4 -0
  166. package/ccw/src/templates/dashboard-js/i18n.js +116 -0
  167. package/ccw/src/templates/dashboard-js/views/cli-manager.js +249 -4
  168. package/ccw/src/templates/dashboard-js/views/commands-manager.js +503 -0
  169. package/ccw/src/templates/dashboard-js/views/issue-manager.js +7 -7
  170. package/ccw/src/templates/dashboard-js/views/mcp-manager.js +2 -7
  171. package/ccw/src/templates/dashboard-js/views/skills-manager.js +164 -23
  172. package/ccw/src/templates/dashboard.html +7 -0
  173. package/ccw/src/tools/claude-cli-tools.ts +170 -56
  174. package/ccw/src/tools/cli-config-manager.ts +2 -33
  175. package/ccw/src/tools/cli-executor-core.ts +8 -2
  176. package/ccw/src/tools/cli-history-store.ts +92 -2
  177. package/ccw/src/tools/command-registry.ts +16 -1
  178. package/ccw/src/tools/generate-module-docs.ts +11 -7
  179. package/ccw/src/tools/litellm-executor.ts +13 -9
  180. package/ccw/src/types/skill-types.ts +99 -0
  181. package/package.json +1 -1
  182. package/.claude/commands/enhance-prompt.md +0 -93
  183. package/.claude/commands/memory/code-map-memory.md +0 -687
  184. package/.claude/commands/memory/docs.md +0 -615
  185. package/.claude/commands/memory/load-skill-memory.md +0 -182
  186. package/.claude/commands/memory/skill-memory.md +0 -525
  187. package/.claude/commands/memory/swagger-docs.md +0 -773
  188. package/.claude/commands/memory/tech-research-rules.md +0 -310
  189. package/.claude/commands/memory/workflow-skill-memory.md +0 -517
  190. package/.claude/commands/task/breakdown.md +0 -208
  191. package/.claude/commands/task/create.md +0 -152
  192. package/.claude/commands/task/execute.md +0 -270
  193. package/.claude/commands/task/replan.md +0 -441
  194. package/.claude/commands/version.md +0 -254
  195. package/.claude/commands/workflow/action-plan-verify.md +0 -485
  196. package/.claude/commands/workflow/brainstorm/api-designer.md +0 -587
  197. package/.claude/commands/workflow/brainstorm/data-architect.md +0 -220
  198. package/.claude/commands/workflow/brainstorm/product-manager.md +0 -200
  199. package/.claude/commands/workflow/brainstorm/product-owner.md +0 -200
  200. package/.claude/commands/workflow/brainstorm/scrum-master.md +0 -200
  201. package/.claude/commands/workflow/brainstorm/subject-matter-expert.md +0 -200
  202. package/.claude/commands/workflow/brainstorm/system-architect.md +0 -389
  203. package/.claude/commands/workflow/brainstorm/ui-designer.md +0 -221
  204. package/.claude/commands/workflow/brainstorm/ux-expert.md +0 -221
  205. package/.claude/commands/workflow/debug.md +0 -331
  206. package/.claude/commands/workflow/develop-with-file.md +0 -1044
  207. package/.claude/skills/ccw-loop/README.md +0 -303
  208. package/.claude/skills/skill-generator/templates/script-bash.md +0 -277
  209. package/.claude/skills/skill-generator/templates/script-python.md +0 -198
  210. package/.codex/prompts/debug.md +0 -318
  211. package/ccw/src/core/routes/mcp-routes.ts.backup +0 -549
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: {{SKILL_NAME}}
3
+ description: {{SKILL_DESCRIPTION}}
4
+ allowed-tools: {{ALLOWED_TOOLS}}
5
+ ---
6
+
7
+ # {{SKILL_TITLE}}
8
+
9
+ {{SKILL_DESCRIPTION}}
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
15
+ โ”‚ {{SKILL_TITLE}} โ”‚
16
+ โ”‚ โ”‚
17
+ โ”‚ Input โ†’ {{PHASE_1}} โ†’ {{PHASE_2}} โ†’ Output โ”‚
18
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
19
+ ```
20
+
21
+ ## Execution Flow
22
+
23
+ ```javascript
24
+ async function {{SKILL_FUNCTION}}(input) {
25
+ // Phase 1: {{PHASE_1}}
26
+ const prepared = await phase1(input);
27
+
28
+ // Phase 2: {{PHASE_2}}
29
+ const result = await phase2(prepared);
30
+
31
+ return result;
32
+ }
33
+ ```
34
+
35
+ ### Phase 1: {{PHASE_1}}
36
+
37
+ ```javascript
38
+ async function phase1(input) {
39
+ // TODO: Implement {{PHASE_1_LOWER}} logic
40
+ return output;
41
+ }
42
+ ```
43
+
44
+ ### Phase 2: {{PHASE_2}}
45
+
46
+ ```javascript
47
+ async function phase2(input) {
48
+ // TODO: Implement {{PHASE_2_LOWER}} logic
49
+ return output;
50
+ }
51
+ ```
52
+
53
+ ## Usage
54
+
55
+ ```bash
56
+ /skill:{{SKILL_NAME}} "input description"
57
+ ```
58
+
59
+ ## Examples
60
+
61
+ **Basic Usage**:
62
+ ```
63
+ User: "{{EXAMPLE_INPUT}}"
64
+ {{SKILL_NAME}}:
65
+ โ†’ Phase 1: {{PHASE_1_ACTION}}
66
+ โ†’ Phase 2: {{PHASE_2_ACTION}}
67
+ โ†’ Output: {{EXAMPLE_OUTPUT}}
68
+ ```
@@ -0,0 +1,64 @@
1
+ # Style Guide Template
2
+
3
+ Generated by lite-skill-generator style analysis phase.
4
+
5
+ ## Detected Patterns
6
+
7
+ ### Structural Patterns
8
+
9
+ | Pattern | Detected | Recommendation |
10
+ |---------|----------|----------------|
11
+ | YAML Frontmatter | {{HAS_FRONTMATTER}} | {{FRONTMATTER_REC}} |
12
+ | ASCII Diagrams | {{HAS_DIAGRAMS}} | {{DIAGRAMS_REC}} |
13
+ | Code Blocks | {{HAS_CODE_BLOCKS}} | {{CODE_BLOCKS_REC}} |
14
+ | Phase Structure | {{PHASE_STRUCTURE}} | {{PHASE_REC}} |
15
+
16
+ ### Language Patterns
17
+
18
+ | Pattern | Value | Notes |
19
+ |---------|-------|-------|
20
+ | Instruction Style | {{INSTRUCTION_STYLE}} | imperative/declarative/procedural |
21
+ | Pseudocode Usage | {{PSEUDOCODE_USAGE}} | functional/imperative/none |
22
+ | Verbosity Level | {{VERBOSITY}} | concise/detailed/verbose |
23
+ | Common Terms | {{TERMINOLOGY}} | domain-specific vocabulary |
24
+
25
+ ### Organization Patterns
26
+
27
+ | Pattern | Value |
28
+ |---------|-------|
29
+ | Phase Count | {{PHASE_COUNT}} |
30
+ | Example Density | {{EXAMPLE_DENSITY}} |
31
+ | Template Usage | {{TEMPLATE_USAGE}} |
32
+
33
+ ## Style Compliance Checklist
34
+
35
+ - [ ] YAML frontmatter with name, description, allowed-tools
36
+ - [ ] Architecture diagram (if pattern detected)
37
+ - [ ] Execution flow section with pseudocode
38
+ - [ ] Phase sections (sequential numbered)
39
+ - [ ] Usage examples section
40
+ - [ ] README.md for external documentation
41
+
42
+ ## Reference Skills Analyzed
43
+
44
+ {{#REFERENCES}}
45
+ - `{{REF_PATH}}`: {{REF_NOTES}}
46
+ {{/REFERENCES}}
47
+
48
+ ## Generated Configuration
49
+
50
+ ```json
51
+ {
52
+ "style": {
53
+ "structure": "{{STRUCTURE_TYPE}}",
54
+ "language": "{{LANGUAGE_TYPE}}",
55
+ "organization": "{{ORG_TYPE}}"
56
+ },
57
+ "recommendations": {
58
+ "usePseudocode": {{USE_PSEUDOCODE}},
59
+ "includeDiagrams": {{INCLUDE_DIAGRAMS}},
60
+ "verbosityLevel": "{{VERBOSITY}}",
61
+ "phaseCount": {{PHASE_COUNT}}
62
+ }
63
+ }
64
+ ```
@@ -12,26 +12,24 @@ Meta-skill for creating new Claude Code skills with configurable execution modes
12
12
 
13
13
  ```
14
14
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
15
- โ”‚ Skill Generator Architecture โ”‚
16
- โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
15
+ โ”‚ Skill Generator โ”‚
17
16
  โ”‚ โ”‚
18
- โ”‚ โš ๏ธ Phase 0: Specification โ†’ ้˜…่ฏปๅนถ็†่งฃ่ฎพ่ฎก่ง„่Œƒ (ๅผบๅˆถๅ‰็ฝฎ) โ”‚
19
- โ”‚ Study SKILL-DESIGN-SPEC.md + ๆจกๆฟ โ”‚
20
- โ”‚ โ†“ โ”‚
21
- โ”‚ Phase 1: Requirements โ†’ skill-config.json โ”‚
22
- โ”‚ Discovery (name, type, mode, agents) โ”‚
23
- โ”‚ โ†“ โ”‚
24
- โ”‚ Phase 2: Structure โ†’ ็›ฎๅฝ•็ป“ๆž„ + ๆ ธๅฟƒๆ–‡ไปถ้ชจๆžถ โ”‚
25
- โ”‚ Generation โ”‚
26
- โ”‚ โ†“ โ”‚
27
- โ”‚ Phase 3: Phase โ†’ phases/*.md (ๆ นๆฎ mode ็”Ÿๆˆ) โ”‚
28
- โ”‚ Generation Sequential | Autonomous โ”‚
29
- โ”‚ โ†“ โ”‚
30
- โ”‚ Phase 4: Specs & โ†’ specs/*.md + templates/*.md โ”‚
31
- โ”‚ Templates โ”‚
32
- โ”‚ โ†“ โ”‚
33
- โ”‚ Phase 5: Validation โ†’ ้ชŒ่ฏๅฎŒๆ•ดๆ€ง + ็”Ÿๆˆไฝฟ็”จ่ฏดๆ˜Ž โ”‚
34
- โ”‚ & Documentation โ”‚
17
+ โ”‚ Input: User Request (skill name, purpose, mode) โ”‚
18
+ โ”‚ โ†“ โ”‚
19
+ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
20
+ โ”‚ โ”‚ Phase 0-5: Sequential Pipeline โ”‚ โ”‚
21
+ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ” โ”‚ โ”‚
22
+ โ”‚ โ”‚ โ”‚ P0 โ”‚โ†’โ”‚ P1 โ”‚โ†’โ”‚ P2 โ”‚โ†’โ”‚ P3 โ”‚โ†’โ”‚ P4 โ”‚โ†’โ”‚ P5 โ”‚ โ”‚ โ”‚
23
+ โ”‚ โ”‚ โ”‚Specโ”‚ โ”‚Req โ”‚ โ”‚Dir โ”‚ โ”‚Gen โ”‚ โ”‚Specโ”‚ โ”‚Val โ”‚ โ”‚ โ”‚
24
+ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”ฌโ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚
25
+ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚
26
+ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ” โ”‚ โ”‚
27
+ โ”‚ โ”‚ โ†“ โ†“ โ”‚ โ”‚
28
+ โ”‚ โ”‚ Sequential Autonomous โ”‚ โ”‚
29
+ โ”‚ โ”‚ (phases/) (actions/) โ”‚ โ”‚
30
+ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
31
+ โ”‚ โ†“ โ”‚
32
+ โ”‚ Output: .claude/skills/{skill-name}/ (complete package) โ”‚
35
33
  โ”‚ โ”‚
36
34
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
37
35
  ```
@@ -107,8 +105,7 @@ Phase 01 โ†’ Phase 02 โ†’ Phase 03 โ†’ ... โ†’ Phase N
107
105
  | [templates/autonomous-action.md](templates/autonomous-action.md) | Autonomous Action ๆจกๆฟ |
108
106
  | [templates/code-analysis-action.md](templates/code-analysis-action.md) | ไปฃ็ ๅˆ†ๆž Action ๆจกๆฟ |
109
107
  | [templates/llm-action.md](templates/llm-action.md) | LLM Action ๆจกๆฟ |
110
- | [templates/script-bash.md](templates/script-bash.md) | Bash ่„šๆœฌๆจกๆฟ |
111
- | [templates/script-python.md](templates/script-python.md) | Python ่„šๆœฌๆจกๆฟ |
108
+ | [templates/script-template.md](templates/script-template.md) | ็ปŸไธ€่„šๆœฌๆจกๆฟ (Bash + Python) |
112
109
 
113
110
  ### ่ง„่Œƒๆ–‡ๆกฃ (ๆŒ‰้œ€้˜…่ฏป)
114
111
 
@@ -134,93 +131,288 @@ Phase 01 โ†’ Phase 02 โ†’ Phase 03 โ†’ ... โ†’ Phase N
134
131
  ## Execution Flow
135
132
 
136
133
  ```
137
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
138
- โ”‚ โš ๏ธ Phase 0: Specification Study (ๅผบๅˆถๅ‰็ฝฎ - ็ฆๆญข่ทณ่ฟ‡) โ”‚
139
- โ”‚ โ†’ Read: ../_shared/SKILL-DESIGN-SPEC.md (้€š็”จ่ฎพ่ฎก่ง„่Œƒ) โ”‚
140
- โ”‚ โ†’ Read: templates/*.md (ๆ‰€ๆœ‰็›ธๅ…ณๆจกๆฟๆ–‡ไปถ) โ”‚
141
- โ”‚ โ†’ ็†่งฃ: Skill ็ป“ๆž„่ง„่Œƒใ€ๅ‘ฝๅ็บฆๅฎšใ€่ดจ้‡ๆ ‡ๅ‡† โ”‚
142
- โ”‚ โ†’ Output: ๅ†…ๅŒ–่ง„่Œƒ่ฆๆฑ‚๏ผŒ็กฎไฟๅŽ็ปญ็”Ÿๆˆ็ฌฆๅˆๆ ‡ๅ‡† โ”‚
143
- โ”‚ โ›” ๆœชๅฎŒๆˆ Phase 0 ็ฆๆญข่ฟ›ๅ…ฅ Phase 1 โ”‚
144
- โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
145
- โ”‚ Phase 1: Requirements Discovery โ”‚
146
- โ”‚ โ†’ AskUserQuestion: Skill ๅ็งฐใ€็›ฎๆ ‡ใ€ๆ‰ง่กŒๆจกๅผ โ”‚
147
- โ”‚ โ†’ Output: skill-config.json โ”‚
148
- โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
149
- โ”‚ Phase 2: Structure Generation โ”‚
150
- โ”‚ โ†’ ๅˆ›ๅปบ็›ฎๅฝ•็ป“ๆž„: phases/, specs/, templates/, scripts/ โ”‚
151
- โ”‚ โ†’ ็”Ÿๆˆ SKILL.md ๅ…ฅๅฃๆ–‡ไปถ โ”‚
152
- โ”‚ โ†’ Output: ๅฎŒๆ•ด็›ฎๅฝ•็ป“ๆž„ โ”‚
153
- โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
154
- โ”‚ Phase 3: Phase Generation โ”‚
155
- โ”‚ โ†’ Sequential: ็”Ÿๆˆ 01-xx.md, 02-xx.md, ... โ”‚
156
- โ”‚ โ†’ Autonomous: ็”Ÿๆˆ orchestrator.md + actions/*.md โ”‚
157
- โ”‚ โ†’ Output: phases/*.md โ”‚
158
- โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
159
- โ”‚ Phase 4: Specs & Templates โ”‚
160
- โ”‚ โ†’ ็”Ÿๆˆ้ข†ๅŸŸ่ง„่Œƒ: specs/{domain}-requirements.md โ”‚
161
- โ”‚ โ†’ ็”Ÿๆˆ่ดจ้‡ๆ ‡ๅ‡†: specs/quality-standards.md โ”‚
162
- โ”‚ โ†’ ็”Ÿๆˆๆจกๆฟ: templates/agent-base.md โ”‚
163
- โ”‚ โ†’ Output: specs/*.md, templates/*.md โ”‚
164
- โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
165
- โ”‚ Phase 5: Validation & Documentation โ”‚
166
- โ”‚ โ†’ ้ชŒ่ฏๆ–‡ไปถๅฎŒๆ•ดๆ€ง โ”‚
167
- โ”‚ โ†’ ็”Ÿๆˆ README.md ไฝฟ็”จ่ฏดๆ˜Ž โ”‚
168
- โ”‚ โ†’ Output: ้ชŒ่ฏๆŠฅๅ‘Š + README.md โ”‚
169
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
134
+ Input Parsing:
135
+ โ””โ”€ Convert user request to structured format (skill-name/purpose/mode)
136
+
137
+ Phase 0: Specification Study (โš ๏ธ MANDATORY - ็ฆๆญข่ทณ่ฟ‡)
138
+ โ””โ”€ Read specification documents
139
+ โ”œโ”€ Load: ../_shared/SKILL-DESIGN-SPEC.md
140
+ โ”œโ”€ Load: All templates/*.md files
141
+ โ”œโ”€ Understand: Structure rules, naming conventions, quality standards
142
+ โ””โ”€ Output: Internalized requirements (in-memory, no file output)
143
+ โ””โ”€ Validation: โ›” MUST complete before Phase 1
144
+
145
+ Phase 1: Requirements Discovery
146
+ โ””โ”€ Gather skill requirements via user interaction
147
+ โ”œโ”€ Tool: AskUserQuestion
148
+ โ”‚ โ”œโ”€ Prompt: Skill name, purpose, execution mode
149
+ โ”‚ โ”œโ”€ Prompt: Phase/Action definition
150
+ โ”‚ โ””โ”€ Prompt: Tool dependencies, output format
151
+ โ”œโ”€ Process: Generate configuration object
152
+ โ””โ”€ Output: skill-config.json โ†’ ${workDir}/
153
+ โ”œโ”€ skill_name: string
154
+ โ”œโ”€ execution_mode: "sequential" | "autonomous"
155
+ โ”œโ”€ phases/actions: array
156
+ โ””โ”€ allowed_tools: array
157
+
158
+ Phase 2: Structure Generation
159
+ โ””โ”€ Create directory structure and entry file
160
+ โ”œโ”€ Input: skill-config.json (from Phase 1)
161
+ โ”œโ”€ Tool: Bash
162
+ โ”‚ โ””โ”€ Execute: mkdir -p .claude/skills/{skill-name}/{phases,specs,templates,scripts}
163
+ โ”œโ”€ Tool: Write
164
+ โ”‚ โ””โ”€ Generate: SKILL.md (entry point with architecture diagram)
165
+ โ””โ”€ Output: Complete directory structure
166
+ โ”œโ”€ .claude/skills/{skill-name}/SKILL.md
167
+ โ”œโ”€ .claude/skills/{skill-name}/phases/
168
+ โ”œโ”€ .claude/skills/{skill-name}/specs/
169
+ โ”œโ”€ .claude/skills/{skill-name}/templates/
170
+ โ””โ”€ .claude/skills/{skill-name}/scripts/
171
+
172
+ Phase 3: Phase/Action Generation
173
+ โ””โ”€ Decision (execution_mode check):
174
+ โ”œโ”€ execution_mode === "sequential" โ†’ Generate Sequential Phases
175
+ โ”‚ โ”œโ”€ Tool: Read (template: templates/sequential-phase.md)
176
+ โ”‚ โ”œโ”€ Loop: For each phase in config.sequential_config.phases
177
+ โ”‚ โ”‚ โ”œโ”€ Generate: phases/{phase-id}.md
178
+ โ”‚ โ”‚ โ””โ”€ Link: Previous phase output โ†’ Current phase input
179
+ โ”‚ โ”œโ”€ Tool: Write (orchestrator: phases/_orchestrator.md)
180
+ โ”‚ โ”œโ”€ Tool: Write (workflow definition: workflow.json)
181
+ โ”‚ โ””โ”€ Output: phases/01-{name}.md, phases/02-{name}.md, ...
182
+ โ”‚
183
+ โ””โ”€ execution_mode === "autonomous" โ†’ Generate Orchestrator + Actions
184
+ โ”œโ”€ Tool: Read (template: templates/autonomous-orchestrator.md)
185
+ โ”œโ”€ Tool: Write (state schema: phases/state-schema.md)
186
+ โ”œโ”€ Tool: Write (orchestrator: phases/orchestrator.md)
187
+ โ”œโ”€ Tool: Write (action catalog: specs/action-catalog.md)
188
+ โ”œโ”€ Loop: For each action in config.autonomous_config.actions
189
+ โ”‚ โ”œโ”€ Tool: Read (template: templates/autonomous-action.md)
190
+ โ”‚ โ””โ”€ Generate: phases/actions/{action-id}.md
191
+ โ””โ”€ Output: phases/orchestrator.md, phases/actions/*.md
192
+
193
+ Phase 4: Specs & Templates
194
+ โ””โ”€ Generate domain specifications and templates
195
+ โ”œโ”€ Input: skill-config.json (domain context)
196
+ โ”œโ”€ Tool: Write
197
+ โ”‚ โ”œโ”€ Generate: specs/{domain}-requirements.md
198
+ โ”‚ โ”œโ”€ Generate: specs/quality-standards.md
199
+ โ”‚ โ””โ”€ Generate: templates/agent-base.md (if needed)
200
+ โ””โ”€ Output: Domain-specific documentation
201
+ โ”œโ”€ specs/{skill-name}-requirements.md
202
+ โ”œโ”€ specs/quality-standards.md
203
+ โ””โ”€ templates/agent-base.md
204
+
205
+ Phase 5: Validation & Documentation
206
+ โ””โ”€ Verify completeness and generate usage guide
207
+ โ”œโ”€ Input: All generated files from previous phases
208
+ โ”œโ”€ Tool: Glob + Read
209
+ โ”‚ โ””โ”€ Check: Required files exist and contain proper structure
210
+ โ”œโ”€ Tool: Write
211
+ โ”‚ โ”œโ”€ Generate: README.md (usage instructions)
212
+ โ”‚ โ””โ”€ Generate: validation-report.json (completeness check)
213
+ โ””โ”€ Output: Final documentation
214
+ โ”œโ”€ README.md (how to use this skill)
215
+ โ””โ”€ validation-report.json (quality gate results)
216
+
217
+ Return:
218
+ โ””โ”€ Summary with skill location and next steps
219
+ โ”œโ”€ Skill path: .claude/skills/{skill-name}/
220
+ โ”œโ”€ Status: โœ… All phases completed
221
+ โ””โ”€ Suggestion: "Review SKILL.md and customize phase files as needed"
170
222
  ```
171
223
 
172
- ## Directory Setup
224
+ **Execution Protocol**:
173
225
 
174
226
  ```javascript
175
- const skillName = config.skill_name;
176
- const skillDir = `.claude/skills/${skillName}`;
227
+ // Phase 0: Read specifications (in-memory)
228
+ Read('.claude/skills/_shared/SKILL-DESIGN-SPEC.md');
229
+ Read('.claude/skills/skill-generator/templates/*.md'); // All templates
230
+
231
+ // Phase 1: Gather requirements
232
+ const answers = AskUserQuestion({
233
+ questions: [
234
+ { question: "Skill name?", header: "Name", options: [...] },
235
+ { question: "Execution mode?", header: "Mode", options: ["Sequential", "Autonomous"] }
236
+ ]
237
+ });
238
+
239
+ const config = generateConfig(answers);
240
+ const workDir = `.workflow/.scratchpad/skill-gen-${timestamp}`;
241
+ Write(`${workDir}/skill-config.json`, JSON.stringify(config));
242
+
243
+ // Phase 2: Create structure
244
+ const skillDir = `.claude/skills/${config.skill_name}`;
245
+ Bash(`mkdir -p "${skillDir}/phases" "${skillDir}/specs" "${skillDir}/templates"`);
246
+ Write(`${skillDir}/SKILL.md`, generateSkillEntry(config));
247
+
248
+ // Phase 3: Generate phases (mode-dependent)
249
+ if (config.execution_mode === 'sequential') {
250
+ Write(`${skillDir}/phases/_orchestrator.md`, generateOrchestrator(config));
251
+ Write(`${skillDir}/workflow.json`, generateWorkflowDef(config));
252
+ config.sequential_config.phases.forEach(phase => {
253
+ Write(`${skillDir}/phases/${phase.id}.md`, generatePhase(phase, config));
254
+ });
255
+ } else {
256
+ Write(`${skillDir}/phases/orchestrator.md`, generateAutonomousOrchestrator(config));
257
+ Write(`${skillDir}/phases/state-schema.md`, generateStateSchema(config));
258
+ config.autonomous_config.actions.forEach(action => {
259
+ Write(`${skillDir}/phases/actions/${action.id}.md`, generateAction(action, config));
260
+ });
261
+ }
177
262
 
178
- // ๅˆ›ๅปบ็›ฎๅฝ•็ป“ๆž„
179
- Bash(`mkdir -p "${skillDir}/phases"`);
180
- Bash(`mkdir -p "${skillDir}/specs"`);
181
- Bash(`mkdir -p "${skillDir}/templates"`);
263
+ // Phase 4: Generate specs
264
+ Write(`${skillDir}/specs/${config.skill_name}-requirements.md`, generateRequirements(config));
265
+ Write(`${skillDir}/specs/quality-standards.md`, generateQualityStandards(config));
182
266
 
183
- // Autonomous ๆจกๅผ้ขๅค–็›ฎๅฝ•
184
- if (config.execution_mode === 'autonomous') {
185
- Bash(`mkdir -p "${skillDir}/phases/actions"`);
186
- }
267
+
268
+ // Phase 5: Validate & Document
269
+ const validation = validateStructure(skillDir);
270
+ Write(`${skillDir}/validation-report.json`, JSON.stringify(validation));
271
+ Write(`${skillDir}/README.md`, generateReadme(config, validation));
272
+ ```
273
+
274
+ ---
275
+
276
+ ## Phase Reference Guide
277
+
278
+ Navigation and entry points for each execution phase:
279
+
280
+ ### Phase 0: Specification Study (Mandatory)
281
+
282
+ **Document**: ๐Ÿ”— [SKILL-DESIGN-SPEC.md](../_shared/SKILL-DESIGN-SPEC.md)
283
+
284
+ **Purpose**: Understand skill design standards before generating
285
+
286
+ **What to Read**:
287
+ - Skill structure conventions
288
+ - Naming standards
289
+ - Quality criteria
290
+ - Output format specifications
291
+
292
+ ---
293
+
294
+ ### Phase 1: Requirements Discovery
295
+
296
+ **Document**: ๐Ÿ”— [phases/01-requirements-discovery.md](phases/01-requirements-discovery.md)
297
+
298
+ | Attribute | Value |
299
+ |-----------|-------|
300
+ | **Purpose** | Gather configuration from user via interactive prompts |
301
+ | **Input** | User responses (Skill name, purpose, execution mode) |
302
+ | **Output** | `skill-config.json` (configuration file) |
303
+ | **Key Decision** | Execution mode: Sequential vs Autonomous vs Hybrid |
304
+
305
+ ---
306
+
307
+ ### Phase 2: Structure Generation
308
+
309
+ **Document**: ๐Ÿ”— [phases/02-structure-generation.md](phases/02-structure-generation.md)
310
+
311
+ | Attribute | Value |
312
+ |-----------|-------|
313
+ | **Purpose** | Create directory structure and entry file |
314
+ | **Input** | `skill-config.json` (from Phase 1) |
315
+ | **Output** | `.claude/skills/{skill-name}/` directory + `SKILL.md` |
316
+
317
+ ---
318
+
319
+ ### Phase 3: Phase/Action Generation
320
+
321
+ **Document**: ๐Ÿ”— [phases/03-phase-generation.md](phases/03-phase-generation.md)
322
+
323
+ | Attribute | Value |
324
+ |-----------|-------|
325
+ | **Purpose** | Generate execution phases or actions based on mode |
326
+ | **Input** | `skill-config.json` + Templates |
327
+ | **Output** | Sequential: `phases/01-*.md` ... OR Autonomous: `phases/orchestrator.md` + `actions/*.md` |
328
+
329
+ **Decision Logic**:
330
+ ```
331
+ IF execution_mode === "sequential":
332
+ โ””โ”€ Generate sequential phases with linear flow
333
+ ELSE IF execution_mode === "autonomous":
334
+ โ””โ”€ Generate orchestrator + independent actions
187
335
  ```
188
336
 
337
+ ---
338
+
339
+ ### Phase 4: Specs & Templates
340
+
341
+ **Document**: ๐Ÿ”— [phases/04-specs-templates.md](phases/04-specs-templates.md)
342
+
343
+ | Attribute | Value |
344
+ |-----------|-------|
345
+ | **Purpose** | Generate domain specifications and template files |
346
+ | **Input** | `skill-config.json` (domain context) |
347
+ | **Output** | `specs/{skill-name}-requirements.md`, `specs/quality-standards.md` |
348
+
349
+ ---
350
+
351
+ ### Phase 5: Validation & Documentation
352
+
353
+ **Document**: ๐Ÿ”— [phases/05-validation.md](phases/05-validation.md)
354
+
355
+ | Attribute | Value |
356
+ |-----------|-------|
357
+ | **Purpose** | Verify completeness and generate usage documentation |
358
+ | **Input** | All files from previous phases |
359
+ | **Output** | `README.md`, `validation-report.json` |
360
+
361
+ ---
362
+
363
+ ## Template Reference
364
+
365
+ | Template | Generated For | When Used |
366
+ |----------|--------------|-----------|
367
+ | [skill-md.md](templates/skill-md.md) | SKILL.md entry file | Phase 2 |
368
+ | [sequential-phase.md](templates/sequential-phase.md) | Sequential phase files | Phase 3 |
369
+ | [autonomous-orchestrator.md](templates/autonomous-orchestrator.md) | Orchestrator (autonomous) | Phase 3 |
370
+ | [autonomous-action.md](templates/autonomous-action.md) | Action files | Phase 3 |
371
+ | [code-analysis-action.md](templates/code-analysis-action.md) | Code analysis actions | Phase 3 |
372
+ | [llm-action.md](templates/llm-action.md) | LLM-powered actions | Phase 3 |
373
+ | [script-template.md](templates/script-template.md) | Bash + Python scripts | Phase 3/4 |
374
+
189
375
  ## Output Structure
190
376
 
191
377
  ### Sequential Mode
192
378
 
193
379
  ```
194
380
  .claude/skills/{skill-name}/
195
- โ”œโ”€โ”€ SKILL.md
381
+ โ”œโ”€โ”€ SKILL.md # ๅ…ฅๅฃๆ–‡ไปถ
196
382
  โ”œโ”€โ”€ phases/
197
- โ”‚ โ”œโ”€โ”€ 01-{step-one}.md
198
- โ”‚ โ”œโ”€โ”€ 02-{step-two}.md
199
- โ”‚ โ””โ”€โ”€ 03-{step-three}.md
383
+ โ”‚ โ”œโ”€โ”€ _orchestrator.md # ๅฃฐๆ˜Žๅผ็ผ–ๆŽ’ๅ™จ
384
+ โ”‚ โ”œโ”€โ”€ workflow.json # ๅทฅไฝœๆตๅฎšไน‰
385
+ โ”‚ โ”œโ”€โ”€ 01-{step-one}.md # ้˜ถๆฎต 1
386
+ โ”‚ โ”œโ”€โ”€ 02-{step-two}.md # ้˜ถๆฎต 2
387
+ โ”‚ โ””โ”€โ”€ 03-{step-three}.md # ้˜ถๆฎต 3
200
388
  โ”œโ”€โ”€ specs/
201
- โ”‚ โ”œโ”€โ”€ {domain}-requirements.md
389
+ โ”‚ โ”œโ”€โ”€ {skill-name}-requirements.md
202
390
  โ”‚ โ””โ”€โ”€ quality-standards.md
203
- โ””โ”€โ”€ templates/
204
- โ””โ”€โ”€ agent-base.md
391
+ โ”œโ”€โ”€ templates/
392
+ โ”‚ โ””โ”€โ”€ agent-base.md
393
+ โ”œโ”€โ”€ scripts/
394
+ โ””โ”€โ”€ README.md
205
395
  ```
206
396
 
207
397
  ### Autonomous Mode
208
398
 
209
399
  ```
210
400
  .claude/skills/{skill-name}/
211
- โ”œโ”€โ”€ SKILL.md
401
+ โ”œโ”€โ”€ SKILL.md # ๅ…ฅๅฃๆ–‡ไปถ
212
402
  โ”œโ”€โ”€ phases/
213
- โ”‚ โ”œโ”€โ”€ orchestrator.md # ็ผ–ๆŽ’ๅ™จ๏ผš่ฏปๅ–็Šถๆ€ โ†’ ้€‰ๆ‹ฉๅŠจไฝœ
214
- โ”‚ โ”œโ”€โ”€ state-schema.md # ็Šถๆ€็ป“ๆž„ๅฎšไน‰
215
- โ”‚ โ””โ”€โ”€ actions/ # ็‹ฌ็ซ‹ๅŠจไฝœ๏ผˆๆ— ้กบๅบ๏ผ‰
216
- โ”‚ โ”œโ”€โ”€ action-{a}.md
217
- โ”‚ โ”œโ”€โ”€ action-{b}.md
218
- โ”‚ โ””โ”€โ”€ action-{c}.md
403
+ โ”‚ โ”œโ”€โ”€ orchestrator.md # ็ผ–ๆŽ’ๅ™จ (็Šถๆ€้ฉฑๅŠจ)
404
+ โ”‚ โ”œโ”€โ”€ state-schema.md # ็Šถๆ€็ป“ๆž„ๅฎšไน‰
405
+ โ”‚ โ””โ”€โ”€ actions/
406
+ โ”‚ โ”œโ”€โ”€ action-init.md
407
+ โ”‚ โ”œโ”€โ”€ action-create.md
408
+ โ”‚ โ””โ”€โ”€ action-list.md
219
409
  โ”œโ”€โ”€ specs/
220
- โ”‚ โ”œโ”€โ”€ {domain}-requirements.md
221
- โ”‚ โ”œโ”€โ”€ action-catalog.md # ๅŠจไฝœ็›ฎๅฝ•๏ผˆๆ่ฟฐใ€ๅ‰็ฝฎๆกไปถใ€ๆ•ˆๆžœ๏ผ‰
410
+ โ”‚ โ”œโ”€โ”€ {skill-name}-requirements.md
411
+ โ”‚ โ”œโ”€โ”€ action-catalog.md
222
412
  โ”‚ โ””โ”€โ”€ quality-standards.md
223
- โ””โ”€โ”€ templates/
224
- โ”œโ”€โ”€ orchestrator-base.md # ็ผ–ๆŽ’ๅ™จๆจกๆฟ
225
- โ””โ”€โ”€ action-base.md # ๅŠจไฝœๆจกๆฟ
226
- ```
413
+ โ”œโ”€โ”€ templates/
414
+ โ”‚ โ”œโ”€โ”€ orchestrator-base.md
415
+ โ”‚ โ””โ”€โ”€ action-base.md
416
+ โ”œโ”€โ”€ scripts/
417
+ โ””โ”€โ”€ README.md
418
+ ```
@@ -1,15 +1,4 @@
1
- # Phase 1: Requirements Discovery
2
1
 
3
- ๆ”ถ้›†ๆ–ฐ Skill ็š„้œ€ๆฑ‚ไฟกๆฏ๏ผŒ็”Ÿๆˆ้…็ฝฎๆ–‡ไปถใ€‚
4
-
5
- ## Objective
6
-
7
- - ๆ”ถ้›† Skill ๅŸบๆœฌไฟกๆฏ๏ผˆๅ็งฐใ€ๆ่ฟฐใ€่งฆๅ‘่ฏ๏ผ‰
8
- - ็กฎๅฎšๆ‰ง่กŒๆจกๅผ๏ผˆSequential / Autonomous๏ผ‰
9
- - ๅฎšไน‰้˜ถๆฎต/ๅŠจไฝœ
10
- - ้…็ฝฎๅทฅๅ…ทไพ่ต–ๅ’Œ่พ“ๅ‡บๆ ผๅผ
11
-
12
- ## Execution Steps
13
2
 
14
3
  ### Step 1: ๅŸบๆœฌไฟกๆฏๆ”ถ้›†
15
4
 
@@ -228,12 +217,12 @@ Bash(`mkdir -p "${workDir}"`);
228
217
  Write(`${workDir}/skill-config.json`, JSON.stringify(config, null, 2));
229
218
  ```
230
219
 
231
- ## Output
232
220
 
233
- - **File**: `skill-config.json`
234
- - **Location**: `.workflow/.scratchpad/skill-gen-{timestamp}/`
235
- - **Format**: JSON
236
221
 
237
222
  ## Next Phase
238
223
 
239
224
  โ†’ [Phase 2: Structure Generation](02-structure-generation.md)
225
+
226
+ **Data Flow to Phase 2**:
227
+ - skill-config.json with all configuration parameters
228
+ - Execution mode decision drives directory structure creation