cokit-cli 1.2.7 → 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 (467) hide show
  1. package/README.md +8 -31
  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 +8 -10
  21. package/docs/cokit-slides.md +2 -5
  22. package/docs/cokit-sync-and-maintenance-guide.md +42 -190
  23. package/docs/cokit-team-presentation.md +6 -9
  24. package/docs/copilot-processing-flow.md +3 -3
  25. package/docs/migration-guide.md +14 -14
  26. package/docs/project-overview-pdr.md +5 -6
  27. package/docs/project-roadmap.md +12 -14
  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 +13 -17
  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/templates/repo/.github/agents/brainstormer.agent.md +28 -14
  218. package/templates/repo/.github/agents/code-reviewer.agent.md +101 -67
  219. package/templates/repo/.github/agents/code-simplifier.agent.md +36 -41
  220. package/templates/repo/.github/agents/debugger.agent.md +29 -24
  221. package/templates/repo/.github/agents/docs-manager.agent.md +15 -23
  222. package/templates/repo/.github/agents/fullstack-developer.agent.md +16 -6
  223. package/templates/repo/.github/agents/git-manager.agent.md +0 -3
  224. package/templates/repo/.github/agents/planner.agent.md +16 -34
  225. package/templates/repo/.github/agents/project-manager.agent.md +24 -0
  226. package/templates/repo/.github/agents/researcher.agent.md +15 -13
  227. package/templates/repo/.github/agents/tester.agent.md +43 -20
  228. package/templates/repo/.github/agents/ui-ux-designer.agent.md +16 -49
  229. package/templates/repo/.github/prompts/ck-ask.prompt.md +0 -1
  230. package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +0 -3
  231. package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +0 -1
  232. package/templates/repo/.github/prompts/ck-cook.prompt.md +0 -1
  233. package/templates/repo/.github/prompts/ck-debug.prompt.md +0 -1
  234. package/templates/repo/.github/prompts/ck-deploy.prompt.md +22 -0
  235. package/templates/repo/.github/prompts/ck-docs.prompt.md +0 -1
  236. package/templates/repo/.github/prompts/ck-frontend.prompt.md +20 -0
  237. package/templates/repo/.github/prompts/ck-help.prompt.md +0 -1
  238. package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +0 -3
  239. package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +0 -3
  240. package/templates/repo/.github/prompts/ck-plan.prompt.md +0 -3
  241. package/templates/repo/.github/prompts/ck-project.prompt.md +20 -0
  242. package/templates/repo/.github/prompts/ck-review.prompt.md +0 -3
  243. package/templates/repo/.github/prompts/ck-scout.prompt.md +0 -1
  244. package/templates/repo/.github/prompts/ck-security.prompt.md +22 -0
  245. package/templates/repo/.github/prompts/ck-ship.prompt.md +22 -0
  246. package/templates/repo/.github/prompts/ck-test.prompt.md +0 -2
  247. package/templates/repo/.github/prompts/ck-watzup.prompt.md +0 -1
  248. package/templates/repo/.github/skills/agent-browser/SKILL.md +11 -8
  249. package/templates/repo/.github/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
  250. package/templates/repo/.github/skills/bootstrap/SKILL.md +102 -0
  251. package/templates/repo/.github/skills/bootstrap/references/shared-phases.md +59 -0
  252. package/templates/repo/.github/skills/bootstrap/references/workflow-auto.md +52 -0
  253. package/templates/repo/.github/skills/bootstrap/references/workflow-fast.md +50 -0
  254. package/templates/repo/.github/skills/bootstrap/references/workflow-full.md +60 -0
  255. package/templates/repo/.github/skills/bootstrap/references/workflow-parallel.md +59 -0
  256. package/templates/repo/.github/skills/brainstorm/SKILL.md +63 -15
  257. package/templates/repo/.github/skills/code-review/SKILL.md +138 -135
  258. package/templates/repo/.github/skills/code-review/references/adversarial-review.md +223 -0
  259. package/templates/repo/.github/skills/code-review/references/checklist-workflow.md +100 -0
  260. package/templates/repo/.github/skills/code-review/references/checklists/api.md +52 -0
  261. package/templates/repo/.github/skills/code-review/references/checklists/base.md +100 -0
  262. package/templates/repo/.github/skills/code-review/references/checklists/web-app.md +54 -0
  263. package/templates/repo/.github/skills/code-review/references/code-review-reception.md +48 -144
  264. package/templates/repo/.github/skills/code-review/references/codebase-scan-workflow.md +30 -0
  265. package/templates/repo/.github/skills/code-review/references/edge-case-scouting.md +119 -0
  266. package/templates/repo/.github/skills/code-review/references/input-mode-resolution.md +135 -0
  267. package/templates/repo/.github/skills/code-review/references/parallel-review-workflow.md +76 -0
  268. package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +19 -8
  269. package/templates/repo/.github/skills/code-review/references/spec-compliance-review.md +43 -0
  270. package/templates/repo/.github/skills/code-review/references/task-management-reviews.md +155 -0
  271. package/templates/repo/.github/skills/common/README.md +2 -12
  272. package/templates/repo/.github/skills/common/api_key_helper.py +7 -37
  273. package/templates/repo/.github/skills/context-engineering/SKILL.md +4 -3
  274. package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
  275. package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +5 -47
  276. package/templates/repo/.github/skills/cook/README.md +13 -13
  277. package/templates/repo/.github/skills/cook/SKILL.md +86 -58
  278. package/templates/repo/.github/skills/cook/references/intent-detection.md +7 -7
  279. package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
  280. package/templates/repo/.github/skills/cook/references/subagent-patterns.md +75 -0
  281. package/templates/repo/.github/skills/cook/references/workflow-steps.md +75 -23
  282. package/templates/repo/.github/skills/databases/SKILL.md +3 -30
  283. package/templates/repo/.github/skills/databases/db-design.md +1 -1
  284. package/templates/repo/.github/skills/debug/SKILL.md +47 -105
  285. package/templates/repo/.github/skills/debug/references/frontend-verification.md +103 -0
  286. package/templates/repo/.github/skills/debug/references/investigation-methodology.md +101 -0
  287. package/templates/repo/.github/skills/debug/references/log-and-ci-analysis.md +97 -0
  288. package/templates/repo/.github/skills/debug/references/performance-diagnostics.md +113 -0
  289. package/templates/repo/.github/skills/debug/references/reporting-standards.md +122 -0
  290. package/templates/repo/.github/skills/debug/references/task-management-debugging.md +155 -0
  291. package/templates/repo/.github/skills/deploy/SKILL.md +154 -0
  292. package/templates/repo/.github/skills/deploy/references/platform-config-templates.md +35 -0
  293. package/templates/repo/.github/skills/deploy/references/platforms/aws.md +58 -0
  294. package/templates/repo/.github/skills/deploy/references/platforms/cloudflare.md +41 -0
  295. package/templates/repo/.github/skills/deploy/references/platforms/coolify.md +32 -0
  296. package/templates/repo/.github/skills/deploy/references/platforms/digitalocean.md +45 -0
  297. package/templates/repo/.github/skills/deploy/references/platforms/dokploy.md +29 -0
  298. package/templates/repo/.github/skills/deploy/references/platforms/flyio.md +54 -0
  299. package/templates/repo/.github/skills/deploy/references/platforms/gcp.md +45 -0
  300. package/templates/repo/.github/skills/deploy/references/platforms/github-pages.md +56 -0
  301. package/templates/repo/.github/skills/deploy/references/platforms/heroku.md +31 -0
  302. package/templates/repo/.github/skills/deploy/references/platforms/netlify.md +39 -0
  303. package/templates/repo/.github/skills/deploy/references/platforms/railway.md +38 -0
  304. package/templates/repo/.github/skills/deploy/references/platforms/render.md +39 -0
  305. package/templates/repo/.github/skills/deploy/references/platforms/tose.md +35 -0
  306. package/templates/repo/.github/skills/deploy/references/platforms/vercel.md +37 -0
  307. package/templates/repo/.github/skills/deploy/references/platforms/vultr.md +27 -0
  308. package/templates/repo/.github/skills/devops/SKILL.md +6 -12
  309. package/templates/repo/.github/skills/docs-seeker/SKILL.md +2 -1
  310. package/templates/repo/.github/skills/docs-seeker/references/context7-patterns.md +4 -0
  311. package/templates/repo/.github/skills/docs-seeker/scripts/fetch-docs.js +1 -2
  312. package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
  313. package/templates/repo/.github/skills/docs-seeker/workflows/library-search.md +1 -0
  314. package/templates/repo/.github/skills/fix/SKILL.md +141 -44
  315. package/templates/repo/.github/skills/fix/references/complexity-assessment.md +21 -9
  316. package/templates/repo/.github/skills/fix/references/diagnosis-protocol.md +133 -0
  317. package/templates/repo/.github/skills/fix/references/mode-selection.md +27 -11
  318. package/templates/repo/.github/skills/fix/references/parallel-exploration.md +35 -12
  319. package/templates/repo/.github/skills/fix/references/prevention-gate.md +87 -0
  320. package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
  321. package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +64 -31
  322. package/templates/repo/.github/skills/fix/references/task-orchestration.md +110 -0
  323. package/templates/repo/.github/skills/fix/references/workflow-deep.md +110 -47
  324. package/templates/repo/.github/skills/fix/references/workflow-logs.md +46 -10
  325. package/templates/repo/.github/skills/fix/references/workflow-quick.md +43 -20
  326. package/templates/repo/.github/skills/fix/references/workflow-standard.md +75 -41
  327. package/templates/repo/.github/skills/fix/references/workflow-test.md +49 -10
  328. package/templates/repo/.github/skills/fix/references/workflow-ui.md +56 -18
  329. package/templates/repo/.github/skills/frontend-design/SKILL.md +49 -17
  330. package/templates/repo/.github/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
  331. package/templates/repo/.github/skills/frontend-design/references/anti-slop-rules.md +103 -0
  332. package/templates/repo/.github/skills/frontend-design/references/asset-generation.md +284 -108
  333. package/templates/repo/.github/skills/frontend-design/references/bento-motion-engine.md +142 -0
  334. package/templates/repo/.github/skills/frontend-design/references/magicui-components.md +129 -0
  335. package/templates/repo/.github/skills/frontend-design/references/performance-guardrails.md +169 -0
  336. package/templates/repo/.github/skills/frontend-design/references/premium-design-patterns.md +93 -0
  337. package/templates/repo/.github/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
  338. package/templates/repo/.github/skills/frontend-design/references/visual-analysis-overview.md +1 -1
  339. package/templates/repo/.github/skills/frontend-design/references/workflow-3d.md +98 -0
  340. package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +4 -3
  341. package/templates/repo/.github/skills/frontend-design/references/workflow-immersive.md +82 -0
  342. package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +10 -12
  343. package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +9 -8
  344. package/templates/repo/.github/skills/frontend-design/references/workflow-video.md +74 -0
  345. package/templates/repo/.github/skills/frontend-development/SKILL.md +400 -0
  346. package/templates/repo/.github/skills/frontend-development/resources/common-patterns.md +331 -0
  347. package/templates/repo/.github/skills/frontend-development/resources/complete-examples.md +872 -0
  348. package/templates/repo/.github/skills/frontend-development/resources/component-patterns.md +502 -0
  349. package/templates/repo/.github/skills/frontend-development/resources/data-fetching.md +767 -0
  350. package/templates/repo/.github/skills/frontend-development/resources/file-organization.md +502 -0
  351. package/templates/repo/.github/skills/frontend-development/resources/loading-and-error-states.md +501 -0
  352. package/templates/repo/.github/skills/frontend-development/resources/performance.md +406 -0
  353. package/templates/repo/.github/skills/frontend-development/resources/routing-guide.md +364 -0
  354. package/templates/repo/.github/skills/frontend-development/resources/styling-guide.md +428 -0
  355. package/templates/repo/.github/skills/frontend-development/resources/typescript-standards.md +418 -0
  356. package/templates/repo/.github/skills/git/SKILL.md +18 -4
  357. package/templates/repo/.github/skills/git/references/commit-standards.md +3 -3
  358. package/templates/repo/.github/skills/git/references/workflow-commit.md +3 -3
  359. package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
  360. package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
  361. package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
  362. package/templates/repo/.github/skills/mcp-management/README.md +18 -18
  363. package/templates/repo/.github/skills/mcp-management/SKILL.md +16 -15
  364. package/templates/repo/.github/skills/mcp-management/references/configuration.md +4 -4
  365. package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +12 -12
  366. package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
  367. package/templates/repo/.github/skills/mcp-management/scripts/mcp-client.ts +1 -1
  368. package/templates/repo/.github/skills/mermaidjs-v11/SKILL.md +1 -0
  369. package/templates/repo/.github/skills/planning/SKILL.md +122 -91
  370. package/templates/repo/.github/skills/planning/references/archive-workflow.md +53 -0
  371. package/templates/repo/.github/skills/planning/references/codebase-understanding.md +1 -1
  372. package/templates/repo/.github/skills/planning/references/output-standards.md +17 -13
  373. package/templates/repo/.github/skills/planning/references/plan-organization.md +52 -30
  374. package/templates/repo/.github/skills/planning/references/red-team-personas.md +69 -0
  375. package/templates/repo/.github/skills/planning/references/red-team-workflow.md +77 -0
  376. package/templates/repo/.github/skills/planning/references/scope-challenge.md +90 -0
  377. package/templates/repo/.github/skills/planning/references/task-management.md +134 -0
  378. package/templates/repo/.github/skills/planning/references/validate-question-framework.md +80 -0
  379. package/templates/repo/.github/skills/planning/references/validate-workflow.md +65 -0
  380. package/templates/repo/.github/skills/planning/references/workflow-modes.md +154 -0
  381. package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -0
  382. package/templates/repo/.github/skills/project-management/SKILL.md +133 -0
  383. package/templates/repo/.github/skills/project-management/references/documentation-triggers.md +60 -0
  384. package/templates/repo/.github/skills/project-management/references/hydration-workflow.md +89 -0
  385. package/templates/repo/.github/skills/project-management/references/progress-tracking.md +120 -0
  386. package/templates/repo/.github/skills/project-management/references/reporting-patterns.md +94 -0
  387. package/templates/repo/.github/skills/project-management/references/task-operations.md +87 -0
  388. package/templates/repo/.github/skills/repomix/SKILL.md +3 -2
  389. package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
  390. package/templates/repo/.github/skills/repomix/scripts/README.md +1 -1
  391. package/templates/repo/.github/skills/repomix/scripts/repomix_batch.py +2 -2
  392. package/templates/repo/.github/skills/research/SKILL.md +7 -4
  393. package/templates/repo/.github/skills/scout/SKILL.md +24 -24
  394. package/templates/repo/.github/skills/scout/references/external-scouting.md +17 -17
  395. package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
  396. package/templates/repo/.github/skills/scout/references/task-management-scouting.md +125 -0
  397. package/templates/repo/.github/skills/security/SKILL.md +139 -0
  398. package/templates/repo/.github/skills/security/references/stride-owasp-checklist.md +128 -0
  399. package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
  400. package/templates/repo/.github/skills/sequential-thinking/SKILL.md +2 -0
  401. package/templates/repo/.github/skills/sequential-thinking/package-lock.json +3652 -0
  402. package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
  403. package/templates/repo/.github/skills/ship/SKILL.md +116 -0
  404. package/templates/repo/.github/skills/ship/references/auto-detect.md +103 -0
  405. package/templates/repo/.github/skills/ship/references/pr-template.md +90 -0
  406. package/templates/repo/.github/skills/ship/references/ship-workflow.md +241 -0
  407. package/templates/repo/.github/skills/test/SKILL.md +111 -0
  408. package/templates/repo/.github/skills/test/references/report-format.md +58 -0
  409. package/templates/repo/.github/skills/test/references/test-execution-workflow.md +103 -0
  410. package/templates/repo/.github/skills/test/references/ui-testing-workflow.md +65 -0
  411. package/templates/repo/.github/skills/ui-styling/SKILL.md +2 -0
  412. package/templates/repo/.github/skills/web-testing/SKILL.md +8 -60
  413. package/docs/guide-next-steps-speckit-cokit-implementation.md +0 -187
  414. package/prompts/ck-spec-analyze.prompt.md +0 -201
  415. package/prompts/ck-spec-checklist.prompt.md +0 -308
  416. package/prompts/ck-spec-clarify.prompt.md +0 -190
  417. package/prompts/ck-spec-constitution.prompt.md +0 -92
  418. package/prompts/ck-spec-implement.prompt.md +0 -157
  419. package/prompts/ck-spec-plan.prompt.md +0 -95
  420. package/prompts/ck-spec-specify.prompt.md +0 -261
  421. package/prompts/ck-spec-tasks.prompt.md +0 -181
  422. package/templates/repo/.github/AGENTS.md +0 -103
  423. package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +0 -201
  424. package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +0 -308
  425. package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +0 -190
  426. package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +0 -92
  427. package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +0 -157
  428. package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +0 -95
  429. package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +0 -261
  430. package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +0 -181
  431. package/templates/repo/.github/skills/databases/stacks/bigquery.md +0 -231
  432. package/templates/repo/.github/skills/databases/stacks/d1_cloudflare.md +0 -137
  433. package/templates/repo/.github/skills/databases/stacks/mysql.md +0 -216
  434. package/templates/repo/.github/skills/databases/stacks/postgres.md +0 -235
  435. package/templates/repo/.github/skills/databases/stacks/sqlite.md +0 -244
  436. package/templates/repo/.github/skills/mcp-management/assets/tools.json +0 -3146
  437. package/templates/repo/.github/skills/mcp-management/scripts/dist/analyze-tools.js +0 -70
  438. package/templates/repo/.github/skills/mcp-management/scripts/dist/cli.js +0 -160
  439. package/templates/repo/.github/skills/mcp-management/scripts/dist/mcp-client.js +0 -183
  440. package/templates/repo/.github/skills/ui-styling/LICENSE.txt +0 -202
  441. package/templates/repo/.github/spec-kit/memory/constitution.md +0 -50
  442. package/templates/repo/.github/spec-kit/scripts/bash/check-prerequisites.sh +0 -166
  443. package/templates/repo/.github/spec-kit/scripts/bash/common.sh +0 -156
  444. package/templates/repo/.github/spec-kit/scripts/bash/create-new-feature.sh +0 -297
  445. package/templates/repo/.github/spec-kit/scripts/bash/setup-plan.sh +0 -61
  446. package/templates/repo/.github/spec-kit/scripts/bash/update-agent-context.sh +0 -799
  447. package/templates/repo/.github/spec-kit/scripts/powershell/check-prerequisites.ps1 +0 -148
  448. package/templates/repo/.github/spec-kit/scripts/powershell/common.ps1 +0 -137
  449. package/templates/repo/.github/spec-kit/scripts/powershell/create-new-feature.ps1 +0 -283
  450. package/templates/repo/.github/spec-kit/scripts/powershell/setup-plan.ps1 +0 -61
  451. package/templates/repo/.github/spec-kit/scripts/powershell/update-agent-context.ps1 +0 -448
  452. package/templates/repo/.github/spec-kit/templates/agent-file-template.md +0 -28
  453. package/templates/repo/.github/spec-kit/templates/checklist-template.md +0 -40
  454. package/templates/repo/.github/spec-kit/templates/commands/analyze.md +0 -187
  455. package/templates/repo/.github/spec-kit/templates/commands/checklist.md +0 -297
  456. package/templates/repo/.github/spec-kit/templates/commands/clarify.md +0 -184
  457. package/templates/repo/.github/spec-kit/templates/commands/constitution.md +0 -82
  458. package/templates/repo/.github/spec-kit/templates/commands/implement.md +0 -138
  459. package/templates/repo/.github/spec-kit/templates/commands/plan.md +0 -95
  460. package/templates/repo/.github/spec-kit/templates/commands/specify.md +0 -261
  461. package/templates/repo/.github/spec-kit/templates/commands/tasks.md +0 -140
  462. package/templates/repo/.github/spec-kit/templates/commands/taskstoissues.md +0 -33
  463. package/templates/repo/.github/spec-kit/templates/plan-template.md +0 -104
  464. package/templates/repo/.github/spec-kit/templates/spec-template.md +0 -115
  465. package/templates/repo/.github/spec-kit/templates/tasks-phase-template.md +0 -42
  466. package/templates/repo/.github/spec-kit/templates/tasks-template.md +0 -268
  467. package/templates/repo/.github/spec-kit/templates/vscode-settings.json +0 -14
