@punks/cli 2.2.7 → 2.2.9

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 (489) 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 +1206 -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/imagegen-frontend-mobile/SKILL.md +1465 -0
  55. package/dist/skills/agnostic/frontend/imagegen-frontend-web/SKILL.md +987 -0
  56. package/dist/skills/agnostic/frontend/redesign-existing-projects/SKILL.md +178 -0
  57. package/dist/skills/agnostic/generic/handoff/SKILL.md +15 -0
  58. package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +39 -0
  59. package/dist/skills/agnostic/planning/create-plan/SKILL.md +91 -0
  60. package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +44 -0
  61. package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +87 -0
  62. package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +94 -0
  63. package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +42 -0
  64. package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +18 -0
  65. package/dist/skills/agnostic/planning/create-plan/references/tdd-shaping.md +49 -0
  66. package/dist/skills/agnostic/planning/create-spec/SKILL.md +111 -0
  67. package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +91 -0
  68. package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +49 -0
  69. package/dist/skills/agnostic/planning/create-spec/references/discovery.md +54 -0
  70. package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +33 -0
  71. package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +47 -0
  72. package/dist/skills/agnostic/planning/create-spec/references/handoff.md +47 -0
  73. package/dist/skills/agnostic/planning/create-spec/references/questioning.md +51 -0
  74. package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +58 -0
  75. package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +50 -0
  76. package/dist/skills/agnostic/planning/implement-spec/SKILL.md +103 -0
  77. package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +65 -0
  78. package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +209 -0
  79. package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +102 -0
  80. package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +79 -0
  81. package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +56 -0
  82. package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +46 -0
  83. package/dist/skills/agnostic/planning/implement-spec/references/ui-screenshot-evidence.md +61 -0
  84. package/dist/skills/agnostic/planning/stack/SKILL.md +89 -0
  85. package/dist/skills/agnostic/planning/swarm-planner/SKILL.md +179 -0
  86. package/dist/skills/agnostic/quality/autoreview/SKILL.md +191 -0
  87. package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +1176 -0
  88. package/dist/skills/agnostic/quality/autoreview/scripts/test-review-harness +176 -0
  89. package/dist/skills/agnostic/quality/codebase-design/DEEPENING.md +34 -0
  90. package/dist/skills/agnostic/quality/codebase-design/DESIGN-IT-TWICE.md +43 -0
  91. package/dist/skills/agnostic/quality/codebase-design/SKILL.md +60 -0
  92. package/dist/skills/agnostic/quality/simplify/SKILL.md +14 -0
  93. package/dist/skills/agnostic/quality/tdd/SKILL.md +139 -0
  94. package/dist/skills/agnostic/quality/tdd/deep-modules.md +33 -0
  95. package/dist/skills/agnostic/quality/tdd/high-signal-tests.md +39 -0
  96. package/dist/skills/agnostic/quality/tdd/interface-design.md +31 -0
  97. package/dist/skills/agnostic/quality/tdd/mocking.md +59 -0
  98. package/dist/skills/agnostic/quality/tdd/refactoring.md +10 -0
  99. package/dist/skills/agnostic/quality/tdd/tests.md +61 -0
  100. package/dist/skills/agnostic/repo-asset-management/SKILL.md +28 -0
  101. package/dist/skills/agnostic/repo-asset-management/references/acceptance.md +6 -0
  102. package/dist/skills/agnostic/repo-asset-management/references/azure.md +11 -0
  103. package/dist/skills/agnostic/repo-asset-management/references/bitbucket.md +8 -0
  104. package/dist/skills/agnostic/repo-asset-management/references/github.md +11 -0
  105. package/dist/skills/agnostic/repo-asset-management/references/gitlab.md +11 -0
  106. package/dist/skills/agnostic/requirements/grilling/SKILL.md +38 -0
  107. package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +46 -0
  108. package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +157 -0
  109. package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +71 -0
  110. package/dist/skills/agnostic/requirements/requirements-grill/references/wiki-output.md +101 -0
  111. package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +67 -0
  112. package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +264 -0
  113. package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +85 -0
  114. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +69 -0
  115. package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +66 -0
  116. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +63 -0
  117. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +224 -0
  118. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +76 -0
  119. package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +146 -0
  120. package/dist/skills/agnostic/research/improve-codebase-architecture/REFERENCE.md +78 -0
  121. package/dist/skills/agnostic/research/improve-codebase-architecture/SKILL.md +80 -0
  122. package/dist/skills/agnostic/research/parallel-research/SKILL.md +68 -0
  123. package/dist/skills/agnostic/research/parallel-research/agents/openai.yaml +4 -0
  124. package/dist/skills/agnostic/research/prototype/LOGIC.md +31 -0
  125. package/dist/skills/agnostic/research/prototype/SKILL.md +31 -0
  126. package/dist/skills/agnostic/research/prototype/UI.md +29 -0
  127. package/dist/skills/agnostic/subagents/swarm-planner/SKILL.md +179 -0
  128. package/dist/skills/frameworks/better-auth/better-auth-best-practices/SKILL.md +166 -0
  129. package/dist/skills/frameworks/better-auth/better-auth-security-best-practices/SKILL.MD +432 -0
  130. package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +116 -0
  131. package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +98 -0
  132. package/dist/skills/frameworks/effect/effect-authoring/references/effect-atom-patterns.md +257 -0
  133. package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +144 -0
  134. package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +156 -0
  135. package/dist/skills/frameworks/effect/effect-authoring/references/otel-patterns.md +113 -0
  136. package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +146 -0
  137. package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +96 -0
  138. package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +4 -0
  139. package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +68 -0
  140. package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +517 -0
  141. package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +392 -0
  142. package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +653 -0
  143. package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +464 -0
  144. package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +287 -0
  145. package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +495 -0
  146. package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +342 -0
  147. package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +418 -0
  148. package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +353 -0
  149. package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +299 -0
  150. package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +65 -0
  151. package/dist/skills/frameworks/effect/effect-recoverable-actions/agents/openai.yaml +4 -0
  152. package/dist/skills/frameworks/effect/effect-recoverable-actions/references/flow-examples.md +154 -0
  153. package/dist/skills/frameworks/effect/effect-recoverable-actions/references/source-backed-primitives.md +104 -0
  154. package/dist/skills/frameworks/effect/effect-recoverable-actions/references/strategy-matrix.md +34 -0
  155. package/dist/skills/frameworks/effect/effect-recoverable-actions/references/test-matrix.md +36 -0
  156. package/dist/skills/frameworks/elysia/elysiajs/SKILL.md +475 -0
  157. package/dist/skills/frameworks/elysia/elysiajs/examples/basic.ts +9 -0
  158. package/dist/skills/frameworks/elysia/elysiajs/examples/body-parser.ts +33 -0
  159. package/dist/skills/frameworks/elysia/elysiajs/examples/complex.ts +112 -0
  160. package/dist/skills/frameworks/elysia/elysiajs/examples/cookie.ts +45 -0
  161. package/dist/skills/frameworks/elysia/elysiajs/examples/error.ts +38 -0
  162. package/dist/skills/frameworks/elysia/elysiajs/examples/file.ts +10 -0
  163. package/dist/skills/frameworks/elysia/elysiajs/examples/guard.ts +34 -0
  164. package/dist/skills/frameworks/elysia/elysiajs/examples/map-response.ts +15 -0
  165. package/dist/skills/frameworks/elysia/elysiajs/examples/redirect.ts +6 -0
  166. package/dist/skills/frameworks/elysia/elysiajs/examples/rename.ts +32 -0
  167. package/dist/skills/frameworks/elysia/elysiajs/examples/schema.ts +61 -0
  168. package/dist/skills/frameworks/elysia/elysiajs/examples/state.ts +6 -0
  169. package/dist/skills/frameworks/elysia/elysiajs/examples/upload-file.ts +20 -0
  170. package/dist/skills/frameworks/elysia/elysiajs/examples/websocket.ts +25 -0
  171. package/dist/skills/frameworks/elysia/elysiajs/integrations/ai-sdk.md +92 -0
  172. package/dist/skills/frameworks/elysia/elysiajs/integrations/astro.md +59 -0
  173. package/dist/skills/frameworks/elysia/elysiajs/integrations/better-auth.md +117 -0
  174. package/dist/skills/frameworks/elysia/elysiajs/integrations/cloudflare-worker.md +95 -0
  175. package/dist/skills/frameworks/elysia/elysiajs/integrations/deno.md +34 -0
  176. package/dist/skills/frameworks/elysia/elysiajs/integrations/drizzle.md +258 -0
  177. package/dist/skills/frameworks/elysia/elysiajs/integrations/expo.md +95 -0
  178. package/dist/skills/frameworks/elysia/elysiajs/integrations/nextjs.md +103 -0
  179. package/dist/skills/frameworks/elysia/elysiajs/integrations/nodejs.md +64 -0
  180. package/dist/skills/frameworks/elysia/elysiajs/integrations/nuxt.md +67 -0
  181. package/dist/skills/frameworks/elysia/elysiajs/integrations/prisma.md +93 -0
  182. package/dist/skills/frameworks/elysia/elysiajs/integrations/react-email.md +134 -0
  183. package/dist/skills/frameworks/elysia/elysiajs/integrations/sveltekit.md +53 -0
  184. package/dist/skills/frameworks/elysia/elysiajs/integrations/tanstack-start.md +87 -0
  185. package/dist/skills/frameworks/elysia/elysiajs/integrations/vercel.md +55 -0
  186. package/dist/skills/frameworks/elysia/elysiajs/patterns/mvc.md +380 -0
  187. package/dist/skills/frameworks/elysia/elysiajs/plugins/bearer.md +30 -0
  188. package/dist/skills/frameworks/elysia/elysiajs/plugins/cors.md +141 -0
  189. package/dist/skills/frameworks/elysia/elysiajs/plugins/cron.md +265 -0
  190. package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-apollo.md +90 -0
  191. package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-yoga.md +87 -0
  192. package/dist/skills/frameworks/elysia/elysiajs/plugins/html.md +188 -0
  193. package/dist/skills/frameworks/elysia/elysiajs/plugins/jwt.md +197 -0
  194. package/dist/skills/frameworks/elysia/elysiajs/plugins/openapi.md +246 -0
  195. package/dist/skills/frameworks/elysia/elysiajs/plugins/opentelemetry.md +167 -0
  196. package/dist/skills/frameworks/elysia/elysiajs/plugins/server-timing.md +71 -0
  197. package/dist/skills/frameworks/elysia/elysiajs/plugins/static.md +84 -0
  198. package/dist/skills/frameworks/elysia/elysiajs/references/bun-fullstack-dev-server.md +129 -0
  199. package/dist/skills/frameworks/elysia/elysiajs/references/cookie.md +187 -0
  200. package/dist/skills/frameworks/elysia/elysiajs/references/deployment.md +413 -0
  201. package/dist/skills/frameworks/elysia/elysiajs/references/eden.md +158 -0
  202. package/dist/skills/frameworks/elysia/elysiajs/references/lifecycle.md +198 -0
  203. package/dist/skills/frameworks/elysia/elysiajs/references/macro.md +83 -0
  204. package/dist/skills/frameworks/elysia/elysiajs/references/plugin.md +207 -0
  205. package/dist/skills/frameworks/elysia/elysiajs/references/route.md +331 -0
  206. package/dist/skills/frameworks/elysia/elysiajs/references/testing.md +385 -0
  207. package/dist/skills/frameworks/elysia/elysiajs/references/validation.md +491 -0
  208. package/dist/skills/frameworks/elysia/elysiajs/references/websocket.md +250 -0
  209. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/branch-protection.yml +24 -0
  210. package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/deploy.yml +61 -0
  211. package/dist/skills/frameworks/nestjs/nestjs-best-practices/AGENTS.md +5958 -0
  212. package/dist/skills/frameworks/nestjs/nestjs-best-practices/SKILL.md +130 -0
  213. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-dto-serialization.md +182 -0
  214. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-interceptors.md +202 -0
  215. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-pipes.md +205 -0
  216. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-versioning.md +191 -0
  217. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-avoid-circular-deps.md +80 -0
  218. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-feature-modules.md +82 -0
  219. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-module-sharing.md +141 -0
  220. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-single-responsibility.md +106 -0
  221. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-events.md +108 -0
  222. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-repository-pattern.md +97 -0
  223. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-avoid-n-plus-one.md +139 -0
  224. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-migrations.md +129 -0
  225. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-transactions.md +140 -0
  226. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-graceful-shutdown.md +222 -0
  227. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-config-module.md +167 -0
  228. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-logging.md +232 -0
  229. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-avoid-service-locator.md +104 -0
  230. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-interface-segregation.md +165 -0
  231. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-liskov-substitution.md +221 -0
  232. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-prefer-constructor-injection.md +86 -0
  233. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-scope-awareness.md +94 -0
  234. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-use-interfaces-tokens.md +101 -0
  235. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-handle-async-errors.md +125 -0
  236. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-throw-http-exceptions.md +114 -0
  237. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-use-exception-filters.md +140 -0
  238. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-health-checks.md +226 -0
  239. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-patterns.md +167 -0
  240. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-queues.md +252 -0
  241. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-async-hooks.md +109 -0
  242. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-lazy-loading.md +121 -0
  243. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-optimize-database.md +131 -0
  244. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-use-caching.md +128 -0
  245. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-auth-jwt.md +146 -0
  246. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-rate-limiting.md +125 -0
  247. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-sanitize-output.md +139 -0
  248. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-use-guards.md +135 -0
  249. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-validate-all-input.md +150 -0
  250. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-e2e-supertest.md +178 -0
  251. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-mock-external-services.md +179 -0
  252. package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-use-testing-module.md +153 -0
  253. package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build-agents.ts +299 -0
  254. package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build.sh +16 -0
  255. package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package-lock.json +237 -0
  256. package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package.json +15 -0
  257. package/dist/skills/frameworks/nestjs/nestjs-expert/SKILL.md +208 -0
  258. package/dist/skills/frameworks/nestjs/nestjs-expert/references/authentication.md +166 -0
  259. package/dist/skills/frameworks/nestjs/nestjs-expert/references/controllers-routing.md +111 -0
  260. package/dist/skills/frameworks/nestjs/nestjs-expert/references/dtos-validation.md +153 -0
  261. package/dist/skills/frameworks/nestjs/nestjs-expert/references/migration-from-express.md +1237 -0
  262. package/dist/skills/frameworks/nestjs/nestjs-expert/references/services-di.md +140 -0
  263. package/dist/skills/frameworks/nestjs/nestjs-expert/references/testing-patterns.md +186 -0
  264. package/dist/skills/frameworks/nextjs/next-best-practices/SKILL.md +153 -0
  265. package/dist/skills/frameworks/nextjs/next-best-practices/async-patterns.md +87 -0
  266. package/dist/skills/frameworks/nextjs/next-best-practices/bundling.md +180 -0
  267. package/dist/skills/frameworks/nextjs/next-best-practices/data-patterns.md +297 -0
  268. package/dist/skills/frameworks/nextjs/next-best-practices/debug-tricks.md +105 -0
  269. package/dist/skills/frameworks/nextjs/next-best-practices/directives.md +73 -0
  270. package/dist/skills/frameworks/nextjs/next-best-practices/error-handling.md +227 -0
  271. package/dist/skills/frameworks/nextjs/next-best-practices/file-conventions.md +140 -0
  272. package/dist/skills/frameworks/nextjs/next-best-practices/font.md +245 -0
  273. package/dist/skills/frameworks/nextjs/next-best-practices/functions.md +108 -0
  274. package/dist/skills/frameworks/nextjs/next-best-practices/hydration-error.md +91 -0
  275. package/dist/skills/frameworks/nextjs/next-best-practices/image.md +173 -0
  276. package/dist/skills/frameworks/nextjs/next-best-practices/metadata.md +301 -0
  277. package/dist/skills/frameworks/nextjs/next-best-practices/parallel-routes.md +287 -0
  278. package/dist/skills/frameworks/nextjs/next-best-practices/route-handlers.md +146 -0
  279. package/dist/skills/frameworks/nextjs/next-best-practices/rsc-boundaries.md +159 -0
  280. package/dist/skills/frameworks/nextjs/next-best-practices/runtime-selection.md +39 -0
  281. package/dist/skills/frameworks/nextjs/next-best-practices/scripts.md +141 -0
  282. package/dist/skills/frameworks/nextjs/next-best-practices/self-hosting.md +371 -0
  283. package/dist/skills/frameworks/nextjs/next-best-practices/suspense-boundaries.md +67 -0
  284. package/dist/skills/frameworks/nextjs/next-cache-components/SKILL.md +360 -0
  285. package/dist/skills/frameworks/react/async-react-patterns/SKILL.md +78 -0
  286. package/dist/skills/frameworks/react/react-doctor/SKILL.md +64 -0
  287. package/dist/skills/frameworks/react/react-doctor/references/explain.md +71 -0
  288. package/dist/skills/frameworks/react/vercel-composition-patterns/AGENTS.md +946 -0
  289. package/dist/skills/frameworks/react/vercel-composition-patterns/SKILL.md +89 -0
  290. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
  291. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-compound-components.md +112 -0
  292. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-children-over-render-props.md +87 -0
  293. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-explicit-variants.md +100 -0
  294. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/react19-no-forwardref.md +42 -0
  295. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-context-interface.md +191 -0
  296. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-decouple-implementation.md +113 -0
  297. package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-lift-state.md +125 -0
  298. package/dist/skills/frameworks/react/vercel-react-best-practices/AGENTS.md +3750 -0
  299. package/dist/skills/frameworks/react/vercel-react-best-practices/SKILL.md +148 -0
  300. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-effect-event-deps.md +56 -0
  301. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  302. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
  303. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
  304. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-api-routes.md +38 -0
  305. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +37 -0
  306. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-defer-await.md +82 -0
  307. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-dependencies.md +51 -0
  308. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-parallel.md +28 -0
  309. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
  310. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-barrel-imports.md +60 -0
  311. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
  312. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
  313. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  314. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-preload.md +50 -0
  315. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
  316. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
  317. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
  318. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
  319. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
  320. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
  321. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
  322. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
  323. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
  324. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-early-exit.md +50 -0
  325. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-flatmap-filter.md +60 -0
  326. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
  327. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-index-maps.md +37 -0
  328. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
  329. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
  330. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-request-idle-callback.md +105 -0
  331. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
  332. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
  333. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-activity.md +26 -0
  334. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  335. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
  336. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
  337. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  338. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  339. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
  340. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-resource-hints.md +85 -0
  341. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-script-defer-async.md +68 -0
  342. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
  343. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
  344. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
  345. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
  346. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
  347. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
  348. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
  349. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  350. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
  351. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo.md +44 -0
  352. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
  353. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-no-inline-components.md +82 -0
  354. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
  355. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +64 -0
  356. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
  357. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-deferred-value.md +59 -0
  358. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
  359. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
  360. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
  361. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
  362. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-react.md +76 -0
  363. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
  364. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-hoist-static-io.md +149 -0
  365. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-no-shared-module-state.md +50 -0
  366. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
  367. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +34 -0
  368. package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-serialization.md +38 -0
  369. package/dist/skills/frameworks/tanstack-query/tanstack-query/.claude-plugin/plugin.json +12 -0
  370. package/dist/skills/frameworks/tanstack-query/tanstack-query/SKILL.md +849 -0
  371. package/dist/skills/frameworks/tanstack-query/tanstack-query/assets/example-template.txt +14 -0
  372. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +304 -0
  373. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/common-patterns.md +271 -0
  374. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/example-reference.md +26 -0
  375. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/testing.md +282 -0
  376. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/top-errors.md +332 -0
  377. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/typescript-patterns.md +291 -0
  378. package/dist/skills/frameworks/tanstack-query/tanstack-query/references/v4-to-v5-migration.md +231 -0
  379. package/dist/skills/frameworks/tanstack-query/tanstack-query/rules/tanstack-query.md +126 -0
  380. package/dist/skills/frameworks/tanstack-query/tanstack-query/scripts/example-script.sh +15 -0
  381. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
  382. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +248 -0
  383. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/error-boundary.tsx +243 -0
  384. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/package.json +31 -0
  385. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/provider-setup.tsx +50 -0
  386. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/query-client-config.ts +72 -0
  387. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-infinite-query.tsx +214 -0
  388. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-basic.tsx +201 -0
  389. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
  390. package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-query-basic.tsx +119 -0
  391. package/dist/skills/frameworks/tanstack-start/tanstack-start/SKILL.md +250 -0
  392. package/dist/skills/frameworks/trpc/tanstack-query/.claude-plugin/plugin.json +12 -0
  393. package/dist/skills/frameworks/trpc/tanstack-query/SKILL.md +1058 -0
  394. package/dist/skills/frameworks/trpc/tanstack-query/assets/example-template.txt +14 -0
  395. package/dist/skills/frameworks/trpc/tanstack-query/references/best-practices.md +304 -0
  396. package/dist/skills/frameworks/trpc/tanstack-query/references/common-patterns.md +271 -0
  397. package/dist/skills/frameworks/trpc/tanstack-query/references/example-reference.md +26 -0
  398. package/dist/skills/frameworks/trpc/tanstack-query/references/testing.md +282 -0
  399. package/dist/skills/frameworks/trpc/tanstack-query/references/top-errors.md +332 -0
  400. package/dist/skills/frameworks/trpc/tanstack-query/references/typescript-patterns.md +291 -0
  401. package/dist/skills/frameworks/trpc/tanstack-query/references/v4-to-v5-migration.md +231 -0
  402. package/dist/skills/frameworks/trpc/tanstack-query/rules/tanstack-query.md +126 -0
  403. package/dist/skills/frameworks/trpc/tanstack-query/scripts/example-script.sh +15 -0
  404. package/dist/skills/frameworks/trpc/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
  405. package/dist/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +248 -0
  406. package/dist/skills/frameworks/trpc/tanstack-query/templates/error-boundary.tsx +243 -0
  407. package/dist/skills/frameworks/trpc/tanstack-query/templates/package.json +31 -0
  408. package/dist/skills/frameworks/trpc/tanstack-query/templates/provider-setup.tsx +50 -0
  409. package/dist/skills/frameworks/trpc/tanstack-query/templates/query-client-config.ts +72 -0
  410. package/dist/skills/frameworks/trpc/tanstack-query/templates/use-infinite-query.tsx +214 -0
  411. package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-basic.tsx +201 -0
  412. package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
  413. package/dist/skills/frameworks/trpc/tanstack-query/templates/use-query-basic.tsx +119 -0
  414. package/dist/skills/frameworks/turborepo/turborepo/SKILL.md +914 -0
  415. package/dist/skills/frameworks/turborepo/turborepo/command/turborepo.md +70 -0
  416. package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/RULE.md +241 -0
  417. package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/dependencies.md +246 -0
  418. package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/packages.md +335 -0
  419. package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/structure.md +270 -0
  420. package/dist/skills/frameworks/turborepo/turborepo/references/boundaries/RULE.md +126 -0
  421. package/dist/skills/frameworks/turborepo/turborepo/references/caching/RULE.md +107 -0
  422. package/dist/skills/frameworks/turborepo/turborepo/references/caching/gotchas.md +169 -0
  423. package/dist/skills/frameworks/turborepo/turborepo/references/caching/remote-cache.md +127 -0
  424. package/dist/skills/frameworks/turborepo/turborepo/references/ci/RULE.md +79 -0
  425. package/dist/skills/frameworks/turborepo/turborepo/references/ci/github-actions.md +162 -0
  426. package/dist/skills/frameworks/turborepo/turborepo/references/ci/patterns.md +145 -0
  427. package/dist/skills/frameworks/turborepo/turborepo/references/ci/vercel.md +103 -0
  428. package/dist/skills/frameworks/turborepo/turborepo/references/cli/RULE.md +100 -0
  429. package/dist/skills/frameworks/turborepo/turborepo/references/cli/commands.md +297 -0
  430. package/dist/skills/frameworks/turborepo/turborepo/references/configuration/RULE.md +211 -0
  431. package/dist/skills/frameworks/turborepo/turborepo/references/configuration/global-options.md +187 -0
  432. package/dist/skills/frameworks/turborepo/turborepo/references/configuration/gotchas.md +348 -0
  433. package/dist/skills/frameworks/turborepo/turborepo/references/configuration/tasks.md +285 -0
  434. package/dist/skills/frameworks/turborepo/turborepo/references/environment/RULE.md +96 -0
  435. package/dist/skills/frameworks/turborepo/turborepo/references/environment/gotchas.md +141 -0
  436. package/dist/skills/frameworks/turborepo/turborepo/references/environment/modes.md +101 -0
  437. package/dist/skills/frameworks/turborepo/turborepo/references/filtering/RULE.md +148 -0
  438. package/dist/skills/frameworks/turborepo/turborepo/references/filtering/patterns.md +152 -0
  439. package/dist/skills/frameworks/turborepo/turborepo/references/watch/RULE.md +99 -0
  440. package/dist/skills/languages/python/async-python-patterns/SKILL.md +735 -0
  441. package/dist/skills/languages/python/python-code-style/SKILL.md +360 -0
  442. package/dist/skills/languages/python/python-design-patterns/SKILL.md +433 -0
  443. package/dist/skills/languages/python/python-project-structure/SKILL.md +252 -0
  444. package/dist/skills/languages/python/python-testing-patterns/SKILL.md +622 -0
  445. package/dist/skills/languages/python/python-testing-patterns/references/advanced-patterns.md +411 -0
  446. package/dist/skills/languages/typescript/quality-types/SKILL.md +93 -0
  447. package/dist/skills/phases/bug-discovery-phase/REFERENCE.md +193 -0
  448. package/dist/skills/phases/bug-discovery-phase/SKILL.md +45 -0
  449. package/dist/skills/phases/bug-resolution-phase/REFERENCE.md +183 -0
  450. package/dist/skills/phases/bug-resolution-phase/SKILL.md +49 -0
  451. package/dist/skills/phases/debugging-phase/SKILL.md +88 -0
  452. package/dist/skills/phases/delivery-phase/SKILL.md +51 -0
  453. package/dist/skills/phases/delivery-phase/phases/closeout.md +35 -0
  454. package/dist/skills/phases/delivery-phase/phases/debug.md +30 -0
  455. package/dist/skills/phases/delivery-phase/phases/docs-ingest.md +27 -0
  456. package/dist/skills/phases/delivery-phase/phases/implement.md +32 -0
  457. package/dist/skills/phases/delivery-phase/phases/plan.md +27 -0
  458. package/dist/skills/phases/delivery-phase/phases/review.md +29 -0
  459. package/dist/skills/phases/delivery-phase/phases/router.md +46 -0
  460. package/dist/skills/phases/delivery-phase/phases/spec.md +26 -0
  461. package/dist/skills/phases/delivery-phase/references/artifact-state.md +42 -0
  462. package/dist/skills/phases/delivery-phase/references/phase-handoff.md +27 -0
  463. package/dist/skills/phases/design-phase/SKILL.md +47 -0
  464. package/dist/skills/phases/design-phase/phases/approval.md +37 -0
  465. package/dist/skills/phases/design-phase/phases/backlog.md +28 -0
  466. package/dist/skills/phases/design-phase/phases/delivery-handoff.md +29 -0
  467. package/dist/skills/phases/design-phase/phases/grill.md +37 -0
  468. package/dist/skills/phases/design-phase/phases/intake.md +25 -0
  469. package/dist/skills/phases/design-phase/phases/prototype.md +30 -0
  470. package/dist/skills/phases/design-phase/phases/router.md +66 -0
  471. package/dist/skills/phases/docs-ingest-phase/SKILL.md +46 -0
  472. package/dist/skills/phases/docs-ingest-phase/agents/openai.yaml +4 -0
  473. package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +57 -0
  474. package/dist/skills/phases/docs-ingest-phase/phases/public-docs.md +52 -0
  475. package/dist/skills/phases/docs-ingest-phase/phases/router.md +42 -0
  476. package/dist/skills/phases/docs-ingest-phase/references/concept-pages.md +70 -0
  477. package/dist/skills/phases/docs-ingest-phase/references/flow-pages.md +56 -0
  478. package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +74 -0
  479. package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +96 -0
  480. package/dist/skills/phases/docs-ingest-phase/references/public-docs.md +90 -0
  481. package/dist/skills/phases/docs-ingest-phase/references/repo-docs.md +38 -0
  482. package/dist/skills/phases/docs-ingest-phase/references/wiki-ingest.md +134 -0
  483. package/dist/skills/phases/goalify/EXAMPLES.md +11 -0
  484. package/dist/skills/phases/goalify/SKILL.md +65 -0
  485. package/dist/skills/phases/requirements-phase/SKILL.md +70 -0
  486. package/dist/skills/phases/resolve-debt-phase/SKILL.md +87 -0
  487. package/dist/skills/phases/review-phase/REFERENCE.md +106 -0
  488. package/dist/skills/phases/review-phase/SKILL.md +46 -0
  489. package/package.json +1 -1
