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
@@ -1,170 +1,112 @@
1
1
  ---
2
2
  name: debug
3
- description: Debug systematically with root cause analysis before fixes. Covers bugs, test failures, log analysis, CI/CD failures, database diagnostics, system investigation, performance issues, call stack tracing, multi-layer validation.
3
+ description: "Debug systematically with root cause analysis before fixes. Use for bugs, test failures, unexpected behavior, performance issues, call stack tracing, multi-layer validation, log analysis, CI/CD failures, database diagnostics, system investigation."
4
+ languages: all
5
+ argument-hint: "[error or issue description]"
4
6
  ---
5
7
 
6
8
  # Debugging & System Investigation
7
9
 
8
- Comprehensive debugging framework combining systematic investigation, root cause tracing, defense-in-depth validation, verification protocols, and system-level diagnostics.
10
+ Comprehensive framework combining systematic debugging, root cause tracing, defense-in-depth validation, verification protocols, and system-level investigation (logs, CI/CD, databases, performance).
9
11
 
10
12
  ## Core Principle
11
13
 
12
14
  **NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST**
13
15
 
14
- Random fixes waste time and create new bugs. Find the root cause, fix at source, validate at every layer, verify before claiming success.
16
+ Random fixes waste time and create new bugs. Find root cause, fix at source, validate at every layer, verify before claiming success.
15
17
 
16
18
  ## When to Use
17
19
 
18
- **Code-level:** Test failures, bugs, unexpected behavior, build failures, integration problems, before claiming work complete
19
-
20
- **System-level:** CI/CD pipeline failures, log analysis, database diagnostics, performance bottlenecks, infrastructure issues
21
-
22
- **Especially when:** Under time pressure, "quick fix" seems obvious, tried multiple fixes, don't fully understand issue, about to claim success
20
+ **Code-level:** Test failures, bugs, unexpected behavior, build failures, integration problems
21
+ **System-level:** Server errors, CI/CD pipeline failures, performance degradation, database issues, log analysis
22
+ **Always:** Before claiming work complete
23
23
 
24
24
  ## Techniques
25
25
 
26
26
  ### 1. Systematic Debugging (`references/systematic-debugging.md`)
27
27
 
28
- Four-phase framework:
29
- - Phase 1: Root Cause Investigation (read errors, reproduce, check changes, gather evidence)
30
- - Phase 2: Pattern Analysis (find working examples, compare, identify differences)
31
- - Phase 3: Hypothesis and Testing (form theory, test minimally, verify)
32
- - Phase 4: Implementation (create test, fix once, verify)
33
-
34
- Complete each phase before proceeding. No fixes without Phase 1.
28
+ Four-phase framework: Root Cause Investigation → Pattern Analysis → Hypothesis Testing → Implementation. Complete each phase before proceeding. No fixes without Phase 1.
35
29
 
36
30
  **Load when:** Any bug/issue requiring investigation and fix
37
31
 
38
32
  ### 2. Root Cause Tracing (`references/root-cause-tracing.md`)
39
33
 
40
- Trace bugs backward through call stack to find original trigger. Fix at source, not at symptom.
41
-
42
- **Includes:** `scripts/find-polluter.sh` for bisecting test pollution
34
+ Trace bugs backward through call stack to find original trigger. Fix at source, not symptom. Includes `scripts/find-polluter.sh` for bisecting test pollution.
43
35
 
44
36
  **Load when:** Error deep in call stack, unclear where invalid data originated
45
37
 
46
38
  ### 3. Defense-in-Depth (`references/defense-in-depth.md`)
47
39
 
48
- Validate at every layer data passes through. Four layers: Entry validation → Business logic → Environment guards → Debug instrumentation
40
+ Validate at every layer: Entry validation → Business logic → Environment guards → Debug instrumentation
49
41
 
50
- **Load when:** After finding root cause, need to add comprehensive validation
42
+ **Load when:** After finding root cause, need comprehensive validation
51
43
 
