cokit-cli 1.2.6 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/README.md +9 -42
  2. package/agents/brainstormer.agent.md +28 -14
  3. package/agents/code-reviewer.agent.md +101 -67
  4. package/agents/code-simplifier.agent.md +36 -41
  5. package/agents/debugger.agent.md +29 -24
  6. package/agents/docs-manager.agent.md +15 -23
  7. package/agents/fullstack-developer.agent.md +16 -6
  8. package/agents/git-manager.agent.md +0 -3
  9. package/agents/planner.agent.md +16 -34
  10. package/agents/project-manager.agent.md +24 -0
  11. package/agents/researcher.agent.md +15 -13
  12. package/agents/tester.agent.md +43 -20
  13. package/agents/ui-ux-designer.agent.md +16 -49
  14. package/docs/README.md +8 -9
  15. package/docs/Skills Orchestration Layer - Training Slides - en.pdf +0 -0
  16. package/docs/Skills Orchestration Layer - Training Slides - vi.pdf +0 -0
  17. package/docs/code-standards.md +1 -2
  18. package/docs/codebase-summary.md +35 -66
  19. package/docs/cokit-commands-usage-guide.md +27 -73
  20. package/docs/cokit-comprehensive-mapping-guide.md +9 -15
  21. package/docs/cokit-slides.md +4 -9
  22. package/docs/cokit-sync-and-maintenance-guide.md +42 -190
  23. package/docs/cokit-team-presentation.md +6 -11
  24. package/docs/copilot-processing-flow.md +3 -3
  25. package/docs/migration-guide.md +15 -15
  26. package/docs/project-overview-pdr.md +6 -7
  27. package/docs/project-roadmap.md +13 -15
  28. package/docs/skills-and-orchestration-layer-en.md +404 -0
  29. package/docs/skills-and-orchestration-layer-vi.md +404 -0
  30. package/docs/system-architecture.md +14 -20
  31. package/docs/{claudekit-porting-rules.md → upstream-porting-rules.md} +15 -16
  32. package/package.json +3 -4
  33. package/prompts/ck-ask.prompt.md +0 -1
  34. package/prompts/ck-bootstrap.prompt.md +0 -3
  35. package/prompts/ck-brainstorm.prompt.md +0 -1
  36. package/prompts/ck-cook.prompt.md +0 -1
  37. package/prompts/ck-debug.prompt.md +0 -1
  38. package/prompts/ck-deploy.prompt.md +22 -0
  39. package/prompts/ck-docs.prompt.md +0 -1
  40. package/prompts/ck-frontend.prompt.md +20 -0
  41. package/prompts/ck-help.prompt.md +0 -1
  42. package/prompts/ck-plan-fast.prompt.md +0 -3
  43. package/prompts/ck-plan-hard.prompt.md +0 -3
  44. package/prompts/ck-plan.prompt.md +0 -3
  45. package/prompts/ck-project.prompt.md +20 -0
  46. package/prompts/ck-review.prompt.md +0 -3
  47. package/prompts/ck-scout.prompt.md +0 -1
  48. package/prompts/ck-security.prompt.md +22 -0
  49. package/prompts/ck-ship.prompt.md +22 -0
  50. package/prompts/ck-test.prompt.md +0 -2
  51. package/prompts/ck-watzup.prompt.md +0 -1
  52. package/skills/agent-browser/SKILL.md +11 -8
  53. package/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
  54. package/skills/bootstrap/SKILL.md +102 -0
  55. package/skills/bootstrap/references/shared-phases.md +59 -0
  56. package/skills/bootstrap/references/workflow-auto.md +52 -0
  57. package/skills/bootstrap/references/workflow-fast.md +50 -0
  58. package/skills/bootstrap/references/workflow-full.md +60 -0
  59. package/skills/bootstrap/references/workflow-parallel.md +59 -0
  60. package/skills/brainstorm/SKILL.md +63 -15
  61. package/skills/code-review/SKILL.md +138 -135
  62. package/skills/code-review/references/adversarial-review.md +223 -0
  63. package/skills/code-review/references/checklist-workflow.md +100 -0
  64. package/skills/code-review/references/checklists/api.md +52 -0
  65. package/skills/code-review/references/checklists/base.md +100 -0
  66. package/skills/code-review/references/checklists/web-app.md +54 -0
  67. package/skills/code-review/references/code-review-reception.md +48 -144
  68. package/skills/code-review/references/codebase-scan-workflow.md +30 -0
  69. package/skills/code-review/references/edge-case-scouting.md +119 -0
  70. package/skills/code-review/references/input-mode-resolution.md +135 -0
  71. package/skills/code-review/references/parallel-review-workflow.md +76 -0
  72. package/skills/code-review/references/requesting-code-review.md +115 -104
  73. package/skills/code-review/references/spec-compliance-review.md +43 -0
  74. package/skills/code-review/references/task-management-reviews.md +155 -0
  75. package/skills/common/README.md +2 -12
  76. package/skills/common/api_key_helper.py +7 -37
  77. package/skills/context-engineering/SKILL.md +4 -3
  78. package/skills/context-engineering/references/context-degradation.md +2 -2
  79. package/skills/context-engineering/references/runtime-awareness.md +5 -47
  80. package/skills/cook/README.md +13 -13
  81. package/skills/cook/SKILL.md +86 -58
  82. package/skills/cook/references/intent-detection.md +7 -7
  83. package/skills/cook/references/review-cycle.md +2 -2
  84. package/skills/cook/references/subagent-patterns.md +75 -0
  85. package/skills/cook/references/workflow-steps.md +75 -23
  86. package/skills/databases/SKILL.md +3 -30
  87. package/skills/databases/db-design.md +1 -1
  88. package/skills/debug/SKILL.md +47 -105
  89. package/skills/debug/references/frontend-verification.md +103 -0
  90. package/skills/debug/references/investigation-methodology.md +101 -0
  91. package/skills/debug/references/log-and-ci-analysis.md +97 -0
  92. package/skills/debug/references/performance-diagnostics.md +113 -0
  93. package/skills/debug/references/reporting-standards.md +122 -0
  94. package/skills/debug/references/task-management-debugging.md +155 -0
  95. package/skills/deploy/SKILL.md +154 -0
  96. package/skills/deploy/references/platform-config-templates.md +35 -0
  97. package/skills/deploy/references/platforms/aws.md +58 -0
  98. package/skills/deploy/references/platforms/cloudflare.md +41 -0
  99. package/skills/deploy/references/platforms/coolify.md +32 -0
  100. package/skills/deploy/references/platforms/digitalocean.md +45 -0
  101. package/skills/deploy/references/platforms/dokploy.md +29 -0
  102. package/skills/deploy/references/platforms/flyio.md +54 -0
  103. package/skills/deploy/references/platforms/gcp.md +45 -0
  104. package/skills/deploy/references/platforms/github-pages.md +56 -0
  105. package/skills/deploy/references/platforms/heroku.md +31 -0
  106. package/skills/deploy/references/platforms/netlify.md +39 -0
  107. package/skills/deploy/references/platforms/railway.md +38 -0
  108. package/skills/deploy/references/platforms/render.md +39 -0
  109. package/skills/deploy/references/platforms/tose.md +35 -0
  110. package/skills/deploy/references/platforms/vercel.md +37 -0
  111. package/skills/deploy/references/platforms/vultr.md +27 -0
  112. package/skills/devops/SKILL.md +6 -12
  113. package/skills/docs-seeker/SKILL.md +2 -1
  114. package/skills/docs-seeker/references/context7-patterns.md +4 -0
  115. package/skills/docs-seeker/scripts/fetch-docs.js +1 -2
  116. package/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
  117. package/skills/docs-seeker/workflows/library-search.md +1 -0
  118. package/skills/fix/SKILL.md +141 -44
  119. package/skills/fix/references/complexity-assessment.md +21 -9
  120. package/skills/fix/references/diagnosis-protocol.md +133 -0
  121. package/skills/fix/references/mode-selection.md +27 -11
  122. package/skills/fix/references/parallel-exploration.md +35 -12
  123. package/skills/fix/references/prevention-gate.md +87 -0
  124. package/skills/fix/references/review-cycle.md +3 -3
  125. package/skills/fix/references/skill-activation-matrix.md +64 -31
  126. package/skills/fix/references/task-orchestration.md +110 -0
  127. package/skills/fix/references/workflow-deep.md +110 -47
  128. package/skills/fix/references/workflow-logs.md +46 -10
  129. package/skills/fix/references/workflow-quick.md +43 -20
  130. package/skills/fix/references/workflow-standard.md +75 -41
  131. package/skills/fix/references/workflow-test.md +49 -10
  132. package/skills/fix/references/workflow-ui.md +56 -18
  133. package/skills/frontend-design/SKILL.md +109 -77
  134. package/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
  135. package/skills/frontend-design/references/anti-slop-rules.md +103 -0
  136. package/skills/frontend-design/references/asset-generation.md +284 -108
  137. package/skills/frontend-design/references/bento-motion-engine.md +142 -0
  138. package/skills/frontend-design/references/magicui-components.md +129 -0
  139. package/skills/frontend-design/references/performance-guardrails.md +169 -0
  140. package/skills/frontend-design/references/premium-design-patterns.md +93 -0
  141. package/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
  142. package/skills/frontend-design/references/visual-analysis-overview.md +1 -1
  143. package/skills/frontend-design/references/workflow-3d.md +98 -0
  144. package/skills/frontend-design/references/workflow-describe.md +4 -3
  145. package/skills/frontend-design/references/workflow-immersive.md +82 -0
  146. package/skills/frontend-design/references/workflow-quick.md +10 -12
  147. package/skills/frontend-design/references/workflow-screenshot.md +9 -8
  148. package/skills/frontend-design/references/workflow-video.md +74 -0
  149. package/skills/frontend-development/SKILL.md +400 -0
  150. package/skills/frontend-development/resources/common-patterns.md +331 -0
  151. package/skills/frontend-development/resources/complete-examples.md +872 -0
  152. package/skills/frontend-development/resources/component-patterns.md +502 -0
  153. package/skills/frontend-development/resources/data-fetching.md +767 -0
  154. package/skills/frontend-development/resources/file-organization.md +502 -0
  155. package/skills/frontend-development/resources/loading-and-error-states.md +501 -0
  156. package/skills/frontend-development/resources/performance.md +406 -0
  157. package/skills/frontend-development/resources/routing-guide.md +364 -0
  158. package/skills/frontend-development/resources/styling-guide.md +428 -0
  159. package/skills/frontend-development/resources/typescript-standards.md +418 -0
  160. package/skills/git/SKILL.md +18 -4
  161. package/skills/git/references/commit-standards.md +3 -3
  162. package/skills/git/references/workflow-commit.md +3 -3
  163. package/skills/git/references/workflow-merge.md +1 -1
  164. package/skills/git/references/workflow-pr.md +1 -1
  165. package/skills/git/references/workflow-push.md +1 -1
  166. package/skills/mcp-management/README.md +18 -18
  167. package/skills/mcp-management/SKILL.md +16 -15
  168. package/skills/mcp-management/references/configuration.md +4 -4
  169. package/skills/mcp-management/references/gemini-cli-integration.md +12 -12
  170. package/skills/mcp-management/scripts/.env.example +2 -2
  171. package/skills/mcp-management/scripts/dist/mcp-client.js +1 -1
  172. package/skills/mcp-management/scripts/mcp-client.ts +1 -1
  173. package/skills/mermaidjs-v11/SKILL.md +1 -0
  174. package/skills/planning/SKILL.md +122 -91
  175. package/skills/planning/references/archive-workflow.md +53 -0
  176. package/skills/planning/references/codebase-understanding.md +1 -1
  177. package/skills/planning/references/output-standards.md +17 -13
  178. package/skills/planning/references/plan-organization.md +52 -30
  179. package/skills/planning/references/red-team-personas.md +69 -0
  180. package/skills/planning/references/red-team-workflow.md +77 -0
  181. package/skills/planning/references/scope-challenge.md +90 -0
  182. package/skills/planning/references/task-management.md +134 -0
  183. package/skills/planning/references/validate-question-framework.md +80 -0
  184. package/skills/planning/references/validate-workflow.md +65 -0
  185. package/skills/planning/references/workflow-modes.md +154 -0
  186. package/skills/problem-solving/SKILL.md +1 -0
  187. package/skills/project-management/SKILL.md +133 -0
  188. package/skills/project-management/references/documentation-triggers.md +60 -0
  189. package/skills/project-management/references/hydration-workflow.md +89 -0
  190. package/skills/project-management/references/progress-tracking.md +120 -0
  191. package/skills/project-management/references/reporting-patterns.md +94 -0
  192. package/skills/project-management/references/task-operations.md +87 -0
  193. package/skills/repomix/SKILL.md +3 -2
  194. package/skills/repomix/references/usage-patterns.md +2 -2
  195. package/skills/repomix/scripts/README.md +1 -1
  196. package/skills/repomix/scripts/repomix_batch.py +2 -2
  197. package/skills/research/SKILL.md +7 -4
  198. package/skills/scout/SKILL.md +24 -24
  199. package/skills/scout/references/external-scouting.md +17 -17
  200. package/skills/scout/references/internal-scouting.md +9 -9
  201. package/skills/scout/references/task-management-scouting.md +125 -0
  202. package/skills/security/SKILL.md +139 -0
  203. package/skills/security/references/stride-owasp-checklist.md +128 -0
  204. package/skills/sequential-thinking/README.md +3 -3
  205. package/skills/sequential-thinking/SKILL.md +2 -0
  206. package/skills/sequential-thinking/package.json +1 -1
  207. package/skills/ship/SKILL.md +116 -0
  208. package/skills/ship/references/auto-detect.md +103 -0
  209. package/skills/ship/references/pr-template.md +90 -0
  210. package/skills/ship/references/ship-workflow.md +241 -0
  211. package/skills/test/SKILL.md +111 -0
  212. package/skills/test/references/report-format.md +58 -0
  213. package/skills/test/references/test-execution-workflow.md +103 -0
  214. package/skills/test/references/ui-testing-workflow.md +65 -0
  215. package/skills/ui-styling/SKILL.md +2 -0
  216. package/skills/web-testing/SKILL.md +8 -60
  217. package/src/commands/add.js +0 -1
  218. package/src/commands/doctor.js +2 -2
  219. package/src/commands/init.js +19 -28
  220. package/src/commands/update.js +1 -1
  221. package/templates/repo/.github/agents/brainstormer.agent.md +28 -14
  222. package/templates/repo/.github/agents/code-reviewer.agent.md +101 -67
  223. package/templates/repo/.github/agents/code-simplifier.agent.md +36 -41
  224. package/templates/repo/.github/agents/debugger.agent.md +29 -24
  225. package/templates/repo/.github/agents/docs-manager.agent.md +15 -23
  226. package/templates/repo/.github/agents/fullstack-developer.agent.md +16 -6
  227. package/templates/repo/.github/agents/git-manager.agent.md +0 -3
  228. package/templates/repo/.github/agents/planner.agent.md +16 -34
  229. package/templates/repo/.github/agents/project-manager.agent.md +24 -0
  230. package/templates/repo/.github/agents/researcher.agent.md +15 -13
  231. package/templates/repo/.github/agents/tester.agent.md +43 -20
  232. package/templates/repo/.github/agents/ui-ux-designer.agent.md +16 -49
  233. package/templates/repo/.github/prompts/ck-ask.prompt.md +0 -1
  234. package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +0 -3
  235. package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +0 -1
  236. package/templates/repo/.github/prompts/ck-cook.prompt.md +0 -1
  237. package/templates/repo/.github/prompts/ck-debug.prompt.md +0 -1
  238. package/templates/repo/.github/prompts/ck-deploy.prompt.md +22 -0
  239. package/templates/repo/.github/prompts/ck-docs.prompt.md +0 -1
  240. package/templates/repo/.github/prompts/ck-frontend.prompt.md +20 -0
  241. package/templates/repo/.github/prompts/ck-help.prompt.md +0 -1
  242. package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +0 -3
  243. package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +0 -3
  244. package/templates/repo/.github/prompts/ck-plan.prompt.md +0 -3
  245. package/templates/repo/.github/prompts/ck-project.prompt.md +20 -0
  246. package/templates/repo/.github/prompts/ck-review.prompt.md +0 -3
  247. package/templates/repo/.github/prompts/ck-scout.prompt.md +0 -1
  248. package/templates/repo/.github/prompts/ck-security.prompt.md +22 -0
  249. package/templates/repo/.github/prompts/ck-ship.prompt.md +22 -0
  250. package/templates/repo/.github/prompts/ck-test.prompt.md +0 -2
  251. package/templates/repo/.github/prompts/ck-watzup.prompt.md +0 -1
  252. package/templates/repo/.github/skills/agent-browser/SKILL.md +11 -8
  253. package/templates/repo/.github/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
  254. package/templates/repo/.github/skills/bootstrap/SKILL.md +102 -0
  255. package/templates/repo/.github/skills/bootstrap/references/shared-phases.md +59 -0
  256. package/templates/repo/.github/skills/bootstrap/references/workflow-auto.md +52 -0
  257. package/templates/repo/.github/skills/bootstrap/references/workflow-fast.md +50 -0
  258. package/templates/repo/.github/skills/bootstrap/references/workflow-full.md +60 -0
  259. package/templates/repo/.github/skills/bootstrap/references/workflow-parallel.md +59 -0
  260. package/templates/repo/.github/skills/brainstorm/SKILL.md +63 -15
  261. package/templates/repo/.github/skills/code-review/SKILL.md +138 -135
  262. package/templates/repo/.github/skills/code-review/references/adversarial-review.md +223 -0
  263. package/templates/repo/.github/skills/code-review/references/checklist-workflow.md +100 -0
  264. package/templates/repo/.github/skills/code-review/references/checklists/api.md +52 -0
  265. package/templates/repo/.github/skills/code-review/references/checklists/base.md +100 -0
  266. package/templates/repo/.github/skills/code-review/references/checklists/web-app.md +54 -0
  267. package/templates/repo/.github/skills/code-review/references/code-review-reception.md +48 -144
  268. package/templates/repo/.github/skills/code-review/references/codebase-scan-workflow.md +30 -0
  269. package/templates/repo/.github/skills/code-review/references/edge-case-scouting.md +119 -0
  270. package/templates/repo/.github/skills/code-review/references/input-mode-resolution.md +135 -0
  271. package/templates/repo/.github/skills/code-review/references/parallel-review-workflow.md +76 -0
  272. package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +19 -8
  273. package/templates/repo/.github/skills/code-review/references/spec-compliance-review.md +43 -0
  274. package/templates/repo/.github/skills/code-review/references/task-management-reviews.md +155 -0
  275. package/templates/repo/.github/skills/common/README.md +2 -12
  276. package/templates/repo/.github/skills/common/api_key_helper.py +7 -37
  277. package/templates/repo/.github/skills/context-engineering/SKILL.md +4 -3
  278. package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
  279. package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +5 -47
  280. package/templates/repo/.github/skills/cook/README.md +13 -13
  281. package/templates/repo/.github/skills/cook/SKILL.md +86 -58
  282. package/templates/repo/.github/skills/cook/references/intent-detection.md +7 -7
  283. package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
  284. package/templates/repo/.github/skills/cook/references/subagent-patterns.md +75 -0
  285. package/templates/repo/.github/skills/cook/references/workflow-steps.md +75 -23
  286. package/templates/repo/.github/skills/databases/SKILL.md +3 -30
  287. package/templates/repo/.github/skills/databases/db-design.md +1 -1
  288. package/templates/repo/.github/skills/debug/SKILL.md +47 -105
  289. package/templates/repo/.github/skills/debug/references/frontend-verification.md +103 -0
  290. package/templates/repo/.github/skills/debug/references/investigation-methodology.md +101 -0
  291. package/templates/repo/.github/skills/debug/references/log-and-ci-analysis.md +97 -0
  292. package/templates/repo/.github/skills/debug/references/performance-diagnostics.md +113 -0
  293. package/templates/repo/.github/skills/debug/references/reporting-standards.md +122 -0
  294. package/templates/repo/.github/skills/debug/references/task-management-debugging.md +155 -0
  295. package/templates/repo/.github/skills/deploy/SKILL.md +154 -0
  296. package/templates/repo/.github/skills/deploy/references/platform-config-templates.md +35 -0
  297. package/templates/repo/.github/skills/deploy/references/platforms/aws.md +58 -0
  298. package/templates/repo/.github/skills/deploy/references/platforms/cloudflare.md +41 -0
  299. package/templates/repo/.github/skills/deploy/references/platforms/coolify.md +32 -0
  300. package/templates/repo/.github/skills/deploy/references/platforms/digitalocean.md +45 -0
  301. package/templates/repo/.github/skills/deploy/references/platforms/dokploy.md +29 -0
  302. package/templates/repo/.github/skills/deploy/references/platforms/flyio.md +54 -0
  303. package/templates/repo/.github/skills/deploy/references/platforms/gcp.md +45 -0
  304. package/templates/repo/.github/skills/deploy/references/platforms/github-pages.md +56 -0
  305. package/templates/repo/.github/skills/deploy/references/platforms/heroku.md +31 -0
  306. package/templates/repo/.github/skills/deploy/references/platforms/netlify.md +39 -0
  307. package/templates/repo/.github/skills/deploy/references/platforms/railway.md +38 -0
  308. package/templates/repo/.github/skills/deploy/references/platforms/render.md +39 -0
  309. package/templates/repo/.github/skills/deploy/references/platforms/tose.md +35 -0
  310. package/templates/repo/.github/skills/deploy/references/platforms/vercel.md +37 -0
  311. package/templates/repo/.github/skills/deploy/references/platforms/vultr.md +27 -0
  312. package/templates/repo/.github/skills/devops/SKILL.md +6 -12
  313. package/templates/repo/.github/skills/docs-seeker/SKILL.md +2 -1
  314. package/templates/repo/.github/skills/docs-seeker/references/context7-patterns.md +4 -0
  315. package/templates/repo/.github/skills/docs-seeker/scripts/fetch-docs.js +1 -2
  316. package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
  317. package/templates/repo/.github/skills/docs-seeker/workflows/library-search.md +1 -0
  318. package/templates/repo/.github/skills/fix/SKILL.md +141 -44
  319. package/templates/repo/.github/skills/fix/references/complexity-assessment.md +21 -9
  320. package/templates/repo/.github/skills/fix/references/diagnosis-protocol.md +133 -0
  321. package/templates/repo/.github/skills/fix/references/mode-selection.md +27 -11
  322. package/templates/repo/.github/skills/fix/references/parallel-exploration.md +35 -12
  323. package/templates/repo/.github/skills/fix/references/prevention-gate.md +87 -0
  324. package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
  325. package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +64 -31
  326. package/templates/repo/.github/skills/fix/references/task-orchestration.md +110 -0
  327. package/templates/repo/.github/skills/fix/references/workflow-deep.md +110 -47
  328. package/templates/repo/.github/skills/fix/references/workflow-logs.md +46 -10
  329. package/templates/repo/.github/skills/fix/references/workflow-quick.md +43 -20
  330. package/templates/repo/.github/skills/fix/references/workflow-standard.md +75 -41
  331. package/templates/repo/.github/skills/fix/references/workflow-test.md +49 -10
  332. package/templates/repo/.github/skills/fix/references/workflow-ui.md +56 -18
  333. package/templates/repo/.github/skills/frontend-design/SKILL.md +49 -17
  334. package/templates/repo/.github/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
  335. package/templates/repo/.github/skills/frontend-design/references/anti-slop-rules.md +103 -0
  336. package/templates/repo/.github/skills/frontend-design/references/asset-generation.md +284 -108
  337. package/templates/repo/.github/skills/frontend-design/references/bento-motion-engine.md +142 -0
  338. package/templates/repo/.github/skills/frontend-design/references/magicui-components.md +129 -0
  339. package/templates/repo/.github/skills/frontend-design/references/performance-guardrails.md +169 -0
  340. package/templates/repo/.github/skills/frontend-design/references/premium-design-patterns.md +93 -0
  341. package/templates/repo/.github/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
  342. package/templates/repo/.github/skills/frontend-design/references/visual-analysis-overview.md +1 -1
  343. package/templates/repo/.github/skills/frontend-design/references/workflow-3d.md +98 -0
  344. package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +4 -3
  345. package/templates/repo/.github/skills/frontend-design/references/workflow-immersive.md +82 -0
  346. package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +10 -12
  347. package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +9 -8
  348. package/templates/repo/.github/skills/frontend-design/references/workflow-video.md +74 -0
  349. package/templates/repo/.github/skills/frontend-development/SKILL.md +400 -0
  350. package/templates/repo/.github/skills/frontend-development/resources/common-patterns.md +331 -0
  351. package/templates/repo/.github/skills/frontend-development/resources/complete-examples.md +872 -0
  352. package/templates/repo/.github/skills/frontend-development/resources/component-patterns.md +502 -0
  353. package/templates/repo/.github/skills/frontend-development/resources/data-fetching.md +767 -0
  354. package/templates/repo/.github/skills/frontend-development/resources/file-organization.md +502 -0
  355. package/templates/repo/.github/skills/frontend-development/resources/loading-and-error-states.md +501 -0
  356. package/templates/repo/.github/skills/frontend-development/resources/performance.md +406 -0
  357. package/templates/repo/.github/skills/frontend-development/resources/routing-guide.md +364 -0
  358. package/templates/repo/.github/skills/frontend-development/resources/styling-guide.md +428 -0
  359. package/templates/repo/.github/skills/frontend-development/resources/typescript-standards.md +418 -0
  360. package/templates/repo/.github/skills/git/SKILL.md +18 -4
  361. package/templates/repo/.github/skills/git/references/commit-standards.md +3 -3
  362. package/templates/repo/.github/skills/git/references/workflow-commit.md +3 -3
  363. package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
  364. package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
  365. package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
  366. package/templates/repo/.github/skills/mcp-management/README.md +18 -18
  367. package/templates/repo/.github/skills/mcp-management/SKILL.md +16 -15
  368. package/templates/repo/.github/skills/mcp-management/references/configuration.md +4 -4
  369. package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +12 -12
  370. package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
  371. package/templates/repo/.github/skills/mcp-management/scripts/mcp-client.ts +1 -1
  372. package/templates/repo/.github/skills/mermaidjs-v11/SKILL.md +1 -0
  373. package/templates/repo/.github/skills/planning/SKILL.md +122 -91
  374. package/templates/repo/.github/skills/planning/references/archive-workflow.md +53 -0
  375. package/templates/repo/.github/skills/planning/references/codebase-understanding.md +1 -1
  376. package/templates/repo/.github/skills/planning/references/output-standards.md +17 -13
  377. package/templates/repo/.github/skills/planning/references/plan-organization.md +52 -30
  378. package/templates/repo/.github/skills/planning/references/red-team-personas.md +69 -0
  379. package/templates/repo/.github/skills/planning/references/red-team-workflow.md +77 -0
  380. package/templates/repo/.github/skills/planning/references/scope-challenge.md +90 -0
  381. package/templates/repo/.github/skills/planning/references/task-management.md +134 -0
  382. package/templates/repo/.github/skills/planning/references/validate-question-framework.md +80 -0
  383. package/templates/repo/.github/skills/planning/references/validate-workflow.md +65 -0
  384. package/templates/repo/.github/skills/planning/references/workflow-modes.md +154 -0
  385. package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -0
  386. package/templates/repo/.github/skills/project-management/SKILL.md +133 -0
  387. package/templates/repo/.github/skills/project-management/references/documentation-triggers.md +60 -0
  388. package/templates/repo/.github/skills/project-management/references/hydration-workflow.md +89 -0
  389. package/templates/repo/.github/skills/project-management/references/progress-tracking.md +120 -0
  390. package/templates/repo/.github/skills/project-management/references/reporting-patterns.md +94 -0
  391. package/templates/repo/.github/skills/project-management/references/task-operations.md +87 -0
  392. package/templates/repo/.github/skills/repomix/SKILL.md +3 -2
  393. package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
  394. package/templates/repo/.github/skills/repomix/scripts/README.md +1 -1
  395. package/templates/repo/.github/skills/repomix/scripts/repomix_batch.py +2 -2
  396. package/templates/repo/.github/skills/research/SKILL.md +7 -4
  397. package/templates/repo/.github/skills/scout/SKILL.md +24 -24
  398. package/templates/repo/.github/skills/scout/references/external-scouting.md +17 -17
  399. package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
  400. package/templates/repo/.github/skills/scout/references/task-management-scouting.md +125 -0
  401. package/templates/repo/.github/skills/security/SKILL.md +139 -0
  402. package/templates/repo/.github/skills/security/references/stride-owasp-checklist.md +128 -0
  403. package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
  404. package/templates/repo/.github/skills/sequential-thinking/SKILL.md +2 -0
  405. package/templates/repo/.github/skills/sequential-thinking/package-lock.json +3652 -0
  406. package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
  407. package/templates/repo/.github/skills/ship/SKILL.md +116 -0
  408. package/templates/repo/.github/skills/ship/references/auto-detect.md +103 -0
  409. package/templates/repo/.github/skills/ship/references/pr-template.md +90 -0
  410. package/templates/repo/.github/skills/ship/references/ship-workflow.md +241 -0
  411. package/templates/repo/.github/skills/test/SKILL.md +111 -0
  412. package/templates/repo/.github/skills/test/references/report-format.md +58 -0
  413. package/templates/repo/.github/skills/test/references/test-execution-workflow.md +103 -0
  414. package/templates/repo/.github/skills/test/references/ui-testing-workflow.md +65 -0
  415. package/templates/repo/.github/skills/ui-styling/SKILL.md +2 -0
  416. package/templates/repo/.github/skills/web-testing/SKILL.md +8 -60
  417. package/docs/guide-next-steps-speckit-cokit-implementation.md +0 -187
  418. package/prompts/ck-spec-analyze.prompt.md +0 -201
  419. package/prompts/ck-spec-checklist.prompt.md +0 -308
  420. package/prompts/ck-spec-clarify.prompt.md +0 -190
  421. package/prompts/ck-spec-constitution.prompt.md +0 -92
  422. package/prompts/ck-spec-implement.prompt.md +0 -157
  423. package/prompts/ck-spec-plan.prompt.md +0 -95
  424. package/prompts/ck-spec-specify.prompt.md +0 -261
  425. package/prompts/ck-spec-tasks.prompt.md +0 -181
  426. package/templates/repo/.github/AGENTS.md +0 -103
  427. package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +0 -201
  428. package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +0 -308
  429. package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +0 -190
  430. package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +0 -92
  431. package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +0 -157
  432. package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +0 -95
  433. package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +0 -261
  434. package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +0 -181
  435. package/templates/repo/.github/skills/databases/stacks/bigquery.md +0 -231
  436. package/templates/repo/.github/skills/databases/stacks/d1_cloudflare.md +0 -137
  437. package/templates/repo/.github/skills/databases/stacks/mysql.md +0 -216
  438. package/templates/repo/.github/skills/databases/stacks/postgres.md +0 -235
  439. package/templates/repo/.github/skills/databases/stacks/sqlite.md +0 -244
  440. package/templates/repo/.github/skills/mcp-management/assets/tools.json +0 -3146
  441. package/templates/repo/.github/skills/mcp-management/scripts/dist/analyze-tools.js +0 -70
  442. package/templates/repo/.github/skills/mcp-management/scripts/dist/cli.js +0 -160
  443. package/templates/repo/.github/skills/mcp-management/scripts/dist/mcp-client.js +0 -183
  444. package/templates/repo/.github/skills/ui-styling/LICENSE.txt +0 -202
  445. package/templates/repo/.github/spec-kit/memory/constitution.md +0 -50
  446. package/templates/repo/.github/spec-kit/scripts/bash/check-prerequisites.sh +0 -166
  447. package/templates/repo/.github/spec-kit/scripts/bash/common.sh +0 -156
  448. package/templates/repo/.github/spec-kit/scripts/bash/create-new-feature.sh +0 -297
  449. package/templates/repo/.github/spec-kit/scripts/bash/setup-plan.sh +0 -61
  450. package/templates/repo/.github/spec-kit/scripts/bash/update-agent-context.sh +0 -799
  451. package/templates/repo/.github/spec-kit/scripts/powershell/check-prerequisites.ps1 +0 -148
  452. package/templates/repo/.github/spec-kit/scripts/powershell/common.ps1 +0 -137
  453. package/templates/repo/.github/spec-kit/scripts/powershell/create-new-feature.ps1 +0 -283
  454. package/templates/repo/.github/spec-kit/scripts/powershell/setup-plan.ps1 +0 -61
  455. package/templates/repo/.github/spec-kit/scripts/powershell/update-agent-context.ps1 +0 -448
  456. package/templates/repo/.github/spec-kit/templates/agent-file-template.md +0 -28
  457. package/templates/repo/.github/spec-kit/templates/checklist-template.md +0 -40
  458. package/templates/repo/.github/spec-kit/templates/commands/analyze.md +0 -187
  459. package/templates/repo/.github/spec-kit/templates/commands/checklist.md +0 -297
  460. package/templates/repo/.github/spec-kit/templates/commands/clarify.md +0 -184
  461. package/templates/repo/.github/spec-kit/templates/commands/constitution.md +0 -82
  462. package/templates/repo/.github/spec-kit/templates/commands/implement.md +0 -138
  463. package/templates/repo/.github/spec-kit/templates/commands/plan.md +0 -95
  464. package/templates/repo/.github/spec-kit/templates/commands/specify.md +0 -261
  465. package/templates/repo/.github/spec-kit/templates/commands/tasks.md +0 -140
  466. package/templates/repo/.github/spec-kit/templates/commands/taskstoissues.md +0 -33
  467. package/templates/repo/.github/spec-kit/templates/plan-template.md +0 -104
  468. package/templates/repo/.github/spec-kit/templates/spec-template.md +0 -115
  469. package/templates/repo/.github/spec-kit/templates/tasks-phase-template.md +0 -42
  470. package/templates/repo/.github/spec-kit/templates/tasks-template.md +0 -268
  471. package/templates/repo/.github/spec-kit/templates/vscode-settings.json +0 -14
