cokit-cli 1.2.0 → 1.2.3

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 (243) hide show
  1. package/README.md +47 -36
  2. package/agents/brainstormer.agent.md +1 -1
  3. package/agents/debugger.agent.md +1 -1
  4. package/agents/docs-manager.agent.md +2 -2
  5. package/agents/git-manager.agent.md +5 -5
  6. package/agents/planner.agent.md +3 -3
  7. package/agents/researcher.agent.md +0 -1
  8. package/agents/scout.agent.md +9 -9
  9. package/agents/ui-ux-designer.agent.md +0 -1
  10. package/collections/ck-orchestration.collection.yml +2 -2
  11. package/docs/README.md +8 -8
  12. package/docs/codebase-summary.md +19 -19
  13. package/docs/cokit-commands-usage-guide.md +42 -43
  14. package/docs/cokit-comprehensive-mapping-guide.md +15 -15
  15. package/docs/cokit-slides.md +6 -6
  16. package/docs/cokit-sync-and-maintenance-guide.md +45 -45
  17. package/docs/cokit-team-presentation.md +11 -11
  18. package/docs/copilot-processing-flow.md +11 -11
  19. package/docs/guide-next-steps-speckit-cokit-implementation.md +1 -1
  20. package/docs/migration-guide.md +9 -9
  21. package/docs/project-overview-pdr.md +3 -3
  22. package/docs/project-roadmap.md +20 -11
  23. package/docs/system-architecture.md +6 -6
  24. package/package.json +1 -1
  25. package/prompts/ck-ask.prompt.md +3 -2
  26. package/prompts/ck-bootstrap.prompt.md +26 -32
  27. package/prompts/ck-brainstorm.prompt.md +4 -3
  28. package/prompts/ck-cook.prompt.md +5 -4
  29. package/prompts/ck-debug.prompt.md +4 -3
  30. package/prompts/ck-docs.prompt.md +4 -3
  31. package/prompts/ck-fix-ci.prompt.md +46 -0
  32. package/prompts/ck-fix-fast.prompt.md +44 -0
  33. package/prompts/ck-fix-hard.prompt.md +60 -0
  34. package/prompts/ck-fix-logs.prompt.md +53 -0
  35. package/prompts/ck-fix-test.prompt.md +47 -0
  36. package/prompts/ck-fix-types.prompt.md +29 -0
  37. package/prompts/ck-fix-ui.prompt.md +50 -0
  38. package/prompts/ck-fix.prompt.md +13 -15
  39. package/prompts/ck-git.prompt.md +2 -2
  40. package/prompts/ck-help.prompt.md +8 -6
  41. package/prompts/ck-journal.prompt.md +5 -3
  42. package/prompts/ck-plan-fast.prompt.md +26 -5
  43. package/prompts/ck-plan-hard.prompt.md +30 -9
  44. package/prompts/ck-plan-validate.prompt.md +209 -0
  45. package/prompts/ck-plan.prompt.md +49 -12
  46. package/prompts/ck-preview.prompt.md +16 -32
  47. package/prompts/ck-review.prompt.md +10 -11
  48. package/prompts/ck-scout.prompt.md +5 -4
  49. package/prompts/ck-simplify.prompt.md +3 -3
  50. package/prompts/ck-spec-analyze.prompt.md +9 -11
  51. package/prompts/ck-spec-checklist.prompt.md +7 -9
  52. package/prompts/ck-spec-clarify.prompt.md +8 -15
  53. package/prompts/ck-spec-constitution.prompt.md +6 -11
  54. package/prompts/ck-spec-implement.prompt.md +7 -10
  55. package/prompts/ck-spec-plan.prompt.md +5 -18
  56. package/prompts/ck-spec-specify.prompt.md +8 -17
  57. package/prompts/ck-spec-tasks.prompt.md +4 -16
  58. package/prompts/ck-test.prompt.md +5 -3
  59. package/prompts/ck-watzup.prompt.md +4 -2
  60. package/skills/INSTALLATION.md +3 -3
  61. package/skills/README.md +12 -34
  62. package/skills/agent-browser/SKILL.md +0 -1
  63. package/skills/agent_skills_spec.md +2 -2
  64. package/skills/backend-development/SKILL.md +0 -2
  65. package/skills/brainstorm/SKILL.md +7 -9
  66. package/skills/code-review/SKILL.md +9 -9
  67. package/skills/code-review/references/code-review-reception.md +1 -1
  68. package/skills/code-review/references/requesting-code-review.md +7 -7
  69. package/skills/common/api_key_helper.py +8 -8
  70. package/skills/context-engineering/SKILL.md +3 -4
  71. package/skills/context-engineering/references/context-degradation.md +2 -2
  72. package/skills/context-engineering/references/runtime-awareness.md +6 -6
  73. package/skills/cook/README.md +2 -2
  74. package/skills/cook/SKILL.md +3 -4
  75. package/skills/cook/references/agent-patterns.md +75 -0
  76. package/skills/cook/references/review-cycle.md +2 -2
  77. package/skills/cook/references/workflow-steps.md +6 -6
  78. package/skills/databases/SKILL.md +0 -1
  79. package/skills/databases/scripts/db_migrate.py +2 -2
  80. package/skills/databases/scripts/db_performance_check.py +2 -2
  81. package/skills/debug/SKILL.md +0 -1
  82. package/skills/devops/SKILL.md +0 -2
  83. package/skills/devops/scripts/docker_optimize.py +2 -2
  84. package/skills/docs-seeker/SKILL.md +0 -1
  85. package/skills/docs-seeker/package.json +1 -1
  86. package/skills/docs-seeker/scripts/utils/env-loader.js +2 -2
  87. package/skills/fix/SKILL.md +10 -11
  88. package/skills/fix/references/mode-selection.md +11 -27
  89. package/skills/fix/references/parallel-exploration.md +9 -9
  90. package/skills/fix/references/review-cycle.md +3 -3
  91. package/skills/fix/references/skill-activation-matrix.md +3 -3
  92. package/skills/fix/references/workflow-deep.md +11 -11
  93. package/skills/fix/references/workflow-quick.md +5 -5
  94. package/skills/fix/references/workflow-standard.md +12 -12
  95. package/skills/frontend-design/SKILL.md +2 -3
  96. package/skills/frontend-design/references/workflow-describe.md +1 -1
  97. package/skills/frontend-design/references/workflow-quick.md +1 -1
  98. package/skills/frontend-design/references/workflow-screenshot.md +1 -1
  99. package/skills/git/SKILL.md +2 -3
  100. package/skills/git/references/commit-standards.md +2 -2
  101. package/skills/git/references/workflow-commit.md +1 -1
  102. package/skills/git/references/workflow-merge.md +1 -1
  103. package/skills/git/references/workflow-pr.md +1 -1
  104. package/skills/git/references/workflow-push.md +1 -1
  105. package/skills/install.ps1 +5 -5
  106. package/skills/install.sh +2 -2
  107. package/skills/mcp-management/README.md +8 -8
  108. package/skills/mcp-management/SKILL.md +9 -9
  109. package/skills/mcp-management/references/gemini-cli-integration.md +2 -2
  110. package/skills/mcp-management/scripts/.env.example +2 -2
  111. package/skills/planning/SKILL.md +4 -5
  112. package/skills/planning/references/output-standards.md +1 -1
  113. package/skills/planning/references/plan-organization.md +1 -1
  114. package/skills/problem-solving/SKILL.md +1 -2
  115. package/skills/repomix/SKILL.md +2 -2
  116. package/skills/repomix/references/usage-patterns.md +2 -2
  117. package/skills/research/SKILL.md +0 -1
  118. package/skills/scout/SKILL.md +9 -10
  119. package/skills/scout/references/external-scouting.md +10 -10
  120. package/skills/scout/references/internal-scouting.md +9 -9
  121. package/skills/sequential-thinking/README.md +3 -3
  122. package/skills/sequential-thinking/SKILL.md +0 -2
  123. package/skills/sequential-thinking/package.json +1 -1
  124. package/skills/ui-styling/SKILL.md +0 -2
  125. package/skills/web-testing/SKILL.md +0 -2
  126. package/templates/repo/.github/agents/brainstormer.agent.md +1 -1
  127. package/templates/repo/.github/agents/debugger.agent.md +1 -1
  128. package/templates/repo/.github/agents/docs-manager.agent.md +2 -2
  129. package/templates/repo/.github/agents/git-manager.agent.md +5 -5
  130. package/templates/repo/.github/agents/planner.agent.md +3 -3
  131. package/templates/repo/.github/agents/researcher.agent.md +0 -1
  132. package/templates/repo/.github/agents/scout.agent.md +9 -9
  133. package/templates/repo/.github/agents/ui-ux-designer.agent.md +0 -1
  134. package/templates/repo/.github/collections/ck-orchestration.collection.yml +2 -2
  135. package/templates/repo/.github/prompts/ck-ask.prompt.md +3 -2
  136. package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +26 -32
  137. package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +4 -3
  138. package/templates/repo/.github/prompts/ck-cook.prompt.md +5 -4
  139. package/templates/repo/.github/prompts/ck-debug.prompt.md +4 -3
  140. package/templates/repo/.github/prompts/ck-docs.prompt.md +4 -3
  141. package/templates/repo/.github/prompts/ck-fix-ci.prompt.md +46 -0
  142. package/templates/repo/.github/prompts/ck-fix-fast.prompt.md +44 -0
  143. package/templates/repo/.github/prompts/ck-fix-hard.prompt.md +60 -0
  144. package/templates/repo/.github/prompts/ck-fix-logs.prompt.md +53 -0
  145. package/templates/repo/.github/prompts/ck-fix-test.prompt.md +47 -0
  146. package/templates/repo/.github/prompts/ck-fix-types.prompt.md +29 -0
  147. package/templates/repo/.github/prompts/ck-fix-ui.prompt.md +50 -0
  148. package/templates/repo/.github/prompts/ck-fix.prompt.md +13 -15
  149. package/templates/repo/.github/prompts/ck-git.prompt.md +2 -2
  150. package/templates/repo/.github/prompts/ck-help.prompt.md +8 -6
  151. package/templates/repo/.github/prompts/ck-journal.prompt.md +5 -3
  152. package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +26 -5
  153. package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +30 -9
  154. package/templates/repo/.github/prompts/ck-plan-validate.prompt.md +209 -0
  155. package/templates/repo/.github/prompts/ck-plan.prompt.md +49 -12
  156. package/templates/repo/.github/prompts/ck-preview.prompt.md +16 -32
  157. package/templates/repo/.github/prompts/ck-review.prompt.md +10 -11
  158. package/templates/repo/.github/prompts/ck-scout.prompt.md +5 -4
  159. package/templates/repo/.github/prompts/ck-simplify.prompt.md +3 -3
  160. package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +9 -11
  161. package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +7 -9
  162. package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +8 -15
  163. package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +6 -11
  164. package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +7 -10
  165. package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +5 -18
  166. package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +7 -17
  167. package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +4 -16
  168. package/templates/repo/.github/prompts/ck-test.prompt.md +5 -3
  169. package/templates/repo/.github/prompts/ck-watzup.prompt.md +4 -2
  170. package/templates/repo/.github/skills/INSTALLATION.md +3 -3
  171. package/templates/repo/.github/skills/README.md +12 -34
  172. package/templates/repo/.github/skills/agent-browser/SKILL.md +0 -1
  173. package/templates/repo/.github/skills/agent_skills_spec.md +2 -2
  174. package/templates/repo/.github/skills/backend-development/SKILL.md +0 -2
  175. package/templates/repo/.github/skills/brainstorm/SKILL.md +7 -9
  176. package/templates/repo/.github/skills/code-review/SKILL.md +9 -9
  177. package/templates/repo/.github/skills/code-review/references/code-review-reception.md +1 -1
  178. package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +7 -7
  179. package/templates/repo/.github/skills/common/api_key_helper.py +8 -8
  180. package/templates/repo/.github/skills/context-engineering/SKILL.md +3 -4
  181. package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
  182. package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +6 -6
  183. package/templates/repo/.github/skills/cook/README.md +2 -2
  184. package/templates/repo/.github/skills/cook/SKILL.md +3 -4
  185. package/templates/repo/.github/skills/cook/references/agent-patterns.md +75 -0
  186. package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
  187. package/templates/repo/.github/skills/cook/references/workflow-steps.md +6 -6
  188. package/templates/repo/.github/skills/databases/SKILL.md +0 -1
  189. package/templates/repo/.github/skills/databases/scripts/db_migrate.py +2 -2
  190. package/templates/repo/.github/skills/databases/scripts/db_performance_check.py +2 -2
  191. package/templates/repo/.github/skills/debug/SKILL.md +0 -1
  192. package/templates/repo/.github/skills/devops/SKILL.md +0 -2
  193. package/templates/repo/.github/skills/devops/scripts/docker_optimize.py +2 -2
  194. package/templates/repo/.github/skills/docs-seeker/SKILL.md +0 -1
  195. package/templates/repo/.github/skills/docs-seeker/package.json +1 -1
  196. package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +2 -2
  197. package/templates/repo/.github/skills/fix/SKILL.md +10 -11
  198. package/templates/repo/.github/skills/fix/references/mode-selection.md +11 -27
  199. package/templates/repo/.github/skills/fix/references/parallel-exploration.md +9 -9
  200. package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
  201. package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +3 -3
  202. package/templates/repo/.github/skills/fix/references/workflow-deep.md +11 -11
  203. package/templates/repo/.github/skills/fix/references/workflow-quick.md +5 -5
  204. package/templates/repo/.github/skills/fix/references/workflow-standard.md +12 -12
  205. package/templates/repo/.github/skills/frontend-design/SKILL.md +2 -3
  206. package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +1 -1
  207. package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +1 -1
  208. package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +1 -1
  209. package/templates/repo/.github/skills/git/SKILL.md +2 -3
  210. package/templates/repo/.github/skills/git/references/commit-standards.md +2 -2
  211. package/templates/repo/.github/skills/git/references/workflow-commit.md +1 -1
  212. package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
  213. package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
  214. package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
  215. package/templates/repo/.github/skills/install.ps1 +5 -5
  216. package/templates/repo/.github/skills/install.sh +2 -2
  217. package/templates/repo/.github/skills/mcp-management/README.md +8 -8
  218. package/templates/repo/.github/skills/mcp-management/SKILL.md +9 -9
  219. package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +2 -2
  220. package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
  221. package/templates/repo/.github/skills/planning/SKILL.md +4 -5
  222. package/templates/repo/.github/skills/planning/references/output-standards.md +1 -1
  223. package/templates/repo/.github/skills/planning/references/plan-organization.md +1 -1
  224. package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -2
  225. package/templates/repo/.github/skills/repomix/SKILL.md +2 -2
  226. package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
  227. package/templates/repo/.github/skills/research/SKILL.md +0 -1
  228. package/templates/repo/.github/skills/scout/SKILL.md +9 -10
  229. package/templates/repo/.github/skills/scout/references/external-scouting.md +10 -10
  230. package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
  231. package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
  232. package/templates/repo/.github/skills/sequential-thinking/SKILL.md +0 -2
  233. package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
  234. package/templates/repo/.github/skills/ui-styling/SKILL.md +0 -2
  235. package/templates/repo/.github/skills/web-testing/SKILL.md +0 -2
  236. package/docs/cokit-instruction-guide.html +0 -3004
  237. package/docs/images/cokit-command-finder-final.png +0 -0
  238. package/docs/images/cokit-highlight-fix.png +0 -0
  239. package/docs/images/cokit-highlight-test.png +0 -0
  240. package/prompts/ck-spec-taskstoissues.prompt.md +0 -48
  241. package/skills/cook/references/subagent-patterns.md +0 -75
  242. package/templates/repo/.github/prompts/ck-spec-taskstoissues.prompt.md +0 -48
  243. package/templates/repo/.github/skills/cook/references/subagent-patterns.md +0 -75