@@ -1,193 +1,196 @@
1
1
  ---
2
2
  name: code-review
3
- description: Review code quality, receive feedback with technical rigor, verify completion claims. Includes edge case scouting for multi-file features. Use before PRs, after implementing features, when claiming task completion, for agent reviews.
3
+ description: "Review code quality with adversarial rigor. Supports input modes: pending changes, PR number, commit hash, codebase scan. Always-on red-team analysis finds security holes, false assumptions, and failure modes."
4
+ argument-hint: "[#PR | COMMIT | --pending | codebase [parallel]]"
4
5
  ---
5
6
 
6
7
  # Code Review
7
8
 
8
- Guide proper code review practices emphasizing technical rigor, evidence-based claims, and verification over performative responses.
9
+ Adversarial code review with technical rigor, evidence-based claims, and verification over performative responses. Every review includes red-team analysis that actively tries to break the code.
9
10
 
10
- ## Overview
11
+ ## Input Modes
11
12
 
12
- | Practice | When | Protocol |
13
- |----------|------|----------|
14
- | **Edge Case Scouting** | Before any review on 3+ file features | `/ck-scout` for hidden paths and untested scenarios |
15
- | **Receiving Feedback** | Feedback from human or agent | READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT |
16
- | **Requesting Reviews** | After each task, before merge, after major features | Delegate to `code-reviewer` agent |
17
- | **Verification Gates** | Before any completion claim | Run command, read output, then claim |
13
+ Auto-detect from arguments. If ambiguous or no arguments, prompt by asking the user.
18
14
 