@@ -18,7 +18,6 @@ export const addCommand = new Command('add')
18
18
  .description('Add a specific skill')
19
19
  .argument('[skill]', 'Skill name to add')
20
20
  .option('-l, --list', 'List available skills')
21
- .option('-g, --global', 'Add to ~/.copilot/skills/ (default)')
22
21
  .option('--local', 'Add to .github/skills/ in current project')
23
22
  .option('--overwrite', 'Overwrite existing files')
24
23
  .action(async (skill, options) => {
@@ -60,12 +60,12 @@ export const doctorCommand = new Command('doctor')
60
60
  warn(`~/.copilot/skills/ has ${skills.length} skills (expected 5)`);
61
61
  } else {
62
62
  error('~/.copilot/skills/ is empty');
63
- hint('Run: npx cokit init --global');
63
+ hint('Run: npx cokit init');
64
64
  hasIssues = true;
65
65
  }
66
66
  } else {
67
67
  error('~/.copilot/skills/ not found');
68
- hint('Run: npx cokit init --global');
68
+ hint('Run: npx cokit init');
69
69
  hasIssues = true;
70
70
  }
71
71
 
@@ -21,8 +21,6 @@ import { mkdirSync, existsSync } from 'fs';
21
21
 
22
22
  export const initCommand = new Command('init')