@@ -0,0 +1,50 @@
1
+ ---
2
+ agent: 'agent'
3
+ description: 'Analyze and fix UI issues'
4
+ argument-hint: 'Describe the UI issue'
5
+ ---
6
+ ## Variant Notice
7
+ **IMPORTANT — Read before proceeding.**
8
+ `ck-fix-ui` is an internal mode for UI/UX issues — it is meant to be selected automatically by AI when you run `/ck-fix`.
9
+ You don't need to call this directly. Just use `/ck-fix` and AI will pick the right mode for you.
10
+ Before executing, you MUST output the following message **exactly as written** and wait for user response:
11
+
12
+ ---
13
+ **Variant Notice**
14
+
15
+ `ck-fix-ui` is an internal mode for UI/UX issues — it is meant to be selected automatically by AI when you run `/ck-fix`.
16
+ You don't need to call this directly. Just use `/ck-fix` and AI will pick the right mode for you.
17
+
18
+ Do you want to continue anyway, or switch to `/ck-fix`? **[Continue / Switch to /ck-fix]**
19
+
20
+ ---
21
+
22
+ Only proceed if user explicitly confirms Continue.
23
+ If user chooses "Switch to /ck-fix", run immediately — do NOT ask user to re-enter their input.
24
+
25
+
26
+ ## Required Skills
27
+ 1. **`frontend-design`** - Design patterns and implementation
28
+
29
+ Read and analyze `./docs/design-guidelines.md` then fix the following issues:
30
+ <issue>${input}</issue>
31
+
32
+ ## Workflow
33
+ 1. Activate `frontend-design` skill to understand design patterns and best practices.
34
+ 2. Implement the fix step by step following design guidelines.
35
+ 3. Take screenshots of the fix and analyze to verify it matches the design guideline and addresses all issues.
36
+ - If the issues are not addressed, repeat the process until all issues are addressed.
37
+ 4. Test the fix and compile the code to make sure it works.
38
+ - If there are issues or failed tests, fix all of them and repeat until all tests pass.
39
+ 5. Final Report:
40
+ * Summary of changes, guide user to get started, suggest next steps.
41
+ * Ask the user if they want to commit and push to git repository.
42
+
43
+ ---
44
+
45
+ ## Suggested Next Steps
46
+
47
+ | Command | Description |
48
+ |---------|-------------|
49
+ | `/ck-test` | Run tests and analyze results |
50
+ | `/ck-git` | Commit changes |
@@ -10,38 +10,35 @@ argument-hint: 'Describe the issues to fix'
10
10
  ## Decision Tree