52
44
  ### 4. Verification (`references/verification.md`)
53
45
 
54
- Run verification commands and confirm output before claiming success.
55
-
56
- **Iron law:** NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
46
+ **Iron law:** NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE. Run command. Read output. Then claim result.
57
47
 
58
48
  **Load when:** About to claim work complete, fixed, or passing
59
49
 
60
- ### 5. Investigation Methodology
50
+ ### 5. Investigation Methodology (`references/investigation-methodology.md`)
61
51
 
62
- For system-level issues (CI/CD, infrastructure, data pipeline):
52
+ Five-step structured investigation for system-level issues: Initial Assessment Data Collection → Analysis → Root Cause ID → Solution Development
63
53
 
64
- 1. **Scope** - Define what is broken and what is working
65
- 2. **Gather** - Collect logs, metrics, error outputs before touching anything
66
- 3. **Isolate** - Narrow to smallest reproducible case
67
- 4. **Hypothesize** - Form one theory, test it, reject or confirm
68
- 5. **Fix & Validate** - Fix at root, verify at every affected layer
54
+ **Load when:** Server incidents, system behavior analysis, multi-component failures
69
55
 
70
- **Load when:** Issue is not code-local — spans services, environments, or pipelines
56
+ ### 6. Log & CI/CD Analysis (`references/log-and-ci-analysis.md`)
71
57
 
72
- ### 6. Log & CI/CD Analysis
58
+ Collect and analyze logs from servers, CI/CD pipelines (GitHub Actions), application layers. Tools: `gh` CLI, structured log queries, correlation across sources.
73
59
 
74
- Use `gh` CLI and structured queries to diagnose pipeline failures:
60
+ **Load when:** CI/CD pipeline failures, server errors, deployment issues
75
61
 
76
- ```bash
77
- # View failed CI run logs
78
- gh run view <run-id> --log-failed
62
+ ### 7. Performance Diagnostics (`references/performance-diagnostics.md`)
79
63
 
80
- # List recent runs for a workflow
81
- gh run list --workflow=<name> --limit 10
64
+ Identify bottlenecks, analyze query performance, develop optimization strategies. Covers database queries, API response times, resource utilization.
82
65
 
83
- # Watch a running workflow
84
- gh run watch <run-id>
85
- ```
86
-
87
- For structured logs: filter by severity, timestamp range, and correlation ID before reading raw output.
88
-
89
- **Load when:** CI/CD failure, deployment issue, or log-driven investigation
66
+ **Load when:** Performance degradation, slow queries, high latency, resource exhaustion
90
67
 
91
- ### 7. Performance Diagnostics
68
+ ### 8. Reporting Standards (`references/reporting-standards.md`)
92
69
 
93
- Identify bottlenecks before optimizing:
94
- - Profile first — measure before guessing
95
- - Check slow queries with `EXPLAIN ANALYZE` (PostgreSQL) or equivalent
96
- - Identify N+1 query patterns in ORM usage
97
- - Check memory allocation patterns for leaks
98
- - Use `psql` for live database diagnostics
70
+ Structured diagnostic reports: Executive Summary → Technical Analysis → Recommendations → Evidence
99
71
 
100
- **Load when:** Slowness reported, timeout errors, resource exhaustion
72
+ **Load when:** Need to produce investigation report or diagnostic summary
101
73
 
102
- ### 8. Reporting Standards
74
+ ### 9. Task Management (`references/task-management-debugging.md`)
103
75
 
104
- For multi-component investigations, write a structured diagnostic report:
76
+ Track investigation pipelines via Native Tasks (TaskCreate, TaskUpdate, TaskList). Hydration pattern for multi-step investigations with dependency chains and parallel evidence collection. **Fallback:** Task tools are CLI-only — if unavailable (VSCode extension), use `TodoWrite` for tracking. Debug workflow remains fully functional.
105
77
 
