@trieungoctam/vibekit 1.0.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 (352) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +85 -0
  3. package/agents/debugger.md +158 -0
  4. package/agents/docs-manager.md +220 -0
  5. package/agents/planner.md +129 -0
  6. package/agents/researcher.md +58 -0
  7. package/agents/reviewer.md +152 -0
  8. package/agents/tester.md +126 -0
  9. package/bin/vibekit.js +18 -0
  10. package/hooks/lib/ck-config-utils.cjs +831 -0
  11. package/hooks/lib/colors.cjs +95 -0
  12. package/hooks/lib/config-counter.cjs +103 -0
  13. package/hooks/lib/context-builder.cjs +616 -0
  14. package/hooks/lib/git-info-cache.cjs +143 -0
  15. package/hooks/lib/hook-logger.cjs +92 -0
  16. package/hooks/lib/privacy-checker.cjs +297 -0
  17. package/hooks/lib/project-detector.cjs +474 -0
  18. package/hooks/lib/scout-checker.cjs +263 -0
  19. package/hooks/lib/transcript-parser.cjs +181 -0
  20. package/hooks/post-edit-simplify-reminder.cjs +156 -0
  21. package/hooks/privacy-block.cjs +166 -0
  22. package/hooks/scout-block.cjs +147 -0
  23. package/hooks/session-init.cjs +360 -0
  24. package/package.json +41 -0
  25. package/rules/development-rules.md +52 -0
  26. package/rules/documentation-management.md +121 -0
  27. package/rules/orchestration-protocol.md +43 -0
  28. package/rules/primary-workflow.md +57 -0
  29. package/rules/team-coordination-rules.md +90 -0
  30. package/skills/ai/agent-browser/SKILL.md +294 -0
  31. package/skills/ai/agent-browser/references/.gitkeep +0 -0
  32. package/skills/ai/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
  33. package/skills/ai/agent-browser/references/browserbase-cloud-setup.md +161 -0
  34. package/skills/ai/ai-artist/SKILL.md +122 -0
  35. package/skills/ai/ai-artist/data/awesome-prompts.csv +3592 -0
  36. package/skills/ai/ai-artist/data/lighting.csv +19 -0
  37. package/skills/ai/ai-artist/data/nano-banana-templates.csv +17 -0
  38. package/skills/ai/ai-artist/data/platforms.csv +11 -0
  39. package/skills/ai/ai-artist/data/styles.csv +26 -0
  40. package/skills/ai/ai-artist/data/techniques.csv +19 -0
  41. package/skills/ai/ai-artist/data/use-cases.csv +16 -0
  42. package/skills/ai/ai-artist/references/advanced-techniques.md +184 -0
  43. package/skills/ai/ai-artist/references/awesome-nano-banana-pro-prompts.md +8575 -0
  44. package/skills/ai/ai-artist/references/domain-code.md +66 -0
  45. package/skills/ai/ai-artist/references/domain-data.md +72 -0
  46. package/skills/ai/ai-artist/references/domain-marketing.md +66 -0
  47. package/skills/ai/ai-artist/references/domain-patterns.md +33 -0
  48. package/skills/ai/ai-artist/references/domain-writing.md +68 -0
  49. package/skills/ai/ai-artist/references/image-prompting.md +141 -0
  50. package/skills/ai/ai-artist/references/llm-prompting.md +165 -0
  51. package/skills/ai/ai-artist/references/nano-banana.md +136 -0
  52. package/skills/ai/ai-artist/references/reasoning-techniques.md +201 -0
  53. package/skills/ai/ai-artist/references/validation-workflow.md +117 -0
  54. package/skills/ai/ai-artist/scripts/core.py +197 -0
  55. package/skills/ai/ai-artist/scripts/extract_prompts.py +102 -0
  56. package/skills/ai/ai-artist/scripts/generate.py +370 -0
  57. package/skills/ai/ai-artist/scripts/search.py +147 -0
  58. package/skills/ai/ai-multimodal/.env.example +204 -0
  59. package/skills/ai/ai-multimodal/SKILL.md +110 -0
  60. package/skills/ai/ai-multimodal/references/audio-processing.md +387 -0
  61. package/skills/ai/ai-multimodal/references/image-generation.md +939 -0
  62. package/skills/ai/ai-multimodal/references/music-generation.md +311 -0
  63. package/skills/ai/ai-multimodal/references/video-analysis.md +515 -0
  64. package/skills/ai/ai-multimodal/references/video-generation.md +457 -0
  65. package/skills/ai/ai-multimodal/references/vision-understanding.md +492 -0
  66. package/skills/ai/ai-multimodal/scripts/.coverage +0 -0
  67. package/skills/ai/ai-multimodal/scripts/check_setup.py +315 -0
  68. package/skills/ai/ai-multimodal/scripts/document_converter.py +395 -0
  69. package/skills/ai/ai-multimodal/scripts/gemini_batch_process.py +1185 -0
  70. package/skills/ai/ai-multimodal/scripts/media_optimizer.py +506 -0
  71. package/skills/ai/ai-multimodal/scripts/requirements.txt +26 -0
  72. package/skills/ai/ai-multimodal/scripts/tests/.coverage +0 -0
  73. package/skills/ai/ai-multimodal/scripts/tests/requirements.txt +20 -0
  74. package/skills/ai/ai-multimodal/scripts/tests/test_document_converter.py +74 -0
  75. package/skills/ai/ai-multimodal/scripts/tests/test_gemini_batch_process.py +362 -0
  76. package/skills/ai/ai-multimodal/scripts/tests/test_media_optimizer.py +373 -0
  77. package/skills/ai/mcp-management/README.md +219 -0
  78. package/skills/ai/mcp-management/SKILL.md +210 -0
  79. package/skills/ai/mcp-management/assets/tools.json +3146 -0
  80. package/skills/ai/mcp-management/references/configuration.md +114 -0
  81. package/skills/ai/mcp-management/references/gemini-cli-integration.md +221 -0
  82. package/skills/ai/mcp-management/references/mcp-protocol.md +116 -0
  83. package/skills/ai/mcp-management/scripts/.env.example +10 -0
  84. package/skills/ai/mcp-management/scripts/cli.ts +195 -0
  85. package/skills/ai/mcp-management/scripts/dist/analyze-tools.js +70 -0
  86. package/skills/ai/mcp-management/scripts/dist/cli.js +160 -0
  87. package/skills/ai/mcp-management/scripts/dist/mcp-client.js +183 -0
  88. package/skills/ai/mcp-management/scripts/mcp-client.ts +230 -0
  89. package/skills/ai/mcp-management/scripts/package.json +20 -0
  90. package/skills/ai/mcp-management/scripts/tsconfig.json +15 -0
  91. package/skills/core/brainstorm/SKILL.md +164 -0
  92. package/skills/core/brainstorm/scripts/frame-template.html +214 -0
  93. package/skills/core/brainstorm/scripts/helper.js +88 -0
  94. package/skills/core/brainstorm/scripts/server.cjs +338 -0
  95. package/skills/core/brainstorm/scripts/start-server.sh +153 -0
  96. package/skills/core/brainstorm/scripts/stop-server.sh +55 -0
  97. package/skills/core/brainstorm/spec-document-reviewer-prompt.md +49 -0
  98. package/skills/core/brainstorm/visual-companion.md +286 -0
  99. package/skills/core/code-review/SKILL.md +147 -0
  100. package/skills/core/code-review/references/code-review-reception.md +113 -0
  101. package/skills/core/code-review/references/codebase-scan-workflow.md +29 -0
  102. package/skills/core/code-review/references/edge-case-scouting.md +119 -0
  103. package/skills/core/code-review/references/parallel-review-workflow.md +69 -0
  104. package/skills/core/code-review/references/requesting-code-review.md +116 -0
  105. package/skills/core/code-review/references/task-management-reviews.md +140 -0
  106. package/skills/core/code-review/references/verification-before-completion.md +139 -0
  107. package/skills/core/cook/README.md +86 -0
  108. package/skills/core/cook/SKILL.md +113 -0
  109. package/skills/core/cook/references/intent-detection.md +101 -0
  110. package/skills/core/cook/references/review-cycle.md +75 -0
  111. package/skills/core/cook/references/subagent-patterns.md +75 -0
  112. package/skills/core/cook/references/workflow-steps.md +172 -0
  113. package/skills/core/debug/SKILL.md +121 -0
  114. package/skills/core/debug/references/defense-in-depth.md +124 -0
  115. package/skills/core/debug/references/frontend-verification.md +103 -0
  116. package/skills/core/debug/references/investigation-methodology.md +101 -0
  117. package/skills/core/debug/references/log-and-ci-analysis.md +97 -0
  118. package/skills/core/debug/references/performance-diagnostics.md +113 -0
  119. package/skills/core/debug/references/reporting-standards.md +122 -0
  120. package/skills/core/debug/references/root-cause-tracing.md +122 -0
  121. package/skills/core/debug/references/systematic-debugging.md +102 -0
  122. package/skills/core/debug/references/task-management-debugging.md +155 -0
  123. package/skills/core/debug/references/verification.md +123 -0
  124. package/skills/core/debug/scripts/find-polluter.sh +63 -0
  125. package/skills/core/debug/scripts/find-polluter.test.md +102 -0
  126. package/skills/core/execute/SKILL.md +70 -0
  127. package/skills/core/fix/SKILL.md +111 -0
  128. package/skills/core/fix/references/complexity-assessment.md +72 -0
  129. package/skills/core/fix/references/mode-selection.md +46 -0
  130. package/skills/core/fix/references/parallel-exploration.md +100 -0
  131. package/skills/core/fix/references/review-cycle.md +77 -0
  132. package/skills/core/fix/references/skill-activation-matrix.md +78 -0
  133. package/skills/core/fix/references/task-orchestration.md +103 -0
  134. package/skills/core/fix/references/workflow-ci.md +28 -0
  135. package/skills/core/fix/references/workflow-deep.md +122 -0
  136. package/skills/core/fix/references/workflow-logs.md +72 -0
  137. package/skills/core/fix/references/workflow-quick.md +59 -0
  138. package/skills/core/fix/references/workflow-standard.md +111 -0
  139. package/skills/core/fix/references/workflow-test.md +75 -0
  140. package/skills/core/fix/references/workflow-types.md +33 -0
  141. package/skills/core/fix/references/workflow-ui.md +75 -0
  142. package/skills/core/plan/SKILL.md +145 -0
  143. package/skills/core/plan/plan-document-reviewer-prompt.md +49 -0
  144. package/skills/core/subagent-dev/SKILL.md +277 -0
  145. package/skills/core/subagent-dev/code-quality-reviewer-prompt.md +26 -0
  146. package/skills/core/subagent-dev/implementer-prompt.md +113 -0
  147. package/skills/core/subagent-dev/spec-reviewer-prompt.md +61 -0
  148. package/skills/core/tdd/SKILL.md +371 -0
  149. package/skills/core/tdd/testing-anti-patterns.md +299 -0
  150. package/skills/core/test/SKILL.md +109 -0
  151. package/skills/core/test/references/report-format.md +58 -0
  152. package/skills/core/test/references/test-execution-workflow.md +103 -0
  153. package/skills/core/test/references/ui-testing-workflow.md +65 -0
  154. package/skills/core/verify/SKILL.md +139 -0
  155. package/skills/dev/backend-dev/SKILL.md +96 -0
  156. package/skills/dev/backend-dev/references/backend-api-design.md +495 -0
  157. package/skills/dev/backend-dev/references/backend-architecture.md +454 -0
  158. package/skills/dev/backend-dev/references/backend-authentication.md +338 -0
  159. package/skills/dev/backend-dev/references/backend-code-quality.md +659 -0
  160. package/skills/dev/backend-dev/references/backend-debugging.md +904 -0
  161. package/skills/dev/backend-dev/references/backend-devops.md +494 -0
  162. package/skills/dev/backend-dev/references/backend-mindset.md +387 -0
  163. package/skills/dev/backend-dev/references/backend-performance.md +397 -0
  164. package/skills/dev/backend-dev/references/backend-security.md +290 -0
  165. package/skills/dev/backend-dev/references/backend-technologies.md +256 -0
  166. package/skills/dev/backend-dev/references/backend-testing.md +429 -0
  167. package/skills/dev/context-engineering/SKILL.md +108 -0
  168. package/skills/dev/context-engineering/references/context-compression.md +84 -0
  169. package/skills/dev/context-engineering/references/context-degradation.md +93 -0
  170. package/skills/dev/context-engineering/references/context-fundamentals.md +75 -0
  171. package/skills/dev/context-engineering/references/context-optimization.md +82 -0
  172. package/skills/dev/context-engineering/references/evaluation.md +89 -0
  173. package/skills/dev/context-engineering/references/memory-systems.md +88 -0
  174. package/skills/dev/context-engineering/references/multi-agent-patterns.md +90 -0
  175. package/skills/dev/context-engineering/references/project-development.md +97 -0
  176. package/skills/dev/context-engineering/references/runtime-awareness.md +202 -0
  177. package/skills/dev/context-engineering/references/tool-design.md +86 -0
  178. package/skills/dev/context-engineering/scripts/compression_evaluator.py +349 -0
  179. package/skills/dev/context-engineering/scripts/context_analyzer.py +317 -0
  180. package/skills/dev/context-engineering/scripts/tests/test_edge_cases.py +246 -0
  181. package/skills/dev/databases/SKILL.md +84 -0
  182. package/skills/dev/databases/analytics.md +198 -0
  183. package/skills/dev/databases/db-design.md +188 -0
  184. package/skills/dev/databases/incremental-etl.md +213 -0
  185. package/skills/dev/databases/references/mongodb-aggregation.md +447 -0
  186. package/skills/dev/databases/references/mongodb-atlas.md +465 -0
  187. package/skills/dev/databases/references/mongodb-crud.md +408 -0
  188. package/skills/dev/databases/references/mongodb-indexing.md +442 -0
  189. package/skills/dev/databases/references/postgresql-administration.md +594 -0
  190. package/skills/dev/databases/references/postgresql-performance.md +527 -0
  191. package/skills/dev/databases/references/postgresql-psql-cli.md +467 -0
  192. package/skills/dev/databases/references/postgresql-queries.md +475 -0
  193. package/skills/dev/databases/scripts/.coverage +0 -0
  194. package/skills/dev/databases/scripts/db_backup.py +502 -0
  195. package/skills/dev/databases/scripts/db_migrate.py +426 -0
  196. package/skills/dev/databases/scripts/db_performance_check.py +457 -0
  197. package/skills/dev/databases/scripts/requirements.txt +20 -0
  198. package/skills/dev/databases/scripts/tests/coverage-db.json +1 -0
  199. package/skills/dev/databases/scripts/tests/requirements.txt +4 -0
  200. package/skills/dev/databases/scripts/tests/test_db_backup.py +340 -0
  201. package/skills/dev/databases/scripts/tests/test_db_migrate.py +277 -0
  202. package/skills/dev/databases/scripts/tests/test_db_performance_check.py +370 -0
  203. package/skills/dev/databases/stacks/bigquery.md +231 -0
  204. package/skills/dev/databases/stacks/d1_cloudflare.md +137 -0
  205. package/skills/dev/databases/stacks/mysql.md +216 -0
  206. package/skills/dev/databases/stacks/postgres.md +235 -0
  207. package/skills/dev/databases/stacks/sqlite.md +244 -0
  208. package/skills/dev/databases/transactional.md +176 -0
  209. package/skills/dev/devops/.env.example +76 -0
  210. package/skills/dev/devops/SKILL.md +97 -0
  211. package/skills/dev/devops/references/browser-rendering.md +305 -0
  212. package/skills/dev/devops/references/cloudflare-d1-kv.md +123 -0
  213. package/skills/dev/devops/references/cloudflare-platform.md +271 -0
  214. package/skills/dev/devops/references/cloudflare-r2-storage.md +280 -0
  215. package/skills/dev/devops/references/cloudflare-workers-advanced.md +312 -0
  216. package/skills/dev/devops/references/cloudflare-workers-apis.md +309 -0
  217. package/skills/dev/devops/references/cloudflare-workers-basics.md +418 -0
  218. package/skills/dev/devops/references/docker-basics.md +297 -0
  219. package/skills/dev/devops/references/docker-compose.md +292 -0
  220. package/skills/dev/devops/references/gcloud-platform.md +297 -0
  221. package/skills/dev/devops/references/gcloud-services.md +304 -0
  222. package/skills/dev/devops/references/kubernetes-basics.md +99 -0
  223. package/skills/dev/devops/references/kubernetes-helm-advanced.md +75 -0
  224. package/skills/dev/devops/references/kubernetes-helm.md +81 -0
  225. package/skills/dev/devops/references/kubernetes-kubectl.md +74 -0
  226. package/skills/dev/devops/references/kubernetes-security-advanced.md +98 -0
  227. package/skills/dev/devops/references/kubernetes-security.md +95 -0
  228. package/skills/dev/devops/references/kubernetes-troubleshooting-advanced.md +74 -0
  229. package/skills/dev/devops/references/kubernetes-troubleshooting.md +49 -0
  230. package/skills/dev/devops/references/kubernetes-workflows-advanced.md +75 -0
  231. package/skills/dev/devops/references/kubernetes-workflows.md +78 -0
  232. package/skills/dev/devops/scripts/cloudflare_deploy.py +269 -0
  233. package/skills/dev/devops/scripts/docker_optimize.py +332 -0
  234. package/skills/dev/devops/scripts/requirements.txt +20 -0
  235. package/skills/dev/devops/scripts/tests/requirements.txt +3 -0
  236. package/skills/dev/devops/scripts/tests/test_cloudflare_deploy.py +285 -0
  237. package/skills/dev/devops/scripts/tests/test_docker_optimize.py +436 -0
  238. package/skills/dev/frontend-design/SKILL.md +78 -0
  239. package/skills/dev/frontend-design/references/ai-multimodal-overview.md +165 -0
  240. package/skills/dev/frontend-design/references/analysis-best-practices.md +80 -0
  241. package/skills/dev/frontend-design/references/analysis-prompts.md +141 -0
  242. package/skills/dev/frontend-design/references/analysis-techniques.md +118 -0
  243. package/skills/dev/frontend-design/references/animejs.md +396 -0
  244. package/skills/dev/frontend-design/references/asset-generation.md +337 -0
  245. package/skills/dev/frontend-design/references/design-extraction-overview.md +71 -0
  246. package/skills/dev/frontend-design/references/extraction-best-practices.md +141 -0
  247. package/skills/dev/frontend-design/references/extraction-output-templates.md +162 -0
  248. package/skills/dev/frontend-design/references/extraction-prompts.md +127 -0
  249. package/skills/dev/frontend-design/references/technical-accessibility.md +119 -0
  250. package/skills/dev/frontend-design/references/technical-best-practices.md +97 -0
  251. package/skills/dev/frontend-design/references/technical-optimization.md +44 -0
  252. package/skills/dev/frontend-design/references/technical-overview.md +90 -0
  253. package/skills/dev/frontend-design/references/technical-workflows.md +150 -0
  254. package/skills/dev/frontend-design/references/visual-analysis-overview.md +95 -0
  255. package/skills/dev/frontend-design/references/workflow-3d.md +102 -0
  256. package/skills/dev/frontend-design/references/workflow-describe.md +87 -0
  257. package/skills/dev/frontend-design/references/workflow-immersive.md +87 -0
  258. package/skills/dev/frontend-design/references/workflow-quick.md +57 -0
  259. package/skills/dev/frontend-design/references/workflow-screenshot.md +63 -0
  260. package/skills/dev/frontend-design/references/workflow-video.md +74 -0
  261. package/skills/dev/frontend-dev/SKILL.md +400 -0
  262. package/skills/dev/frontend-dev/resources/common-patterns.md +331 -0
  263. package/skills/dev/frontend-dev/resources/complete-examples.md +872 -0
  264. package/skills/dev/frontend-dev/resources/component-patterns.md +502 -0
  265. package/skills/dev/frontend-dev/resources/data-fetching.md +767 -0
  266. package/skills/dev/frontend-dev/resources/file-organization.md +502 -0
  267. package/skills/dev/frontend-dev/resources/loading-and-error-states.md +501 -0
  268. package/skills/dev/frontend-dev/resources/performance.md +406 -0
  269. package/skills/dev/frontend-dev/resources/routing-guide.md +364 -0
  270. package/skills/dev/frontend-dev/resources/styling-guide.md +428 -0
  271. package/skills/dev/frontend-dev/resources/typescript-standards.md +418 -0
  272. package/skills/dev/git/SKILL.md +114 -0
  273. package/skills/dev/git/references/branch-management.md +88 -0
  274. package/skills/dev/git/references/commit-standards.md +46 -0
  275. package/skills/dev/git/references/gh-cli-guide.md +109 -0
  276. package/skills/dev/git/references/safety-protocols.md +69 -0
  277. package/skills/dev/git/references/workflow-commit.md +58 -0
  278. package/skills/dev/git/references/workflow-merge.md +48 -0
  279. package/skills/dev/git/references/workflow-pr.md +58 -0
  280. package/skills/dev/git/references/workflow-push.md +52 -0
  281. package/skills/dev/git-worktree/SKILL.md +218 -0
  282. package/skills/utils/ask/SKILL.md +58 -0
  283. package/skills/utils/bootstrap/SKILL.md +101 -0
  284. package/skills/utils/bootstrap/references/shared-phases.md +59 -0
  285. package/skills/utils/bootstrap/references/workflow-auto.md +52 -0
  286. package/skills/utils/bootstrap/references/workflow-fast.md +50 -0
  287. package/skills/utils/bootstrap/references/workflow-full.md +60 -0
  288. package/skills/utils/bootstrap/references/workflow-parallel.md +59 -0
  289. package/skills/utils/ck-help/SKILL.md +102 -0
  290. package/skills/utils/ck-help/scripts/ck-help.py +1321 -0
  291. package/skills/utils/ck-help/scripts/commands_data.yaml +3 -0
  292. package/skills/utils/ck-help/scripts/skills_data.yaml +593 -0
  293. package/skills/utils/copywriting/SKILL.md +94 -0
  294. package/skills/utils/copywriting/references/copy-formulas.md +150 -0
  295. package/skills/utils/copywriting/references/cta-patterns.md +168 -0
  296. package/skills/utils/copywriting/references/email-copy.md +193 -0
  297. package/skills/utils/copywriting/references/headline-templates.md +140 -0
  298. package/skills/utils/copywriting/references/landing-page-copy.md +175 -0
  299. package/skills/utils/copywriting/references/power-words.md +189 -0
  300. package/skills/utils/copywriting/references/social-media-copy.md +222 -0
  301. package/skills/utils/copywriting/references/workflow-cro.md +83 -0
  302. package/skills/utils/copywriting/references/workflow-enhance.md +32 -0
  303. package/skills/utils/copywriting/references/workflow-fast.md +29 -0
  304. package/skills/utils/copywriting/references/workflow-good.md +39 -0
  305. package/skills/utils/copywriting/references/writing-styles.md +247 -0
  306. package/skills/utils/copywriting/scripts/extract-writing-styles.py +308 -0
  307. package/skills/utils/copywriting/templates/copy-brief.md +49 -0
  308. package/skills/utils/docs/SKILL.md +55 -0
  309. package/skills/utils/docs/references/init-workflow.md +32 -0
  310. package/skills/utils/docs/references/summarize-workflow.md +18 -0
  311. package/skills/utils/docs/references/update-workflow.md +59 -0
  312. package/skills/utils/journal/SKILL.md +11 -0
  313. package/skills/utils/kanban/SKILL.md +99 -0
  314. package/skills/utils/preview/SKILL.md +75 -0
  315. package/skills/utils/preview/references/generation-modes.md +95 -0
  316. package/skills/utils/preview/references/view-mode.md +42 -0
  317. package/skills/utils/repomix/SKILL.md +248 -0
  318. package/skills/utils/repomix/references/configuration.md +211 -0
  319. package/skills/utils/repomix/references/usage-patterns.md +232 -0
  320. package/skills/utils/repomix/scripts/.coverage +0 -0
  321. package/skills/utils/repomix/scripts/README.md +179 -0
  322. package/skills/utils/repomix/scripts/repomix_batch.py +455 -0
  323. package/skills/utils/repomix/scripts/repos.example.json +15 -0
  324. package/skills/utils/repomix/scripts/requirements.txt +15 -0
  325. package/skills/utils/repomix/scripts/tests/test_repomix_batch.py +531 -0
  326. package/skills/utils/research/SKILL.md +171 -0
  327. package/skills/utils/scout/SKILL.md +89 -0
  328. package/skills/utils/scout/references/external-scouting.md +140 -0
  329. package/skills/utils/scout/references/internal-scouting.md +119 -0
  330. package/skills/utils/scout/references/task-management-scouting.md +125 -0
  331. package/skills/utils/sequential-thinking/.env.example +8 -0
  332. package/skills/utils/sequential-thinking/README.md +183 -0
  333. package/skills/utils/sequential-thinking/SKILL.md +95 -0
  334. package/skills/utils/sequential-thinking/package.json +31 -0
  335. package/skills/utils/sequential-thinking/references/advanced-strategies.md +79 -0
  336. package/skills/utils/sequential-thinking/references/advanced-techniques.md +76 -0
  337. package/skills/utils/sequential-thinking/references/core-patterns.md +95 -0
  338. package/skills/utils/sequential-thinking/references/examples-api.md +88 -0
  339. package/skills/utils/sequential-thinking/references/examples-architecture.md +94 -0
  340. package/skills/utils/sequential-thinking/references/examples-debug.md +90 -0
  341. package/skills/utils/sequential-thinking/scripts/format-thought.js +159 -0
  342. package/skills/utils/sequential-thinking/scripts/process-thought.js +236 -0
  343. package/skills/utils/sequential-thinking/tests/format-thought.test.js +133 -0
  344. package/skills/utils/sequential-thinking/tests/process-thought.test.js +215 -0
  345. package/skills/utils/write-skill/SKILL.md +655 -0
  346. package/skills/utils/write-skill/anthropic-best-practices.md +1150 -0
  347. package/skills/utils/write-skill/examples/CLAUDE_MD_TESTING.md +189 -0
  348. package/skills/utils/write-skill/graphviz-conventions.dot +172 -0
  349. package/skills/utils/write-skill/persuasion-principles.md +187 -0
  350. package/skills/utils/write-skill/render-graphs.js +168 -0
  351. package/skills/utils/write-skill/testing-skills-with-subagents.md +384 -0
  352. package/src/commands/init.js +238 -0