11
11
 
12
12
  **1. Check for existing plan:**
13
- - If markdown plan exists → `/ck:code <path-to-plan>`
13
+ - If markdown plan exists → `/ck-cook <path-to-plan>`
14
14
 
15
15
  **2. Route by issue type:**
16
16
 
17
17
  **A) Type Errors** (keywords: type, typescript, tsc, type error)
18
- → `/ck:fix:types`
18
+ → `/ck-fix-types`
19
19
 
20
20
  **B) UI/UX Issues** (keywords: ui, ux, design, layout, style, visual, button, component, css, responsive)
21
- → `/ck:fix:ui <detailed-description>`
21
+ → `/ck-fix-ui <detailed-description>`
22
22
 
23
23
  **C) CI/CD Issues** (keywords: github actions, pipeline, ci/cd, workflow, deployment, build failed)
24
- → `/ck:fix:ci <github-actions-url-or-description>`
24
+ → `/ck-fix-ci <github-actions-url-or-description>`
25
25
 
26
26
  **D) Test Failures** (keywords: test, spec, jest, vitest, failing test, test suite)
27
- → `/ck:fix:test <detailed-description>`
27
+ → `/ck-fix-test <detailed-description>`
28
28
 
29
29
  **E) Log Analysis** (keywords: logs, error logs, log file, stack trace)