106
- ```
107
- ## Diagnostic Report
108
- - **Issue:** [one-line description]
109
- - **Root Cause:** [where and why it fails]
110
- - **Evidence:** [logs, output, reproduction steps]
111
- - **Fix Applied:** [what was changed]
112
- - **Verification:** [command run + result]
113
- - **Remaining Risk:** [any open questions]
114
- ```
78
+ **Load when:** Multi-component investigation (3+ steps), parallel log collection, coordinating debugger subagents
115
79
 
116
- Save to `plans/reports/debugger-{date}-{slug}.md`.
80
+ ### 10. Frontend Verification (`references/frontend-verification.md`)
117
81
 
118
- **Load when:** Investigation spans multiple components or will be shared with others
82
+ Visual verification of frontend implementations via Chrome MCP (if available) or `chrome-devtools` (if available) skill fallback. Detect if frontend-related → check Chrome MCP availability → screenshot + console error check → report. Skip if not frontend.
119
83
 
120
- ### 9. Task Management
84
+ **Load when:** Implementation touches frontend files (tsx/jsx/vue/svelte/html/css), UI bugs, visual regressions
121
85
 
122
- For multi-component investigations, track progress with a checklist rather than holding state mentally:
86
+ ## Quick Reference
123
87
 
124
88
  ```
125
- - [ ] Reproduce the issue
126
- - [ ] Identify root cause
127
- - [ ] Fix applied
128
- - [ ] Tests passing
129
- - [ ] Verification complete
130
- ```
131
-
132
- Add this checklist to the active plan or investigation report. Check items off as each step completes.
133
-
134
- **Load when:** Investigation touches 3+ components or files
135
-
136
- ### 10. Frontend Verification
89
+ Code bug → systematic-debugging.md (Phase 1-4)
90
+ Deep in stack → root-cause-tracing.md (trace backward)
91
+ Found cause → defense-in-depth.md (add layers)
92
+ Claiming done → verification.md (verify first)
137
93
 
138
- For visual bugs or UI regressions, use browser developer tools (or the `agent-browser` skill) to inspect rendering, network, and console errors directly in the browser.
94
+ System issue → investigation-methodology.md (5 steps)
95
+ CI/CD failure → log-and-ci-analysis.md
96
+ Slow system → performance-diagnostics.md
97
+ Need report → reporting-standards.md
139
98
 
140
- Use `/ck-scout ext` to search for frontend-specific patterns before diving into devtools.
141
-
142
- **Load when:** Visual regression, layout bug, client-side network error, or UI behavior that differs from expected
143
-
144
- ## Quick Reference
145
-
146
- ```
147
- Code bug → systematic-debugging.md (Phase 1-4)
148
- Error deep in stack? → root-cause-tracing.md (trace backward)
149
- Found root cause? → defense-in-depth.md (add layers)
150
- About to claim success? → verification.md (verify first)
151
-
152
- System issue → Investigation Methodology (5 steps)
153
- CI/CD failure? → Log & CI/CD Analysis (gh CLI)
154
- Slow/timeout? → Performance Diagnostics
155
- Multi-component? → Task Management checklist + Reporting Standards
156
- Visual/UI bug? → Frontend Verification (agent-browser / browser devtools)
99
+ Frontend fix → frontend-verification.md (Chrome/devtools)
157
100
  ```
158
101
 
159
102
  ## Tools Integration
160
103
 
161
- | Tool | Use Case |
162
- |------|----------|
163
- | `execute` | Run test commands, build scripts, verification steps |
164
- | `gh` CLI | CI/CD log analysis, PR checks, workflow runs |
165
- | `psql` | Live database diagnostics and slow query analysis |
166
- | `agent-browser` skill | Frontend visual verification and network inspection |
167
- | `/ck-scout` | Search codebase for related patterns before investigating |
104
+ - **Database:** `psql` for PostgreSQL queries and diagnostics
105
+ - **CI/CD:** `gh` CLI for GitHub Actions logs and pipeline debugging
106
+ - **Codebase:** `docs-seeker` skill for package/plugin docs; `repomix` skill for codebase summary
107
+ - **Scouting:** `/ck-scout` or `/ck-scout ext` for finding relevant files
108
+ - **Frontend:** Chrome browser or `chrome-devtools` (if available) skill for visual verification (screenshots, console, network)
109
+ - **Skills:** Activate `problem-solving` skill when stuck on complex issues
168
110
 