19
- ## Core Principle
20
-
21
- Always honoring **YAGNI**, **KISS**, and **DRY** principles.
22
- **Be honest, be brutal, straight to the point, and be concise.**
23
-
24
- **Technical correctness over social comfort.** Verify before implementing. Ask before assuming. Evidence before claims.
15
+ | Input | Mode | What Gets Reviewed |
16
+ |-------|------|--------------------|
17
+ | `#123` or PR URL | **PR** | Full PR diff fetched via `gh pr diff` |
18
+ | `abc1234` (7+ hex chars) | **Commit** | Single commit diff via `git show` |
19
+ | `--pending` | **Pending** | Staged + unstaged changes via `git diff` |
20
+ | *(no args, recent changes)* | **Default** | Recent changes in context |
21
+ | `codebase` | **Codebase** | Full codebase scan |
22
+ | `codebase parallel` | **Codebase+** | Parallel multi-reviewer audit |
25
23
 
26
- ## When to Use This Skill
24
+ **Resolution details:** `references/input-mode-resolution.md`
27
25
 
28
- ### Edge Case Scouting
29
- Trigger when:
30
- - Feature touches 3+ files
31
- - Implementing complex business logic
32
- - Before requesting formal code review
33
- - After implementation, before testing
26
+ ### No Arguments
34
27
 