30
- → `/ck:fix:logs <detailed-description>`
30
+ → `/ck-fix-logs <detailed-description>`
31
31
 
32
- **F) Multiple Independent Issues** (2+ unrelated issues in different areas)
33
- → `/ck:fix:parallel <detailed-description>`
32
+ **F) Complex/Multiple Issues** (keywords: complex, architecture, refactor, major, system-wide, multiple components, 2+ unrelated issues)
33
+ → `/ck-fix-hard <detailed-description>`
34
34
 
35
- **G) Complex Issues** (keywords: complex, architecture, refactor, major, system-wide, multiple components)
36
- → `/ck:fix:hard <detailed-description>`
37
-
38
- **H) Simple/Quick Fixes** (default: small bug, single file, straightforward)
39
- → `/ck:fix:fast <detailed-description>`
35
+ **G) Simple/Quick Fixes** (default: small bug, single file, straightforward)
36
+ → `/ck-fix-fast <detailed-description>`
40
37
 
41
38
  ## Notes
42
39
  - `detailed-description` = enhanced prompt describing issue in detail
43
40
  - If unclear, ask user for clarification before routing
44
- - Can combine routes: e.g., multiple type errors + UI issue → `/ck:fix:parallel`
41
+ - Can combine routes: e.g., multiple type errors + UI issue → `/ck-fix-hard`
45
42
 
46
43
  ---
47
44
 
@@ -49,4 +46,5 @@ argument-hint: 'Describe the issues to fix'
49
46
 
50
47
  | Command | Description |
51
48
  |---------|-------------|
52
- | `/ck.test` | Run tests and analyze results |
49
+ | `/ck-test` | Run tests and analyze results |
50
+ | `/ck-git` | Commit changes |
@@ -100,5 +100,5 @@ gh pr create --title "type(scope): description" --body "## Summary
100
100
 
101
101
  | Command | Description |
102
102
  |---------|-------------|
103
- | `/ck.test` | Run tests before push |
104
- | `/ck.review` | Code review |
103
+ | `/ck-test` | Run tests before push |
104
+ | `/ck-review` | Code review |
@@ -6,7 +6,7 @@ tools: ['execute/runInTerminal', 'execute/getTerminalOutput']
6
6
  ---
7
7
 
8
8
  Think harder.
9
- All-in-one ClaudeKit guide. Run the script and present output based on type markers.
9
+ All-in-one CoKit guide. Run the script and present output based on type markers.
10
10
 
11
11
  ## Intent Validation
12
12
 
@@ -126,9 +126,9 @@ Never replace or summarize the script output. Always show it fully, then enhance
126
126
 
127
127
  ## Important: Correct Workflows
128
128
 
129
- - **`/ck.plan` → `/cook`**: Plan first, then execute the plan
130
- - **`/cook`**: Standalone - plans internally, no separate `/ck.plan` needed
131
- - **NEVER** suggest `/ck.plan` → `/cook` (cook has its own planning)
129
+ - **`/ck-plan` → `/cook`**: Plan first, then execute the plan
130
+ - **`/cook`**: Standalone - plans internally, no separate `/ck-plan` needed
131
+ - **NEVER** suggest `/ck-plan` → `/cook` (cook has its own planning)
132
132
 
133
133
  ---
134
134
 
@@ -136,5 +136,7 @@ Never replace or summarize the script output. Always show it fully, then enhance
136
136
 
137
137
  | Command | Description |
138
138
  |---------|-------------|