@@ -0,0 +1,103 @@
1
+ ---
2
+ name: implement-spec
3
+ description: Implement an approved spec folder while keeping `IMPLEMENTATION-NOTES.md`, `PLAN.md`, and spec-linked tech debt in sync. Use when a reviewed spec already has a `PLAN.md` and execution should proceed through the default single-worker sequential path or explicit parallel worker waves.
4
+ ---
5
+
6
+ # Implement Spec
7
+
8
+ ## Contract
9
+
10
+ - **Role:** higher-order execution orchestrator
11
+ - **Entrypoint type:** public entrypoint
12
+ - **Upstream:** reviewed spec folder with `SPEC.md` and `PLAN.md`
13
+ - **Delegates to:** `$tdd`, `$codebase-design`, `$simplify`, tiny `$requirements-phase` sessions for debt ambiguity, and internal worker orchestration in sequential and parallel modes
14
+ - **Downstream:** `docs-ingest-phase` when the resulting spec folder should be ingested into domain knowledge
15
+ - **Entry conditions:** existing reviewed spec folder; stop and use `create-plan` if `PLAN.md` is missing
16
+ - **Stop conditions:** shared acceptance audit complete, final manual review checklist written, spec folder finalized, blocked work reported honestly
17
+
18
+ ## Required Inner Skills
19
+
20
+ - MUST use `$tdd`
21
+ - MUST use `$codebase-design`
22
+ - MUST use `$simplify`
23
+ Use `$agent-browser` when any task `review_mode` is `browser` or `mixed`.
24
+
25
+ ## Sequential responsibilities
26
+
27
+ When `implement-spec` runs in `sequential` mode, it must follow [references/sequential.md](references/sequential.md).
28
+
29
+ That means `implement-spec` itself owns orchestration and validation, while exactly one implementation worker owns the sequential coding loop. This is a hard gate: do not implement in the parent main thread when worker execution is unavailable. Stop, repair worker routing, or report the blocker.
30
+
31
+ ## Parallel responsibilities
32
+
33
+ When `implement-spec` runs in `parallel` mode, it must follow [references/parallel.md](references/parallel.md) as the full orchestration contract.
34
+
35
+ That means `implement-spec` itself owns all of the following in parallel mode:
36
+
37
+ - parsing `PLAN.md`
38
+ - finding the currently unblocked tasks from `depends_on`
39
+ - launching workers in waves
40
+ - reviewing worker outputs
41
+ - validating each wave before advancing
42
+ - ensuring `PLAN.md` and `IMPLEMENTATION-NOTES.md` are updated after each completed wave
43
+
44
+ ## Quick start
45
+
46
+ 1. Resolve the target spec folder by checking, in order: `apps/wiki/content/docs/project/specs/<domain>/<spec>/`, legacy `apps/wiki/specs/<domain>/<spec>/`, then `docs/specs/<domain>/<spec>/`.
47
+ 2. Read `references/lifecycle.md` and follow the shared execution contract exactly.
48
+ 3. Choose the execution mode explicitly:
49
+ - Read `references/sequential.md` for default single-worker sequential execution.
50
+ - Read `references/parallel.md` for wave-based worker execution.
51
+ 4. Record the chosen mode under **Execution mode** in `IMPLEMENTATION-NOTES.md` before coding.
52
+ 5. Execute only the chosen mode. Do not mix modes inside one run.
53
+ 6. After each completed task or wave, update `PLAN.md`, `IMPLEMENTATION-NOTES.md`, and spec-linked tech debt before advancing.
54
+ 7. Use `$codebase-design` vocabulary while reviewing each worker change: interface, seam, adapter, depth, leverage, locality, and test surface.
55
+ 8. Resolve implementation debt as soon as it appears. Do not leave "later" work, TODOs, temporary compromises, or vague follow-up debt.
56
+ 9. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
57
+ 10. If backlog sync is in scope, keep epic/story bodies product-facing and use native metadata or comments instead of execution handoff rewrites.
58
+ 11. For UI implementation changes, follow [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md) and use `repo-asset-management` for durable before/after asset links.
59
+ 12. Finish with the shared acceptance audit, manual review checklist, and spec finalization contract.
60
+
61
+ ## Stack-aware branch gate
62
+
63
+ Before coding, inspect `PLAN.md` for `Branch/Base Intent`.
64
+
65
+ - If no `Branch/Base Intent` exists, continue with the normal execution flow.
66
+ - If it exists, verify the current branch is the intended child branch based on
67
+ the intended parent branch, or create/switch to the intended child branch from
68
+ the intended parent branch before implementation starts.
69
+ - Do not reinterpret intra-epic task dependencies as separate PRs.
70
+ - Default to PR-after-implementation: implement, commit, push, create or update
71
+ the PR with the recorded base, then run `stack sync --dry-run`.
72
+ - If the dry-run preview is correct and reports pending stack changes, run
73
+ `stack sync`.
74
+ - Early draft PRs are opt-in only when the user explicitly asks for them.
75
+ - If `stack` is unavailable and `Branch/Base Intent` exists, block the
76
+ stack-dependent workflow. Missing `stack` does not block independent
77
+ trunk-based work.
78
+
79
+ ## Mode selection
80
+
81
+ Choose `sequential` when:
82
+
83
+ - the user wants single-threaded execution
84
+ - tasks are tightly coupled
85
+ - parallel worker handoff cost would outweigh parallelism
86
+ - the user did not choose a mode
87
+
88
+ Choose `parallel` when:
89
+
90
+ - the user wants explicit parallel execution
91
+ - the plan contains independent waves
92
+ - disjoint write scopes make worker fan-out safe
93
+
94
+ If the user already chose a mode, honor it. If not, choose `sequential` and state that it spawns exactly one implementation worker plus parent validation.
95
+
96
+ ## Advanced features
97
+
98
+ - Shared lifecycle, notes contract, tech-debt rules, acceptance audit, finalization: see [references/lifecycle.md](references/lifecycle.md)
99
+ - UI before/after screenshot evidence and PR handoff links: see [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md)
100
+ - Sequential execution specifics: see [references/sequential.md](references/sequential.md)
101
+ - Parallel execution specifics: see [references/parallel.md](references/parallel.md)
102
+ - Parallel plan parsing and wave construction: see [references/parallel-orchestration.md](references/parallel-orchestration.md)
103
+ - Parallel worker brief contract: see [references/parallel-worker-brief.md](references/parallel-worker-brief.md)
@@ -0,0 +1,65 @@
1
+ # Implementation Notes
2
+
3
+ ## Summary
4
+
5
+ -
6
+
7
+ ## Execution Mode
8
+
9
+ -
10
+
11
+ ## Deviations From the Plan
12
+
13
+ -
14
+
15
+ ## Surprises and Decisions
16
+
17
+ -
18
+
19
+ ## Sanity Checks
20
+
21
+ | Check | Result | Notes |
22
+ |------|--------|-------|
23
+ | | | |
24
+
25
+ ## UI Evidence Links
26
+
27
+ | Surface | Viewport | Before | After | Notes |
28
+ |---------|----------|--------|-------|-------|
29
+ | | | | | |
30
+
31
+ ## Visual Evidence Acceptance Map
32
+
33
+ | Source | Backlog attachment or fallback | PR-ready before/after evidence |
34
+ |--------|--------------------------------|--------------------------------|
35
+ | | | |
36
+
37
+ ## Acceptance Criteria Status
38
+
39
+ | Criterion | Status | Notes |
40
+ |-----------|--------|-------|
41
+ | | | |
42
+
43
+ ## Manual Review Checklist
44
+
45
+ | Area | Check | How to perform | Expected result |
46
+ |------|-------|----------------|-----------------|
47
+ | | | | |
48
+
49
+ ## Pre-existing Issues
50
+
51
+ -
52
+
53
+ ## Out of Scope Observations
54
+
55
+ -
56
+
57
+ ## Remaining Work
58
+
59
+ -
60
+
61
+ ## Steering
62
+
63
+ | Date | Feedback | Changes |
64
+ |------|----------|---------|
65
+ | | | |
@@ -0,0 +1,209 @@
1
+ # Implement Spec Lifecycle
2
+
3
+ ## Shared contract
4
+
5
+ `implement-spec` is the only public execution entrypoint.
6
+
7
+ It routes to one of two approaches:
8
+
9
+ - `sequential` — one implementation worker, parent orchestration, parent validation
10
+ - `parallel` — wave-based execution with explicit worker orchestration
11
+
12
+ Do not recreate wrapper skills for these modes. Keep the routing here and load only the needed mode reference.
13
+
14
+ ## 1. Require an existing reviewed spec folder
15
+
16
+ Execution must stay grounded in the first matching spec folder:
17
+
18
+ 1. `apps/wiki/content/docs/project/specs/<domain>/<spec>/`
19
+ 2. `apps/wiki/specs/<domain>/<spec>/`
20
+ 3. `docs/specs/<domain>/<spec>/`
21
+
22
+ Required files:
23
+
24
+ - `SPEC.md`
25
+ - `PLAN.md`
26
+
27
+ If `SPEC.md` is missing, stop and report the resolved path error.
28
+
29
+ If `PLAN.md` is missing, stop and use `create-plan`. Do not auto-generate plans from this skill.
30
+
31
+ ## 2. Resolve the target folder
32
+
33
+ Accept either:
34
+
35
+ - a domain plus spec folder name
36
+ - a full spec folder path
37
+ - a direct `SPEC.md` or `PLAN.md` path
38
+
39
+ Normalize to the containing spec folder before doing any work.
40
+
41
+ ## 3. Load the working set
42
+
43
+ Read, in this order:
44
+
45
+ 1. `apps/wiki/AGENTS.md`
46
+ 2. `<resolved-spec-folder>/SPEC.md`
47
+ 3. `<resolved-spec-folder>/PLAN.md`
48
+ 4. `<resolved-spec-folder>/IMPLEMENTATION-NOTES.md` if present
49
+ 5. `docs/reference/tech-debt/<domain>/<spec>.md` if present
50
+
51
+ If package or framework behavior matters, inspect source with `opensrc --modify false` before guessing.
52
+
53
+ ## 4. Prepare execution notes
54
+
55
+ Use [../assets/IMPLEMENTATION-NOTES-TEMPLATE.md](../assets/IMPLEMENTATION-NOTES-TEMPLATE.md).
56
+
57
+ - Create `IMPLEMENTATION-NOTES.md` from the template when missing.
58
+ - Append or refine when it already exists.
59
+ - Keep it current during the run, not only at the end.
60
+ - For UI implementation changes, load [ui-screenshot-evidence.md](ui-screenshot-evidence.md) and keep `## UI Evidence Links` current.
61
+
62
+ ## 5. Prepare the tech-debt ledger
63
+
64
+ Persistent implementation drift belongs in:
65
+
66
+ `docs/reference/tech-debt/<domain>/<spec>.md`
67
+
68
+ This file is not a dumping ground for avoidable "later" work.
69
+
70
+ Default rule: resolve debt immediately when it appears.
71
+
72
+ Forbidden debt language:
73
+
74
+ - "do this later"
75
+ - "temporary workaround"
76
+ - "future implementation"
77
+ - "follow-up cleanup"
78
+ - vague TODOs without an owner, decision, and blocker
79
+
80
+ Use the ledger only for debt that cannot be resolved inside the current run because it is outside the active goal, requires a human product/scope decision, or is blocked by an external dependency.
81
+
82
+ For every ledger entry, record:
83
+
84
+ - exact debt
85
+ - why it cannot be resolved now
86
+ - decision needed or external blocker
87
+ - owner or next action
88
+
89
+ If the debt is inside the active goal, fix it before advancing. If the debt is outside the active goal but affects the implementation decision, stop and run a tiny `$requirements-phase` clarification with one narrow question and a recommended answer. Continue only after the branch is closed, parked explicitly, or converted into an accepted scope change.
90
+
91
+ Do not create the file when nothing durable must survive the run.
92
+
93
+ ## 6. Shared execution invariants
94
+
95
+ - Mode is manual. The chosen approach decides the execution path.
96
+ - Do not switch modes mid-run unless the user explicitly redirects.
97
+ - Default to `sequential` when the user does not choose a mode.
98
+ - In `sequential`, keep implementation work inside exactly one worker; the parent coordinates, reviews, validates, and finalizes.
99
+ - If worker execution is unavailable, stop and repair worker routing or report the blocker. Do not implement in the parent main thread.
100
+ - Treat every `tdd_target` as required RED-first behavior, never optional guidance.
101
+ - Treat `tdd_status`, `red_command`, `expected_red_failure`, `green_command`, `reason_not_testable`, `red_evidence`, and `green_evidence` as the task completion contract.
102
+ - Treat `codebase_design_notes` as required design context for code-structure changes. Verify the implemented interface, seam, adapter strategy, and test surface match it, or update the notes with the real decision.
103
+ - For behavior-changing tasks, do not mark a task complete until real RED and GREEN evidence is recorded in `PLAN.md`.
104
+ - Accept missing RED/GREEN evidence only when the task has an explicit `reason_not_testable` or `tdd_status: not_applicable`.
105
+ - Do not accept `reason_not_testable` for forgotten RED. If code came first, recover by writing the public-result RED test, recording failure, patching to pass, and marking `tdd_status: recovered`.
106
+ - Treat every `review_mode` as required validation routing, never optional metadata.
107
+ - Keep an operator-visible execution board in the conversation so progress is obvious.
108
+ - Keep scope discipline. Out-of-scope findings that do not affect the current implementation go to `IMPLEMENTATION-NOTES.md`, not silent scope creep.
109
+ - Never leave sloppy debt, TODO placeholders, temporary compromises, or "later" implementation notes for in-goal work.
110
+ - When unclear debt affects the current implementation and the answer is not already in the spec/plan/backlog, pause for a tiny `$requirements-phase` clarification instead of guessing.
111
+ - If backlog sync is part of the run, keep epic and story bodies product-facing.
112
+ - Execution-time backlog sync may use comments, links, native status, and native relations.
113
+ - Never rewrite epic or story bodies with task ids, TDD targets, validation commands, or file lists.
114
+
115
+ ## 7. Shared upkeep after each completed unit
116
+
117
+ After each completed task or wave:
118
+
119
+ - update `PLAN.md` status
120
+ - append a concise execution log in `PLAN.md`
121
+ - record touched files in `PLAN.md`
122
+ - fill `red_evidence` and `green_evidence`, or the accepted non-testable reason, before marking behavior-changing work complete
123
+ - fill or reconcile `codebase_design_notes` when module shape, seam placement, adapters, or test surface changed
124
+ - update `IMPLEMENTATION-NOTES.md` with non-obvious decisions, surprises, or deviations
125
+ - for UI implementation changes, record durable before/after screenshot asset links in `IMPLEMENTATION-NOTES.md`
126
+ - resolve any in-goal debt before advancing
127
+ - update the spec-linked tech-debt file only for blocked or explicitly parked debt with exact owner/next action
128
+ - if backlog sync is in scope, prefer native metadata changes or concise comments over body rewrites
129
+
130
+ ## 8. Handle blockers honestly
131
+
132
+ If a task is blocked:
133
+
134
+ 1. record it in `IMPLEMENTATION-NOTES.md`
135
+ 2. update the spec-linked tech-debt file only when the blocker creates durable unresolved debt
136
+ 3. skip only tasks truly blocked by it
137
+ 4. finish all remaining reachable work
138
+ 5. report blocked tasks clearly at the end
139
+
140
+ Do not fake completion.
141
+
142
+ ## 9. Apply runtime-aware validation
143
+
144
+ Use the task `review_mode`:
145
+
146
+ - `cli`: tests, commands, type-checks, API calls, or non-visual checks
147
+ - `browser`: browser validation through `$agent-browser`
148
+ - `mixed`: both
149
+
150
+ If running inside a worktree and `portless` is available, prefer it for server-based validation to avoid port conflicts.
151
+
152
+ For UI implementation changes, runtime validation must also follow [ui-screenshot-evidence.md](ui-screenshot-evidence.md).
153
+
154
+ ## 10. Verify acceptance criteria
155
+
156
+ Re-read `SPEC.md` acceptance criteria and mark each one:
157
+
158
+ - met
159
+ - unmet
160
+ - blocked
161
+
162
+ Record a reason for every unmet or blocked item in `IMPLEMENTATION-NOTES.md`.
163
+
164
+ ## 11. Write the manual review checklist
165
+
166
+ Before finalization, `IMPLEMENTATION-NOTES.md` must contain `## Manual Review Checklist`.
167
+
168
+ This section is a user handoff checklist, not an agent completion tracker. Derive it from completed tasks, `review_mode`, `tdd_target`, acceptance criteria, touched public surfaces, deviations, and risky integrations.
169
+
170
+ Use exactly this table shape:
171
+
172
+ | Area | Check | How to perform | Expected result |
173
+ |------|-------|----------------|-----------------|
174
+
175
+ Rules:
176
+
177
+ - Browser or mixed review tasks must include concrete user flows to try end to end.
178
+ - CLI review tasks must include exact commands, fixtures, or scenarios the user can rerun.
179
+ - Include manual-only checks for product behavior, visual review, integration smoke, tracker/docs review, or anything automation cannot prove.
180
+ - Empty checklist sections are invalid.
181
+ - If no manual review applies, write one explicit row explaining why there is no user-verifiable surface.
182
+
183
+ ## 12. Finalize the spec folder
184
+
185
+ Before reporting back:
186
+
187
+ - remove empty sections from `IMPLEMENTATION-NOTES.md`
188
+ - ensure **Execution mode** reflects the mode actually used
189
+ - ensure **Sanity checks** lists only commands actually run
190
+ - ensure **UI Evidence Links** has durable before/after asset links for UI implementation changes, or an explicit reason no pair was possible
191
+ - ensure **Manual Review Checklist** has at least one concrete row, or one explicit non-applicability row
192
+ - ensure **Remaining work** matches any unmet or blocked criteria
193
+ - ensure no in-goal debt remains as TODO, follow-up cleanup, or vague later-work text
194
+ - ensure every tech-debt ledger entry has exact blocker/decision/owner/next action
195
+ - set `SPEC.md` frontmatter `status: implemented`
196
+ - set `PLAN.md` `**Status:** Complete` when that line exists
197
+ - ensure the PR body, PR comment, or PR-ready handoff snippet includes the same UI evidence links when UI changed
198
+
199
+ ## 13. Final report shape
200
+
201
+ Summarize:
202
+
203
+ - implementation status
204
+ - validation results
205
+ - key deviations or surprises
206
+ - acceptance-criteria status
207
+ - manual review checklist
208
+ - blocked tasks needing input
209
+ - whether the spec-linked tech-debt file was created or updated
@@ -0,0 +1,102 @@
1
+ # Parallel Orchestration
2
+
3
+ Use this reference to run the full parallel orchestration loop inside `implement-spec`.
4
+
5
+ ## Step 1: Parse request
6
+
7
+ Extract from the user request:
8
+
9
+ 1. the plan source to execute
10
+ 2. an optional task subset
11
+
12
+ If no subset is provided, execute the full plan.
13
+
14
+ ## Step 2: Read and parse `PLAN.md`
15
+
16
+ Find task subsections such as:
17
+
18
+ - `### T1:`
19
+ - `### Task 1.1:`
20
+
21
+ For each task, extract:
22
+
23
+ - task id and task name
24
+ - `depends_on`
25
+ - full content needed for execution:
26
+ - location
27
+ - description
28
+ - acceptance criteria
29
+ - validation
30
+ - `tdd_target`
31
+ - `review_mode`
32
+ - backlog metadata when present
33
+ - related tasks or plan-level constraints when they materially shape execution
34
+
35
+ Build the task list from this data.
36
+
37
+ If a task subset was requested:
38
+
39
+ - filter to the requested tasks
40
+ - include every required dependency first
41
+
42
+ ## Step 3: Build the current wave
43
+
44
+ A task is unblocked only when all ids in its `depends_on` list are complete.
45
+
46
+ For the current wave:
47
+
48
+ - collect every unblocked task
49
+ - exclude already-complete tasks
50
+ - exclude tasks blocked by failed prerequisites
51
+
52
+ Launch all unblocked tasks in parallel.
53
+
54
+ ## Step 4: Spawn workers
55
+
56
+ For each unblocked task:
57
+
58
+ - choose the worker template from `.agents/subagents/manifest.mjs`
59
+ - use the worker-brief contract from [parallel-worker-brief.md](parallel-worker-brief.md)
60
+ - keep the task scope narrow
61
+ - ensure the worker owns only the assigned task and its required validation
62
+
63
+ ## Step 5: Review and validate the wave
64
+
65
+ After the workers return:
66
+
67
+ 1. inspect their outputs for correctness and completeness
68
+ 2. compare the result against the task validation contract
69
+ 3. ensure the task log and touched files were written back into `PLAN.md`
70
+ 4. ensure non-obvious deviations or surprises were written into `IMPLEMENTATION-NOTES.md`
71
+ 5. retry or escalate failed work instead of quietly advancing
72
+
73
+ Move to the next wave only after the current wave is validated and logged.
74
+
75
+ ## Step 6: Repeat
76
+
77
+ Re-read the plan state and compute the next set of unblocked tasks.
78
+
79
+ Continue until:
80
+
81
+ - all reachable tasks are complete
82
+ - or a real blocker remains
83
+
84
+ ## Completion rule
85
+
86
+ A task is complete only when all of the following are true:
87
+
88
+ - the worker finished the assigned scope
89
+ - acceptance criteria are satisfied, not only partially implemented
90
+ - RED -> GREEN evidence exists for testable tasks, or an explicit `reason_not_testable` plus exact alternative verification exists
91
+ - validation evidence matches the task contract
92
+ - `PLAN.md` reflects the completed status and execution log
93
+ - touched files are recorded
94
+ - any non-obvious deviations are reflected in `IMPLEMENTATION-NOTES.md`
95
+
96
+ If any of these are missing, the task is not done yet.
97
+
98
+ ## Error handling
99
+
100
+ - If the requested task subset cannot be found, report the available task ids.
101
+ - If parsing fails, report what was tried and what is ambiguous.
102
+ - If a worker result is incomplete or incorrect, retry or escalate instead of marking the task complete.
@@ -0,0 +1,79 @@
1
+ # Parallel Worker Brief
2
+
3
+ Use this reference when spawning a worker for one task in a parallel wave.
4
+
5
+ ## Required context
6
+
7
+ Every worker brief should include:
8
+
9
+ - plan file or spec-folder context
10
+ - relevant goals or overview from the plan
11
+ - task id and task name
12
+ - task dependencies
13
+ - related tasks when they matter
14
+ - file locations
15
+ - full description
16
+ - acceptance criteria
17
+ - validation contract
18
+ - `tdd_target`
19
+ - `tdd_status`
20
+ - `codebase_design_notes`
21
+ - `red_command`
22
+ - `expected_red_failure`
23
+ - `green_command`
24
+ - `reason_not_testable`
25
+ - `review_mode`
26
+ - relevant risks or constraints from the plan
27
+ - UI screenshot evidence requirements from [ui-screenshot-evidence.md](ui-screenshot-evidence.md) when the task changes UI
28
+
29
+ ## Required instructions
30
+
31
+ Each worker brief should require:
32
+
33
+ 1. reading the plan and understanding the specific task first
34
+ 2. reading all relevant files first, then doing targeted codebase research before editing
35
+ 3. starting from `tdd_target` and driving the task RED first when it is testable
36
+ 4. preserving or explicitly reconciling `codebase_design_notes` for module interface, seam, adapter strategy, and test surface
37
+ 5. capturing failing evidence for the expected behavior gap before implementation
38
+ 6. recording `red_evidence` and `green_evidence` in the plan before marking behavior-changing tasks complete
39
+ 7. recovering code-before-RED by writing the intended public-result RED test and marking `tdd_status: recovered`, not by using `reason_not_testable`
40
+ 8. recording an explicit `reason_not_testable` plus exact alternative verification when the task is not a good TDD candidate
41
+ 9. treating RED-phase tests or the approved non-testable verification plan as the implementation contract
42
+ 10. not weakening or removing tests unless requirements changed
43
+ 11. implementing only the assigned task scope and satisfying all acceptance criteria
44
+ 12. running the exact task validation evidence before returning, plus extra plan validation when feasible
45
+ 13. resolving any in-goal debt immediately instead of leaving TODOs, temporary workarounds, or "later" notes
46
+ 14. stopping for parent clarification when a debt item requires a product/scope decision outside the assigned task
47
+ 15. capturing and linking durable before/after screenshot evidence when the task changes UI
48
+ 16. updating the plan entry with status, log, touched files, and gotchas before handoff closes
49
+
50
+ ## Worker output contract
51
+
52
+ Require the worker to return:
53
+
54
+ - files modified or created
55
+ - concise summary of changes
56
+ - how the acceptance criteria are satisfied
57
+ - verification evidence: RED -> GREEN for testable tasks, or the exact non-testable alternative that was run
58
+ - validation evidence performed
59
+ - durable UI before/after screenshot links when UI changed
60
+ - validation intentionally deferred
61
+ - anything blocked or risky, with exact reason and required decision
62
+
63
+ ## Scope rule
64
+
65
+ The worker is not responsible for overall wave orchestration.
66
+
67
+ The worker owns:
68
+
69
+ - one assigned task
70
+ - its local validation
71
+ - its plan-entry updates
72
+
73
+ The parent `implement-spec` run owns:
74
+
75
+ - wave construction
76
+ - cross-task dependency handling
77
+ - review of worker outputs
78
+ - retry and escalation decisions
79
+ - deciding when the wave is complete
@@ -0,0 +1,56 @@
1
+ # Parallel Execution
2
+
3
+ Use this approach only when execution should fan out across independent tasks or waves.
4
+
5
+ When `implement-spec` chooses `parallel` mode, this reference is the full contract for parallel execution.
6
+
7
+ ## Parallel contract
8
+
9
+ - **Mode:** `parallel`
10
+ - **Worker policy:** spawn multiple workers only for currently unblocked independent work
11
+ - **Execution board:** completed, in progress, unblocked next, blocked, current wave
12
+
13
+ ## Adoption rule
14
+
15
+ In `parallel` mode, `implement-spec` must do all of the orchestration work itself.
16
+
17
+ That includes:
18
+
19
+ 1. parsing `PLAN.md`
20
+ 2. extracting task ids, names, `depends_on`, locations, descriptions, acceptance criteria, validations, and related metadata
21
+ 3. building the current wave from the unblocked tasks
22
+ 4. spawning workers for that wave
23
+ 5. reviewing worker results for correctness and completeness
24
+ 6. updating plan logs and execution notes
25
+ 7. repeating until all reachable tasks are complete or a real blocker remains
26
+
27
+ Do not treat worker spawning as the whole job. Parallel mode adds multi-worker wave orchestration on top of the default parent validation responsibilities.
28
+
29
+ ## Quick start
30
+
31
+ 1. Load the shared lifecycle from `lifecycle.md`.
32
+ 2. Record `parallel` under **Execution mode** in `IMPLEMENTATION-NOTES.md`.
33
+ 3. Read `.agents/subagents/manifest.mjs` before the first spawn and choose explicit worker templates per task.
34
+ 4. Read [parallel-orchestration.md](parallel-orchestration.md) and parse `PLAN.md` into a task graph.
35
+ 5. Build the current wave from the unblocked tasks only.
36
+ 6. Read [parallel-worker-brief.md](parallel-worker-brief.md) and use that contract when spawning workers.
37
+ 7. Validate each wave before moving on. Fix failures before the next wave.
38
+ 8. Update the plan, notes, and tech debt after every wave.
39
+
40
+ ## Required evidence
41
+
42
+ - plan-derived wave selection
43
+ - explicit worker briefs per task
44
+ - post-wave review of worker outputs
45
+ - acceptance-criteria coverage plus RED -> GREEN evidence, or explicit non-testable verification
46
+ - task completion only after validation and plan/log updates
47
+ - clear reporting of retries, issues, or blockers
48
+
49
+ ## Loop rule
50
+
51
+ Keep iterating wave by wave until:
52
+
53
+ - all reachable tasks are complete, validated, and logged
54
+ - or a real blocker remains and is reported honestly
55
+
56
+ Do not quietly skip failed work. Retry or escalate instead.
@@ -0,0 +1,46 @@
1
+ # Sequential Execution
2
+
3
+ Use this approach when execution should stay serial while avoiding main-context implementation churn.
4
+
5
+ ## Sequential contract
6
+
7
+ - **Mode:** `sequential`
8
+ - **Worker policy:** spawn exactly one implementation worker
9
+ - **Execution board:** completed, in progress, next, blocked
10
+
11
+ Hard gate: sequential implementation never runs in the parent main thread. If the worker cannot be spawned or routed, stop and repair the worker guard or report the blocker.
12
+
13
+ ## Quick start
14
+
15
+ 1. Load the shared lifecycle from `lifecycle.md`.
16
+ 2. Record `sequential` under **Execution mode** in `IMPLEMENTATION-NOTES.md`.
17
+ 3. Read `.agents/subagents/manifest.mjs` when present and choose the best specialist for the whole sequential implementation.
18
+ 4. Spawn one worker with the full spec folder, plan, lifecycle rules, required skills, task order, and update obligations.
19
+ 5. If any assigned task changes UI, include the screenshot evidence contract from [ui-screenshot-evidence.md](ui-screenshot-evidence.md) in the worker brief.
20
+ 6. Require the worker to execute one task at a time in dependency order.
21
+ 7. After worker handoff, review the diff, plan updates, notes, and validation evidence before finalization.
22
+ 8. Run any parent-level acceptance or smoke checks needed to trust the worker output.
23
+
24
+ ## Task loop
25
+
26
+ The worker owns this loop for every task:
27
+
28
+ 1. start from `tdd_target`
29
+ 2. read `codebase_design_notes` and preserve the intended interface, seam, adapter, and test surface unless implementation proves the plan wrong
30
+ 3. classify `tdd_status` and honor the task's RED/GREEN contract
31
+ 4. for behavior-changing work, run `red_command`, verify `expected_red_failure`, and record `red_evidence` before production edits
32
+ 5. patch only enough production code to pass the public behavior
33
+ 6. run `green_command`, record `green_evidence`, and only then mark the task done
34
+ 7. for non-testable or non-applicable tasks, record `reason_not_testable` plus the exact alternative verification
35
+ 8. for UI implementation changes, capture and link durable before/after screenshot evidence
36
+ 9. update the execution board before advancing
37
+
38
+ The parent owns:
39
+
40
+ - worker brief quality
41
+ - post-handoff review
42
+ - acceptance-criteria audit
43
+ - manual review checklist
44
+ - final spec-folder status
45
+
46
+ Stop only when all reachable tasks are complete or a real blocker remains.