35
- **Reference:** `references/requesting-code-review.md`
28
+ If invoked WITHOUT arguments and no recent changes in context, ask the user with header "Review Target", question "What would you like to review?":
36
29
 
37
- ### Receiving Feedback
38
- Trigger when:
39
- - Receiving code review comments from any source
40
- - Feedback seems unclear or technically questionable
41
- - Multiple review items need prioritization
42
- - External reviewer lacks full context
43
- - Suggestion conflicts with existing decisions
30
+ | Option | Description |
31
+ |--------|-------------|
32
+ | Pending changes | Review staged/unstaged git diff |
33
+ | Enter PR number | Fetch and review a specific PR |
34
+ | Enter commit hash | Review a specific commit |
35
+ | Full codebase scan | Deep codebase analysis |
36
+ | Parallel codebase audit | Multi-reviewer codebase scan |
44
37
 
45
- **Reference:** `references/code-review-reception.md`
38
+ ## Core Principle
46
39
 
47
- ### Requesting Review
48
- Trigger when:
49
- - Completing tasks in agent-driven development (after EACH task)
50
- - Finishing major features or refactors
51
- - Before merging to main branch
52
- - Stuck and need fresh perspective
53
- - After fixing complex bugs
40
+ **YAGNI**, **KISS**, **DRY** always. Technical correctness over social comfort.
41
+ **Be honest, be brutal, straight to the point, and be concise.**
54
42
 
55
- **Reference:** `references/requesting-code-review.md`
43
+ Verify before implementing. Ask before assuming. Evidence before claims.
56
44
 
57
- ### Verification Gates
58
- Trigger when:
59
- - About to claim tests pass, build succeeds, or work is complete
60
- - Before committing, pushing, or creating PRs
61
- - Moving to next task
62
- - Any statement suggesting success/completion
63
- - Expressing satisfaction with work
45
+ ## Practices
64
46
 
65
- **Reference:** `references/verification-before-completion.md`
47
+ | Practice | When | Reference |
48
+ |----------|------|-----------|
49
+ | **Spec compliance** | After implementing from plan/spec, BEFORE quality review | `references/spec-compliance-review.md` |
50
+ | **Adversarial review** | Always-on Stage 3 — actively tries to break the code | `references/adversarial-review.md` |
51
+ | Receiving feedback | Unclear feedback, external reviewers, needs prioritization | `references/code-review-reception.md` |
52
+ | Requesting review | After tasks, before merge, stuck on problem | `references/requesting-code-review.md` |
53
+ | Verification gates | Before any completion claim, commit, PR | `references/verification-before-completion.md` |
54
+ | Edge case scouting | After implementation, before review | `references/edge-case-scouting.md` |
55
+ | **Checklist review** | Pre-landing, `/ck-ship` pipeline, security audit | `references/checklist-workflow.md` |
56
+ | **Task-managed reviews** | Multi-file features (3+ files), parallel reviewers, fix cycles | `references/task-management-reviews.md` |
66
57
 
67
58
  ## Quick Decision Tree
68
59
 
