@punks/cli 2.2.6 → 2.2.8

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 (488) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +2 -2
  3. package/dist/data/AGENTS.md +113 -0
  4. package/dist/data/control-plane.json +3 -0
  5. package/dist/data/hooks/format-edited-file.mjs +699 -0
  6. package/dist/data/hooks/format-edited-file.sh +37 -0
  7. package/dist/data/hooks/require-tests-for-pr.mjs +206 -0
  8. package/dist/data/hooks/scaffold-update-check.mjs +181 -0
  9. package/dist/data/scripts/sync-subagents.mjs +524 -0
  10. package/dist/data/subagents/manifest.mjs +488 -0
  11. package/dist/index.js +0 -0
  12. package/dist/skills/agnostic/backend/backend-domain-structure/SKILL.md +50 -0
  13. package/dist/skills/agnostic/backend/backend-domain-structure/agents/openai.yaml +4 -0
  14. package/dist/skills/agnostic/backend/backend-domain-structure/references/layout.md +167 -0
  15. package/dist/skills/agnostic/backend/backend-recoverable-actions/SKILL.md +49 -0
  16. package/dist/skills/agnostic/backend/backend-recoverable-actions/agents/openai.yaml +4 -0
  17. package/dist/skills/agnostic/backend/backend-recoverable-actions/references/strategy-matrix.md +34 -0
  18. package/dist/skills/agnostic/backend/backend-recoverable-actions/references/test-matrix.md +34 -0
  19. package/dist/skills/agnostic/backend/logging-best-practices/SKILL.md +127 -0
  20. package/dist/skills/agnostic/backend/logging-best-practices/rules/context.md +157 -0
  21. package/dist/skills/agnostic/backend/logging-best-practices/rules/pitfalls.md +118 -0
  22. package/dist/skills/agnostic/backend/logging-best-practices/rules/structure.md +193 -0
  23. package/dist/skills/agnostic/backend/logging-best-practices/rules/wide-events.md +113 -0
  24. package/dist/skills/agnostic/cli/dp-cli/SKILL.md +125 -0
  25. package/dist/skills/agnostic/cli/dp-cli/references/commands.md +70 -0
  26. package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +70 -0
  27. package/dist/skills/agnostic/debug/debug-agent/SKILL.md +184 -0
  28. package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +46 -0
  29. package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +4 -0
  30. package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +67 -0
  31. package/dist/skills/agnostic/docs/upstream/mattpocock-writing-skills.md +41 -0
  32. package/dist/skills/agnostic/docs/writing-beats/SKILL.md +69 -0
  33. package/dist/skills/agnostic/docs/writing-fragments/SKILL.md +76 -0
  34. package/dist/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +69 -0
  35. package/dist/skills/agnostic/docs/writing-great-skills/SKILL.md +61 -0
  36. package/dist/skills/agnostic/docs/writing-shape/SKILL.md +75 -0
  37. package/dist/skills/agnostic/frontend/agent-browser/.clawdhub/origin.json +7 -0
  38. package/dist/skills/agnostic/frontend/agent-browser/SKILL.md +229 -0
  39. package/dist/skills/agnostic/frontend/agent-browser/references/authentication.md +202 -0
  40. package/dist/skills/agnostic/frontend/agent-browser/references/commands.md +259 -0
  41. package/dist/skills/agnostic/frontend/agent-browser/references/proxy-support.md +188 -0
  42. package/dist/skills/agnostic/frontend/agent-browser/references/session-management.md +193 -0
  43. package/dist/skills/agnostic/frontend/agent-browser/references/snapshot-refs.md +194 -0
  44. package/dist/skills/agnostic/frontend/agent-browser/references/video-recording.md +173 -0
  45. package/dist/skills/agnostic/frontend/agent-browser/templates/authenticated-session.sh +97 -0
  46. package/dist/skills/agnostic/frontend/agent-browser/templates/capture-workflow.sh +69 -0
  47. package/dist/skills/agnostic/frontend/agent-browser/templates/form-automation.sh +62 -0
  48. package/dist/skills/agnostic/frontend/design-taste-frontend/SKILL.md +226 -0
  49. package/dist/skills/agnostic/frontend/frontend-domain-structure/SKILL.md +55 -0
  50. package/dist/skills/agnostic/frontend/frontend-domain-structure/agents/openai.yaml +4 -0
  51. package/dist/skills/agnostic/frontend/frontend-domain-structure/references/react/structure.md +102 -0
  52. package/dist/skills/agnostic/frontend/frontend-domain-structure/references/structure.md +257 -0
  53. package/dist/skills/agnostic/frontend/gpt-taste/SKILL.md +74 -0
  54. package/dist/skills/agnostic/frontend/image-taste-frontend/SKILL.md +1102 -0
  55. package/dist/skills/agnostic/frontend/redesign-existing-projects/SKILL.md +178 -0
  56. package/dist/skills/agnostic/generic/handoff/SKILL.md +15 -0
  57. package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +39 -0
  58. package/dist/skills/agnostic/planning/create-plan/SKILL.md +91 -0
  59. package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +44 -0
  60. package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +87 -0
  61. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +94 -0
  62. package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +42 -0
  63. package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +18 -0
  64. package/dist/skills/agnostic/planning/create-plan/references/tdd-shaping.md +49 -0
  65. package/dist/skills/agnostic/planning/create-spec/SKILL.md +111 -0
  66. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +91 -0
  67. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +49 -0
  68. package/dist/skills/agnostic/planning/create-spec/references/discovery.md +54 -0
  69. package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +33 -0
  70. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +47 -0
  71. package/dist/skills/agnostic/planning/create-spec/references/handoff.md +47 -0
  72. package/dist/skills/agnostic/planning/create-spec/references/questioning.md +51 -0
  73. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +58 -0
  74. package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +50 -0
  75. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +103 -0
  76. package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +65 -0
  77. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +209 -0
  78. package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +102 -0
  79. package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +79 -0
  80. package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +56 -0
  81. package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +46 -0
  82. package/dist/skills/agnostic/planning/implement-spec/references/ui-screenshot-evidence.md +61 -0
  83. package/dist/skills/agnostic/planning/stack/SKILL.md +89 -0
  84. package/dist/skills/agnostic/planning/swarm-planner/SKILL.md +179 -0
  85. package/dist/skills/agnostic/quality/autoreview/SKILL.md +191 -0
  86. package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +1176 -0
  87. package/dist/skills/agnostic/quality/autoreview/scripts/test-review-harness +176 -0
  88. package/dist/skills/agnostic/quality/codebase-design/DEEPENING.md +34 -0
  89. package/dist/skills/agnostic/quality/codebase-design/DESIGN-IT-TWICE.md +43 -0
  90. package/dist/skills/agnostic/quality/codebase-design/SKILL.md +60 -0
  91. package/dist/skills/agnostic/quality/simplify/SKILL.md +14 -0
  92. package/dist/skills/agnostic/quality/tdd/SKILL.md +139 -0
  93. package/dist/skills/agnostic/quality/tdd/deep-modules.md +33 -0
  94. package/dist/skills/agnostic/quality/tdd/high-signal-tests.md +39 -0
  95. package/dist/skills/agnostic/quality/tdd/interface-design.md +31 -0
  96. package/dist/skills/agnostic/quality/tdd/mocking.md +59 -0
  97. package/dist/skills/agnostic/quality/tdd/refactoring.md +10 -0
  98. package/dist/skills/agnostic/quality/tdd/tests.md +61 -0
  99. package/dist/skills/agnostic/repo-asset-management/SKILL.md +28 -0
  100. package/dist/skills/agnostic/repo-asset-management/references/acceptance.md +6 -0
  101. package/dist/skills/agnostic/repo-asset-management/references/azure.md +11 -0
  102. package/dist/skills/agnostic/repo-asset-management/references/bitbucket.md +8 -0
  103. package/dist/skills/agnostic/repo-asset-management/references/github.md +11 -0
  104. package/dist/skills/agnostic/repo-asset-management/references/gitlab.md +11 -0
  105. package/dist/skills/agnostic/requirements/grilling/SKILL.md +38 -0
  106. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +46 -0
  107. package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +157 -0
  108. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +71 -0
  109. package/dist/skills/agnostic/requirements/requirements-grill/references/wiki-output.md +101 -0
  110. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +67 -0
  111. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +264 -0
  112. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +85 -0
  113. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +69 -0
  114. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +66 -0
  115. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +63 -0
  116. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +224 -0
  117. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +76 -0
  118. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +146 -0
  119. package/dist/skills/agnostic/research/improve-codebase-architecture/REFERENCE.md +78 -0
  120. package/dist/skills/agnostic/research/improve-codebase-architecture/SKILL.md +80 -0
  121. package/dist/skills/agnostic/research/parallel-research/SKILL.md +68 -0
  122. package/dist/skills/agnostic/research/parallel-research/agents/openai.yaml +4 -0
  123. package/dist/skills/agnostic/research/prototype/LOGIC.md +31 -0
  124. package/dist/skills/agnostic/research/prototype/SKILL.md +31 -0
  125. package/dist/skills/agnostic/research/prototype/UI.md +29 -0
  126. package/dist/skills/agnostic/subagents/swarm-planner/SKILL.md +179 -0
  127. package/dist/skills/frameworks/better-auth/better-auth-best-practices/SKILL.md +166 -0
  128. package/dist/skills/frameworks/better-auth/better-auth-security-best-practices/SKILL.MD +432 -0
  129. package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +116 -0
  130. package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +98 -0
  131. package/dist/skills/frameworks/effect/effect-authoring/references/effect-atom-patterns.md +257 -0
  132. package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +144 -0
  133. package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +156 -0
  134. package/dist/skills/frameworks/effect/effect-authoring/references/otel-patterns.md +113 -0
  135. package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +146 -0
  136. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +96 -0
  137. package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +4 -0
  138. package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +68 -0
  139. package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +517 -0
  140. package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +392 -0
  141. package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +653 -0
  142. package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +464 -0
  143. package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +287 -0
  144. package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +495 -0
  145. package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +342 -0
  146. package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +418 -0
  147. package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +353 -0
  148. package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +299 -0
  149. package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +65 -0
  150. package/dist/skills/frameworks/effect/effect-recoverable-actions/agents/openai.yaml +4 -0
  151. package/dist/skills/frameworks/effect/effect-recoverable-actions/references/flow-examples.md +154 -0
  152. package/dist/skills/frameworks/effect/effect-recoverable-actions/references/source-backed-primitives.md +104 -0
  153. package/dist/skills/frameworks/effect/effect-recoverable-actions/references/strategy-matrix.md +34 -0
  154. package/dist/skills/frameworks/effect/effect-recoverable-actions/references/test-matrix.md +36 -0
  155. package/dist/skills/frameworks/elysia/elysiajs/SKILL.md +475 -0
  156. package/dist/skills/frameworks/elysia/elysiajs/examples/basic.ts +9 -0
  157. package/dist/skills/frameworks/elysia/elysiajs/examples/body-parser.ts +33 -0
  158. package/dist/skills/frameworks/elysia/elysiajs/examples/complex.ts +112 -0
  159. package/dist/skills/frameworks/elysia/elysiajs/examples/cookie.ts +45 -0
  160. package/dist/skills/frameworks/elysia/elysiajs/examples/error.ts +38 -0
  161. package/dist/skills/frameworks/elysia/elysiajs/examples/file.ts +10 -0
  162. package/dist/skills/frameworks/elysia/elysiajs/examples/guard.ts +34 -0
  163. package/dist/skills/frameworks/elysia/elysiajs/examples/map-response.ts +15 -0
  164. package/dist/skills/frameworks/elysia/elysiajs/examples/redirect.ts +6 -0
  165. package/dist/skills/frameworks/elysia/elysiajs/examples/rename.ts +32 -0
  166. package/dist/skills/frameworks/elysia/elysiajs/examples/schema.ts +61 -0
  167. package/dist/skills/frameworks/elysia/elysiajs/examples/state.ts +6 -0
  168. package/dist/skills/frameworks/elysia/elysiajs/examples/upload-file.ts +20 -0
  169. package/dist/skills/frameworks/elysia/elysiajs/examples/websocket.ts +25 -0
  170. package/dist/skills/frameworks/elysia/elysiajs/integrations/ai-sdk.md +92 -0
  171. package/dist/skills/frameworks/elysia/elysiajs/integrations/astro.md +59 -0
  172. package/dist/skills/frameworks/elysia/elysiajs/integrations/better-auth.md +117 -0
  173. package/dist/skills/frameworks/elysia/elysiajs/integrations/cloudflare-worker.md +95 -0
  174. package/dist/skills/frameworks/elysia/elysiajs/integrations/deno.md +34 -0
  175. package/dist/skills/frameworks/elysia/elysiajs/integrations/drizzle.md +258 -0
  176. package/dist/skills/frameworks/elysia/elysiajs/integrations/expo.md +95 -0
  177. package/dist/skills/frameworks/elysia/elysiajs/integrations/nextjs.md +103 -0
  178. package/dist/skills/frameworks/elysia/elysiajs/integrations/nodejs.md +64 -0
  179. package/dist/skills/frameworks/elysia/elysiajs/integrations/nuxt.md +67 -0
  180. package/dist/skills/frameworks/elysia/elysiajs/integrations/prisma.md +93 -0
  181. package/dist/skills/frameworks/elysia/elysiajs/integrations/react-email.md +134 -0
  182. package/dist/skills/frameworks/elysia/elysiajs/integrations/sveltekit.md +53 -0
  183. package/dist/skills/frameworks/elysia/elysiajs/integrations/tanstack-start.md +87 -0
  184. package/dist/skills/frameworks/elysia/elysiajs/integrations/vercel.md +55 -0
  185. package/dist/skills/frameworks/elysia/elysiajs/patterns/mvc.md +380 -0
  186. package/dist/skills/frameworks/elysia/elysiajs/plugins/bearer.md +30 -0
  187. package/dist/skills/frameworks/elysia/elysiajs/plugins/cors.md +141 -0
  188. package/dist/skills/frameworks/elysia/elysiajs/plugins/cron.md +265 -0
  189. package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-apollo.md +90 -0
  190. package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-yoga.md +87 -0
  191. package/dist/skills/frameworks/elysia/elysiajs/plugins/html.md +188 -0
  192. package/dist/skills/frameworks/elysia/elysiajs/plugins/jwt.md +197 -0
  193. package/dist/skills/frameworks/elysia/elysiajs/plugins/openapi.md +246 -0
  194. package/dist/skills/frameworks/elysia/elysiajs/plugins/opentelemetry.md +167 -0
  195. package/dist/skills/frameworks/elysia/elysiajs/plugins/server-timing.md +71 -0
  196. package/dist/skills/frameworks/elysia/elysiajs/plugins/static.md +84 -0
  197. package/dist/skills/frameworks/elysia/elysiajs/references/bun-fullstack-dev-server.md +129 -0
  198. package/dist/skills/frameworks/elysia/elysiajs/references/cookie.md +187 -0
  199. package/dist/skills/frameworks/elysia/elysiajs/references/deployment.md +413 -0
  200. package/dist/skills/frameworks/elysia/elysiajs/references/eden.md +158 -0
  201. package/dist/skills/frameworks/elysia/elysiajs/references/lifecycle.md +198 -0
  202. package/dist/skills/frameworks/elysia/elysiajs/references/macro.md +83 -0
  203. package/dist/skills/frameworks/elysia/elysiajs/references/plugin.md +207 -0
  204. package/dist/skills/frameworks/elysia/elysiajs/references/route.md +331 -0
  205. package/dist/skills/frameworks/elysia/elysiajs/references/testing.md +385 -0
  206. package/dist/skills/frameworks/elysia/elysiajs/references/validation.md +491 -0
  207. package/dist/skills/frameworks/elysia/elysiajs/references/websocket.md +250 -0
  208. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/branch-protection.yml +24 -0
  209. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/deploy.yml +61 -0
  210. package/dist/skills/frameworks/nestjs/nestjs-best-practices/AGENTS.md +5958 -0
  211. package/dist/skills/frameworks/nestjs/nestjs-best-practices/SKILL.md +130 -0
  212. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-dto-serialization.md +182 -0
  213. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-interceptors.md +202 -0
  214. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-pipes.md +205 -0
  215. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-versioning.md +191 -0
  216. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-avoid-circular-deps.md +80 -0
  217. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-feature-modules.md +82 -0
  218. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-module-sharing.md +141 -0
  219. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-single-responsibility.md +106 -0
  220. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-events.md +108 -0
  221. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-repository-pattern.md +97 -0
  222. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-avoid-n-plus-one.md +139 -0
  223. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-migrations.md +129 -0
  224. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-transactions.md +140 -0
  225. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-graceful-shutdown.md +222 -0
  226. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-config-module.md +167 -0
  227. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-logging.md +232 -0
  228. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-avoid-service-locator.md +104 -0
  229. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-interface-segregation.md +165 -0
  230. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-liskov-substitution.md +221 -0
  231. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-prefer-constructor-injection.md +86 -0
  232. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-scope-awareness.md +94 -0
  233. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-use-interfaces-tokens.md +101 -0
  234. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-handle-async-errors.md +125 -0
  235. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-throw-http-exceptions.md +114 -0
  236. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-use-exception-filters.md +140 -0
  237. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-health-checks.md +226 -0
  238. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-patterns.md +167 -0
  239. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-queues.md +252 -0
  240. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-async-hooks.md +109 -0
  241. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-lazy-loading.md +121 -0
  242. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-optimize-database.md +131 -0
  243. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-use-caching.md +128 -0
  244. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-auth-jwt.md +146 -0
  245. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-rate-limiting.md +125 -0
  246. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-sanitize-output.md +139 -0
  247. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-use-guards.md +135 -0
  248. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-validate-all-input.md +150 -0
  249. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-e2e-supertest.md +178 -0
  250. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-mock-external-services.md +179 -0
  251. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-use-testing-module.md +153 -0
  252. package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build-agents.ts +299 -0
  253. package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build.sh +16 -0
  254. package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package-lock.json +237 -0
  255. package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package.json +15 -0
  256. package/dist/skills/frameworks/nestjs/nestjs-expert/SKILL.md +208 -0
  257. package/dist/skills/frameworks/nestjs/nestjs-expert/references/authentication.md +166 -0
  258. package/dist/skills/frameworks/nestjs/nestjs-expert/references/controllers-routing.md +111 -0
  259. package/dist/skills/frameworks/nestjs/nestjs-expert/references/dtos-validation.md +153 -0
  260. package/dist/skills/frameworks/nestjs/nestjs-expert/references/migration-from-express.md +1237 -0
  261. package/dist/skills/frameworks/nestjs/nestjs-expert/references/services-di.md +140 -0
  262. package/dist/skills/frameworks/nestjs/nestjs-expert/references/testing-patterns.md +186 -0
  263. package/dist/skills/frameworks/nextjs/next-best-practices/SKILL.md +153 -0
  264. package/dist/skills/frameworks/nextjs/next-best-practices/async-patterns.md +87 -0
  265. package/dist/skills/frameworks/nextjs/next-best-practices/bundling.md +180 -0
  266. package/dist/skills/frameworks/nextjs/next-best-practices/data-patterns.md +297 -0
  267. package/dist/skills/frameworks/nextjs/next-best-practices/debug-tricks.md +105 -0
  268. package/dist/skills/frameworks/nextjs/next-best-practices/directives.md +73 -0
  269. package/dist/skills/frameworks/nextjs/next-best-practices/error-handling.md +227 -0
  270. package/dist/skills/frameworks/nextjs/next-best-practices/file-conventions.md +140 -0
  271. package/dist/skills/frameworks/nextjs/next-best-practices/font.md +245 -0
  272. package/dist/skills/frameworks/nextjs/next-best-practices/functions.md +108 -0
  273. package/dist/skills/frameworks/nextjs/next-best-practices/hydration-error.md +91 -0
  274. package/dist/skills/frameworks/nextjs/next-best-practices/image.md +173 -0
  275. package/dist/skills/frameworks/nextjs/next-best-practices/metadata.md +301 -0
  276. package/dist/skills/frameworks/nextjs/next-best-practices/parallel-routes.md +287 -0
  277. package/dist/skills/frameworks/nextjs/next-best-practices/route-handlers.md +146 -0
  278. package/dist/skills/frameworks/nextjs/next-best-practices/rsc-boundaries.md +159 -0
  279. package/dist/skills/frameworks/nextjs/next-best-practices/runtime-selection.md +39 -0
  280. package/dist/skills/frameworks/nextjs/next-best-practices/scripts.md +141 -0
  281. package/dist/skills/frameworks/nextjs/next-best-practices/self-hosting.md +371 -0
  282. package/dist/skills/frameworks/nextjs/next-best-practices/suspense-boundaries.md +67 -0
  283. package/dist/skills/frameworks/nextjs/next-cache-components/SKILL.md +360 -0
  284. package/dist/skills/frameworks/react/async-react-patterns/SKILL.md +78 -0
  285. package/dist/skills/frameworks/react/react-doctor/SKILL.md +64 -0
  286. package/dist/skills/frameworks/react/react-doctor/references/explain.md +71 -0
  287. package/dist/skills/frameworks/react/vercel-composition-patterns/AGENTS.md +946 -0
  288. package/dist/skills/frameworks/react/vercel-composition-patterns/SKILL.md +89 -0
  289. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
  290. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-compound-components.md +112 -0
  291. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-children-over-render-props.md +87 -0
  292. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-explicit-variants.md +100 -0
  293. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/react19-no-forwardref.md +42 -0
  294. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-context-interface.md +191 -0
  295. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-decouple-implementation.md +113 -0
  296. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-lift-state.md +125 -0
  297. package/dist/skills/frameworks/react/vercel-react-best-practices/AGENTS.md +3750 -0
  298. package/dist/skills/frameworks/react/vercel-react-best-practices/SKILL.md +148 -0
  299. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-effect-event-deps.md +56 -0
  300. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  301. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
  302. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
  303. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-api-routes.md +38 -0
  304. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +37 -0
  305. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-defer-await.md +82 -0
  306. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-dependencies.md +51 -0
  307. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-parallel.md +28 -0
  308. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
  309. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-barrel-imports.md +60 -0
  310. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
  311. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
  312. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  313. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-preload.md +50 -0
  314. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
  315. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
  316. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
  317. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
  318. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
  319. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
  320. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
  321. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
  322. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
  323. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-early-exit.md +50 -0
  324. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-flatmap-filter.md +60 -0
  325. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
  326. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-index-maps.md +37 -0
  327. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
  328. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
  329. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-request-idle-callback.md +105 -0
  330. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
  331. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
  332. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-activity.md +26 -0
  333. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  334. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
  335. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
  336. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  337. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  338. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
  339. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-resource-hints.md +85 -0
  340. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-script-defer-async.md +68 -0
  341. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
  342. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
  343. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
  344. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
  345. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
  346. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
  347. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
  348. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  349. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
  350. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo.md +44 -0
  351. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
  352. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-no-inline-components.md +82 -0
  353. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
  354. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +64 -0
  355. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
  356. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-deferred-value.md +59 -0
  357. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
  358. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
  359. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
  360. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
  361. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-react.md +76 -0
  362. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
  363. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-hoist-static-io.md +149 -0
  364. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-no-shared-module-state.md +50 -0
  365. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
  366. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +34 -0
  367. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-serialization.md +38 -0
  368. package/dist/skills/frameworks/tanstack-query/tanstack-query/.claude-plugin/plugin.json +12 -0
  369. package/dist/skills/frameworks/tanstack-query/tanstack-query/SKILL.md +849 -0
  370. package/dist/skills/frameworks/tanstack-query/tanstack-query/assets/example-template.txt +14 -0
  371. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +304 -0
  372. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/common-patterns.md +271 -0
  373. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/example-reference.md +26 -0
  374. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/testing.md +282 -0
  375. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/top-errors.md +332 -0
  376. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/typescript-patterns.md +291 -0
  377. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/v4-to-v5-migration.md +231 -0
  378. package/dist/skills/frameworks/tanstack-query/tanstack-query/rules/tanstack-query.md +126 -0
  379. package/dist/skills/frameworks/tanstack-query/tanstack-query/scripts/example-script.sh +15 -0
  380. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
  381. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +248 -0
  382. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/error-boundary.tsx +243 -0
  383. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/package.json +31 -0
  384. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/provider-setup.tsx +50 -0
  385. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/query-client-config.ts +72 -0
  386. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-infinite-query.tsx +214 -0
  387. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-basic.tsx +201 -0
  388. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
  389. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-query-basic.tsx +119 -0
  390. package/dist/skills/frameworks/tanstack-start/tanstack-start/SKILL.md +250 -0
  391. package/dist/skills/frameworks/trpc/tanstack-query/.claude-plugin/plugin.json +12 -0
  392. package/dist/skills/frameworks/trpc/tanstack-query/SKILL.md +1058 -0
  393. package/dist/skills/frameworks/trpc/tanstack-query/assets/example-template.txt +14 -0
  394. package/dist/skills/frameworks/trpc/tanstack-query/references/best-practices.md +304 -0
  395. package/dist/skills/frameworks/trpc/tanstack-query/references/common-patterns.md +271 -0
  396. package/dist/skills/frameworks/trpc/tanstack-query/references/example-reference.md +26 -0
  397. package/dist/skills/frameworks/trpc/tanstack-query/references/testing.md +282 -0
  398. package/dist/skills/frameworks/trpc/tanstack-query/references/top-errors.md +332 -0
  399. package/dist/skills/frameworks/trpc/tanstack-query/references/typescript-patterns.md +291 -0
  400. package/dist/skills/frameworks/trpc/tanstack-query/references/v4-to-v5-migration.md +231 -0
  401. package/dist/skills/frameworks/trpc/tanstack-query/rules/tanstack-query.md +126 -0
  402. package/dist/skills/frameworks/trpc/tanstack-query/scripts/example-script.sh +15 -0
  403. package/dist/skills/frameworks/trpc/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
  404. package/dist/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +248 -0
  405. package/dist/skills/frameworks/trpc/tanstack-query/templates/error-boundary.tsx +243 -0
  406. package/dist/skills/frameworks/trpc/tanstack-query/templates/package.json +31 -0
  407. package/dist/skills/frameworks/trpc/tanstack-query/templates/provider-setup.tsx +50 -0
  408. package/dist/skills/frameworks/trpc/tanstack-query/templates/query-client-config.ts +72 -0
  409. package/dist/skills/frameworks/trpc/tanstack-query/templates/use-infinite-query.tsx +214 -0
  410. package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-basic.tsx +201 -0
  411. package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
  412. package/dist/skills/frameworks/trpc/tanstack-query/templates/use-query-basic.tsx +119 -0
  413. package/dist/skills/frameworks/turborepo/turborepo/SKILL.md +914 -0
  414. package/dist/skills/frameworks/turborepo/turborepo/command/turborepo.md +70 -0
  415. package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/RULE.md +241 -0
  416. package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/dependencies.md +246 -0
  417. package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/packages.md +335 -0
  418. package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/structure.md +270 -0
  419. package/dist/skills/frameworks/turborepo/turborepo/references/boundaries/RULE.md +126 -0
  420. package/dist/skills/frameworks/turborepo/turborepo/references/caching/RULE.md +107 -0
  421. package/dist/skills/frameworks/turborepo/turborepo/references/caching/gotchas.md +169 -0
  422. package/dist/skills/frameworks/turborepo/turborepo/references/caching/remote-cache.md +127 -0
  423. package/dist/skills/frameworks/turborepo/turborepo/references/ci/RULE.md +79 -0
  424. package/dist/skills/frameworks/turborepo/turborepo/references/ci/github-actions.md +162 -0
  425. package/dist/skills/frameworks/turborepo/turborepo/references/ci/patterns.md +145 -0
  426. package/dist/skills/frameworks/turborepo/turborepo/references/ci/vercel.md +103 -0
  427. package/dist/skills/frameworks/turborepo/turborepo/references/cli/RULE.md +100 -0
  428. package/dist/skills/frameworks/turborepo/turborepo/references/cli/commands.md +297 -0
  429. package/dist/skills/frameworks/turborepo/turborepo/references/configuration/RULE.md +211 -0
  430. package/dist/skills/frameworks/turborepo/turborepo/references/configuration/global-options.md +187 -0
  431. package/dist/skills/frameworks/turborepo/turborepo/references/configuration/gotchas.md +348 -0
  432. package/dist/skills/frameworks/turborepo/turborepo/references/configuration/tasks.md +285 -0
  433. package/dist/skills/frameworks/turborepo/turborepo/references/environment/RULE.md +96 -0
  434. package/dist/skills/frameworks/turborepo/turborepo/references/environment/gotchas.md +141 -0
  435. package/dist/skills/frameworks/turborepo/turborepo/references/environment/modes.md +101 -0
  436. package/dist/skills/frameworks/turborepo/turborepo/references/filtering/RULE.md +148 -0
  437. package/dist/skills/frameworks/turborepo/turborepo/references/filtering/patterns.md +152 -0
  438. package/dist/skills/frameworks/turborepo/turborepo/references/watch/RULE.md +99 -0
  439. package/dist/skills/languages/python/async-python-patterns/SKILL.md +735 -0
  440. package/dist/skills/languages/python/python-code-style/SKILL.md +360 -0
  441. package/dist/skills/languages/python/python-design-patterns/SKILL.md +433 -0
  442. package/dist/skills/languages/python/python-project-structure/SKILL.md +252 -0
  443. package/dist/skills/languages/python/python-testing-patterns/SKILL.md +622 -0
  444. package/dist/skills/languages/python/python-testing-patterns/references/advanced-patterns.md +411 -0
  445. package/dist/skills/languages/typescript/quality-types/SKILL.md +93 -0
  446. package/dist/skills/phases/bug-discovery-phase/REFERENCE.md +193 -0
  447. package/dist/skills/phases/bug-discovery-phase/SKILL.md +45 -0
  448. package/dist/skills/phases/bug-resolution-phase/REFERENCE.md +183 -0
  449. package/dist/skills/phases/bug-resolution-phase/SKILL.md +49 -0
  450. package/dist/skills/phases/debugging-phase/SKILL.md +88 -0
  451. package/dist/skills/phases/delivery-phase/SKILL.md +51 -0
  452. package/dist/skills/phases/delivery-phase/phases/closeout.md +35 -0
  453. package/dist/skills/phases/delivery-phase/phases/debug.md +30 -0
  454. package/dist/skills/phases/delivery-phase/phases/docs-ingest.md +27 -0
  455. package/dist/skills/phases/delivery-phase/phases/implement.md +32 -0
  456. package/dist/skills/phases/delivery-phase/phases/plan.md +27 -0
  457. package/dist/skills/phases/delivery-phase/phases/review.md +29 -0
  458. package/dist/skills/phases/delivery-phase/phases/router.md +46 -0
  459. package/dist/skills/phases/delivery-phase/phases/spec.md +26 -0
  460. package/dist/skills/phases/delivery-phase/references/artifact-state.md +42 -0
  461. package/dist/skills/phases/delivery-phase/references/phase-handoff.md +27 -0
  462. package/dist/skills/phases/design-phase/SKILL.md +47 -0
  463. package/dist/skills/phases/design-phase/phases/approval.md +37 -0
  464. package/dist/skills/phases/design-phase/phases/backlog.md +28 -0
  465. package/dist/skills/phases/design-phase/phases/delivery-handoff.md +29 -0
  466. package/dist/skills/phases/design-phase/phases/grill.md +37 -0
  467. package/dist/skills/phases/design-phase/phases/intake.md +25 -0
  468. package/dist/skills/phases/design-phase/phases/prototype.md +30 -0
  469. package/dist/skills/phases/design-phase/phases/router.md +66 -0
  470. package/dist/skills/phases/docs-ingest-phase/SKILL.md +46 -0
  471. package/dist/skills/phases/docs-ingest-phase/agents/openai.yaml +4 -0
  472. package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +57 -0
  473. package/dist/skills/phases/docs-ingest-phase/phases/public-docs.md +52 -0
  474. package/dist/skills/phases/docs-ingest-phase/phases/router.md +42 -0
  475. package/dist/skills/phases/docs-ingest-phase/references/concept-pages.md +70 -0
  476. package/dist/skills/phases/docs-ingest-phase/references/flow-pages.md +56 -0
  477. package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +74 -0
  478. package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +96 -0
  479. package/dist/skills/phases/docs-ingest-phase/references/public-docs.md +90 -0
  480. package/dist/skills/phases/docs-ingest-phase/references/repo-docs.md +38 -0
  481. package/dist/skills/phases/docs-ingest-phase/references/wiki-ingest.md +134 -0
  482. package/dist/skills/phases/goalify/EXAMPLES.md +11 -0
  483. package/dist/skills/phases/goalify/SKILL.md +65 -0
  484. package/dist/skills/phases/requirements-phase/SKILL.md +70 -0
  485. package/dist/skills/phases/resolve-debt-phase/SKILL.md +87 -0
  486. package/dist/skills/phases/review-phase/REFERENCE.md +106 -0
  487. package/dist/skills/phases/review-phase/SKILL.md +46 -0
  488. package/package.json +1 -1