169
111
  ## Red Flags
170
112
 
@@ -0,0 +1,103 @@
1
+ # Frontend Verification
2
+
3
+ Visual verification of frontend implementations using Chrome MCP (if available) or `chrome-devtools` (if available) skill fallback.
4
+
5
+ ## Applicability Check
6
+
7
+ **Skip entirely if task is NOT frontend-related.** Frontend indicators:
8
+ - Files modified: `*.tsx`, `*.jsx`, `*.vue`, `*.svelte`, `*.html`, `*.css`, `*.scss`
9
+ - Changes to: components, layouts, pages, styles, DOM structure, UI behavior
10
+ - Keywords: render, display, layout, responsive, animation, visual, UI, UX
11
+
12
+ If none match, skip this technique.
13
+
14
+ ## Step 1: Detect Chrome MCP Availability
15
+
16
+ Check if Chrome MCP server is available via `mcp-management` skill or `ListMcpResourcesTool`:
17
+
18
+ ```
19
+ Use ListMcpResourcesTool to check for Chrome MCP tools.
20
+ Look for tools prefixed with "chrome__" (e.g., chrome__navigate, chrome__screenshot).
21
+ ```
22
+
23
+ **Available** → Proceed to Step 2A (Chrome MCP)
24
+ **Not available** → Proceed to Step 2B (chrome-devtools fallback)
25
+
26
+ ## Step 2A: Chrome MCP Available — Direct Verification
27
+
28
+ Use Chrome MCP tools to verify the implementation in the user's actual browser. Ensure dev server is running first.
29
+
30
+ ### Navigate & Screenshot
31
+
32
+ ```
33
+ 1. chrome__navigate → http://localhost:3000 (or project dev URL)
34
+ 2. chrome__screenshot → capture current page state
35
+ 3. Read the screenshot with Read tool to visually inspect
36
+ ```
37
+
38
+ ### Visual Inspection Checklist
39
+
40
+ After capturing screenshot, verify:
41
+ 1. **Layout** — Elements positioned correctly, no overflow/overlap
42
+ 2. **Content** — Text, images, data rendered as expected
43
+ 3. **Responsiveness** — Resize viewport if MCP supports it
44
+ 4. **Interactions** — Use chrome__click / chrome__type to test interactive elements
45
+ 5. **Console errors** — Use chrome__evaluate to check `console.error` output
46
+
47
+ ### Console Error Check
48
+
49
+ ```
50
+ chrome__evaluate → "JSON.stringify(window.__consoleErrors || [])"
51
+ ```
52
+
53
+ Or navigate and observe any error output from Chrome MCP tool responses.
54
+
55
+ ### Get Page Content
56
+
57
+ ```
58
+ chrome__get_content → extract DOM/text to verify rendered output matches expectations
59
+ ```
60
+
61
+ ## Step 2B: Chrome MCP NOT Available — Fallback to chrome-devtools Skill
62
+
63
+ When Chrome MCP is not configured, use `chrome-devtools` (if available) skill (Puppeteer with bundled Chromium):
64
+
65
+ ```bash
66
+ SKILL_DIR="chrome-devtools scripts (if available)"
67
+
68
+ # Install deps if first time
69
+ npm install --prefix "$SKILL_DIR" 2>/dev/null
70
+
71
+ # Screenshot + console error check
72
+ node "$SKILL_DIR/screenshot.js" --url http://localhost:3000 --output ./verification-screenshot.png
73
+ node "$SKILL_DIR/console.js" --url http://localhost:3000 --types error,pageerror --duration 5000
74
+ ```
75
+
76
+ If `chrome-devtools` (if available) skill is also unavailable, skip visual verification and note in report:
77
+ > "Visual verification skipped — no Chrome MCP or chrome-devtools available."
78
+
79
+ ## Step 3: Analyze Results
80
+
81
+ After capture:
82
+ 1. **Read screenshot** — Use Read tool on the PNG to visually inspect
83
+ 2. **Check console output** — Zero errors = pass; errors = investigate before claiming done
84
+ 3. **Compare with expected** — Match against design specs or user description
85
+ 4. **Document findings** — Include screenshot path and any issues found in verification report
86
+
87
+ ## Integration with Verification Protocol
88
+
89
+ This technique extends `verification.md`. After standard verification (tests pass, build succeeds), add frontend verification as final gate:
90
+
91
+ ```
92
+ Standard verification → Tests pass → Build succeeds → Frontend visual verification → Claim complete
93
+ ```
94
+
95
+ Report format:
96
+ ```
97
+ ## Frontend Verification
98
+ - Method: [Chrome MCP | chrome-devtools | skipped]
99
+ - Screenshot: ./verification-screenshot.png
100
+ - Console errors: [none | list]
101
+ - Visual check: [pass | issues found]
102
+ - Responsive: [checked at X viewports | skipped]
103
+ ```
@@ -0,0 +1,101 @@
1
+ # Investigation Methodology
2
+
3
+ Five-step structured investigation for system-level issues, incidents, and multi-component failures.
4
+
5
+ ## When to Use
6
+
7
+ - Server returning 500 errors or unexpected responses
8
+ - System behavior changed without obvious code changes
9
+ - Multi-component failures spanning services/databases/infrastructure
10
+ - Need to understand "what happened" before fixing
11
+
12
+ ## Step 1: Initial Assessment
13
+
14
+ **Gather scope and impact before diving in.**
15
+
16
+ 1. **Collect symptoms** - Error messages, affected endpoints, user reports
17
+ 2. **Identify affected components** - Which services, databases, queues involved?
18
+ 3. **Determine timeframe** - When did issue start? Correlate with deployments/changes
19
+ 4. **Assess severity** - Users affected? Data at risk? Revenue impact?
20
+ 5. **Check recent changes** - Git log, deployment history, config changes, dependency updates
21
+
22
+ ```bash
23
+ # Recent deployments
24
+ gh run list --limit 10
25
+ # Recent commits
26
+ git log --oneline -20 --since="2 days ago"
27
+ # Config changes
28
+ git diff HEAD~5 -- '*.env*' '*.config*' '*.yml' '*.yaml' '*.json'
29
+ ```
30
+
31
+ ## Step 2: Data Collection
32
+
33
+ **Gather evidence systematically before analysis.**
34
+
35
+ 1. **Server/application logs** - Filter by timeframe and affected components
36
+ 2. **CI/CD pipeline logs** - Use `gh run view <run-id> --log-failed` for GitHub Actions
37
+ 3. **Database state** - Query relevant tables, check recent migrations
38
+ 4. **System metrics** - CPU, memory, disk, network utilization
39
+ 5. **External dependencies** - Third-party API status, DNS, CDN
40
+
41
+ ```bash
42
+ # GitHub Actions: list recent workflow runs
43
+ gh run list --workflow=<workflow> --limit 5
44
+ # View failed run logs
45
+ gh run view <run-id> --log-failed
46
+ # Download full logs
47
+ gh run view <run-id> --log > /tmp/ci-logs.txt
48
+ ```
49
+
50
+ **For codebase understanding:**
51
+ - Read `docs/codebase-summary.md` if exists and up-to-date (<2 days old)
52
+ - Otherwise use `repomix` to generate fresh codebase summary
53
+ - Use `/ck-scout` or `/ck-scout ext` to find relevant files
54
+ - Use `docs-seeker` skill for package/plugin documentation
55
+
56
+ ## Step 3: Analysis Process
57
+
58
+ **Correlate evidence across sources.**
59
+
60
+ 1. **Timeline reconstruction** - Order events chronologically across all log sources
61
+ 2. **Pattern identification** - Recurring errors, timing patterns, affected user segments
62
+ 3. **Execution path tracing** - Follow request flow through system components
63
+ 4. **Database analysis** - Query performance, table relationships, data integrity
64
+ 5. **Dependency mapping** - Which components depend on the failing one?
65
+
66
+ **Key questions:**
67
+ - Does issue correlate with specific deployments or time windows?
68
+ - Is it intermittent or consistent?
69
+ - Does it affect all users or a subset?
70
+ - Are there related errors in upstream/downstream services?
71
+
72
+ ## Step 4: Root Cause Identification
73
+
74
+ **Systematic elimination with evidence.**
75
+
76
+ 1. **List hypotheses** ranked by evidence strength
77
+ 2. **Test each** - Design smallest experiment to confirm/eliminate
78
+ 3. **Validate with evidence** - Logs, metrics, reproduction steps
79
+ 4. **Consider environmental factors** - Race conditions, resource limits, config drift
80
+ 5. **Document the chain** - Full event sequence from trigger to symptom
81
+
82
+ **Avoid:** Fixing first hypothesis without testing alternatives. Multiple plausible causes require elimination.
83
+
84
+ ## Step 5: Solution Development
85
+
86
+ **Design targeted, evidence-backed fixes.**
87
+
88
+ 1. **Immediate fix** - Minimum change to restore service (hotfix, rollback, config change)
89
+ 2. **Root cause fix** - Address underlying issue permanently
90
+ 3. **Preventive measures** - Monitoring, alerting, validation to catch recurrence early
91
+ 4. **Verification plan** - How to confirm fix works in production
92
+
93
+ **Prioritize:** Impact × urgency. Restore service first, then fix root cause, then prevent recurrence.
94
+
95
+ ## Integration with Code-Level Debugging
96
+
97
+ When investigation narrows to specific code:
98
+ - Switch to `systematic-debugging.md` for the code-level fix
99
+ - Use `root-cause-tracing.md` if error is deep in call stack
100
+ - Apply `defense-in-depth.md` after fixing
101
+ - Always finish with `verification.md`
@@ -0,0 +1,97 @@
1
+ # Log & CI/CD Analysis
2
+
3
+ Collect and analyze logs from servers, CI/CD pipelines, and application layers to diagnose failures.
4
+
5
+ ## GitHub Actions Analysis
6
+
7
+ ### List and Inspect Runs
8
+
9
+ ```bash
10
+ # List recent runs (all workflows)
11
+ gh run list --limit 10
12
+
13
+ # List runs for specific workflow
14
+ gh run list --workflow=ci.yml --limit 5
15
+
16
+ # View specific run details
17
+ gh run view <run-id>
18
+
19
+ # View failed job logs only
20
+ gh run view <run-id> --log-failed
21
+
22
+ # Download complete logs
23
+ gh run view <run-id> --log > /tmp/ci-full.txt
24
+
25
+ # Re-run failed jobs
26
+ gh run rerun <run-id> --failed
27
+ ```
28
+
29
+ ### Common CI/CD Failure Patterns
30
+
31
+ | Pattern | Likely Cause | Investigation |
32
+ |---------|-------------|---------------|
33
+ | Passes locally, fails CI | Environment diff | Check Node/Python version, OS, env vars |
34
+ | Intermittent failures | Race conditions, flaky tests | Run 3x, check timing, shared state |
35
+ | Timeout failures | Resource limits, infinite loops | Check resource usage, add timeouts |
36
+ | Permission errors | Token/secret misconfiguration | Verify `GITHUB_TOKEN`, secret names |
37
+ | Dependency install fails | Registry issues, version conflicts | Check lockfile, registry status |
38
+ | Build succeeds, tests fail | Test environment setup | Check test config, database setup, fixtures |
39
+
40
+ ### Analyzing Failed Steps
41
+
42
+ 1. **Identify which step failed** - `gh run view <id>` shows step-by-step status
43
+ 2. **Get the logs** - `gh run view <id> --log-failed` for focused output
44
+ 3. **Search for error patterns** - Look for `Error:`, `FAIL`, `exit code`, stack traces
45
+ 4. **Check annotations** - `gh api repos/{owner}/{repo}/check-runs/{id}/annotations`
46
+
47
+ ## Server Log Analysis
48
+
49
+ ### Log Collection Strategy
50
+
51
+ 1. **Identify log locations** - Application logs, system logs, web server logs
52
+ 2. **Filter by timeframe** - Narrow to incident window
53
+ 3. **Correlate request IDs** - Trace single request across services
54
+ 4. **Look for patterns** - Repeated errors, error rate changes, unusual payloads
55
+
56
+ ### Structured Log Queries
57
+
58
+ ```bash
59
+ # Search application logs for errors (use Grep tool when possible)
60
+ # Pattern: timestamp, level, message
61
+ # Filter by time range and severity
62
+
63
+ # PostgreSQL slow query log
64
+ psql -c "SELECT query, calls, mean_exec_time FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 10;"
65
+
66
+ # Check database connections
67
+ psql -c "SELECT count(*), state FROM pg_stat_activity GROUP BY state;"
68
+ ```
69
+
70
+ ### Cross-Source Correlation
71
+
72
+ 1. **Align timestamps** across all log sources (timezone awareness)
73
+ 2. **Build timeline** - First error → propagation → user impact
74
+ 3. **Identify trigger** - What changed immediately before first error?
75
+ 4. **Map blast radius** - Which services/endpoints affected?
76
+
77
+ ## Application Log Analysis
78
+
79
+ ### Error Pattern Recognition
80
+
81
+ - **Sudden spike** → Deployment, config change, external dependency failure
82
+ - **Gradual increase** → Resource leak, data growth, degradation
83
+ - **Periodic failures** → Cron jobs, scheduled tasks, resource contention
84
+ - **Single endpoint** → Code bug, data issue, specific dependency
85
+ - **All endpoints** → Infrastructure, database, network issue
86
+
87
+ ### Key Log Fields
88
+
89
+ Prioritize: timestamp, level, error message, stack trace, request ID, user ID, endpoint, response code, duration
90
+
91
+ ### Evidence Preservation
92
+
93
+ Always capture relevant log excerpts for the diagnostic report. Include:
94
+ - Exact error messages and stack traces
95
+ - Timestamps and request IDs
96
+ - Before/after comparison (normal vs error state)
97
+ - Counts and frequencies
@@ -0,0 +1,113 @@
1
+ # Performance Diagnostics
2
+
3
+ Identify bottlenecks, analyze query performance, and develop optimization strategies.
4
+
5
+ ## When to Use
6
+
7
+ - Response times increased significantly
8
+ - Application feels slow or unresponsive
9
+ - Database queries taking too long
10
+ - High CPU/memory/disk usage
11
+ - Resource exhaustion or OOM errors
12
+
13
+ ## Diagnostic Process
14
+
15
+ ### 1. Quantify the Problem
16
+
17
+ **Measure before optimizing.** Establish baseline and current state.
18
+
19
+ - What is the expected response time vs actual?
20
+ - When did degradation start? (correlate with changes)
21
+ - Which endpoints/operations are affected?
22
+ - Is it consistent or intermittent?
23
+
24
+ ### 2. Identify the Bottleneck Layer
25
+
26
+ ```
27
+ Request → Network → Web Server → Application → Database → Filesystem
28
+
29
+ External APIs / Services
30
+ ```
31
+
32
+ **Elimination approach:** Measure time at each layer to find where delay occurs.
33
+
34
+ | Layer | Check | Tool |
35
+ |-------|-------|------|
36
+ | Network | Latency, DNS, TLS | `curl -w` timing, network logs |
37
+ | Web server | Request queue, connections | Server metrics, access logs |
38
+ | Application | CPU profiling, memory | Profiler, APM, `process.memoryUsage()` |
39
+ | Database | Query time, connections | `EXPLAIN ANALYZE`, `pg_stat_statements` |
40
+ | Filesystem | I/O wait, disk usage | `iostat`, `df -h` |
41
+ | External APIs | Response time, timeouts | Request logging with durations |
42
+
43
+ ### 3. Database Performance
44
+
45
+ #### PostgreSQL Diagnostics
46
+
47
+ ```sql
48
+ -- Slow queries (requires pg_stat_statements extension)
49
+ SELECT query, calls, mean_exec_time, total_exec_time
50
+ FROM pg_stat_statements
51
+ ORDER BY mean_exec_time DESC LIMIT 20;
52
+
53
+ -- Active queries right now
54
+ SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state
55
+ FROM pg_stat_activity
56
+ WHERE state != 'idle'
57
+ ORDER BY duration DESC;
58
+
59
+ -- Table sizes and bloat
60
+ SELECT relname, pg_size_pretty(pg_total_relation_size(relid))
61
+ FROM pg_catalog.pg_statio_user_tables
62
+ ORDER BY pg_total_relation_size(relid) DESC LIMIT 20;
63
+
64
+ -- Missing indexes (sequential scans on large tables)
65
+ SELECT relname, seq_scan, seq_tup_read, idx_scan
66
+ FROM pg_stat_user_tables
67
+ WHERE seq_scan > 100 AND seq_tup_read > 10000
68
+ ORDER BY seq_tup_read DESC;
69
+
70
+ -- Connection pool status
71
+ SELECT count(*), state FROM pg_stat_activity GROUP BY state;
72
+ ```
73
+
74
+ #### Query Optimization
75
+
76
+ ```sql
77
+ -- Analyze specific query execution plan
78
+ EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT) <your-query>;
79
+ ```
80
+
81
+ **Look for:** Sequential scans on large tables, nested loops with high row counts, sorts without indexes, excessive buffer hits.
82
+
83
+ ### 4. Application Performance
84
+
85
+ **Common bottlenecks:**
86
+
87
+ | Issue | Symptom | Fix |
88
+ |-------|---------|-----|
89
+ | N+1 queries | Many small DB calls per request | Eager loading, batch queries |
90
+ | Memory leaks | Growing memory over time | Profile heap, check event listeners |
91
+ | Blocking I/O | High response time, low CPU | Async operations, connection pooling |
92
+ | CPU-bound | High CPU, proportional to load | Optimize algorithms, caching |
93
+ | Connection exhaustion | Intermittent timeouts | Pool sizing, connection reuse |
94
+ | Large payloads | Slow transfers, high memory | Pagination, compression, streaming |
95
+
96
+ ### 5. Optimization Strategy
97
+
98
+ **Priority order:**
99
+ 1. **Quick wins** - Add missing index, fix N+1 query, enable caching
100
+ 2. **Configuration** - Pool sizes, timeouts, buffer sizes, worker counts
101
+ 3. **Code changes** - Algorithm optimization, data structure changes
102
+ 4. **Architecture** - Caching layer, read replicas, async processing, CDN
103
+
104
+ **Always:** Measure after each change to verify improvement. One change at a time.
105
+
106
+ ## Reporting Performance Issues
107
+
108
+ Include in diagnostic report:
109
+ - **Baseline vs current** metrics (with numbers)
110
+ - **Bottleneck identification** with evidence
111
+ - **Root cause** explanation
112
+ - **Recommended fixes** with expected impact
113
+ - **Verification plan** to confirm improvement