69
60
  ```
70
61
  SITUATION?
71
62
 
72
- ├─ Multi-file feature (3+ files)?
73
- └─ Run edge case scouting first /ck-scout then request review
74
-
75
- ├─ Received feedback
76
- ├─ Unclear items? STOP, ask for clarification first
77
- ├─ From human partner? Understand, then implement
78
- └─ From external reviewer? Verify technically before implementing
63
+ ├─ Input mode? → Resolve diff (references/input-mode-resolution.md)
64
+ ├─ #PR / URLfetch PR diff
65
+ ├─ commit hash → git show
66
+ ├─ --pending → git diff (staged + unstaged)
67
+ ├─ codebasefull scan (references/codebase-scan-workflow.md)
68
+ ├─ codebase parallelparallel audit (references/parallel-review-workflow.md)
69
+ └─ defaultrecent changes in context
79
70
 
80
- ├─ Completed work
81
- ├─ Major feature/task? Request `code-reviewer` agent review
82
- └─ Before merge? Request `code-reviewer` agent review
83
-
84
- └─ About to claim status
85
- ├─ Have fresh verification?State claim WITH evidence
86
- └─ No fresh verification? RUN verification command first
71
+ ├─ Received feedback → STOP if unclear, verify if external, implement if human partner
72
+ ├─ Completed work from plan/spec:
73
+ ├─ Stage 1: Spec compliance review (references/spec-compliance-review.md)
74
+ │ └─ PASS? → Stage 2 │ FAIL? → Fix → Re-review Stage 1
75
+ │ ├─ Stage 2: Code quality review (code-reviewer subagent)
76
+ │ └─ Scout edge casesReview standards, performance
77
+ └─ Stage 3: Adversarial review (references/adversarial-review.md) [ALWAYS-ON]
78
+ │ └─ Red-team the code → Adjudicate → Accept/Reject findings
79
+ ├─ Completed work (no plan) → Scout → Code quality → Adversarial review
80
+ ├─ Pre-landing / ship → Load checklists → Two-pass review → Adversarial review
81
+ ├─ Multi-file feature (3+ files) → Create review pipeline tasks (scout→review→adversarial→fix→verify)
82
+ └─ About to claim status → RUN verification command FIRST
87
83
  ```
88
84
 
89
- ## Edge Case Scouting
85
+ ### Three-Stage Review Protocol
90
86
 
91
- ### When to Scout
92
- Before formal review of any multi-file feature (3+ files changed).
87
+ **Stage 1 Spec Compliance** (load `references/spec-compliance-review.md`)
88
+ - Does code match what was requested?
89
+ - Any missing requirements? Any unjustified extras?
90
+ - MUST pass before Stage 2
93
91
 
94
- ### Process
95
- 1. Use `/ck-scout` to search for hidden code paths, edge inputs, error branches
96
- 2. Document untested scenarios found
97
- 3. Add tests or guards for critical edge cases
98
- 4. Then proceed to formal `code-reviewer` review
92
+ **Stage 2 — Code Quality** (code-reviewer subagent)
93
+ - Only runs AFTER spec compliance passes
94
+ - Standards, security, performance, edge cases
99
95
 
100
- ### What to Look For
101
- - Null/undefined paths not covered by tests
102
- - Error branches lacking handlers
103
- - Boundary conditions (empty arrays, max values, concurrent calls)
104
- - Async race conditions
105
- - Permission/auth edge cases
96
+ **Stage 3 Adversarial Review** (load `references/adversarial-review.md`)
97
+ - Runs AFTER Stage 2 passes, subject to scope gate (skip if <=2 files, <=30 lines, no security files)
98
+ - Spawn adversarial reviewer with context anchoring (runtime, framework, context files)
99
+ - Find: security holes, false assumptions, resource exhaustion, race conditions, supply chain, observability gaps
100
+ - Output: Accept (must fix) / Reject (false positive) / Defer (GitHub issue) verdicts per finding
101
+ - Critical findings block merge; re-reviews use fix-diff-only optimization
106
102
 
107
- ## Task-Managed Review Pipeline (Multi-File Features)
103
+ ## Receiving Feedback
108
104
 
109
- For features spanning 3+ files, use a structured pipeline:
105
+ **Pattern:** READ UNDERSTAND VERIFY EVALUATE → RESPOND → IMPLEMENT
106
+ No performative agreement. Verify before implementing. Push back if wrong.
110
107
 
111
- ```
112
- scout → review → fix → verify
113
- ```
108
+ **Full protocol:** `references/code-review-reception.md`
114
109
 
115
- **Steps:**
116
- 1. **Scout** - Use `/ck-scout` or `/ck-scout ext` to identify edge cases and gaps
117
- 2. **Review** - Delegate to `code-reviewer` agent with full context
118
- 3. **Fix** - Implement critical and important feedback
119
- 4. **Verify** - Run tests, confirm fixes, then claim completion
110
+ ## Requesting Review
120
111
 
121
- Track progress using a checklist in your plan or task notes:
122
- ```
123
- - [ ] Edge case scouting complete
124
- - [ ] `code-reviewer` review complete
125
- - [ ] Critical issues fixed
126
- - [ ] Verification passed
127
- ```
112
+ **When:** After each task, major features, before merge
128
113
 
129
- ## Receiving Feedback Protocol
114
+ **Process:**
115
+ 1. **Scout edge cases first** (see below)
116
+ 2. Get SHAs: `BASE_SHA=$(git rev-parse HEAD~1)` and `HEAD_SHA=$(git rev-parse HEAD)`
117
+ 3. Dispatch code-reviewer subagent with: WHAT, PLAN, BASE_SHA, HEAD_SHA, DESCRIPTION
118
+ 4. Fix Critical immediately, Important before proceeding
130
119
 
131
- ### Response Pattern
132
- READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT
120
+ **Full protocol:** `references/requesting-code-review.md`
133
121
 
134
- ### Key Rules
135
- - No performative agreement: "You're absolutely right!", "Great point!", "Thanks for [anything]"
136
- - No implementation before verification
137
- - Restate requirement, ask questions, push back with technical reasoning, or just start working
138
- - If unclear: STOP and ask for clarification on ALL unclear items first
139
- - YAGNI check: search for usage before implementing suggested "proper" features
122
+ ## Edge Case Scouting
140
123
 
141
- **Full protocol:** `references/code-review-reception.md`
124
+ **When:** After implementation, before requesting code-reviewer
142
125
 
143
- ## Requesting Review Protocol
126
+ **Process:**
127
+ 1. Invoke `/ck-scout` with edge-case-focused prompt
128
+ 2. Scout analyzes: affected files, data flows, error paths, boundary conditions
129
+ 3. Review scout findings for potential issues
130
+ 4. Address critical gaps before code review
144
131
 