@@ -0,0 +1,411 @@
1
+ # Python Testing Patterns — Advanced Reference
2
+
3
+ Advanced testing patterns including async code, monkeypatching, temporary files, conftest setup, property-based testing, database testing, CI/CD integration, and configuration.
4
+
5
+ ## Pattern 6: Testing Async Code
6
+
7
+ ```python
8
+ # test_async.py
9
+ import pytest
10
+ import asyncio
11
+
12
+ async def fetch_data(url: str) -> dict:
13
+ """Fetch data asynchronously."""
14
+ await asyncio.sleep(0.1)
15
+ return {"url": url, "data": "result"}
16
+
17
+
18
+ @pytest.mark.asyncio
19
+ async def test_fetch_data():
20
+ """Test async function."""
21
+ result = await fetch_data("https://api.example.com")
22
+ assert result["url"] == "https://api.example.com"
23
+ assert "data" in result
24
+
25
+
26
+ @pytest.mark.asyncio
27
+ async def test_concurrent_fetches():
28
+ """Test concurrent async operations."""
29
+ urls = ["url1", "url2", "url3"]
30
+ tasks = [fetch_data(url) for url in urls]
31
+ results = await asyncio.gather(*tasks)
32
+
33
+ assert len(results) == 3
34
+ assert all("data" in r for r in results)
35
+
36
+
37
+ @pytest.fixture
38
+ async def async_client():
39
+ """Async fixture."""
40
+ client = {"connected": True}
41
+ yield client
42
+ client["connected"] = False
43
+
44
+
45
+ @pytest.mark.asyncio
46
+ async def test_with_async_fixture(async_client):
47
+ """Test using async fixture."""
48
+ assert async_client["connected"] is True
49
+ ```
50
+
51
+ ## Pattern 7: Monkeypatch for Testing
52
+
53
+ ```python
54
+ # test_environment.py
55
+ import os
56
+ import pytest
57
+
58
+ def get_database_url() -> str:
59
+ """Get database URL from environment."""
60
+ return os.environ.get("DATABASE_URL", "sqlite:///:memory:")
61
+
62
+
63
+ def test_database_url_default():
64
+ """Test default database URL."""
65
+ # Will use actual environment variable if set
66
+ url = get_database_url()
67
+ assert url
68
+
69
+
70
+ def test_database_url_custom(monkeypatch):
71
+ """Test custom database URL with monkeypatch."""
72
+ monkeypatch.setenv("DATABASE_URL", "postgresql://localhost/test")
73
+ assert get_database_url() == "postgresql://localhost/test"
74
+
75
+
76
+ def test_database_url_not_set(monkeypatch):
77
+ """Test when env var is not set."""
78
+ monkeypatch.delenv("DATABASE_URL", raising=False)
79
+ assert get_database_url() == "sqlite:///:memory:"
80
+
81
+
82
+ class Config:
83
+ """Configuration class."""
84
+
85
+ def __init__(self):
86
+ self.api_key = "production-key"
87
+
88
+ def get_api_key(self):
89
+ return self.api_key
90
+
91
+
92
+ def test_monkeypatch_attribute(monkeypatch):
93
+ """Test monkeypatching object attributes."""
94
+ config = Config()
95
+ monkeypatch.setattr(config, "api_key", "test-key")
96
+ assert config.get_api_key() == "test-key"
97
+ ```
98
+
99
+ ## Pattern 8: Temporary Files and Directories
100
+
101
+ ```python
102
+ # test_file_operations.py
103
+ import pytest
104
+ from pathlib import Path
105
+
106
+ def save_data(filepath: Path, data: str):
107
+ """Save data to file."""
108
+ filepath.write_text(data)
109
+
110
+
111
+ def load_data(filepath: Path) -> str:
112
+ """Load data from file."""
113
+ return filepath.read_text()
114
+
115
+
116
+ def test_file_operations(tmp_path):
117
+ """Test file operations with temporary directory."""
118
+ # tmp_path is a pathlib.Path object
119
+ test_file = tmp_path / "test_data.txt"
120
+
121
+ # Save data
122
+ save_data(test_file, "Hello, World!")
123
+
124
+ # Verify file exists
125
+ assert test_file.exists()
126
+
127
+ # Load and verify data
128
+ data = load_data(test_file)
129
+ assert data == "Hello, World!"
130
+
131
+
132
+ def test_multiple_files(tmp_path):
133
+ """Test with multiple temporary files."""
134
+ files = {
135
+ "file1.txt": "Content 1",
136
+ "file2.txt": "Content 2",
137
+ "file3.txt": "Content 3"
138
+ }
139
+
140
+ for filename, content in files.items():
141
+ filepath = tmp_path / filename
142
+ save_data(filepath, content)
143
+
144
+ # Verify all files created
145
+ assert len(list(tmp_path.iterdir())) == 3
146
+
147
+ # Verify contents
148
+ for filename, expected_content in files.items():
149
+ filepath = tmp_path / filename
150
+ assert load_data(filepath) == expected_content
151
+ ```
152
+
153
+ ## Pattern 9: Custom Fixtures and Conftest
154
+
155
+ ```python
156
+ # conftest.py
157
+ """Shared fixtures for all tests."""
158
+ import pytest
159
+
160
+ @pytest.fixture(scope="session")
161
+ def database_url():
162
+ """Provide database URL for all tests."""
163
+ return "postgresql://localhost/test_db"
164
+
165
+
166
+ @pytest.fixture(autouse=True)
167
+ def reset_database(database_url):
168
+ """Auto-use fixture that runs before each test."""
169
+ # Setup: Clear database
170
+ print(f"Clearing database: {database_url}")
171
+ yield
172
+ # Teardown: Clean up
173
+ print("Test completed")
174
+
175
+
176
+ @pytest.fixture
177
+ def sample_user():
178
+ """Provide sample user data."""
179
+ return {
180
+ "id": 1,
181
+ "name": "Test User",
182
+ "email": "test@example.com"
183
+ }
184
+
185
+
186
+ @pytest.fixture
187
+ def sample_users():
188
+ """Provide list of sample users."""
189
+ return [
190
+ {"id": 1, "name": "User 1"},
191
+ {"id": 2, "name": "User 2"},
192
+ {"id": 3, "name": "User 3"},
193
+ ]
194
+
195
+
196
+ # Parametrized fixture
197
+ @pytest.fixture(params=["sqlite", "postgresql", "mysql"])
198
+ def db_backend(request):
199
+ """Fixture that runs tests with different database backends."""
200
+ return request.param
201
+
202
+
203
+ def test_with_db_backend(db_backend):
204
+ """This test will run 3 times with different backends."""
205
+ print(f"Testing with {db_backend}")
206
+ assert db_backend in ["sqlite", "postgresql", "mysql"]
207
+ ```
208
+
209
+ ## Pattern 10: Property-Based Testing
210
+
211
+ ```python
212
+ # test_properties.py
213
+ from hypothesis import given, strategies as st
214
+ import pytest
215
+
216
+ def reverse_string(s: str) -> str:
217
+ """Reverse a string."""
218
+ return s[::-1]
219
+
220
+
221
+ @given(st.text())
222
+ def test_reverse_twice_is_original(s):
223
+ """Property: reversing twice returns original."""
224
+ assert reverse_string(reverse_string(s)) == s
225
+
226
+
227
+ @given(st.text())
228
+ def test_reverse_length(s):
229
+ """Property: reversed string has same length."""
230
+ assert len(reverse_string(s)) == len(s)
231
+
232
+
233
+ @given(st.integers(), st.integers())
234
+ def test_addition_commutative(a, b):
235
+ """Property: addition is commutative."""
236
+ assert a + b == b + a
237
+
238
+
239
+ @given(st.lists(st.integers()))
240
+ def test_sorted_list_properties(lst):
241
+ """Property: sorted list is ordered."""
242
+ sorted_lst = sorted(lst)
243
+
244
+ # Same length
245
+ assert len(sorted_lst) == len(lst)
246
+
247
+ # All elements present
248
+ assert set(sorted_lst) == set(lst)
249
+
250
+ # Is ordered
251
+ for i in range(len(sorted_lst) - 1):
252
+ assert sorted_lst[i] <= sorted_lst[i + 1]
253
+ ```
254
+
255
+ ## Testing Database Code
256
+
257
+ ```python
258
+ # test_database_models.py
259
+ import pytest
260
+ from sqlalchemy import create_engine, Column, Integer, String
261
+ from sqlalchemy.ext.declarative import declarative_base
262
+ from sqlalchemy.orm import sessionmaker, Session
263
+
264
+ Base = declarative_base()
265
+
266
+
267
+ class User(Base):
268
+ """User model."""
269
+ __tablename__ = "users"
270
+
271
+ id = Column(Integer, primary_key=True)
272
+ name = Column(String(50))
273
+ email = Column(String(100), unique=True)
274
+
275
+
276
+ @pytest.fixture(scope="function")
277
+ def db_session() -> Session:
278
+ """Create in-memory database for testing."""
279
+ engine = create_engine("sqlite:///:memory:")
280
+ Base.metadata.create_all(engine)
281
+
282
+ SessionLocal = sessionmaker(bind=engine)
283
+ session = SessionLocal()
284
+
285
+ yield session
286
+
287
+ session.close()
288
+
289
+
290
+ def test_create_user(db_session):
291
+ """Test creating a user."""
292
+ user = User(name="Test User", email="test@example.com")
293
+ db_session.add(user)
294
+ db_session.commit()
295
+
296
+ assert user.id is not None
297
+ assert user.name == "Test User"
298
+
299
+
300
+ def test_query_user(db_session):
301
+ """Test querying users."""
302
+ user1 = User(name="User 1", email="user1@example.com")
303
+ user2 = User(name="User 2", email="user2@example.com")
304
+
305
+ db_session.add_all([user1, user2])
306
+ db_session.commit()
307
+
308
+ users = db_session.query(User).all()
309
+ assert len(users) == 2
310
+
311
+
312
+ def test_unique_email_constraint(db_session):
313
+ """Test unique email constraint."""
314
+ from sqlalchemy.exc import IntegrityError
315
+
316
+ user1 = User(name="User 1", email="same@example.com")
317
+ user2 = User(name="User 2", email="same@example.com")
318
+
319
+ db_session.add(user1)
320
+ db_session.commit()
321
+
322
+ db_session.add(user2)
323
+
324
+ with pytest.raises(IntegrityError):
325
+ db_session.commit()
326
+ ```
327
+
328
+ ## CI/CD Integration
329
+
330
+ ```yaml
331
+ # .github/workflows/test.yml
332
+ name: Tests
333
+
334
+ on: [push, pull_request]
335
+
336
+ jobs:
337
+ test:
338
+ runs-on: ubuntu-latest
339
+
340
+ strategy:
341
+ matrix:
342
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
343
+
344
+ steps:
345
+ - uses: actions/checkout@v3
346
+
347
+ - name: Set up Python
348
+ uses: actions/setup-python@v4
349
+ with:
350
+ python-version: ${{ matrix.python-version }}
351
+
352
+ - name: Install dependencies
353
+ run: |
354
+ pip install -e ".[dev]"
355
+ pip install pytest pytest-cov
356
+
357
+ - name: Run tests
358
+ run: |
359
+ pytest --cov=myapp --cov-report=xml
360
+
361
+ - name: Upload coverage
362
+ uses: codecov/codecov-action@v3
363
+ with:
364
+ file: ./coverage.xml
365
+ ```
366
+
367
+ ## Configuration Files
368
+
369
+ ```ini
370
+ # pytest.ini
371
+ [pytest]
372
+ testpaths = tests
373
+ python_files = test_*.py
374
+ python_classes = Test*
375
+ python_functions = test_*
376
+ addopts =
377
+ -v
378
+ --strict-markers
379
+ --tb=short
380
+ --cov=myapp
381
+ --cov-report=term-missing
382
+ markers =
383
+ slow: marks tests as slow
384
+ integration: marks integration tests
385
+ unit: marks unit tests
386
+ e2e: marks end-to-end tests
387
+ ```
388
+
389
+ ```toml
390
+ # pyproject.toml
391
+ [tool.pytest.ini_options]
392
+ testpaths = ["tests"]
393
+ python_files = ["test_*.py"]
394
+ addopts = [
395
+ "-v",
396
+ "--cov=myapp",
397
+ "--cov-report=term-missing",
398
+ ]
399
+
400
+ [tool.coverage.run]
401
+ source = ["myapp"]
402
+ omit = ["*/tests/*", "*/migrations/*"]
403
+
404
+ [tool.coverage.report]
405
+ exclude_lines = [
406
+ "pragma: no cover",
407
+ "def __repr__",
408
+ "raise AssertionError",
409
+ "raise NotImplementedError",
410
+ ]
411
+ ```
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: quality-types
3
+ description: Use when writing or reviewing TypeScript/full-stack code. Encodes principles for type safety (branded types, discriminated unions, end-to-end types), real tests over mocks, OpenTelemetry observability, and picking the right abstractions instead of premature ones.
4
+ ---
5
+
6
+ # Writing quality full-stack TypeScript
7
+
8
+ Apply these principles when writing or reviewing TypeScript code.
9
+
10
+ ## Make impossible states unrepresentable
11
+
12
+ Use the type system to make invalid states fail at compile time. Fewer reachable states = easier code to read and change.
13
+
14
+ ### Branded types
15
+
16
+ Brand primitives so they can't be mixed up. Validate once at the boundary; downstream code trusts the type.
17
+
18
+ ```ts
19
+ type PhoneNumber = string & { __brand: "PhoneNumber" };
20
+
21
+ function parsePhone(input: string): PhoneNumber {
22
+ if (!/^\+?\d{10,15}$/.test(input)) throw new Error(`Invalid: ${input}`);
23
+ return input as PhoneNumber;
24
+ }
25
+
26
+ function sendSMS(to: PhoneNumber, body: string) {
27
+ /* input is trusted */
28
+ }
29
+ ```
30
+
31
+ If the project already uses a library with native branded-type support (e.g. Effect), use their primitives instead of rolling your own.
32
+
33
+ ### Discriminated unions over flag bags
34
+
35
+ ```ts
36
+ // Don't — invalid combos representable
37
+ type State = { loading: boolean; user?: User; error?: string };
38
+
39
+ // Do — only valid states exist
40
+ type State =
41
+ | { status: "loading" }
42
+ | { status: "success"; user: User }
43
+ | { status: "error"; error: string };
44
+ ```
45
+
46
+ ## Let the types flow end-to-end
47
+
48
+ DB schema → server → client should share types without manual duplication. Use whatever end-to-end type tool the project already has (tRPC, oRPC, Elysia, TanStack Start). A `users.email` branded as `Email` should arrive on the client still branded.
49
+
50
+ Don't restate types you can derive. Reach for `Pick`, `Omit`, `Parameters`, `ReturnType`, `Awaited`, `typeof` etc. before writing a new interface. For function arguments, infer from the source instead of typing them by hand:
51
+
52
+ ```ts
53
+ // Don't — duplicate shape, drifts when the row changes
54
+ type UserSummary = { id: string; email: Email };
55
+ function renderUser(u: UserSummary) {
56
+ /* ... */
57
+ }
58
+
59
+ // Do — derive from the source of truth
60
+ type User = Awaited<ReturnType<typeof db.query.users.findFirst>>;
61
+ function renderUser(u: Pick<User, "id" | "email">) {
62
+ /* ... */
63
+ }
64
+ ```
65
+
66
+ ## Pass objects, not positional args
67
+
68
+ ```ts
69
+ // Don't — swap two args, still compiles
70
+ sendEmail("Welcome!", "Hi there");
71
+ // Do — order-independent, self-documenting
72
+ sendEmail({ to: "alice@x.com", body: "Hi there" });
73
+ ```
74
+
75
+ Skip on hot perf-critical paths; use elsewhere by default.
76
+
77
+ ## Standard Schema for shared validation
78
+
79
+ For libraries or code that doesn't want to pick a validator, accept `StandardSchemaV1<unknown, T>`.
80
+
81
+ ## Tests as real as possible
82
+
83
+ Don't mock things you can run. Spin up real services:
84
+
85
+ - LocalStack for AWS
86
+ - Miniflare for Cloudflare Workers
87
+ - Real Postgres/SQLite (e.g. `bun:sqlite`), not a mock DB
88
+
89
+ Mock only third-party services that have no test environment.
90
+
91
+ ## OpenTelemetry, not print logging
92
+
93
+ When adding observability, instrument with OTel spans. The setup cost pays back the first time a user sends a request ID and you can answer instead of guess.
@@ -0,0 +1,193 @@
1
+ # Bug Discovery Phase Reference
2
+
3
+ ## Scope Policy
4
+
5
+ Default to the smallest certain target:
6
+
7
+ - open PR changes
8
+ - highlighted diff
9
+ - supplied code portions
10
+ - named files, paths, packages, apps, domains, or features
11
+
12
+ Use a full-codebase scan only when no PR is open and no certain domain, portion,
13
+ or path is provided, or when the user explicitly asks for full-codebase
14
+ discovery.
15
+
16
+ Pass the bounded scope into every ClawPatch command or reviewer prompt that
17
+ accepts path, diff, file, feature, package, or scope guidance. Do not let
18
+ ClawPatch default to repo-wide review when a bounded target exists.
19
+
20
+ ## Preflight Record
21
+
22
+ Before running ClawPatch, write down the run contract in the conversation, goal
23
+ handoff, or local run notes:
24
+
25
+ ```text
26
+ repo root: <absolute path>
27
+ scope: <whole repo | path | feature/project selector>
28
+ provider: <automatic current agent/launcher default | explicit override>
29
+ model: <automatic default | explicit override | unset>
30
+ limit: <number or unset>
31
+ jobs: <number or unset>
32
+ state dir: <repo>/.clawpatch/
33
+ report path: <repo>/.clawpatch/reports/<name>.md
34
+ dirty posture: include dirty changes? <yes|no>
35
+ output format: markdown file | markdown stdout | json stdout redirected to file
36
+ ```
37
+
38
+ This record is part of the phase contract. Do it before launching any long AFK
39
+ review so the user can understand scope, provider inheritance or override,
40
+ state, and replay boundaries.
41
+
42
+ ## Provider Defaults And Overrides
43
+
44
+ Default to the current agent or launcher provider. Do not ask the user to choose
45
+ a ClawPatch provider/model before discovery just to make the route explicit.
46
+ Codex should launch the Codex-backed default, Claude should launch the
47
+ Claude-backed default, and other launchers should inherit their configured
48
+ default.
49
+
50
+ Record provider/model as:
51
+
52
+ - `automatic current agent/launcher default` when no override was selected
53
+ - `explicit override: <provider>` and, when selected, `<model>` when the user
54
+ chose a ClawPatch route
55
+
56
+ Only add `--provider` or `--model` in generated commands when the user selected
57
+ an override. Do not add duplicated no-op notes about provider pricing.
58
+
59
+ ## Command Rules
60
+
61
+ Let generated ClawPatch commands inherit the current agent/launcher provider by
62
+ default. Keep `--root`, `--state-dir`, `--limit`, `--jobs`, and `--output`
63
+ visible when they matter.
64
+
65
+ Prefer repo-local state:
66
+
67
+ ```sh
68
+ clawpatch doctor --root "$REPO" --state-dir "$REPO/.clawpatch"
69
+ clawpatch status --root "$REPO" --state-dir "$REPO/.clawpatch" --plain
70
+ clawpatch init --root "$REPO" --state-dir "$REPO/.clawpatch"
71
+ clawpatch map --root "$REPO" --state-dir "$REPO/.clawpatch"
72
+ ```
73
+
74
+ For discovery, use `review` for normal AFK review and `ci` when the user wants
75
+ CI-shaped discovery:
76
+
77
+ ```sh
78
+ clawpatch review --root "$REPO" --state-dir "$REPO/.clawpatch" --limit "$LIMIT" --jobs "$JOBS"
79
+ clawpatch ci --root "$REPO" --state-dir "$REPO/.clawpatch" --limit "$LIMIT" --jobs "$JOBS" --output "$REPORT"
80
+ ```
81
+
82
+ When the user explicitly selects a ClawPatch provider/model override, add only
83
+ the selected flags:
84
+
85
+ ```sh
86
+ clawpatch review --root "$REPO" --state-dir "$REPO/.clawpatch" --provider "$PROVIDER" --limit "$LIMIT" --jobs "$JOBS"
87
+ clawpatch review --root "$REPO" --state-dir "$REPO/.clawpatch" --provider "$PROVIDER" --model "$MODEL" --limit "$LIMIT" --jobs "$JOBS"
88
+ ```
89
+
90
+ Use `--include-dirty` only when the user wants current uncommitted work included
91
+ in discovery. If omitted, say dirty work was excluded or left to ClawPatch
92
+ defaults.
93
+
94
+ For report and ledger inspection, use `clawpatch report` after `review` or `ci`
95
+ has produced finding state. It renders the current findings ledger. With
96
+ `--output <path>` it writes Markdown to that path. With global `--json` it
97
+ emits machine-readable JSON to stdout; do not pair `--json` with `--output
98
+ <json-file>` expecting JSON to be written there, because `--output` is the
99
+ Markdown report file.
100
+
101
+ ```sh
102
+ # Write a durable Markdown report and print a short completion summary.
103
+ clawpatch report --root "$REPO" --state-dir "$REPO/.clawpatch" --output "$REPORT" --plain
104
+
105
+ # Emit the Markdown report to stdout when no file is needed.
106
+ clawpatch report --root "$REPO" --state-dir "$REPO/.clawpatch"
107
+
108
+ # Save machine-readable JSON by redirecting stdout.
109
+ clawpatch report --root "$REPO" --state-dir "$REPO/.clawpatch" --json > "$REPORT_JSON"
110
+
111
+ # Narrow the report when triaging a queue.
112
+ clawpatch report --root "$REPO" --state-dir "$REPO/.clawpatch" --status open --severity high --plain
113
+
114
+ clawpatch next --root "$REPO" --state-dir "$REPO/.clawpatch" --plain
115
+ clawpatch show --root "$REPO" --state-dir "$REPO/.clawpatch" --finding "$FINDING_ID" --plain
116
+ clawpatch status --root "$REPO" --state-dir "$REPO/.clawpatch" --plain
117
+ ```
118
+
119
+ Triage commands are allowed for discovery classification when no source mutation
120
+ is performed:
121
+
122
+ ```sh
123
+ clawpatch triage --root "$REPO" --state-dir "$REPO/.clawpatch" --finding "$FINDING_ID" --status "$STATUS"
124
+ clawpatch revalidate --root "$REPO" --state-dir "$REPO/.clawpatch" --finding "$FINDING_ID" --plain
125
+ ```
126
+
127
+ Discovery classification should reflect what was learned from static review:
128
+ branch relevance, runtime-debugging need, false-positive candidacy, resolution
129
+ candidacy, deferral, or blockers. Use ClawPatch statuses only where they match
130
+ the tool's supported values. Do not claim runtime truth from ClawPatch alone.
131
+
132
+ ## Scoring And Routing
133
+
134
+ Before recommending the next action, rank every important finding with a `0-10`
135
+ score, higher first. Use the score to explain priority, not to imply runtime
136
+ proof.
137
+
138
+ Include this rationale for each scored finding:
139
+
140
+ - severity and confidence from ClawPatch, if available
141
+ - whether `clawpatch next` selected or deprioritized it
142
+ - branch relevance to the current checkout, diff, release, PR, or user goal
143
+ - evidence freshness: current report, stale ledger, revalidated, or user-provided
144
+ - current user pain: active runtime symptom, broken workflow, CI failure, or none
145
+ - evidence type: static-only, runtime-suspected, or runtime-proven by external
146
+ evidence
147
+ - recommended route: `$bug-resolution-phase`, `$debugging-phase`, docs/debt
148
+ handling, false-positive triage/revalidation, or stop
149
+
150
+ Suggested policy:
151
+
152
+ - `8-10`: branch-relevant, high severity/confidence, fresh evidence, or matches
153
+ current user pain. Route to `$bug-resolution-phase` if the fix target is clear;
154
+ route to `$debugging-phase` if runtime proof is missing but needed.
155
+ - `5-7`: plausible and relevant, but confidence, freshness, or impact is mixed.
156
+ Inspect more, revalidate, or defer to docs/debt handling when it is not a bug
157
+ to fix now.
158
+ - `0-4`: stale, low-confidence, not branch-relevant, duplicate, or likely false
159
+ positive. Triage/revalidate if useful; otherwise stop.
160
+
161
+ ## No-Mutation Boundary
162
+
163
+ Never run these by default in `bug-discovery-phase`:
164
+
165
+ ```sh
166
+ clawpatch fix --finding "$FINDING_ID"
167
+ clawpatch open-pr --patch "$PATCH_ATTEMPT_ID"
168
+ ```
169
+
170
+ If the user asks for fixing, stop discovery and enter `$bug-resolution-phase`.
171
+ If a finding needs runtime reproduction, enter `$debugging-phase`. If a selected
172
+ finding becomes tech debt, route repo docs through `$docs-ingest-phase`; broad
173
+ discovery itself does not create tech-debt docs.
174
+
175
+ ## Output Checklist
176
+
177
+ The final report must include:
178
+
179
+ - report path, usually `.clawpatch/reports/<run>.md`; if JSON was requested,
180
+ include the redirected JSON artifact path separately
181
+ - durable ledger/state path, usually `.clawpatch/`
182
+ - provider/model default or explicit override, scope, `--limit`, `--jobs`,
183
+ report path, and dirty posture
184
+ - command list and whether each command completed
185
+ - relevant finding IDs, status, severity if available, and why they matter
186
+ - score/rationale for each important finding before the recommended next action
187
+ - explicit statement: ClawPatch findings are static-review candidates, not
188
+ proven runtime root causes
189
+ - next recommended phase for each important finding:
190
+ `$bug-resolution-phase`, `$debugging-phase`, `$docs-ingest-phase`, or none
191
+
192
+ Keep the summary concise. Preserve report and state paths so later resolution
193
+ goals can resume from the durable ClawPatch ledger.