139
- | `/ck.brainstorm` | Explore ideas |
140
- | `/ck.plan` | Create plan |
139
+ | `/ck-brainstorm` | Explore ideas |
140
+ | `/ck-plan` | Create plan |
141
+ | `/ck-cook` | Implement feature |
142
+ | `/ck-spec-specify` | Write detailed feature spec |
@@ -3,7 +3,7 @@ agent: 'agent'
3
3
  description: 'Write journal entries from recent changes and memories'
4
4
  ---
5
5
 
6
- Use the `journal-writer` subagent to explore the memories and recent code changes, and write some journal entries.
6
+ Use the `journal-writer` agent to explore the memories and recent code changes, and write some journal entries.
7
7
  Journal entries should be concise and focused on the most important events, key changes, impacts, and decisions.
8
8
  Keep journal entries in the `./docs/journals/` directory.
9
9
 
@@ -13,5 +13,7 @@ Keep journal entries in the `./docs/journals/` directory.
13
13
 
14
14
  | Command | Description |
15
15
  |---------|-------------|
16
- | `/ck.brainstorm` | Explore ideas |
17
- | `/ck.plan` | Create plan |
16
+ | `/ck-brainstorm` | Explore ideas |
17
+ | `/ck-plan` | Create plan |
18
+ | `/ck-fix` | Analyze and fix issues |
19
+ | `/ck-spec-specify` | Write detailed feature spec |
@@ -3,6 +3,25 @@ agent: 'agent'
3
3
  description: 'No research. Only analyze and create an implementation plan'
4
4
  argument-hint: 'Task description or requirements'
5
5
  ---
6
+ ## Variant Notice
7
+ **IMPORTANT — Read before proceeding.**
8
+ `ck-plan-fast` is an internal mode for quick planning without research — it is meant to be selected automatically by AI when you run `/ck-plan`.
9
+ You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
10
+ Before executing, you MUST output the following message **exactly as written** and wait for user response:
11
+
12
+ ---
13
+ **Variant Notice**
14
+
15
+ `ck-plan-fast` is an internal mode for quick planning without research — it is meant to be selected automatically by AI when you run `/ck-plan`.
16
+ You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
17
+
18
+ Do you want to continue anyway, or switch to `/ck-plan`? **[Continue / Switch to /ck-plan]**
19
+
20
+ ---
21
+
22
+ Only proceed if user explicitly confirms Continue.
23
+ If user chooses "Switch to /ck-plan", run immediately — do NOT ask user to re-enter their input.
24
+
6
25
 
7
26
  Think.
8
27
  Activate `planning` skill.
@@ -20,10 +39,10 @@ Check the `## Plan Context` section in the injected context:
20
39
  - If "Plan: none" → Create new plan using naming from `## Naming` section.
21
40
 
22
41
  ## Workflow
23
- Use `planner` subagent to:
42
+ Use `planner` agent to:
24
43
  1. If creating new: Create directory using `Plan dir:` from `## Naming` section, then run `node $HOME/.copilot/scripts/set-active-plan.cjs {plan-dir}`
25
44
  If reusing: Use the active plan path from Plan Context.
26
- Make sure you pass the directory path to every subagent during the process.
45
+ Make sure you pass the directory path to every agent during the process.
27
46
  2. Follow strictly to the "Plan Creation & Organization" rules of `planning` skill.
28
47
  3. Analyze the codebase by reading `codebase-summary.md`, `code-standards.md`, `system-architecture.md` and `project-overview-pdr.md` file.
29
48
  4. Gathers all information and create an implementation plan of this task.
@@ -65,7 +84,7 @@ This reminder is **NON-NEGOTIABLE** - always output it after presenting the plan
65
84
  created: {YYYY-MM-DD}
66
85
  ---
67
86
  ```
68
- - Save the overview access point at `{plan-dir}/ck.plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files.
87
+ - Save the overview access point at `{plan-dir}/ck-plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files.
69
88
  - For each phase, create `{plan-dir}/phase-XX-phase-name-here.md` containing the following sections in order: Context links (reference parent plan, dependencies, docs), Overview (date, description, priority, implementation status, review status), Key Insights, Requirements, Architecture, Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps.
70
89
 
71
90
  ## Important Notes
@@ -81,5 +100,7 @@ This reminder is **NON-NEGOTIABLE** - always output it after presenting the plan
81
100
 
82
101
  | Command | Description |
83
102
  |---------|-------------|
84
- | `/ck.test` | Run tests and analyze results |
85
- | `/ck.fix` | Analyze and fix issues |
103
+ | `/ck-cook` | Implement plan |
104
+ | `/ck-test` | Run tests and analyze results |
105
+ | `/ck-fix` | Analyze and fix issues |
106
+ | `/ck-spec-specify` | Too complex? Switch to spec-driven flow |
@@ -4,6 +4,25 @@ description: 'Research, analyze, and create an implementation plan'
4
4
  argument-hint: 'Task description or requirements'
5
5
  tools: ['web/fetch', 'search/codebase', 'read/readFile', 'search/listDirectory', 'edit/createFile', 'edit/editFiles']
6
6
  ---
7
+ ## Variant Notice
8
+ **IMPORTANT — Read before proceeding.**
9
+ `ck-plan-hard` is an internal mode for deep research + planning — it is meant to be selected automatically by AI when you run `/ck-plan`.
10
+ You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
11
+ Before executing, you MUST output the following message **exactly as written** and wait for user response:
12
+
13
+ ---
14
+ **Variant Notice**
15
+
16
+ `ck-plan-hard` is an internal mode for deep research + planning — it is meant to be selected automatically by AI when you run `/ck-plan`.
17
+ You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
18
+
19
+ Do you want to continue anyway, or switch to `/ck-plan`? **[Continue / Switch to /ck-plan]**
20
+
21
+ ---
22
+
23
+ Only proceed if user explicitly confirms Continue.
24
+ If user chooses "Switch to /ck-plan", run immediately — do NOT ask user to re-enter their input.
25
+
7
26
 
8
27
  Think harder.
9
28
  Activate `planning` skill.
@@ -23,14 +42,14 @@ Check the `## Plan Context` section in the injected context:
23
42
  ## Workflow