145
- ### When to Request
146
- - After each task in agent-driven development
147
- - After major feature completion
148
- - Before merge to main
132
+ **Full protocol:** `references/edge-case-scouting.md`
149
133
 
150
- ### Process
151
- 1. Scout edge cases (3+ file features): use `/ck-scout` first
152
- 2. Get git SHAs: `BASE_SHA=$(git rev-parse HEAD~1)` and `HEAD_SHA=$(git rev-parse HEAD)`
153
- 3. Delegate to `code-reviewer` agent with: WHAT_WAS_IMPLEMENTED, PLAN_OR_REQUIREMENTS, BASE_SHA, HEAD_SHA, DESCRIPTION
154
- 4. Act on feedback: Fix Critical immediately, Important before proceeding, note Minor for later
134
+ ## Task-Managed Review Pipeline
155
135
 
156
- **Full protocol:** `references/requesting-code-review.md`
136
+ **When:** Multi-file features (3+ changed files), parallel code-reviewer scopes, review cycles with Critical fix iterations.
157
137
 
158
- ## Verification Gates Protocol
138
+ **Fallback:** Task tools (`TaskCreate`/`TaskUpdate`/`TaskGet`/`TaskList`) are CLI-only — unavailable in VSCode extension. If they error, use `TodoWrite` for tracking and run pipeline sequentially. Review quality is identical.
159
139
 
160
- ### The Iron Law
161
- **NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE**
140
+ **Pipeline:** scout review → adversarial → fix → verify (each a Task with dependency chain)
141
+
142
+ ```
143
+ TaskCreate: "Scout edge cases" → pending
144
+ TaskCreate: "Review implementation" → pending, blockedBy: [scout]
145
+ TaskCreate: "Adversarial review" → pending, blockedBy: [review]
146
+ TaskCreate: "Fix critical issues" → pending, blockedBy: [adversarial]
147
+ TaskCreate: "Verify fixes pass" → pending, blockedBy: [fix]
148
+ ```
162
149
 
163
- ### Gate Function
164
- IDENTIFY command → RUN full command → READ output → VERIFY confirms claim → THEN claim
150
+ **Parallel reviews:** Spawn scoped code-reviewer subagents for independent file groups (e.g., backend + frontend). Fix task blocks on all reviewers completing.
165
151
 
166
- Skip any step = lying, not verifying
152
+ **Re-review cycles:** If fixes introduce new issues, create cycle-2 review task. Limit 3 cycles, escalate to user after.
167
153
 
168
- ### Requirements
169
- - Tests pass: Test output shows 0 failures
170
- - Build succeeds: Build command exit 0
171
- - Bug fixed: Test original symptom passes
172
- - Requirements met: Line-by-line checklist verified
154
+ **Full protocol:** `references/task-management-reviews.md`
173
155
 
174
- ### Red Flags - STOP
175
- Using "should"/"probably"/"seems to", expressing satisfaction before verification, committing without verification, trusting agent reports, ANY wording implying success without running verification
156
+ ## Verification Gates
157
+
158
+ **Iron Law:** NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
159
+
160
+ **Gate:** IDENTIFY command → RUN full → READ output → VERIFY confirms → THEN claim
161
+
162
+ **Requirements:**
163
+ - Tests pass: Output shows 0 failures
164
+ - Build succeeds: Exit 0
165
+ - Bug fixed: Original symptom passes
166
+ - Requirements met: Checklist verified
167
+
168
+ **Red Flags:** "should"/"probably"/"seems to", satisfaction before verification, trusting agent reports
176
169
 
177
170
  **Full protocol:** `references/verification-before-completion.md`
178
171
 
179
172
  ## Integration with Workflows
180
173
 
181
- - **Agent-Driven:** Scout edge cases first (3+ files), review after EACH task, verify before moving to next
182
- - **Pull Requests:** Scout → verify tests pass request `code-reviewer` review before merge
183
- - **General:** Apply verification gates before any status claims, push back on invalid feedback
184
- - **Pipeline:** For complex features use the full `scout reviewfixverify` pipeline
174
+ - **Subagent-Driven:** Scout Review Adversarial Verify before next task
175
+ - **Pull Requests:** Scout → Code qualityAdversarial Merge
176
+ - **Task Pipeline:** Create review tasks with dependencies auto-unblock through chain
177
+ - **Cook Handoff:** Cook completes phase review pipeline tasks (incl. adversarial)all complete cook proceeds
178
+ - **PR Review:** `/code-review #123` → fetch diff → full 3-stage review on PR changes
179
+ - **Commit Review:** `/code-review abc1234` → review specific commit with full pipeline
180
+
181
+ ## Codebase Analysis Subcommands
182
+
183
+ | Subcommand | Reference | Purpose |
184
+ |------------|-----------|---------|
185
+ | `/ck-code-review codebase` | `references/codebase-scan-workflow.md` | Scan & analyze the codebase |
186
+ | `/ck-code-review codebase parallel` | `references/parallel-review-workflow.md` | Ultrathink edge cases, then parallel verify |
185
187
 
186
188
  ## Bottom Line
187
189
 
188
- 1. **Scout first** - Edge cases found before review save rework cycles
189
- 2. Technical rigor over social performance - No performative agreement
190
- 3. Systematic review processes - Use `code-reviewer` agent via pipeline
191
- 4. Evidence before claims - Verification gates always
190
+ 1. Resolve input mode first know WHAT you're reviewing
191
+ 2. Technical rigor over social performance
192
+ 3. Scout edge cases before review
193
+ 4. Adversarial review on EVERY review no exceptions
194
+ 5. Evidence before claims
192
195
 
