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
@@ -13,7 +13,7 @@
13
13
  "problem-solving",
14
14
  "agent-skill"
15
15
  ],
16
- "author": "Converted from MCP Server",
16
+ "author": "CoKit",
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
19
  "jest": "^29.7.0"
@@ -0,0 +1,116 @@
1
+ ---
2
+ name: ship
3
+ description: "Ship pipeline: merge main, test, review, commit, push, PR. Single command from feature branch to PR URL. Use for shipping official releases to main/master or beta releases to dev/beta branches."
4
+ argument-hint: "[official|beta] [--skip-tests] [--skip-review] [--skip-journal] [--skip-docs] [--dry-run]"
5
+ license: MIT
6
+ ---
7
+
8
+ # Ship: Unified Ship Pipeline
9
+
10
+ Single command to ship a feature branch. Fully automated — only stops for test failures, critical review issues, or major version bumps.
11
+
12
+ **Inspired by:** gstack `/ship` by Garry Tan. Adapted for framework-agnostic, multi-language support.
13
+
14
+ ## Arguments
15
+
16
+ | Flag | Effect |
17
+ |------|--------|
18
+ | `official` | Ship to default branch (main/master). Full pipeline with docs + journal |
19
+ | `beta` | Ship to dev/beta branch. Lighter pipeline, skip docs update |
20
+ | (none) | Auto-detect: if base branch is main/master → official, else → beta |
21
+ | `--skip-tests` | Skip test step (use when tests already passed) |
22
+ | `--skip-review` | Skip pre-landing review step |
23
+ | `--skip-journal` | Skip journal writing step |
24
+ | `--skip-docs` | Skip docs update step |
25
+ | `--dry-run` | Show what would happen without executing |
26
+
27
+ ## Ship Mode Detection
28
+
29
+ ```
30
+ If argument = "official" → target = main/master (auto-detect default branch)
31
+ If argument = "beta" → target = dev/beta (auto-detect dev branch)
32
+ If no argument → infer from current branch naming:
33
+ - feature/* hotfix/* bugfix/* → official (target main)
34
+ - dev/* beta/* experiment/* → beta (target dev/beta)
35
+ - unclear → asking the user
36
+ ```
37
+
38
+ ## When to Stop (blocking)
39
+
40
+ - On target branch already → abort
41
+ - Merge conflicts that can't be auto-resolved → stop, show conflicts
42
+ - Test failures → stop, show failures
43
+ - Critical review issues → asking the user per issue
44
+ - Major/minor version bump needed → asking the user
45
+
46
+ ## When NOT to Stop
47
+
48
+ - Uncommitted changes → always include them
49
+ - Patch version bump → auto-decide
50
+ - Changelog content → auto-generate
51
+ - Commit message → auto-compose
52
+ - No version file → skip version step silently
53
+ - No changelog → skip changelog step silently
54
+
55
+ ## Pipeline
56
+
57
+ ```
58
+ Step 1: Pre-flight → Branch check, mode detection, status, diff analysis
59
+ Step 2: Link Issues → Find/create related GitHub issues
60
+ Step 3: Merge target → Fetch + merge origin/<target-branch>
61
+ Step 4: Run tests → Auto-detect test runner, run, check results
62
+ Step 5: Review → Two-pass checklist review (critical + informational)
63
+ Step 6: Version bump → Auto-detect version file, bump patch/minor
64
+ Step 7: Changelog → Auto-generate from commits + diff
65
+ Step 8: Journal → Write technical journal via /ck-journal
66
+ Step 9: Docs update → Update project docs via /ck-docs update (official only)
67
+ Step 10: Commit → Conventional commit with version/changelog
68
+ Step 11: Push → git push -u origin <branch>
69
+ Step 12: Create PR → gh pr create with structured body + linked issues
70
+ ```
71
+
72
+ **Detailed steps:** Load `references/ship-workflow.md`
73
+ **Auto-detection:** Load `references/auto-detect.md`
74
+ **PR template:** Load `references/pr-template.md`
75
+
76
+ ## Token Efficiency Rules
77
+
78
+ - Steps 4 (tests) and 5 (review): delegate to `tester` and `code-reviewer` subagents — don't inline
79
+ - Steps 8 (journal) and 9 (docs): run in **background** — don't block pipeline
80
+ - Step 2 (issues): use single `gh` command batch — avoid multiple API calls
81
+ - Skip steps early via flags to save tokens on unnecessary work
82
+ - Beta mode auto-skips: docs update (Step 9)
83
+ - Capture step outputs inline — don't re-read files already in context
84
+
85
+ ## Quick Start
86
+
87
+ User says `/ck-ship` → run full pipeline → output PR URL.
88
+ User says `/ck-ship beta` → ship to dev branch with lighter pipeline.
89
+ User says `/ck-ship official` → ship to main with full docs + journal.
90
+
91
+ ## Output Format
92
+
93
+ ```
94
+ ✓ Pre-flight: branch feature/foo, 5 commits, +200/-50 lines (mode: official)
95
+ ✓ Issues: linked #42, created #43
96
+ ✓ Merged: origin/main (up to date)
97
+ ✓ Tests: 42 passed, 0 failed
98
+ ✓ Review: 0 critical, 2 informational
99
+ ✓ Version: 1.2.3 → 1.2.4
100
+ ✓ Changelog: updated
101
+ ✓ Journal: written (background)
102
+ ✓ Docs: updated (background)
103
+ ✓ Committed: feat(auth): add OAuth2 login flow
104
+ ✓ Pushed: origin/feature/foo
105
+ ✓ PR: https://github.com/org/repo/pull/123 (linked: #42, #43)
106
+ ```
107
+
108
+ ## Important Rules
109
+
110
+ - **Never skip tests** (unless `--skip-tests`). If tests fail, stop.
111
+ - **Never force push.** Regular `git push` only.
112
+ - **Never ask for confirmation** except for critical review issues and major/minor version bumps.
113
+ - **Auto-detect everything.** Test runner, version file, changelog format, target branch — detect from project files.
114
+ - **Framework-agnostic.** Works for Node, Python, Rust, Go, Ruby, Java, or any project with a test command.
115
+ - **Subagent delegation.** Use `tester` for tests, `code-reviewer` for review, `journal-writer` for journal, `docs-manager` for docs. Don't inline.
116
+ - **Background tasks.** Journal and docs run in background to not block the pipeline.
@@ -0,0 +1,103 @@
1
+ # Auto-Detection Logic
2
+
3
+ Detect test runner, version file, and changelog format from project files.
4
+
5
+ ## Test Runner Detection
6
+
7
+ Check in order (first match wins):
8
+
9
+ | Check | Test Command |
10
+ |-------|-------------|
11
+ | `package.json` → `scripts.test` exists | `npm test` |
12
+ | `Makefile` → has `test:` target | `make test` |
13
+ | `pytest.ini` OR `pyproject.toml` has `[tool.pytest]` | `pytest` |
14
+ | `Cargo.toml` exists | `cargo test` |
15
+ | `go.mod` exists | `go test ./...` |
16
+ | `Gemfile` + `Rakefile` with test task | `bundle exec rake test` |
17
+ | `build.gradle` or `build.gradle.kts` | `./gradlew test` |
18
+ | `pom.xml` | `mvn test` |
19
+ | `mix.exs` | `mix test` |
20
+ | `deno.json` | `deno test` |
21
+
22
+ **Detection script:**
23
+ ```bash
24
+ if [ -f package.json ] && grep -q '"test"' package.json 2>/dev/null; then
25
+ echo "npm test"
26
+ elif [ -f Makefile ] && grep -q '^test:' Makefile 2>/dev/null; then
27
+ echo "make test"
28
+ elif [ -f pytest.ini ] || ([ -f pyproject.toml ] && grep -q '\[tool.pytest' pyproject.toml 2>/dev/null); then
29
+ echo "pytest"
30
+ elif [ -f Cargo.toml ]; then
31
+ echo "cargo test"
32
+ elif [ -f go.mod ]; then
33
+ echo "go test ./..."
34
+ else
35
+ echo "NONE"
36
+ fi
37
+ ```
38
+
39
+ **If NONE:** Use asking the user — "No test runner detected. Options: A) Skip tests, B) Provide test command"
40
+
41
+ ## Version File Detection
42
+
43
+ Check in order:
44
+
45
+ | Check | Read Pattern |
46
+ |-------|-------------|
47
+ | `VERSION` file | Read as semver string |
48
+ | `package.json` → `version` field | `jq -r .version package.json` |
49
+ | `pyproject.toml` → `version` | grep `version = "..."` |
50
+ | `Cargo.toml` → `version` | grep `version = "..."` |
51
+ | `mix.exs` → `@version` | grep `@version "..."` |
52
+
53
+ **If none found:** Skip version bump silently. Not all projects use versioning.
54
+
55
+ **Bump logic:**
56
+ ```
57
+ Lines changed < 50 → patch (X.Y.Z → X.Y.Z+1)
58
+ Lines changed >= 50 → patch (safe default)
59
+ User explicitly says "breaking" or "major feature" → asking the user for minor/major
60
+ ```
61
+
62
+ ## Changelog Detection
63
+
64
+ | Check | Format |
65
+ |-------|--------|
66
+ | `CHANGELOG.md` | Keep-a-changelog format |
67
+ | `CHANGES.md` | Same |
68
+ | `HISTORY.md` | Same |
69
+
70
+ **If none found:** Skip changelog silently.
71
+
72
+ **Entry format:**
73
+ ```markdown
74
+ ## [X.Y.Z] - YYYY-MM-DD
75
+
76
+ ### Added
77
+ - New features from commits with `feat:` prefix
78
+
79
+ ### Changed
80
+ - Changes from commits with `refactor:`, `perf:` prefix
81
+
82
+ ### Fixed
83
+ - Bug fixes from commits with `fix:` prefix
84
+
85
+ ### Removed
86
+ - Removals mentioned in commit messages
87
+ ```
88
+
89
+ **Infer categories from:**
90
+ 1. Conventional commit prefixes in `git log main..HEAD --oneline`
91
+ 2. File types changed (test files → test improvements, docs → documentation)
92
+ 3. Diff content (new functions = Added, modified functions = Changed)
93
+
94
+ ## Main Branch Detection
95
+
96
+ ```bash
97
+ git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'
98
+ ```
99
+
100
+ Fallback: check if `main` or `master` exists:
101
+ ```bash
102
+ git rev-parse --verify origin/main 2>/dev/null && echo "main" || echo "master"
103
+ ```
@@ -0,0 +1,90 @@
1
+ # PR Body Template
2
+
3
+ Use this template when creating PRs via `gh pr create`.
4
+
5
+ ## Template
6
+
7
+ ```markdown
8
+ ## Summary
9
+ <bullet points — infer from changelog entry or commit messages>
10
+
11
+ ## Linked Issues
12
+ <list issues from Step 2>
13
+ - Closes #XX — <issue title>
14
+ - Relates to #YY — <issue title>
15
+ <or "No linked issues.">
16
+
17
+ ## Pre-Landing Review
18
+ <findings from review step>
19
+ <format: "N issues (X critical, Y informational)" or "No issues found.">
20
+
21
+ <if informational issues exist, list them:>
22
+ - [file:line] Issue description
23
+
24
+ ## Test Results
25
+ - [x] All tests pass (<count> tests, 0 failures)
26
+ <or>
27
+ - [x] Tests skipped (--skip-tests)
28
+
29
+ ## Changes
30
+ <output of git diff --stat, trimmed to key files>
31
+
32
+ ## Ship Mode
33
+ - Mode: <official|beta>
34
+ - Target: <target-branch>
35
+ ```
36
+
37
+ ## PR Title Format
38
+
39
+ ```
40
+ type(scope): brief description
41
+ ```
42
+
43
+ Infer type from changes:
44
+ - `feat`: new feature or capability
45
+ - `fix`: bug fix
46
+ - `refactor`: code restructuring without behavior change
47
+ - `perf`: performance improvement
48
+ - `chore`: maintenance, dependencies, config
49
+
50
+ ## Example
51
+
52
+ ```markdown
53
+ ## Summary
54
+ - Add OAuth2 login flow with Google and GitHub providers
55
+ - Implement session management with secure cookie storage
56
+ - Add logout endpoint with token revocation
57
+
58
+ ## Linked Issues
59
+ - Closes #42 — Add OAuth2 authentication support
60
+ - Relates to #38 — Security audit for auth module
61
+
62
+ ## Pre-Landing Review
63
+ Pre-Landing Review: 1 issue (0 critical, 1 informational)
64
+
65
+ - [src/auth/session.ts:42] Magic number 3600 for session TTL
66
+ Fix: Extract to named constant SESSION_TTL_SECONDS
67
+
68
+ ## Test Results
69
+ - [x] All tests pass (127 tests, 0 failures)
70
+
71
+ ## Changes
72
+ src/auth/oauth.ts | 89 +++++++++
73
+ src/auth/session.ts | 45 +++++
74
+ src/routes/auth.ts | 32 ++++
75
+ tests/auth.test.ts | 67 +++++++
76
+ 4 files changed, 233 insertions(+)
77
+
78
+ ## Ship Mode
79
+ - Mode: official
80
+ - Target: main
81
+ ```
82
+
83
+ ## Notes
84
+
85
+ - Keep summary bullets concise — one line per change
86
+ - Include review findings even if "No issues found" — shows review happened
87
+ - Test counts should match actual output, not estimates
88
+ - If PR already exists, use `gh pr edit` instead of `gh pr create`
89
+ - Always include linked issues section — traceability is critical
90
+ - For beta PRs, target the dev/beta branch, not main
@@ -0,0 +1,241 @@
1
+ # Ship Workflow — Detailed Steps
2
+
3
+ ## Step 1: Pre-flight
4
+
5
+ 1. Check current branch: `git branch --show-current`
6
+ - If on target branch (main/master/dev): **ABORT** — "Ship from a feature branch, not the target branch."
7
+ 2. Determine ship mode from arguments:
8
+ - `official` → target = auto-detect default branch (main/master)
9
+ - `beta` → target = auto-detect dev branch (dev/beta/develop)
10
+ - No argument → infer from branch name:
11
+ - `feature/* hotfix/* bugfix/*` → official
12
+ - `dev/* beta/* experiment/*` → beta
13
+ - Unclear → asking the user with options: "Official (main)", "Beta (dev)"
14
+ 3. Auto-detect target branch:
15
+ ```bash
16
+ # For official: detect default branch
17
+ git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'
18
+ # Fallback
19
+ git rev-parse --verify origin/main 2>/dev/null && echo "main" || echo "master"
20
+
21
+ # For beta: detect dev branch
22
+ for b in dev beta develop; do
23
+ git rev-parse --verify origin/$b 2>/dev/null && echo "$b" && break
24
+ done
25
+ ```
26
+ 4. Run `git status` (never use `-uall`). Uncommitted changes are always included.
27
+ 5. Run `git diff <target>...HEAD --stat` and `git log <target>..HEAD --oneline` to understand what's being shipped.
28
+ 6. If `--dry-run`: output what would happen at each step and stop here.
29
+
30
+ ## Step 2: Link Issues
31
+
32
+ Find or create related GitHub issues for traceability.
33
+
34
+ 1. Search for related open issues by keywords from branch name and commit messages:
35
+ ```bash
36
+ # Extract keywords from branch name
37
+ BRANCH=$(git branch --show-current)
38
+ KEYWORDS=$(echo "$BRANCH" | sed 's/[^a-zA-Z0-9]/ /g' | tr '[:upper:]' '[:lower:]')
39
+
40
+ # Search existing issues
41
+ gh issue list --state open --limit 10 --search "$KEYWORDS"
42
+ ```
43
+
44
+ 2. Also check if any issues are referenced in commit messages:
45
+ ```bash
46
+ git log <target>..HEAD --oneline | grep -oE '#[0-9]+' | sort -u
47
+ ```
48
+
49
+ 3. **If related issues found:** Note issue numbers for PR linking.
50
+
51
+ 4. **If NO related issues found:** Create a new issue with structured format:
52
+ ```bash
53
+ gh issue create --title "<type>: <summary from commits>" --body "$(cat <<'EOF'
54
+ ## Problem Statement
55
+ <infer from diff and commit messages>
56
+
57
+ ## Proposal
58
+ <summarize the implementation approach>
59
+
60
+ ## How It Works
61
+ <describe key changes with bullet points>
62
+
63
+ ### Architecture
64
+ ```
65
+ <ASCII diagram of component interactions>
66
+ ```
67
+
68
+ ## Challenges
69
+ - <potential edge cases or risks>
70
+
71
+ ## Plan & Phases
72
+ - [x] Implementation complete
73
+ - [x] Tests passing
74
+ - [ ] Code review approved
75
+ - [ ] Merged to <target>
76
+
77
+ ## Human Review Tasks
78
+ - [ ] Verify business logic correctness
79
+ - [ ] Check for edge cases not covered by tests
80
+ - [ ] Validate UX/API contract changes (if any)
81
+ EOF
82
+ )"
83
+ ```
84
+
85
+ 5. Store issue numbers for Step 12 (PR creation).
86
+
87
+ ## Step 3: Merge target branch
88
+
89
+ Fetch and merge so tests run against the merged state:
90
+
91
+ ```bash
92
+ git fetch origin <target> && git merge origin/<target> --no-edit
93
+ ```
94
+
95
+ - **If merge conflicts:** Try auto-resolve simple ones (lockfiles, version files). For complex conflicts, **STOP** and show them.
96
+ - **If already up to date:** Continue silently.
97
+
98
+ ## Step 4: Run Tests
99
+
100
+ **Skip if:** `--skip-tests` flag.
101
+
102
+ 1. Auto-detect test command (see `auto-detect.md`)
103
+ 2. Delegate to `tester` subagent — don't inline test execution
104
+ 3. Check pass/fail from agent result
105
+
106
+ - **If any test fails:** Show failures and **STOP**. Do not proceed.
107
+ - **If all pass:** Note counts briefly and continue.
108
+ - **If no test runner detected:** Use asking the user — "No test runner detected. Skip tests or provide command?"
109
+
110
+ ## Step 5: Pre-Landing Review
111
+
112
+ **Skip if:** `--skip-review` flag.
113
+
114
+ 1. Run `git diff origin/<target>` to get the full diff
115
+ 2. Delegate to `code-reviewer` subagent with the diff
116
+ 3. Two-pass model:
117
+ - **Pass 1 (CRITICAL):** Security, injection, race conditions, auth bypass
118
+ - **Pass 2 (INFORMATIONAL):** Dead code, magic numbers, test gaps, style
119
+
120
+ 4. **Output findings:**
121
+ ```
122
+ Pre-Landing Review: N issues (X critical, Y informational)
123
+ ```
124
+
125
+ 5. **If critical issues found:** For EACH critical issue, ask the user:
126
+ - Problem description with `file:line`
127
+ - Recommended fix
128
+ - Options: A) Fix now (recommended), B) Acknowledge and ship, C) False positive — skip
129
+
130
+ 6. **If user chose Fix (A):** Apply fixes, commit fixed files, then **re-run tests** (Step 4) before continuing.
131
+ 7. **If only informational:** Include in PR body, continue.
132
+ 8. **If no issues:** Output "No issues found." and continue.
133
+
134
+ ## Step 6: Version Bump (conditional)
135
+
136
+ 1. Auto-detect version source (see `auto-detect.md`)
137
+ 2. If no version file found: **skip silently**
138
+ 3. Auto-decide bump level from diff size:
139
+ - **< 50 lines:** patch bump
140
+ - **50+ lines:** patch bump (default safe choice)
141
+ - **Major feature or breaking change:** Use asking the user — "This looks like a significant change. Bump minor or patch?"
142
+ 4. For beta mode: use prerelease suffix (e.g., `1.2.4-beta.1`)
143
+ 5. Write new version to detected file
144
+
145
+ ## Step 7: Changelog (conditional)
146
+
147
+ 1. Check for CHANGELOG.md or CHANGES.md
148
+ 2. If not found: **skip silently**
149
+ 3. Auto-generate entry from ALL commits on branch:
150
+ - `git log <target>..HEAD --oneline` for commit list
151
+ - `git diff <target>...HEAD` for full diff context
152
+ 4. Categorize into: Added, Changed, Fixed, Removed
153
+ 5. Insert after file header, dated today
154
+ 6. Format: `## [X.Y.Z] - YYYY-MM-DD`
155
+
156
+ **Do NOT ask user to describe changes.** Infer from diff and commits.
157
+
158
+ ## Step 8: Journal (background)
159
+
160
+ **Skip if:** `--skip-journal` flag.
161
+
162
+ Write a technical journal entry capturing this ship session. Run as **background task** to not block pipeline.
163
+
164
+ 1. Invoke `/ck-journal` skill via `journal-writer` subagent in background:
165
+ - Topic: summary of shipped changes (from commit messages + diff stats)
166
+ - Include: what was shipped, key decisions, technical challenges encountered
167
+ - Output: saved to `./docs/journals/` directory
168
+ 2. Don't wait for completion — continue to next step immediately.
169
+
170
+ ## Step 9: Docs Update (conditional, background)
171
+
172
+ **Skip if:** `--skip-docs` flag OR ship mode is `beta`.
173
+
174
+ Update project documentation for official releases. Run as **background task**.
175
+
176
+ 1. Invoke `/ck-docs update` skill via `docs-manager` subagent in background:
177
+ - Analyzes code changes since last release
178
+ - Updates relevant docs in `./docs/` directory
179
+ 2. Don't wait for completion — continue to next step immediately.
180
+
181
+ ## Step 10: Commit
182
+
183
+ 1. Stage all changes: `git add -A`
184
+ 2. Security check: scan staged diff for secrets (API keys, tokens, passwords)
185
+ - If secrets found: **STOP**, warn user, suggest `.gitignore`
186
+ 3. Compose commit message:
187
+ - Format: `type(scope): description`
188
+ - Infer type from changes (feat/fix/refactor/chore)
189
+ - If version + changelog present, include in same commit
190
+ 4. Commit:
191
+
192
+ ```bash
193
+ git commit -m "$(cat <<'EOF'
194
+ type(scope): description
195
+
196
+ Brief body describing the changes.
197
+ EOF
198
+ )"
199
+ ```
200
+
201
+ ## Step 11: Push
202
+
203
+ ```bash
204
+ git push -u origin $(git branch --show-current)
205
+ ```
206
+
207
+ - **Never force push.**
208
+ - If push rejected: suggest `git pull --rebase` and retry once.
209
+
210
+ ## Step 12: Create PR
211
+
212
+ Check if `gh` CLI is available:
213
+ ```bash
214
+ which gh 2>/dev/null || echo "MISSING"
215
+ ```
216
+
217
+ If missing: output "Install GitHub CLI (gh) to auto-create PRs" and stop after push.
218
+
219
+ Create PR targeting the correct branch:
220
+ ```bash
221
+ gh pr create --base <target-branch> --title "<type>: <summary>" --body "$(cat <<'EOF'
222
+ <PR body from pr-template.md>
223
+ EOF
224
+ )"
225
+ ```
226
+
227
+ **Link issues** collected from Step 2:
228
+ ```bash
229
+ # If issues were found/created, add closing keywords in PR body
230
+ # e.g., "Closes #42, Relates to #43"
231
+ ```
232
+
233
+ **Output the PR URL** — this is the final output the user sees.
234
+
235
+ If PR already exists for this branch, update it instead:
236
+ ```bash
237
+ gh pr edit --title "<type>: <summary>" --body "$(cat <<'EOF'
238
+ <PR body>
239
+ EOF
240
+ )"
241
+ ```
@@ -0,0 +1,111 @@
1
+ ---
2
+ name: test
3
+ description: "Run unit, integration, e2e, and UI tests. Use for test execution, coverage analysis, build verification, visual regression, and QA reports."
4
+ argument-hint: "[context] OR ui [url]"
5
+ ---
6
+
7
+ # Testing & Quality Assurance
8
+
9
+ Comprehensive testing framework covering code-level testing (unit, integration, e2e), UI/visual testing via browser automation, coverage analysis, and structured QA reporting.
10
+
11
+ ## Default (No Arguments)
12
+
13
+ If invoked with context (test scope), proceed with testing. If invoked WITHOUT arguments, ask the user to present available test operations:
14
+
15
+ | Operation | Description |
16
+ |-----------|-------------|
17
+ | `(default)` | Run unit/integration/e2e tests |
18
+ | `ui` | Run UI tests on a website |
19
+
20
+ Present as options by asking the user with header "Test Operation", question "What would you like to do?".
21
+
22
+ ## Core Principle
23
+
24
+ **NEVER IGNORE FAILING TESTS.** Fix root causes, not symptoms. No mocks/cheats/tricks to pass builds.
25
+
26
+ ## When to Use
27
+
28
+ - **After implementation**: Validate new features or bug fixes
29
+ - **Coverage checks**: Ensure coverage meets project thresholds (80%+)
30
+ - **UI verification**: Visual regression, responsive layout, accessibility
31
+ - **Build validation**: Verify build process, dependencies, CI/CD compatibility
32
+ - **Pre-commit/push**: Final quality gate
33
+
34
+ ## Workflows
35
+
36
+ ### 1. Code Testing (`references/test-execution-workflow.md`)
37
+
38
+ Execute test suites, analyze results, generate coverage. Supports JS/TS (Jest/Vitest/Mocha), Python (pytest), Go, Rust, Flutter. Includes working process, quality standards, and tool commands.
39
+
40
+ **Load when:** Running unit/integration/e2e tests, checking coverage, validating builds
41
+
42
+ ### 2. UI Testing (`references/ui-testing-workflow.md`)
43
+
44
+ Browser-based visual testing via `chrome-devtools` (if available) skill. Screenshots, responsive checks, accessibility audits, form automation, console error collection. Includes auth injection for protected routes.
45
+
46
+ **Load when:** Visual regression testing, UI bugs, responsive layout checks, accessibility audits
47
+
48
+ ### 3. Report Format (`references/report-format.md`)
49
+
50
+ Structured QA report template: test results overview, coverage metrics, failed tests, performance, build status, recommendations.
51
+
52
+ **Load when:** Generating test summary reports
53
+
54
+ ## Quick Reference
55
+
56
+ ```
57
+ Code tests → test-execution-workflow.md
58
+ npm test / pytest / go test / cargo test / flutter test
59
+ Coverage: npm run test:coverage / pytest --cov
60
+
61
+ UI tests → ui-testing-workflow.md
62
+ Screenshots, responsive, a11y, forms, console errors
63
+ Auth: inject-auth.js for protected routes
64
+
65
+ Reports → report-format.md
66
+ Structured QA summary with metrics & recommendations
67
+ ```
68
+
69
+ ## Working Process
70
+
71
+ 1. Identify testing scope from recent changes or requirements
72
+ 2. Run typecheck/analyze commands to catch syntax errors first
73
+ 3. Execute appropriate test suites
74
+ 4. Analyze results — focus on failures
75
+ 5. Generate coverage reports if applicable
76
+ 6. For frontend: run UI tests via `chrome-devtools` (if available) skill
77
+ 7. Produce structured summary report
78
+
79
+ ## Tools Integration
80
+
81
+ - **Test runners**: Jest, Vitest, Mocha, pytest, go test, cargo test, flutter test
82
+ - **Coverage**: Istanbul/c8/nyc, pytest-cov, go cover
83
+ - **Browser**: `chrome-devtools` (if available) skill for UI testing (screenshots, ARIA, console, network)
84
+ - **Analysis**: `ai-multimodal` (if available) skill for screenshot analysis
85
+ - **Debugging**: `debug` skill when tests reveal bugs requiring investigation
86
+ - **Thinking**: `sequential-thinking` skill for complex test failure analysis
87
+
88
+ ## Quality Standards
89
+
90
+ - All critical paths must have test coverage
91
+ - Validate happy path AND error scenarios
92
+ - Ensure test isolation — no interdependencies
93
+ - Tests must be deterministic and reproducible
94
+ - Clean up test data after execution
95
+ - Never ignore failing tests to pass the build
96
+
97
+ ## Report Output
98
+ **IMPORTANT:** Invoke "/ck-project-organization" skill to organize the outputs.
99
+
100
+ Use naming pattern from `## Naming` section injected by hooks.
101
+
102
+ ## Team Mode
103
+
104
+ When operating as teammate:
105
+ 1. On start: check `TaskList`, claim assigned/next unblocked task via `TaskUpdate`
106
+ 2. Read full task description via `TaskGet` before starting
107
+ 3. Wait for blocked tasks (implementation) to complete before testing
108
+ 4. Respect file ownership — only create/edit test files assigned
109
+ 5. When done: `TaskUpdate(status: "completed")` then `SendMessage` results to lead
110
+
111
+ **Fallback:** Task tools (`TaskList`/`TaskUpdate`/`TaskGet`) are CLI-only — unavailable in VSCode extension. If they error, use `TodoWrite` for progress tracking and coordinate via `SendMessage` only.