24
43
  1. If creating new: Create directory using `Plan dir:` from `## Naming` section, then run `node $HOME/.copilot/scripts/set-active-plan.cjs {plan-dir}`
25
44
  If reusing: Use the active plan path from Plan Context.
26
- Make sure you pass the directory path to every subagent during the process.
45
+ Make sure you pass the directory path to every agent during the process.
27
46
  2. Follow strictly to the "Plan Creation & Organization" rules of `planning` skill.
28
47
  3. Use multiple `researcher` agents (max 2 agents) in parallel to research for this task:
29
48
  Each agent research for a different aspect of the task and are allowed to perform max 5 tool calls.
30
49
  4. Analyze the codebase by reading `codebase-summary.md`, `code-standards.md`, `system-architecture.md` and `project-overview-pdr.md` file.
31
50
  **ONLY PERFORM THIS FOLLOWING STEP IF `codebase-summary.md` is not available or older than 3 days**: Use `/scout <instructions>` slash command to search the codebase for files needed to complete the task.
32
- 5. Main agent gathers all research and scout report filepaths, and pass them to `planner` subagent with the prompt to create an implementation plan of this task.
33
- 6. Main agent receives the implementation plan from `planner` subagent, and ask user to review the plan
51
+ 5. Main agent gathers all research and scout report filepaths, and pass them to `planner` agent with the prompt to create an implementation plan of this task.
52
+ 6. Main agent receives the implementation plan from `planner` agent, and ask user to review the plan
34
53
 
35
54
  ## Post-Plan Validation (Optional)
36
55
 
@@ -41,11 +60,11 @@ After plan creation, offer validation interview to confirm decisions before impl
41
60
  | Mode | Behavior |
42
61
  |------|----------|
43
62
  | `prompt` | Ask user: "Validate this plan with a brief interview?" → Yes (Recommended) / No |
44
- | `auto` | Automatically execute `/ck.plan:validate {plan-path}` |
63
+ | `auto` | Automatically execute `/ck-plan-validate {plan-path}` |
45
64
  | `off` | Skip validation step entirely |
46
65
 
47
- **If mode is `prompt`:** Use `AskUserQuestion` tool with options above.
48
- **If user chooses validation or mode is `auto`:** Execute `/ck.plan:validate {plan-path}` SlashCommand.
66
+ **If mode is `prompt`:** Present the options above directly in your response and wait for user to choose.
67
+ **If user chooses validation or mode is `auto`:** Execute `/ck-plan-validate {plan-path}` SlashCommand.
49
68
 
50
69
  ## Context Reminder (MANDATORY)
51
70
 
@@ -92,7 +111,7 @@ This reminder is **NON-NEGOTIABLE** when validation is skipped.
92
111
  created: {YYYY-MM-DD}
93
112
  ---
94
113
  ```
95
- - Save the overview access point at `{plan-dir}/ck.plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files.
114
+ - Save the overview access point at `{plan-dir}/ck-plan.md`. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files.
96
115
  - For each phase, create `{plan-dir}/phase-XX-phase-name-here.md` containing the following sections in order: Context links (reference parent plan, dependencies, docs), Overview (date, description, priority, implementation status, review status), Key Insights, Requirements, Architecture, Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps.
97
116
 
98
117
  ## Important Notes
@@ -108,5 +127,7 @@ This reminder is **NON-NEGOTIABLE** when validation is skipped.
108
127
 
109
128
  | Command | Description |
110
129
  |---------|-------------|