193
- Scout. Verify. Question. Then implement. Evidence. Then claim.
196
+ Verify. Scout. Red-team. Question. Then implement. Evidence. Then claim.
@@ -0,0 +1,223 @@
1
+ ---
2
+ name: adversarial-review
3
+ description: Stage 3 red-team review that actively tries to break code — finds security holes, false assumptions, failure modes, race conditions. Spawns adversarial reviewer subagent with destructive mindset. Includes scope gate for trivial changes.
4
+ ---
5
+
6
+ # Adversarial Review (Stage 3)
7
+
8
+ Runs after every Stage 2 (Code Quality) pass. Subject to scope gate below.
9
+
10
+ ## Scope Gate
11
+
12
+ Skip adversarial review when ALL of these are true:
13
+ - Changed files <= 2
14
+ - Lines changed <= 30
15
+ - No security-sensitive files touched (auth, crypto, input parsing, SQL, env)
16
+ - No new dependencies added
17
+
18
+ When skipped, note: `Adversarial: skipped (below threshold)` in review output.
19
+
20
+ **NEVER skip when:**
21
+ - Any file in: `auth/`, `middleware/`, `security/`, `crypto/`
22
+ - `package.json`, `package-lock.json`, or lockfile changed
23
+ - Environment variables added/changed
24
+ - Database schema modified
25
+ - API route added/changed
26
+
27
+ ## Mindset
28
+
29
+ > "You are hired to tear apart the implementer's work. Your job is to find every way this code can fail, be exploited, or produce incorrect results. Assume the implementer made mistakes. Prove it."
30
+
31
+ This is NOT a standard code review. Standard reviews check if code meets requirements. Adversarial review assumes requirements are met and asks: **"How can this still break?"**
32
+
33
+ ## What to Attack
34
+
35
+ ### Security Holes
36
+ - Injection vectors (SQL, command, XSS, template)
37
+ - Auth bypass paths (missing checks, privilege escalation)
38
+ - Secrets exposure (logs, error messages, stack traces)
39
+ - Input trust boundaries (user input treated as safe)
40
+ - SSRF, path traversal, deserialization attacks
41
+
42
+ ### False Assumptions
43
+ - "This will never be null" -- prove it can be
44
+ - "This list always has elements" -- find the empty case
45
+ - "Users always call A before B" -- find the out-of-order path
46
+ - "This config value exists" -- find the missing env var
47
+ - "This third-party API always returns 200" -- find the failure mode
48
+ - "This API shape won't change" -- find the breaking caller
49
+
50
+ ### Failure Modes & Resource Exhaustion
51
+ - What happens when disk is full?
52
+ - What happens when network times out mid-operation?
53
+ - What happens when the database connection drops during a transaction?
54
+ - Unbounded allocations from user-controlled input
55
+ - Missing timeouts on external calls
56
+ - Event loop blocking (sync operations in async context)
57
+ - Connection/handle leaks on error paths
58
+ - Regex catastrophic backtracking (ReDoS)
59
+
60
+ ### Race Conditions
61
+ - Shared mutable state without locks
62
+ - Time-of-check-to-time-of-use (TOCTOU)
63
+ - Async operations with implicit ordering assumptions
64
+ - Cache invalidation during concurrent writes
65
+
66
+ ### Data Corruption
67
+ - Partial writes on failure (no transaction/rollback)
68
+ - Type coercion surprises (string "0" as falsy)
69
+ - Floating point comparison for equality
70
+ - Timezone-naive datetime operations
71
+
72
+ ### Supply Chain & Dependencies
73
+ - New dependencies: postinstall scripts, maintainer reputation, bundle size
74
+ - Lockfile changes: version drift, removed integrity hashes
75
+ - Transitive deps pulling in known-vulnerable packages
76
+
77
+ ### Observability Blind Spots
78
+ - Swallowed errors (`catch {}` with no log)
79
+ - Missing structured context in error logs
80
+ - PII in log output
81
+
82
+ ## Process
83
+
84
+ ### 1. Spawn Adversarial Reviewer
85
+
86
+ Dispatch `code-reviewer` subagent with adversarial prompt:
87
+
88
+ ```
89
+ You are an adversarial code reviewer. Your ONLY job is to find ways this code
90
+ can fail, be exploited, or produce incorrect results.
91
+
92
+ DO NOT praise the code. DO NOT note what works well.
93
+ ONLY report problems. If you find nothing, say "No findings" -- but try harder first.
94
+
95
+ Focus on ADDED/MODIFIED lines (+ prefix in diff). Pre-existing code is out of scope
96
+ unless the change makes it newly exploitable.
97
+
98
+ Context (read for understanding, DO NOT review):
99
+ {CONTEXT_FILES}
100
+
101
+ Runtime: {RUNTIME} (e.g., Node.js single-threaded, browser, serverless)
102
+ Framework: {FRAMEWORK} (e.g., Express with global error handler at app.ts:45)
103
+
104
+ Review this diff:
105
+ {DIFF}
106
+
107
+ Changed files: {FILES}
108
+
109
+ Attack vectors to check:
110
+ 1. Security holes (injection, auth bypass, secrets exposure)
111
+ 2. False assumptions (null, empty, ordering, config, API contracts)
112
+ 3. Failure modes + resource exhaustion (timeouts, leaks, unbounded input)
113
+ 4. Race conditions (shared state, TOCTOU, async ordering)
114
+ 5. Data corruption (partial writes, type coercion, encoding)
115
+ 6. Supply chain (new deps, lockfile changes, transitive vulns)
116
+ 7. Observability (swallowed errors, missing logs, PII in output)
117
+
118
+ For each finding, report:
119
+ - SEVERITY: Critical / Medium / Low
120
+ - CATEGORY: Security / Assumption / Failure / Race / Data / Supply / Observability
121
+ - LOCATION: file:line
122
+ - ATTACK: How to trigger the problem
123
+ - IMPACT: What happens when triggered
124
+ - FIX: Describe the fix approach (e.g., "add null check before line 42").
125
+ Do NOT write implementation code -- the implementer has full context.
126
+ ```
127
+
128
+ **If adversarial produces >10 findings on <100 lines changed:** likely too aggressive. Batch-reject noise, deep-review only Critical/Medium.
129
+
130
+ ### 2. Adjudicate Findings
131
+
132
+ Main agent reviews each adversarial finding and assigns verdict:
133
+
134
+ | Verdict | Meaning | Action |
135
+ |---------|---------|--------|
136
+ | **Accept** | Valid flaw, reproducible or clearly reasoned | Must fix before merge |
137
+ | **Reject** | False positive, already handled, or impossible path | Document why, no action |
138
+ | **Defer** | Valid but low-risk, tracked for later | Create GitHub issue for tracking |
139
+
140
+ **Rules:**
141
+ - Every finding gets a verdict -- no silent dismissals
142
+ - Critical findings: Accept unless you can PROVE false positive
143
+ - Benefit of doubt goes to the adversary (safer to fix than to dismiss)
144
+ - If >50% of findings are Rejected, the adversary was too aggressive -- but still report all
145
+
146
+ **Calibration examples:**
147
+
148
+ | Verdict | Example | Reasoning |
149
+ |---------|---------|-----------|
150
+ | Accept | "SQL injection via string interpolation in query builder" | Clearly exploitable, concrete path shown |
151
+ | Reject | "Missing null check on config.apiUrl" | Config loaded at startup with schema validation (see config.ts:12), cannot be null at runtime |
152
+ | Defer | "No rate limiting on POST /api/upload" | Valid concern but internal-only tool currently; track for public exposure |
153
+
154
+ ### 3. Report Format
155
+
156
+ ```
157
+ ## Adversarial Review -- Stage 3
158
+
159
+ ### Summary
160
+ - Findings: N total (X Critical, Y Medium, Z Low)
161
+ - Accepted: A (must fix)
162
+ - Rejected: B (false positive)
163
+ - Deferred: C (tracked via GitHub issues)
164
+
165
+ ### Accepted Findings (Must Fix)
166
+
167
+ #### [1] SEVERITY -- CATEGORY -- file:line
168
+ **Attack:** How to trigger
169
+ **Impact:** What happens
170
+ **Fix:** Approach description
171
+ **Verdict:** Accept -- [reason]
172
+
173
+ ### Rejected Findings
174
+
175
+ #### [N] SEVERITY -- CATEGORY -- file:line
176
+ **Attack:** Claimed vector
177
+ **Verdict:** Reject -- [reason this is a false positive]
178
+
179
+ ### Deferred Findings
180
+
181
+ #### [N] SEVERITY -- CATEGORY -- file:line
182
+ **Attack:** How to trigger
183
+ **Verdict:** Defer -- [reason] → GitHub issue #X
184
+ ```
185
+
186
+ ### 4. Fix Accepted Findings
187
+
188
+ - Critical: Block merge. Fix immediately via `/fix` or manual edit.
189
+ - Medium: Fix before merge if feasible. Defer only with explicit user approval.
190
+ - Low: Track. Fix in follow-up if pattern repeats.
191
+
192
+ ### Re-review Optimization
193
+
194
+ On fix cycles (re-running after accepted findings were fixed):
195
+ - Only pass the FIX diff to adversarial, not the full original diff
196
+ - Verify accepted findings are resolved
197
+ - Check for regression: did the fix introduce new issues?
198
+
199
+ ## Integration with Pipeline
200
+
201
+ ```
202
+ Stage 1 (Spec) → PASS
203
+
204
+ Stage 2 (Quality) → PASS
205
+
206
+ Scope gate → below threshold? → skip (note in report)
207
+ ↓ (above threshold)
208
+ Stage 3 (Adversarial) → findings
209
+ ├─ 0 Accepted → PASS → proceed
210
+ ├─ Accepted Critical → BLOCK → fix → re-run Stage 3 (fix diff only)
211
+ └─ Accepted Medium/Low only → fix or defer → proceed
212
+ ```
213
+
214
+ **Task pipeline update:** When using task-managed reviews, adversarial review gets its own task between "Review implementation" and "Fix critical issues".
215
+
216
+ ## What This Is NOT
217
+
218
+ - NOT a style review (Stage 2 handles that)
219
+ - NOT a spec compliance check (Stage 1 handles that)
220
+ - NOT dependency graph analysis or import tracing (scout handles that)
221
+ - NOT a general "suggestions for improvement" pass
222
+
223
+ This is a focused, hostile attempt to break the code. If the code survives, it's ready to ship.
@@ -0,0 +1,100 @@
1
+ # Checklist-Based Review Workflow
2
+
3
+ How to apply structured review checklists during code review.
4
+
5
+ ## When to Use
6
+
7
+ - Pre-landing review (from `/ck-ship` pipeline)
8
+ - Explicit request for checklist review
9
+ - Security audit before release
10
+ - Code-reviewer agent when reviewing significant changes (10+ files or security-sensitive)
11
+
12
+ ## Workflow
13
+
14
+ ### 1. Auto-Detect Project Type
15
+
16
+ ```bash
17
+ # Check for web app frameworks
18
+ if grep -qE '"(react|vue|svelte|next|nuxt|angular)"' package.json 2>/dev/null; then
19
+ echo "web-app"
20
+ # Check for API patterns
21
+ elif ls src/routes/ src/api/ src/controllers/ app/controllers/ 2>/dev/null | head -1; then
22
+ echo "api"
23
+ else
24
+ echo "base-only"
25
+ fi
26
+ ```
27
+
28
+ ### 2. Load Checklists
29
+
30
+ Always load: `checklists/base.md`
31
+
32
+ Overlay based on detection:
33
+ - `web-app` → also load `checklists/web-app.md`
34
+ - `api` → also load `checklists/api.md`
35
+ - Both detected → load both overlays
36
+
37
+ ### 3. Get the Diff
38
+
39
+ ```bash
40
+ git fetch origin main --quiet
41
+ git diff origin/main
42
+ ```
43
+
44
+ **CRITICAL:** Read the FULL diff before flagging anything. Checklist suppressions require full context.
45
+
46
+ ### 4. Two-Pass Review
47
+
48
+ **Pass 1 (CRITICAL) — Run first:**
49
+ - Scan diff against ALL critical categories (base + overlays)
50
+ - Each finding must include: `[file:line]`, problem, fix
51
+ - These block `/ship` pipeline
52
+
53
+ **Pass 2 (INFORMATIONAL) — Run second:**
54
+ - Scan diff against ALL informational categories (base + overlays)
55
+ - Same format: `[file:line]`, problem, fix
56
+ - Included in PR body but don't block
57
+
58
+ ### 5. Check Suppressions
59
+
60
+ Before reporting any finding, verify it's NOT in the suppressions list (bottom of `base.md`).
61
+
62
+ Key suppressions:
63
+ - Already addressed in the diff
64
+ - Readability-aiding redundancy
65
+ - Style/formatting issues
66
+ - "Consider using X" when Y works fine
67
+
68
+ ### 6. Output
69
+
70
+ ```
71
+ Pre-Landing Review: N issues (X critical, Y informational)
72
+
73
+ **CRITICAL** (blocking):
74
+ - [src/auth/login.ts:42] SQL injection via string interpolation in user lookup
75
+ Fix: Use parameterized query: `db.query('SELECT * FROM users WHERE email = $1', [email])`
76
+
77
+ **Issues** (non-blocking):
78
+ - [src/api/users.ts:88] Magic number 30 for pagination limit
79
+ Fix: Extract to constant `DEFAULT_PAGE_SIZE = 30`
80
+ ```
81
+
82
+ ### 7. Critical Issue Resolution
83
+
84
+ For each critical issue, ask the user:
85
+ - Problem with `file:line`
86
+ - Recommended fix
87
+ - Options:
88
+ - A) Fix now (recommended)
89
+ - B) Acknowledge and proceed
90
+ - C) False positive — skip
91
+
92
+ If user chose A (fix): apply fixes, commit, then re-run tests before continuing.
93
+
94
+ ## Integration with /ck-ship
95
+
96
+ The ship pipeline calls this workflow at Step 4. Critical findings block the pipeline. Informational findings are included in the PR body.
97
+
98
+ ## Integration with /ck-code-review
99
+
100
+ When invoked as part of standard code review, the checklist augments (not replaces) the existing scout → review → fix → verify pipeline. Checklist findings are merged with code-reviewer's own findings.