23
23
  .description('Set up CoKit in your project or globally')
24
- .option('-g, --global', 'Install all CoKit resources to ~/.copilot/')
25
- .option('-a, --all', 'Install both project templates and global resources')
26
24
  .option('-y, --yes', 'Skip confirmation prompts')
27
25
  .option('--overwrite', 'Overwrite existing files without prompting')
28
26
  .action(async (options) => {
@@ -34,33 +32,26 @@ export const initCommand = new Command('init')
34
32
  let installProject = false;
35
33
  let installGlobal = false;
36
34
 
37
- if (options.all) {
38
- installProject = true;
39
- installGlobal = true;
40
- } else if (options.global) {
41
- installGlobal = true;
42
- } else if (!options.global && !options.all) {
43
- const response = await prompts({
44
- type: 'select',
45
- name: 'mode',
46
- message: 'What do you want to set up?',
47
- choices: [
48
- { title: 'Project templates (.github/)', value: 'project', description: 'For this project only - share via git' },
49
- { title: 'Global resources (~/.copilot/)', value: 'global', description: 'Works in all projects' },
50
- { title: 'Both', value: 'both', description: 'Recommended for first-time setup' }
51
- ],
52
- initial: 0
53
- });
54
-
55
- if (!response.mode) {
56
- console.log('Setup cancelled.');
57
- return;
58
- }
59
-
60
- installProject = response.mode === 'project' || response.mode === 'both';
61
- installGlobal = response.mode === 'global' || response.mode === 'both';
35
+ const response = await prompts({
36
+ type: 'select',
37
+ name: 'mode',
38
+ message: 'What do you want to set up?',
39
+ choices: [
40
+ { title: 'Project templates (.github/)', value: 'project', description: 'For this project only - share via git' },
41
+ { title: 'Global resources (~/.copilot/)', value: 'global', description: 'Works in all projects' },
42
+ { title: 'Both', value: 'both', description: 'Recommended for first-time setup' }
43
+ ],
44
+ initial: 0
45
+ });
46
+
47
+ if (!response.mode) {
48
+ console.log('Setup cancelled.');
49
+ return;
62
50
  }
63
51
 
52
+ installProject = response.mode === 'project' || response.mode === 'both';
53
+ installGlobal = response.mode === 'global' || response.mode === 'both';
54
+
64
55
  if (!options.yes) {
65
56
  const targets = [];
66
57
  if (installProject) targets.push('.github/');
@@ -94,7 +85,7 @@ export const initCommand = new Command('init')
94
85
  }
95
86
 
96
87
  done('Done! Open VS Code and start using Copilot.');
97
- hint('Try typing /ck.fix in Copilot Chat.');
88
+ hint('Try typing /ck-fix in Copilot Chat.');
98
89
  console.log();
99
90
 
100
91
  } catch (err) {
@@ -15,7 +15,7 @@ export const updateCommand = new Command('update')
15
15
  console.log(' npx cokit init --overwrite');
16
16
  console.log();
17
17
  hint('To update personal skills, run:');
18
- console.log(' npx cokit init --global --overwrite');
18
+ console.log(' npx cokit init --overwrite');
19
19
  console.log();
20
20
  done('No action needed - npx always fetches latest!');
21
21
  console.log();
@@ -3,12 +3,20 @@ description: 'Brainstorm software solutions, evaluate architectural approaches,
3
3
  tools: ['search/codebase', 'search/changes', 'web/fetch', 'read/problems']
4
4
  ---
5
5
 
6
- # Brainstormer Agent
6
+ You are a **CTO-level advisor** challenging assumptions and surfacing options the user hasn't considered. You do not validate the user's first idea — you interrogate it. Your value is in the questions you ask before anyone writes code, and in the alternatives you surface that the user dismissed too quickly.
7
7
 
8
- You are a Solution Brainstormer, an elite software engineering expert who specializes in system architecture design and technical decision-making. Your core mission is to collaborate with users to find the best possible solutions while maintaining brutal honesty about feasibility and trade-offs.
8
+ ## Behavioral Checklist
9
+
10
+ Before concluding any brainstorm session, verify each item:
11
+
12
+ - [ ] Assumptions challenged: at least one core assumption of the user's approach was questioned explicitly
13
+ - [ ] Alternatives surfaced: 2-3 genuinely different approaches presented, not variations on the same idea
14
+ - [ ] Trade-offs quantified: each option compared on concrete dimensions (complexity, cost, latency, maintainability)
15
+ - [ ] Second-order effects named: downstream consequences of each approach stated, not implied
16
+ - [ ] Simplest viable option identified: the option with least complexity that still meets requirements is clearly named
17
+ - [ ] Decision documented: agreed approach recorded in a summary report before session ends
9
18
 
10
19
  **IMPORTANT**: Ensure token efficiency while maintaining high quality.
11
- **IMPORTANT**: Analyze the skills catalog and activate the skills that are needed for the task during the process.
12
20
 
13
21
  ## Communication Style
14
22
  If coding level guidelines were injected at session start (levels 0-5), follow those guidelines for response structure and explanation depth. The guidelines define what to explain, what not to explain, and required response format.
@@ -38,25 +46,31 @@ You operate by the holy trinity of software engineering: **YAGNI** (You Aren't G
38
46
  ## Collaboration Tools
39
47
  - Consult the `planner` agent to research industry best practices and find proven solutions
40
48
  - Engage the `docs-manager` agent to understand existing project implementation and constraints
41
- - Search the web to find efficient approaches and learn from others' experiences
42
- - Use `docs-seeker` skill to explore latest documentation and reference material
43
- - Use `sequential-thinking` skill for complex multi-step analysis and structured reasoning
44
- - Use `ai-multimodal` skill (if available) for analyzing images, diagrams, or visual assets
45
- - Use `repomix` CLI (if available) to generate a full codebase summary for deep context when needed
46
- - Use `/ck-scout ext` to scout edge cases in a specific file, or `/ck-scout` for general codebase scouting
47
-
48
- ## Workflow Phases
49
+ - Use `docs-seeker` skill to read latest documentation of external plugins/packages
50
+ - Employ `sequential-thinking` skill for complex problem-solving that requires structured analysis
51
+ - When you are given a Github repository URL, use `repomix` (if available) bash command to generate a fresh codebase summary:
52
+ ```bash
53
+ # usage: repomix --remote <github-repo-url>
54
+ # example: repomix --remote https://github.com/mrgoonie/human-mcp
55
+ ```
56
+ - You can use `/ck-scout` slash command to search the codebase for files needed to complete the task
57
+
58
+ ## Your Process
49
59
  1. **Discovery Phase**: Ask clarifying questions about requirements, constraints, timeline, and success criteria
50
60
  2. **Research Phase**: Gather information from other agents and external sources
51
61
  3. **Analysis Phase**: Evaluate multiple approaches using your expertise and principles
52
62
  4. **Debate Phase**: Present options, challenge user preferences, and work toward the optimal solution
53
63
  5. **Consensus Phase**: Ensure alignment on the chosen approach and document decisions
54
64
  6. **Documentation Phase**: Create a comprehensive markdown summary report with the final agreed solution
55
- 7. **Finalize Phase**: Ask if the user wants to create an implementation plan — if yes, run `/ck-plan-fast` for a quick plan or `/ck-plan-hard` for a thorough deep-dive plan
65
+ 7. **Finalize Phase**: Ask if user wants to create a detailed implementation plan.
66
+ - If `Yes`: Run `/ck-plan-fast` or `/ck-plan-hard` slash command based on complexity.
67
+ Pass the brainstorm summary context as the argument to ensure plan continuity.
68
+ **CRITICAL:** The invoked plan command will create `plan.md` with YAML frontmatter including `status: pending`.
69
+ - If `No`: End the session.
56
70
 
57
71
  ## Report Output
58
72
 
59
- Use the naming pattern from the `## Naming` section injected by hooks. If no naming is injected, save reports to `plans/reports/` with pattern `{type}-{date}-{slug}.md`.
73
+ Use the naming pattern from the `## Naming` section injected by hooks. The pattern includes full path and computed date.
60
74
 
61
75
  ### Report Content
62
76
  When brainstorming concludes with agreement, create a detailed markdown summary report including:
@@ -75,4 +89,4 @@ When brainstorming concludes with agreement, create a detailed markdown summary
75
89
 
76
90
  **Remember:** Your role is to be the user's most trusted technical advisor - someone who will tell them hard truths to ensure they build something great, maintainable, and successful.
77
91
 
78
- **IMPORTANT:** **DO NOT** implement anything, just brainstorm, answer questions and advise.
92
+ **IMPORTANT:** **DO NOT** implement anything, just brainstorm, answer questions and advise.
@@ -3,109 +3,143 @@ description: 'Comprehensive code review with scout-based edge case detection. Us
3
3
  tools: ['search/codebase', 'search/changes', 'read/problems', 'read/terminalLastCommand']
4
4
  ---
5
5
 
6
- # Code Reviewer Agent
6
+ You are a **Staff Engineer** performing production-readiness review. You hunt bugs that pass CI but break in production: race conditions, N+1 queries, trust boundary violations, unhandled error propagation, state mutation side effects, security holes (injection, auth bypass, data leaks).
7
7
 
8
- You are a senior software engineer with 15+ years of experience specializing in comprehensive code quality assessment and best practices enforcement. Your expertise spans multiple programming languages, frameworks, and architectural patterns, with deep knowledge of TypeScript/JavaScript (Node.js, NestJS, Express, React, Next.js, Vitest/Jest, ESLint, Prisma/Drizzle ORMs) and general multi-language proficiency across backend and frontend stacks.
8
+ ## Behavioral Checklist
9
9
 
10
- **IMPORTANT**: Ensure token efficiency while maintaining high quality.
11
- **IMPORTANT**: Analyze the skills catalog and activate the skills that are needed for the task during the process.
10
+ Before submitting any review, verify each item:
11
+
12
+ - [ ] Concurrency: checked for race conditions, shared mutable state, async ordering bugs
13
+ - [ ] Error boundaries: every thrown exception is either caught and handled or explicitly propagated
14
+ - [ ] API contracts: caller assumptions match what callee actually guarantees (nullability, shape, timing)
15
+ - [ ] Backwards compatibility: no silent breaking changes to exported interfaces or DB schema
16
+ - [ ] Input validation: all external inputs validated at system boundaries, not just at UI layer
17
+ - [ ] Auth/authz paths: every sensitive operation checks identity AND permission, not just one
18
+ - [ ] N+1 / query efficiency: no unbounded loops over DB calls, no missing indexes on filter columns
19
+ - [ ] Data leaks: no PII, secrets, or internal stack traces leaking to external consumers
20
+
21
+ **IMPORTANT**: Ensure token efficiency. Use `scout` and `code-review` skills for protocols.
22
+ When performing pre-landing review (from `/ck-ship` or explicit checklist request), load and apply checklists from `code-review/references/checklists/` using the workflow in `code-review/references/checklist-workflow.md`. Two-pass model: critical (blocking) + informational (non-blocking).
12
23
 
13
24
  ## Core Responsibilities
14
25
 
15
- | Area | Tasks |
26
+ 1. **Code Quality** - Standards adherence, readability, maintainability, code smells, edge cases
27
+ 2. **Type Safety & Linting** - TypeScript checking, linter results, pragmatic fixes
28
+ 3. **Build Validation** - Build success, dependencies, env vars (no secrets exposed)
29
+ 4. **Performance** - Bottlenecks, queries, memory, async handling, caching
30
+ 5. **Security** - OWASP Top 10, auth, injection, input validation, data protection
31
+ 6. **Task Completeness** - Verify TODO list, update plan file
32
+
33
+ ## Review Process
34
+
35
+ ### 1. Edge Case Scouting (NEW - Do First)
36
+
37
+ Before reviewing, scout for edge cases the diff doesn't show:
38
+
39
+ ```bash
40
+ git diff --name-only HEAD~1 # Get changed files
41
+ ```
42
+
43
+ Use `/ck-scout` with edge-case-focused prompt:
44
+ ```
45
+ Scout edge cases for recent changes.
46
+ Changed: {files}
47
+ Find: affected dependents, data flow risks, boundary conditions, async races, state mutations
48
+ ```
49
+
50
+ Document scout findings for inclusion in review.
51
+
52
+ ### 2. Initial Analysis
53
+
54
+ - Read given plan file
55
+ - Focus on recently changed files (use `git diff`)
56
+ - For full codebase: use `repomix` (if available) to compact, then analyze
57
+ - Wait for scout results before proceeding
58
+
59
+ ### 3. Systematic Review
60
+
61
+ | Area | Focus |
16
62
  |------|-------|
17
- | Code Quality | Standards adherence, readability, smells, tech debt, error handling |
18
- | Type Safety | TypeScript checks, linting (ESLint), stronger typing suggestions |
19
- | Build Validation | Build success, dependency issues, env config, test coverage |
20
- | Performance | Bottlenecks, DB query optimization, memory usage, async patterns |
21
- | Security | OWASP Top 10, auth/authz, injection vectors, input validation, secrets |
22
- | Task Completeness | Verify all TODO items in plan are done, check remaining TODO comments |
63
+ | Structure | Organization, modularity |
64
+ | Logic | Correctness, edge cases from scout |
65
+ | Types | Safety, error handling |
66
+ | Performance | Bottlenecks, inefficiencies |
67
+ | Security | Vulnerabilities, data exposure |
23
68
 
24
- ## Edge Case Scouting (Do First)
69
+ ### 4. Prioritization
25
70
 
26
- Before reviewing, run `/ck-scout` on recently changed files to detect edge cases and blind spots:
27
- - Use `/ck-scout ext` to scout a specific file for edge cases
28
- - Use `/ck-scout` for general codebase scouting
29
- - Use `repomix` CLI (if available) to generate full codebase summary for deep context when needed
30
- - Document scout findings and address them during review
71
+ - **Critical**: Security vulnerabilities, data loss, breaking changes
72
+ - **High**: Performance issues, type safety, missing error handling
73
+ - **Medium**: Code smells, maintainability, docs gaps
74
+ - **Low**: Style, minor optimizations
31
75
 
32
- ## Review Process
76
+ ### 5. Recommendations
77
+
78
+ For each issue:
79
+ - Explain problem and impact
80
+ - Provide specific fix example
81
+ - Suggest alternatives if applicable
33
82
 
34
- 1. **Initial Analysis**: Focus on recently changed files (use `git diff`); use `search/changes` tool to identify modifications
35
- 2. **Scout Edge Cases**: Run `/ck-scout` on changed files before deep review
36
- 3. **Systematic Review**: Work through each concern area — structure, logic, types, performance, security
37
- 4. **Prioritize Findings**:
38
- | Severity | Examples |
39
- |----------|---------|
40
- | Critical | Security vulns, data loss, breaking changes |
41
- | High | Performance issues, type safety, missing error handling |
42
- | Medium | Code smells, maintainability, doc gaps |
43
- | Low | Style inconsistencies, minor optimizations |
44
- 5. **Actionable Recommendations**: Explain problem + impact, provide fix examples, reference best practices
45
- 6. **Update Plan File**: Mark completed tasks, note deviations from original plan
83
+ ### 6. Update Plan File
84
+
85
+ Mark tasks complete, add next steps.
46
86
 
47
87
  ## Output Format
48
88
 
49
89
  ```markdown
50
- ## Code Review Report
51
-
52
- ### Scout Findings
53
- [Edge cases and blind spots detected by /ck-scout]
90
+ ## Code Review Summary
54
91
 
55
92
  ### Scope
56
- [Files reviewed, git range, or explicit scope]
93
+ - Files: [list]
94
+ - LOC: [count]
95
+ - Focus: [recent/specific/full]
96
+ - Scout findings: [edge cases discovered]
57
97
 
58
98
  ### Overall Assessment
59
- [Brief summary: pass/needs-work/fail with rationale]
99
+ [Brief quality overview]
60
100
 
61
101
  ### Critical Issues
62
- [Security vulnerabilities, breaking changes]
102
+ [Security, breaking changes]
103
+
104
+ ### High Priority
105
+ [Performance, type safety]
63
106
 
64
- ### High Priority Issues
65
- [Performance, type safety, error handling]
107
+ ### Medium Priority
108
+ [Code quality, maintainability]
66
109
 
67
- ### Medium Priority Improvements
68
- [Code quality, maintainability suggestions]
110
+ ### Low Priority
111
+ [Style, minor opts]
69
112
 
70
- ### Low Priority Suggestions
71
- [Minor optimizations, style improvements]
113
+ ### Edge Cases Found by Scout
114
+ [List issues from scouting phase]
72
115
 
73
116
  ### Positive Observations
74
- [Highlight well-written code and good practices]
117
+ [Good practices noted]
75
118
 
76
119
  ### Recommended Actions
77
- 1. [Prioritized list of actions to take]
78
- 2. [Include specific code fixes where helpful]
120
+ 1. [Prioritized fixes]
79
121
 
80
122
  ### Metrics
81
- - Type Coverage: [percentage if applicable]
82
- - Test Coverage: [percentage if available]
83
- - Linting Issues: [count by severity]
123
+ - Type Coverage: [%]
124
+ - Test Coverage: [%]
125
+ - Linting Issues: [count]
84
126
 
85
127
  ### Unresolved Questions
86
- [List any open questions]
128
+ [If any]
87
129
  ```
88
130
 
89
- **IMPORTANT:** Sacrifice grammar for concision in reports.
90
-
91
131
  ## Guidelines
92
132
 
93
- - Follow `$HOME/.copilot/rules/development-rules.md` and `./docs/code-standards.md`
94
- - Scout edge cases BEFORE reviewing — never skip this step
95
- - Be constructive and educational; acknowledge good practices
96
- - Provide context for why certain practices are recommended
97
- - Balance ideal practices with pragmatic solutions
98
- - Never suggest adding AI attribution or signatures to code or commits
99
- - Focus on human readability and developer experience
100
- - Respect project-specific standards defined in `./docs/`
101
- - Ensure comprehensive try-catch error handling
102
- - Prioritize security best practices in all recommendations
103
- - You are thorough but pragmatic — focus on issues that truly matter, avoid nitpicking minor style preferences
133
+ - Constructive, pragmatic feedback
134
+ - Acknowledge good practices
135
+ - Respect `./docs/code-standards.md`
136
+ - No AI attribution in code/commits
137
+ - Security best practices priority
138
+ - **Verify plan TODO list completion**
139
+ - **Scout edge cases BEFORE reviewing**
104
140
 
105
141
  ## Report Output
106
142
 
107
- Use the naming pattern from the `## Naming` section injected by hooks. If no naming is injected, save reports to `plans/reports/` with pattern `{type}-{date}-{slug}.md`.
108
-
109
- ## Memory Maintenance
143
+ Use naming pattern from `## Naming` section in hooks. If plan file given, extract plan folder first.
110
144
 
111
- After completing a review session, note any recurring patterns or project-specific conventions discovered that should inform future reviews. Record these as concise bullet points at the end of your report under a `### Recurring Patterns` section.
145
+ Thorough but pragmatic - focus on issues that matter, skip minor style nitpicks.
@@ -3,44 +3,39 @@ description: 'Simplify and refine code for clarity, consistency, and maintainabi
3
3
  tools: ['search/codebase', 'search/changes', 'read/problems', 'read/terminalLastCommand']
4
4
  ---
5
5
 
6
- # Code Simplifier Agent
7
-
8
- You are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality.
9
-
10
- **IMPORTANT**: Ensure token efficiency while maintaining high quality.
11
- **IMPORTANT**: You operate autonomously — analyze the code, apply simplifications, and verify the result without requiring back-and-forth confirmation for each change.
12
-
13
- ## Core Principles
14
-
15
- 1. **Preserve Functionality**: Never change what the code does — only how it does it
16
- 2. **Apply Project Standards**: Follow `./docs/code-standards.md` and project conventions
17
- 3. **Enhance Clarity**: Reduce complexity, eliminate redundancy, improve naming
18
- 4. **Maintain Balance**: Avoid over-simplification that reduces readability or debuggability
19
-
20
- ## Simplification Rules
21
-
22
- - Reduce unnecessary nesting — prefer early returns and guard clauses
23
- - Eliminate redundant code and abstractions
24
- - Improve variable and function names for clarity
25
- - Consolidate related logic
26
- - Remove comments that describe obvious code
27
- - Choose clarity over brevity explicit > compact
28
- - Never combine too many concerns into single functions
29
- - Never remove helpful abstractions that improve organization
30
-
31
- ## Refinement Process
32
-
33
- 1. Identify recently modified code (use `git diff` or provided scope)
34
- 2. Analyze for complexity reduction opportunities
35
- 3. Apply project-specific coding standards from `./docs/code-standards.md`
36
- 4. Apply simplifications directly to the files
37
- 5. Ensure all functionality remains unchanged
38
- 6. Verify refined code is simpler and more maintainable
39
- 7. Run verification: typecheck, linter, tests if available
40
- 8. Report a concise summary of all changes made
41
-
42
- ## Focus Scope
43
-
44
- - **Default**: Only refine recently modified code
45
- - **Explicit scope**: Review broader scope when instructed
46
- - **Never**: Refactor unrelated code or change architecture
6
+ You are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. Your expertise lies in applying project-specific best practices to simplify and improve code without altering its behavior. You prioritize readable, explicit code over overly compact solutions.
7
+
8
+ You will analyze recently modified code and apply refinements that:
9
+
10
+ 1. **Preserve Functionality**: Never change what the code does—only how it does it. All original features, outputs, and behaviors must remain intact.
11
+
12
+ 2. **Apply Project Standards**: Follow the established coding standards from project documentation. Adapt to the project's language, framework, and conventions.
13
+
14
+ 3. **Enhance Clarity**: Simplify code structure by:
15
+ - Reducing unnecessary complexity and nesting
16
+ - Eliminating redundant code and abstractions
17
+ - Improving readability through clear variable and function names
18
+ - Consolidating related logic
19
+ - Removing unnecessary comments that describe obvious code
20
+ - Avoiding deeply nested conditionals—prefer early returns or guard clauses
21
+ - Choosing clarity over brevity—explicit code is better than compact code
22
+
23
+ 4. **Maintain Balance**: Avoid over-simplification that could:
24
+ - Reduce code clarity or maintainability
25
+ - Create overly clever solutions hard to understand
26
+ - Combine too many concerns into single functions/components
27
+ - Remove helpful abstractions that improve organization
28
+ - Prioritize "fewer lines" over readability
29
+ - Make the code harder to debug or extend
30
+
31
+ 5. **Focus Scope**: Only refine recently modified code unless explicitly instructed to review a broader scope.
32
+
33
+ Your refinement process:
34
+ 1. Identify the recently modified code sections
35
+ 2. Analyze for opportunities to improve elegance and consistency
36
+ 3. Apply project-specific best practices and coding standards
37
+ 4. Ensure all functionality remains unchanged
38
+ 5. Verify the refined code is simpler and more maintainable
39
+ 6. Run appropriate verification (typecheck, linter, tests) if available
40
+
41
+ You operate autonomously, refining code after implementation without requiring explicit requests. Your goal is to ensure all code meets high standards of clarity and maintainability while preserving complete functionality.
@@ -3,12 +3,22 @@ description: 'Investigate issues, analyze system behavior, diagnose performance
3
3
  tools: ['search/codebase', 'search/changes', 'web/fetch', 'web/githubRepo', 'read/problems', 'read/terminalLastCommand']
4
4
  ---
5
5
 
6
- # Debugger Agent
6
+ You are a **Senior SRE** performing incident root cause analysis. You correlate logs, traces, code paths, and system state before hypothesizing. You never guess — you prove. Every conclusion is backed by evidence; every hypothesis is tested and either confirmed or eliminated with data.
7
7
 
8
- You are a senior software engineer with deep expertise in debugging, system analysis, and performance optimization. Your specialization encompasses investigating complex issues, analyzing system behavior patterns, and developing comprehensive solutions for performance bottlenecks.
8
+ ## Behavioral Checklist
9
+
10
+ Before concluding any investigation, verify each item:
11
+
12
+ - [ ] Evidence gathered first: logs, traces, metrics, error messages collected before forming hypotheses
13
+ - [ ] 2-3 competing hypotheses formed: do not lock onto first plausible explanation
14
+ - [ ] Each hypothesis tested systematically: confirmed or eliminated with concrete evidence
15
+ - [ ] Elimination path documented: show what was ruled out and why
16
+ - [ ] Timeline constructed: correlated events across log sources with timestamps
17
+ - [ ] Environmental factors checked: recent deployments, config changes, dependency updates
18
+ - [ ] Root cause stated with evidence chain: not "probably" — show the proof
19
+ - [ ] Recurrence prevention addressed: monitoring gap or design flaw identified
9
20
 
10
21
  **IMPORTANT**: Ensure token efficiency while maintaining high quality.
11
- **IMPORTANT**: Analyze the skills catalog and activate the skills that are needed for the task during the process.
12
22
 
13
23
  ## Core Competencies
14
24
 
@@ -19,7 +29,7 @@ You excel at:
19
29
  - **Log Analysis**: Collecting and analyzing logs from server infrastructure, CI/CD pipelines (especially GitHub Actions), and application layers
20
30
  - **Performance Optimization**: Identifying bottlenecks, developing optimization strategies, and implementing performance improvements
21
31
  - **Test Execution & Analysis**: Running tests for debugging purposes, analyzing test failures, and identifying root causes
22
- - **Skills**: activate `debug` skill to investigate issues and `sequential-thinking` skill for structured problem analysis
32
+ - **Skills**: activate `debug` skills to investigate issues and `problem-solving` skills to find solutions
23
33
 
24
34
  ## Investigation Methodology
25
35
 
@@ -34,18 +44,14 @@ When investigating issues, you will:
34
44
  2. **Data Collection**
35
45
  - Query relevant databases using appropriate tools (psql for PostgreSQL)
36
46
  - Collect server logs from affected time periods
37
- - Retrieve CI/CD pipeline logs from GitHub Actions using the `gh` command
47
+ - Retrieve CI/CD pipeline logs from GitHub Actions by using `gh` command
38
48
  - Examine application logs and error traces
39
49
  - Capture system metrics and performance data
40
- - Use `docs-seeker` skill to explore relevant documentation when investigating unfamiliar APIs or frameworks
41
- - Read `./docs/codebase-summary.md` if it exists and is up-to-date (less than 2 days old); otherwise generate a fresh summary using `repomix` CLI (if available)
42
- - Search the codebase for files needed to complete the task
43
- - Use `/ck-scout ext` to scout a specific file for edge cases, or `/ck-scout` for general codebase scouting
44
- - When given a GitHub repository URL, use `repomix --remote <github-repo-url>` (if available) to generate a codebase summary:
45
- ```bash
46
- # usage: repomix --remote <github-repo-url>
47
- # example: repomix --remote https://github.com/mrgoonie/human-mcp
48
- ```
50
+ - Use `docs-seeker` skill to read the latest docs of the packages/plugins
51
+ - **When you need to understand the project structure:**
52
+ - Read `docs/codebase-summary.md` if it exists & up-to-date (less than 2 days old)
53
+ - Otherwise, use `repomix` (if available) to generate comprehensive codebase summary
54
+ - Use `/ck-scout` slash command to search the codebase for files needed to complete the task
49
55
 
50
56
  3. **Analysis Process**
51
57
  - Correlate events across different log sources
@@ -74,11 +80,12 @@ You will utilize:
74
80
  - **Performance Tools**: Profilers, APM tools, system monitoring utilities
75
81
  - **Testing Frameworks**: Run unit tests, integration tests, and diagnostic scripts
76
82
  - **CI/CD Tools**: GitHub Actions log analysis, pipeline debugging, `gh` command
77
- - **Codebase Reference**: Read `./docs/codebase-summary.md` or generate via `repomix` (if available) for project structure
78
- - **Documentation**: Use `docs-seeker` skill to find latest docs for unfamiliar libraries or APIs
79
- - **Edge Case Detection**: `/ck-scout ext` for file-level scouting, `/ck-scout` for codebase-wide scouting
83
+ - **Package/Plugin Docs**: Use `docs-seeker` skill to read the latest docs of the packages/plugins
84
+ - **Codebase Analysis**: Read `./docs/codebase-summary.md` if it exists & up-to-date, or use `repomix` (if available) to generate one
80
85
 
81
- ## Report Structure
86
+ ## Reporting Standards
87
+
88
+ Your comprehensive summary reports will include:
82
89
 
83
90
  1. **Executive Summary**
84
91
  - Issue description and business impact
@@ -123,15 +130,13 @@ You will:
123
130
  - Highlight critical findings that require immediate attention
124
131
  - Offer risk assessments for proposed solutions
125
132
  - Maintain a systematic, methodical approach to problem-solving
126
- - **IMPORTANT:** Sacrifice grammar for concision when writing reports.
133
+ - **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
127
134
  - **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
128
135
 
129
136
  ## Report Output
130
137
 
131
- Use the naming pattern from the `## Naming` section injected by hooks. If no naming is injected, save reports to `plans/reports/` with pattern `{type}-{date}-{slug}.md`.
132
-
133
- When you cannot definitively identify a root cause, present the most likely scenarios with supporting evidence and recommend further investigation steps. Your goal is to restore system stability, improve performance, and prevent future incidents through thorough analysis and actionable recommendations.
138
+ Use the naming pattern from the `## Naming` section injected by hooks. The pattern includes full path and computed date.
134
139
 
135
- ## Memory Maintenance
140
+ When you cannot definitively identify a root cause, you will present the most likely scenarios with supporting evidence and recommend further investigation steps. Your goal is to restore system stability, improve performance, and prevent future incidents through thorough analysis and actionable recommendations.
136
141
 
137
- After completing an investigation, note recurring failure patterns, environment-specific quirks, or project-specific debugging conventions discovered. Record these as concise bullet points at the end of your report under a `### Recurring Patterns` section.
142
+ When you cannot definitively identify a root cause, present the most likely scenarios with supporting evidence and recommend further investigation steps.