111
- | `/ck.test` | Run tests and analyze results |
112
- | `/ck.fix` | Analyze and fix issues |
130
+ | `/ck-cook` | Implement plan |
131
+ | `/ck-test` | Run tests and analyze results |
132
+ | `/ck-fix` | Analyze and fix issues |
133
+ | `/ck-spec-specify` | Need formal spec? Switch to spec-driven flow |
@@ -0,0 +1,209 @@
1
+ ---
2
+ agent: 'agent'
3
+ description: 'Validate plan with critical questions interview'
4
+ argument-hint: 'Path to plan directory'
5
+ ---
6
+ ## Variant Notice
7
+ **IMPORTANT — Read before proceeding.**
8
+ `ck-plan-validate` is an internal mode for validating an existing plan with interview questions — it is meant to be selected automatically by AI when you run `/ck-plan`.
9
+ You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
10
+ Before executing, you MUST output the following message **exactly as written** and wait for user response:
11
+
12
+ ---
13
+ **Variant Notice**
14
+
15
+ `ck-plan-validate` is an internal mode for validating an existing plan with interview questions — it is meant to be selected automatically by AI when you run `/ck-plan`.
16
+ You don't need to call this directly. Just use `/ck-plan` and AI will pick the right mode for you.
17
+
18
+ Do you want to continue anyway, or switch to `/ck-plan`? **[Continue / Switch to /ck-plan]**
19
+
20
+ ---
21
+
22
+ Only proceed if user explicitly confirms Continue.
23
+ If user chooses "Switch to /ck-plan", run immediately — do NOT ask user to re-enter their input.
24
+
25
+
26
+ ## Your mission
27
+
28
+ Interview the user with critical questions to validate assumptions, confirm decisions, and surface potential issues in an implementation plan before coding begins.
29
+
30
+ ## Plan Resolution
31
+
32
+ 1. If `${input}` provided → Use that path
33
+ 2. Else check `## Plan Context` section → Use active plan path
34
+ 3. If no plan found → Ask user to specify path or run `/ck-plan-hard` first
35
+
36
+ ## Configuration (from injected context)
37
+
38
+ Check `## Plan Context` section for validation settings:
39
+ - `mode` - Controls auto/prompt/off behavior
40
+ - `questions` - Range like `3-8` (min-max)
41
+
42
+ These values are automatically injected from user config. Use them as constraints.
43
+
44
+ ## Workflow
45
+
46
+ ### Step 1: Read Plan Files
47
+
48
+ Read the plan directory:
49
+ - `plan.md` - Overview and phases list
50
+ - `phase-*.md` - All phase files
51
+ - Look for decision points, assumptions, risks, tradeoffs
52
+
53
+ ### Step 2: Extract Question Topics
54
+
55
+ Scan plan content for:
56
+
57
+ | Category | Keywords to detect |
58
+ |----------|-------------------|
59
+ | **Architecture** | "approach", "pattern", "design", "structure", "database", "API" |
60
+ | **Assumptions** | "assume", "expect", "should", "will", "must", "default" |
61
+ | **Tradeoffs** | "tradeoff", "vs", "alternative", "option", "choice", "either/or" |
62
+ | **Risks** | "risk", "might", "could fail", "dependency", "blocker", "concern" |
63
+ | **Scope** | "phase", "MVP", "future", "out of scope", "nice to have" |
64
+
65
+ ### Step 3: Generate Questions
66
+
67
+ For each detected topic, formulate a concrete question:
68
+
69
+ **Question format rules:**
70
+ - Each question must have 2-4 concrete options
71
+ - Mark recommended option with "(Recommended)" suffix
72
+ - Include "Other" option is automatic - don't add it
73
+ - Questions should surface implicit decisions
74
+
75
+ **Example questions:**
76
+
77
+ ```
78
+ Category: Architecture
79
+ Question: "How should the validation results be persisted?"
80
+ Options:
81
+ 1. Save to plan.md frontmatter (Recommended) - Updates existing plan
82
+ 2. Create validation-answers.md - Separate file for answers
83
+ 3. Don't persist - Ephemeral validation only
84
+ ```
85
+
86
+ ```
87
+ Category: Assumptions
88
+ Question: "The plan assumes API rate limiting is not needed. Is this correct?"
89
+ Options:
90
+ 1. Yes, rate limiting not needed for MVP
91
+ 2. No, add basic rate limiting now (Recommended)
92
+ 3. Defer to Phase 2
93
+ ```
94
+
95
+ ### Step 4: Interview User
96
+
97
+ Present questions directly in your response, listing each with numbered options. Then stop and wait for the user to answer before proceeding.
98
+
99
+ **Rules:**
100
+ - Use question count from `## Plan Context` → `Validation: mode=X, questions=MIN-MAX`
101
+ - Group related questions when possible (max 4 questions per response)
102
+ - Focus on: assumptions, risks, tradeoffs, architecture
103
+ - Format each question with numbered options for easy selection
104
+
105
+ ### Step 5: Document Answers
106
+
107
+ After collecting answers, update `plan.md` with a detailed validation log. If a `## Validation Log` section already exists (from previous sessions), **append** a new session block — never overwrite history.
108
+
109
+ 1. Add or append to `## Validation Log` section in `plan.md`:
110
+
111
+ ```markdown
112
+ ## Validation Log
113
+
114
+ ### Session 1 — {YYYY-MM-DD}
115
+ **Trigger:** {what prompted this validation — initial plan creation, re-validation after scope change, etc.}
116
+ **Questions asked:** {count}
117
+
118
+ #### Questions & Answers
119
+
120
+ 1. **[{Category}]** {full question text}
121
+ - Options: {A} | {B} | {C}
122
+ - **Answer:** {user's choice}
123
+ - **Custom input:** {verbatim "Other" text if user selected Other, otherwise omit this line}
124
+ - **Rationale:** {why this decision matters for implementation}
125
+
126
+ 2. **[{Category}]** {full question text}
127
+ - Options: {A} | {B} | {C}
128
+ - **Answer:** {user's choice}
129
+ - **Custom input:** {verbatim text, omit if N/A}
130
+ - **Rationale:** {why this matters}
131
+
132
+ #### Confirmed Decisions
133
+ - {decision}: {choice} — {brief why}
134
+
135
+ #### Action Items
136
+ - [ ] {specific change needed based on answers}
137
+
138
+ #### Impact on Phases
139
+ - Phase {N}: {what needs updating and why}
140
+ ```
141
+
142
+ **Recording rules:**
143
+ - **Full question text**: Copy the exact question asked, not a summary
144
+ - **All options**: List every option that was presented
145
+ - **Verbatim custom input**: If user selected "Other" and typed custom text, record it exactly as entered — this often contains critical context
146
+ - **Rationale**: Explain why the decision affects implementation (helps future agents understand intent)
147
+ - **Session numbering**: Increment session number from last existing session. First validation = Session 1
148
+ - **Trigger**: State what prompted this validation round (initial, re-validation, scope change, etc.)
149
+
150
+ 2. If answers require plan changes, document them in `#### Impact on Phases` section.
151
+
152
+ ### Step 6: Propagate Changes to Phases (Auto-Apply)
153
+
154
+ **Auto-propagate** validation decisions to affected phase files.
155
+
156
+ **Process:**
157
+ 1. Parse "Impact on Phases" section → If empty, skip and report "No phase changes required"
158
+ 2. For each phase reference (accepts "Phase 2", "phase-02", "P2"):
159
+ - Search for `phase-{N:02d}-*.md` files → If missing, warn and skip
160
+ - Locate target section (exact → fuzzy → fallback to Key Insights)
161
+ - Apply change + add marker: `<!-- Updated: Validation Session N - {change} -->`
162
+ - Skip if same-session marker already exists (prevent duplication)
163
+
164
+ **Section mapping:**
165
+ | Change Type | Target Section |
166
+ |-------------|----------------|
167
+ | Requirements | Requirements |
168
+ | Architecture | Architecture |
169
+ | Scope | Overview / Implementation Steps |
170
+ | Risk | Risk Assessment |
171
+ | Unknown | Key Insights (new subsection) |
172
+
173
+ **Error handling:** Best-effort — log warnings for missing files/sections, continue with others, report all in Output.
174
+
175
+ ## Output
176
+
177
+ After validation completes, provide summary:
178
+ - Number of questions asked
179
+ - Key decisions confirmed
180
+ - **Phase propagation results:**
181
+ - Files updated (with section names)
182
+ - Warnings (skipped phases, fallback sections)
183
+ - Errors (if any write failures)
184
+ - Any items flagged for plan revision
185
+ - Recommendation: proceed to implementation or revise plan first
186
+
187
+ ## Next Steps (MANDATORY)
188
+
189
+ **IMPORTANT:** After providing the validation summary, you MUST remind the user with the **full absolute path**:
190
+
191
+ > **Best Practice:** Run `/clear` before implementing to start with fresh context.
192
+ > Then run:
193
+ > ```
194
+ > /cook --auto {ABSOLUTE_PATH_TO_PLAN_DIR}/plan.md
195
+ > ```
196
+ > *(Replace with actual absolute path)*
197
+ >
198
+ > **Why `--auto`?** Plan was already validated - safe to skip review gates.
199
+ > **Why absolute path?** After `/clear`, the new session loses context. Worktree paths won't be discoverable without the full path.
200
+ >
201
+ > Fresh context helps the agent focus solely on implementation without planning context pollution, improving plan adherence.
202
+
203
+ This reminder is **NON-NEGOTIABLE** - always output it at the end of validation with the actual absolute path.
204
+
205
+ ## Important Notes
206
+
207
+ **IMPORTANT:** Only ask questions about genuine decision points - don't manufacture artificial choices.
208
+ **IMPORTANT:** If plan is simple with few decisions, it's okay to ask fewer than min questions.
209
+ **IMPORTANT:** Prioritize questions that could change implementation significantly.
@@ -4,23 +4,57 @@ description: 'Intelligent plan creation with prompt enhancement'
4
4
  argument-hint: 'Task description or requirements'