@@ -0,0 +1,109 @@
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
+ version: 1.0.0
6
+ ---
7
+
8
+ # Testing & Quality Assurance
9
+
10
+ Comprehensive testing framework covering code-level testing (unit, integration, e2e), UI/visual testing via browser automation, coverage analysis, and structured QA reporting.
11
+
12
+ ## Default (No Arguments)
13
+
14
+ If invoked with context (test scope), proceed with testing. If invoked WITHOUT arguments, use `AskUserQuestion` to present available test operations:
15
+
16
+ | Operation | Description |
17
+ |-----------|-------------|
18
+ | `(default)` | Run unit/integration/e2e tests |
19
+ | `ui` | Run UI tests on a website |
20
+
21
+ Present as options via `AskUserQuestion` with header "Test Operation", question "What would you like to do?".
22
+
23
+ ## Core Principle
24
+
25
+ **NEVER IGNORE FAILING TESTS.** Fix root causes, not symptoms. No mocks/cheats/tricks to pass builds.
26
+
27
+ ## When to Use
28
+
29
+ - **After implementation**: Validate new features or bug fixes
30
+ - **Coverage checks**: Ensure coverage meets project thresholds (80%+)
31
+ - **UI verification**: Visual regression, responsive layout, accessibility
32
+ - **Build validation**: Verify build process, dependencies, CI/CD compatibility
33
+ - **Pre-commit/push**: Final quality gate
34
+
35
+ ## Workflows
36
+
37
+ ### 1. Code Testing (`references/test-execution-workflow.md`)
38
+
39
+ 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.
40
+
41
+ **Load when:** Running unit/integration/e2e tests, checking coverage, validating builds
42
+
43
+ ### 2. UI Testing (`references/ui-testing-workflow.md`)
44
+
45
+ Browser-based visual testing via `ck:chrome-devtools` skill. Screenshots, responsive checks, accessibility audits, form automation, console error collection. Includes auth injection for protected routes.
46
+
47
+ **Load when:** Visual regression testing, UI bugs, responsive layout checks, accessibility audits
48
+
49
+ ### 3. Report Format (`references/report-format.md`)
50
+
51
+ Structured QA report template: test results overview, coverage metrics, failed tests, performance, build status, recommendations.
52
+
53
+ **Load when:** Generating test summary reports
54
+
55
+ ## Quick Reference
56
+
57
+ ```
58
+ Code tests → test-execution-workflow.md
59
+ npm test / pytest / go test / cargo test / flutter test
60
+ Coverage: npm run test:coverage / pytest --cov
61
+
62
+ UI tests → ui-testing-workflow.md
63
+ Screenshots, responsive, a11y, forms, console errors
64
+ Auth: inject-auth.js for protected routes
65
+
66
+ Reports → report-format.md
67
+ Structured QA summary with metrics & recommendations
68
+ ```
69
+
70
+ ## Working Process
71
+
72
+ 1. Identify testing scope from recent changes or requirements
73
+ 2. Run typecheck/analyze commands to catch syntax errors first
74
+ 3. Execute appropriate test suites
75
+ 4. Analyze results — focus on failures
76
+ 5. Generate coverage reports if applicable
77
+ 6. For frontend: run UI tests via `ck:chrome-devtools` skill
78
+ 7. Produce structured summary report
79
+
80
+ ## Tools Integration
81
+
82
+ - **Test runners**: Jest, Vitest, Mocha, pytest, go test, cargo test, flutter test
83
+ - **Coverage**: Istanbul/c8/nyc, pytest-cov, go cover
84
+ - **Browser**: `ck:chrome-devtools` skill for UI testing (screenshots, ARIA, console, network)
85
+ - **Analysis**: `ck:ai-multimodal` skill for screenshot analysis
86
+ - **Debugging**: `ck:debug` skill when tests reveal bugs requiring investigation
87
+ - **Thinking**: `ck:sequential-thinking` skill for complex test failure analysis
88
+
89
+ ## Quality Standards
90
+
91
+ - All critical paths must have test coverage
92
+ - Validate happy path AND error scenarios
93
+ - Ensure test isolation — no interdependencies
94
+ - Tests must be deterministic and reproducible
95
+ - Clean up test data after execution
96
+ - Never ignore failing tests to pass the build
97
+
98
+ ## Report Output
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
@@ -0,0 +1,58 @@
1
+ # Test Report Format
2
+
3
+ Structured QA report template. Sacrifice grammar for concision.
4
+
5
+ ## Template
6
+
7
+ ```markdown
8
+ # Test Report — {date} — {scope}
9
+
10
+ ## Test Results Overview
11
+ - **Total**: X tests
12
+ - **Passed**: X | **Failed**: X | **Skipped**: X
13
+ - **Duration**: Xs
14
+
15
+ ## Coverage Metrics
16
+ | Metric | Value | Threshold | Status |
17
+ |----------|-------|-----------|--------|
18
+ | Lines | X% | 80% | PASS/FAIL |
19
+ | Branches | X% | 70% | PASS/FAIL |
20
+ | Functions| X% | 80% | PASS/FAIL |
21
+
22
+ ## Failed Tests
23
+ ### `test/path/file.test.ts` — TestName
24
+ - **Error**: Error message
25
+ - **Stack**: Relevant stack trace (truncated)
26
+ - **Cause**: Brief root cause analysis
27
+ - **Fix**: Suggested resolution
28
+
29
+ ## UI Test Results (if applicable)
30
+ - **Pages tested**: X
31
+ - **Screenshots**: ./screenshots/
32
+ - **Console errors**: none | [list]
33
+ - **Responsive**: checked at [viewports] | skipped
34
+ - **Performance**: LCP Xs, FID Xms, CLS X
35
+
36
+ ## Build Status
37
+ - **Build**: PASS/FAIL
38
+ - **Warnings**: none | [list]
39
+ - **Dependencies**: all resolved | [issues]
40
+
41
+ ## Critical Issues
42
+ 1. [Blocking issue description + impact]
43
+
44
+ ## Recommendations
45
+ 1. [Actionable improvement with priority]
46
+
47
+ ## Unresolved Questions
48
+ - [Any open questions, if any]
49
+ ```
50
+
51
+ ## Guidelines
52
+
53
+ - Include ALL failed tests with error messages — don't summarize away details
54
+ - Coverage: highlight specific uncovered files/functions, not just percentages
55
+ - Screenshots: embed paths directly in report for easy access
56
+ - Recommendations: prioritize by impact (critical > high > medium > low)
57
+ - Keep report under 200 lines — split into sections if larger scope needed
58
+ - Save report using naming pattern from `## Naming` section injected by hooks
@@ -0,0 +1,103 @@
1
+ # Test Execution Workflow
2
+
3
+ ## Step 1: Identify Scope
4
+
5
+ Determine what to test based on recent changes:
6
+ - New feature → full test suite + new test cases
7
+ - Bug fix → regression tests + targeted fix validation
8
+ - Refactor → existing test suite (no new tests unless gaps found)
9
+ - Coverage check → full suite with coverage flags
10
+
11
+ ## Step 2: Pre-flight Checks
12
+
13
+ Run syntax/type checks before tests to catch compile errors early:
14
+
15
+ ```bash
16
+ # JavaScript/TypeScript
17
+ npx tsc --noEmit # TypeScript check
18
+ npx eslint . # Lint check
19
+
20
+ # Python
21
+ python -m py_compile file.py
22
+ flake8 .
23
+
24
+ # Flutter
25
+ flutter analyze
26
+
27
+ # Go
28
+ go vet ./...
29
+
30
+ # Rust
31
+ cargo check
32
+ ```
33
+
34
+ ## Step 3: Execute Tests
35
+
36
+ ### JavaScript/TypeScript
37
+ ```bash
38
+ npm test # or yarn test / pnpm test / bun test
39
+ npm run test:coverage # with coverage
40
+ npx vitest run # Vitest
41
+ npx jest --coverage # Jest with coverage
42
+ ```
43
+
44
+ ### Python
45
+ ```bash
46
+ pytest # basic
47
+ pytest --cov=src --cov-report=term-missing # with coverage
48
+ python -m unittest discover # unittest
49
+ ```
50
+
51
+ ### Go / Rust / Flutter
52
+ ```bash
53
+ go test ./... -cover # Go with coverage
54
+ cargo test # Rust
55
+ flutter test --coverage # Flutter
56
+ ```
57
+
58
+ ## Step 4: Analyze Results
59
+
60
+ Focus on:
61
+ 1. **Failing tests** — read error messages and stack traces carefully
62
+ 2. **Flaky tests** — tests that pass/fail intermittently indicate race conditions or state leaks
63
+ 3. **Slow tests** — identify bottlenecks (>5s per test is suspicious)
64
+ 4. **Skipped tests** — ensure skips are intentional, not hiding failures
65
+
66
+ ## Step 5: Coverage Analysis
67
+
68
+ Thresholds:
69
+ - **80%+** line coverage — standard minimum
70
+ - **70%+** branch coverage — acceptable for most projects
71
+ - Focus on critical paths: auth, payment, data mutations
72
+
73
+ Identify gaps:
74
+ - Uncovered error handlers
75
+ - Missing edge case branches
76
+ - Untested utility functions
77
+
78
+ ## Step 6: Build Verification
79
+
80
+ ```bash
81
+ npm run build # JS/TS production build
82
+ python setup.py build # Python
83
+ go build ./... # Go
84
+ cargo build --release # Rust
85
+ flutter build # Flutter
86
+ ```
87
+
88
+ Check for:
89
+ - Build warnings or deprecation notices
90
+ - Unresolved dependencies
91
+ - Production config correctness
92
+
93
+ ## Quality Checklist
94
+
95
+ - [ ] All tests pass (zero failures)
96
+ - [ ] Coverage meets project threshold
97
+ - [ ] No flaky tests detected
98
+ - [ ] Build completes without errors
99
+ - [ ] Error scenarios tested
100
+ - [ ] Test isolation verified (no shared state)
101
+ - [ ] Test data cleaned up after execution
102
+ - [ ] Mocks/stubs properly configured
103
+ - [ ] Environment variables correctly set
@@ -0,0 +1,65 @@
1
+ # UI Testing Workflow
2
+
3
+ Activate the ck:chrome-devtools skill.
4
+
5
+ ## Purpose
6
+ Run comprehensive UI tests on a website and generate a detailed report.
7
+
8
+ ## Arguments
9
+ - $1: URL - The URL of the website to test
10
+ - $2: OPTIONS - Optional test configuration (e.g., --headless, --mobile, --auth)
11
+
12
+ ## Testing Protected Routes (Authentication)
13
+
14
+ ### Step 1: User Manual Login
15
+ Instruct the user to:
16
+ 1. Open the target site in their browser
17
+ 2. Log in manually with their credentials
18
+ 3. Open browser DevTools (F12) → Application tab → Cookies/Storage
19
+
20
+ ### Step 2: Extract Auth Credentials
21
+ Ask the user to provide one of:
22
+ - **Cookies**: Copy cookie values (name, value, domain)
23
+ - **Access Token**: Copy JWT/Bearer token from localStorage or cookies
24
+ - **Session Storage**: Copy relevant session keys
25
+
26
+ ### Step 3: Inject Authentication
27
+ Use the `inject-auth.js` script:
28
+
29
+ ```bash
30
+ cd $SKILL_DIR # .claude/skills/chrome-devtools/scripts
31
+
32
+ # Option A: Inject cookies
33
+ node inject-auth.js --url https://example.com --cookies '[{"name":"session","value":"abc123","domain":".example.com"}]'
34
+
35
+ # Option B: Inject Bearer token
36
+ node inject-auth.js --url https://example.com --token "Bearer eyJhbGciOi..." --header Authorization --token-key access_token
37
+
38
+ # Option C: Inject localStorage
39
+ node inject-auth.js --url https://example.com --local-storage '{"auth_token":"xyz","user_id":"123"}'
40
+ ```
41
+
42
+ ### Step 4: Run Tests
43
+ After auth injection, run tests normally:
44
+ ```bash
45
+ node navigate.js --url https://example.com/dashboard
46
+ node screenshot.js --url https://example.com/profile --output profile.png
47
+ ```
48
+
49
+ ## Workflow
50
+ - Use `ck:plan` skill to organize the test plan & report
51
+ - All screenshots saved in the same report directory
52
+ - Browse URL, discover all pages, components, endpoints
53
+ - Create test plan based on discovered structure
54
+ - Use multiple `tester` subagents in parallel for: pages, forms, navigation, user flows, accessibility, responsive layouts, performance, security, seo
55
+ - Use `ck:ai-multimodal` to analyze all screenshots
56
+ - Generate comprehensive Markdown report
57
+ - Ask user if they want to preview with `/ck:preview`
58
+
59
+ ## Output Requirements
60
+ - Clear, structured Markdown with headers, lists, code blocks
61
+ - Include test results summary, key findings, screenshot references
62
+ - Ensure token efficiency while maintaining high quality
63
+ - Sacrifice grammar for concision
64
+
65
+ **Do not** start implementing fixes.
@@ -0,0 +1,139 @@
1
+ ---
2
+ name: verification-before-completion
3
+ description: Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
4
+ ---
5
+
6
+ # Verification Before Completion
7
+
8
+ ## Overview
9
+
10
+ Claiming work is complete without verification is dishonesty, not efficiency.
11
+
12
+ **Core principle:** Evidence before claims, always.
13
+
14
+ **Violating the letter of this rule is violating the spirit of this rule.**
15
+
16
+ ## The Iron Law
17
+
18
+ ```
19
+ NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
20
+ ```
21
+
22
+ If you haven't run the verification command in this message, you cannot claim it passes.
23
+
24
+ ## The Gate Function
25
+
26
+ ```
27
+ BEFORE claiming any status or expressing satisfaction:
28
+
29
+ 1. IDENTIFY: What command proves this claim?
30
+ 2. RUN: Execute the FULL command (fresh, complete)
31
+ 3. READ: Full output, check exit code, count failures
32
+ 4. VERIFY: Does output confirm the claim?
33
+ - If NO: State actual status with evidence
34
+ - If YES: State claim WITH evidence
35
+ 5. ONLY THEN: Make the claim
36
+
37
+ Skip any step = lying, not verifying
38
+ ```
39
+
40
+ ## Common Failures
41
+
42
+ | Claim | Requires | Not Sufficient |
43
+ |-------|----------|----------------|
44
+ | Tests pass | Test command output: 0 failures | Previous run, "should pass" |
45
+ | Linter clean | Linter output: 0 errors | Partial check, extrapolation |
46
+ | Build succeeds | Build command: exit 0 | Linter passing, logs look good |
47
+ | Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
48
+ | Regression test works | Red-green cycle verified | Test passes once |
49
+ | Agent completed | VCS diff shows changes | Agent reports "success" |
50
+ | Requirements met | Line-by-line checklist | Tests passing |
51
+
52
+ ## Red Flags - STOP
53
+
54
+ - Using "should", "probably", "seems to"
55
+ - Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
56
+ - About to commit/push/PR without verification
57
+ - Trusting agent success reports
58
+ - Relying on partial verification
59
+ - Thinking "just this once"
60
+ - Tired and wanting work over
61
+ - **ANY wording implying success without having run verification**
62
+
63
+ ## Rationalization Prevention
64
+
65
+ | Excuse | Reality |
66
+ |--------|---------|
67
+ | "Should work now" | RUN the verification |
68
+ | "I'm confident" | Confidence ≠ evidence |
69
+ | "Just this once" | No exceptions |
70
+ | "Linter passed" | Linter ≠ compiler |
71
+ | "Agent said success" | Verify independently |
72
+ | "I'm tired" | Exhaustion ≠ excuse |
73
+ | "Partial check is enough" | Partial proves nothing |
74
+ | "Different words so rule doesn't apply" | Spirit over letter |
75
+
76
+ ## Key Patterns
77
+
78
+ **Tests:**
79
+ ```
80
+ ✅ [Run test command] [See: 34/34 pass] "All tests pass"
81
+ ❌ "Should pass now" / "Looks correct"
82
+ ```
83
+
84
+ **Regression tests (TDD Red-Green):**
85
+ ```
86
+ ✅ Write → Run (pass) → Revert fix → Run (MUST FAIL) → Restore → Run (pass)
87
+ ❌ "I've written a regression test" (without red-green verification)
88
+ ```
89
+
90
+ **Build:**
91
+ ```
92
+ ✅ [Run build] [See: exit 0] "Build passes"
93
+ ❌ "Linter passed" (linter doesn't check compilation)
94
+ ```
95
+
96
+ **Requirements:**
97
+ ```
98
+ ✅ Re-read plan → Create checklist → Verify each → Report gaps or completion
99
+ ❌ "Tests pass, phase complete"
100
+ ```
101
+
102
+ **Agent delegation:**
103
+ ```
104
+ ✅ Agent reports success → Check VCS diff → Verify changes → Report actual state
105
+ ❌ Trust agent report
106
+ ```
107
+
108
+ ## Why This Matters
109
+
110
+ From 24 failure memories:
111
+ - your human partner said "I don't believe you" - trust broken
112
+ - Undefined functions shipped - would crash
113
+ - Missing requirements shipped - incomplete features
114
+ - Time wasted on false completion → redirect → rework
115
+ - Violates: "Honesty is a core value. If you lie, you'll be replaced."
116
+
117
+ ## When To Apply
118
+
119
+ **ALWAYS before:**
120
+ - ANY variation of success/completion claims
121
+ - ANY expression of satisfaction
122
+ - ANY positive statement about work state
123
+ - Committing, PR creation, task completion
124
+ - Moving to next task
125
+ - Delegating to agents
126
+
127
+ **Rule applies to:**
128
+ - Exact phrases
129
+ - Paraphrases and synonyms
130
+ - Implications of success
131
+ - ANY communication suggesting completion/correctness
132
+
133
+ ## The Bottom Line
134
+
135
+ **No shortcuts for verification.**
136
+
137
+ Run the command. Read the output. THEN claim the result.
138
+
139
+ This is non-negotiable.
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: backend-development
3
+ description: Build backends with Node.js, Python, Go (NestJS, FastAPI, Django). Use for REST/GraphQL/gRPC APIs, auth (OAuth, JWT), databases, microservices, security (OWASP), Docker/K8s.
4
+ license: MIT
5
+ version: 1.0.0
6
+ argument-hint: "[framework] [task]"
7
+ ---
8
+
9
+ # Backend Development Skill
10
+
11
+ Production-ready backend development with modern technologies, best practices, and proven patterns.
12
+
13
+ ## When to Use
14
+
15
+ - Designing RESTful, GraphQL, or gRPC APIs
16
+ - Building authentication/authorization systems
17
+ - Optimizing database queries and schemas
18
+ - Implementing caching and performance optimization
19
+ - OWASP Top 10 security mitigation
20
+ - Designing scalable microservices
21
+ - Testing strategies (unit, integration, E2E)
22
+ - CI/CD pipelines and deployment
23
+ - Monitoring and debugging production systems
24
+
25
+ ## Technology Selection Guide
26
+
27
+ **Languages:** Node.js/TypeScript (full-stack), Python (data/ML), Go (concurrency), Rust (performance)
28
+ **Frameworks:** NestJS, FastAPI, Django, Express, Gin
29
+ **Databases:** PostgreSQL (ACID), MongoDB (flexible schema), Redis (caching)
30
+ **APIs:** REST (simple), GraphQL (flexible), gRPC (performance)
31
+
32
+ See: `references/backend-technologies.md` for detailed comparisons
33
+
34
+ ## Reference Navigation
35
+
36
+ **Core Technologies:**
37
+ - `backend-technologies.md` - Languages, frameworks, databases, message queues, ORMs
38
+ - `backend-api-design.md` - REST, GraphQL, gRPC patterns and best practices
39
+
40
+ **Security & Authentication:**
41
+ - `backend-security.md` - OWASP Top 10 2025, security best practices, input validation
42
+ - `backend-authentication.md` - OAuth 2.1, JWT, RBAC, MFA, session management
43
+
44
+ **Performance & Architecture:**
45
+ - `backend-performance.md` - Caching, query optimization, load balancing, scaling
46
+ - `backend-architecture.md` - Microservices, event-driven, CQRS, saga patterns
47
+
48
+ **Quality & Operations:**
49
+ - `backend-testing.md` - Testing strategies, frameworks, tools, CI/CD testing
50
+ - `backend-code-quality.md` - SOLID principles, design patterns, clean code
51
+ - `backend-devops.md` - Docker, Kubernetes, deployment strategies, monitoring
52
+ - `backend-debugging.md` - Debugging strategies, profiling, logging, production debugging
53
+ - `backend-mindset.md` - Problem-solving, architectural thinking, collaboration
54
+
55
+ ## Key Best Practices (2025)
56
+
57
+ **Security:** Argon2id passwords, parameterized queries (98% SQL injection reduction), OAuth 2.1 + PKCE, rate limiting, security headers
58
+
59
+ **Performance:** Redis caching (90% DB load reduction), database indexing (30% I/O reduction), CDN (50%+ latency cut), connection pooling
60
+
61
+ **Testing:** 70-20-10 pyramid (unit-integration-E2E), Vitest 50% faster than Jest, contract testing for microservices, 83% migrations fail without tests
62
+
63
+ **DevOps:** Blue-green/canary deployments, feature flags (90% fewer failures), Kubernetes 84% adoption, Prometheus/Grafana monitoring, OpenTelemetry tracing
64
+
65
+ ## Quick Decision Matrix
66
+
67
+ | Need | Choose |
68
+ |------|--------|
69
+ | Fast development | Node.js + NestJS |
70
+ | Data/ML integration | Python + FastAPI |
71
+ | High concurrency | Go + Gin |
72
+ | Max performance | Rust + Axum |
73
+ | ACID transactions | PostgreSQL |
74
+ | Flexible schema | MongoDB |
75
+ | Caching | Redis |
76
+ | Internal services | gRPC |
77
+ | Public APIs | GraphQL/REST |
78
+ | Real-time events | Kafka |
79
+
80
+ ## Implementation Checklist
81
+
82
+ **API:** Choose style → Design schema → Validate input → Add auth → Rate limiting → Documentation → Error handling
83
+
84
+ **Database:** Choose DB → Design schema → Create indexes → Connection pooling → Migration strategy → Backup/restore → Test performance
85
+
86
+ **Security:** OWASP Top 10 → Parameterized queries → OAuth 2.1 + JWT → Security headers → Rate limiting → Input validation → Argon2id passwords
87
+
88
+ **Testing:** Unit 70% → Integration 20% → E2E 10% → Load tests → Migration tests → Contract tests (microservices)
89
+
90
+ **Deployment:** Docker → CI/CD → Blue-green/canary → Feature flags → Monitoring → Logging → Health checks
91
+
92
+ ## Resources
93
+
94
+ - OWASP Top 10: https://owasp.org/www-project-top-ten/
95
+ - OAuth 2.1: https://oauth.net/2.1/
96
+ - OpenTelemetry: https://opentelemetry.io/