5
5
  ---
6
6
 
7
- ## Your mission
8
- <task>
9
- ${input}
10
- </task>
7
+ **Analyze task and route to the right planning mode:**
8
+ <task>${input}</task>
11
9
 
12
- ## Pre-Creation Check (Active vs Suggested Plan Detection)
10
+ ## Decision Tree
13
11
 
14
- Check the `## Plan Context` section in the injected context:
12
+ **1. Check for existing plan:**
13
+ - Check `## Plan Context` section in injected context
15
14
  - If "Plan:" shows a path → Active plan exists. Ask user: "Active plan found: {path}. Continue with this? [Y/n]"
16
- - If "Suggested:" shows a path → Branch-matched plan hint only. Ask user if they want to activate it or create new.
17
- - If "Plan: none" → Proceed to create new plan using naming pattern from `## Naming` section.
15
+ - If "Suggested:" shows a path → Branch-matched hint. Ask user to activate or create new.
16
+ - If "Plan: none" → Proceed to step 2.
17
+
18
+ **2. Route by complexity:**
19
+
20
+ **A) Simple/Quick Tasks** (keywords: small, quick, simple, straightforward, single file, minor, tweak, < 2 hours)
21
+ → `/ck-plan-fast <detailed-instructions-prompt>`
22
+
23
+ **B) Complex/Research-Heavy Tasks** (keywords: complex, research, unfamiliar, architecture, multi-component, integration, large, major, multi-day)
24
+ → `/ck-plan-hard <detailed-instructions-prompt>`
25
+
26
+ **C) Validate Existing Plan** (keywords: validate, review plan, check plan, verify assumptions)
27
+ → `/ck-plan-validate <path-to-plan>`
28
+
29
+ **D) Default/Medium Tasks** (anything else)
30
+ → Execute planning workflow below directly.
31
+
32
+ ## Workflow (for Default/Medium tasks)
18
33
 
19
- ## Workflow
20
- - Analyze the given task and use `AskUserQuestion` tool to ask for more details if needed.
21
34
  - Activate `planning` skill.
35
+ - Analyze the given task and ask clarifying questions directly if needed. Wait for user response before proceeding.
22
36
  - Note: `detailed-instructions-prompt` is **an enhanced prompt** that describes the task in detail based on the provided task description.
23
37
 
38
+ ## Post-Plan Validation (Optional)
39
+
40
+ After plan creation, offer validation for non-trivial plans.
41
+
42
+ Check `## Plan Context` → `Validation: mode=X, questions=MIN-MAX`:
43
+
44
+ | Mode | Behavior |
45
+ |------|----------|
46
+ | `prompt` | Ask user: "Validate this plan with a brief interview?" → Yes (Recommended) / No |
47
+ | `auto` | Automatically execute `/ck-plan-validate {plan-path}` |
48
+ | `off` | Skip validation step entirely |
49
+
50
+ If user chooses validation or mode is `auto`: Execute `/ck-plan-validate {plan-path}`.
51
+
52
+ ## Notes
53
+ - `detailed-instructions-prompt` = enhanced prompt describing task in detail
54
+ - If unclear about complexity, default to this prompt's workflow (medium)
55
+ - Fast plans skip validation by default
56
+ - Hard plans recommend validation
57
+
24
58
  ## Important Notes
25
59
  **IMPORTANT:** Analyze the skills catalog and activate the skills that are needed for the task during the process.
26
60
  **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
@@ -34,5 +68,8 @@ Check the `## Plan Context` section in the injected context:
34
68
 
35
69
  | Command | Description |
36
70
  |---------|-------------|
37
- | `/ck.test` | Run tests and analyze results |
38
- | `/ck.fix` | Analyze and fix issues |
71
+ | `/ck-plan-validate` | Validate plan with critical questions |
72
+ | `/ck-cook` | Implement plan |
73
+ | `/ck-test` | Run tests and analyze results |
74
+ | `/ck-fix` | Analyze and fix issues |
75
+ | `/ck-spec-specify` | Need detailed spec first? Start spec-driven flow |