@zigrivers/scaffold 2.28.1 → 2.38.1

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 (375) hide show
  1. package/README.md +309 -136
  2. package/dist/cli/commands/build.d.ts.map +1 -1
  3. package/dist/cli/commands/build.js +94 -14
  4. package/dist/cli/commands/build.js.map +1 -1
  5. package/dist/cli/commands/build.test.js +30 -5
  6. package/dist/cli/commands/build.test.js.map +1 -1
  7. package/dist/cli/commands/check.d.ts +12 -0
  8. package/dist/cli/commands/check.d.ts.map +1 -0
  9. package/dist/cli/commands/check.js +311 -0
  10. package/dist/cli/commands/check.js.map +1 -0
  11. package/dist/cli/commands/check.test.d.ts +2 -0
  12. package/dist/cli/commands/check.test.d.ts.map +1 -0
  13. package/dist/cli/commands/check.test.js +412 -0
  14. package/dist/cli/commands/check.test.js.map +1 -0
  15. package/dist/cli/commands/complete.d.ts +12 -0
  16. package/dist/cli/commands/complete.d.ts.map +1 -0
  17. package/dist/cli/commands/complete.js +103 -0
  18. package/dist/cli/commands/complete.js.map +1 -0
  19. package/dist/cli/commands/complete.test.d.ts +2 -0
  20. package/dist/cli/commands/complete.test.d.ts.map +1 -0
  21. package/dist/cli/commands/complete.test.js +133 -0
  22. package/dist/cli/commands/complete.test.js.map +1 -0
  23. package/dist/cli/commands/dashboard.d.ts.map +1 -1
  24. package/dist/cli/commands/dashboard.js +12 -8
  25. package/dist/cli/commands/dashboard.js.map +1 -1
  26. package/dist/cli/commands/info.d.ts.map +1 -1
  27. package/dist/cli/commands/info.js +4 -0
  28. package/dist/cli/commands/info.js.map +1 -1
  29. package/dist/cli/commands/knowledge.d.ts.map +1 -1
  30. package/dist/cli/commands/knowledge.js +6 -2
  31. package/dist/cli/commands/knowledge.js.map +1 -1
  32. package/dist/cli/commands/knowledge.test.js +16 -11
  33. package/dist/cli/commands/knowledge.test.js.map +1 -1
  34. package/dist/cli/commands/next.d.ts.map +1 -1
  35. package/dist/cli/commands/next.js +41 -13
  36. package/dist/cli/commands/next.js.map +1 -1
  37. package/dist/cli/commands/next.test.js +3 -0
  38. package/dist/cli/commands/next.test.js.map +1 -1
  39. package/dist/cli/commands/reset.d.ts +1 -0
  40. package/dist/cli/commands/reset.d.ts.map +1 -1
  41. package/dist/cli/commands/reset.js +179 -67
  42. package/dist/cli/commands/reset.js.map +1 -1
  43. package/dist/cli/commands/reset.test.js +360 -0
  44. package/dist/cli/commands/reset.test.js.map +1 -1
  45. package/dist/cli/commands/rework.d.ts +20 -0
  46. package/dist/cli/commands/rework.d.ts.map +1 -0
  47. package/dist/cli/commands/rework.js +332 -0
  48. package/dist/cli/commands/rework.js.map +1 -0
  49. package/dist/cli/commands/rework.test.d.ts +2 -0
  50. package/dist/cli/commands/rework.test.d.ts.map +1 -0
  51. package/dist/cli/commands/rework.test.js +297 -0
  52. package/dist/cli/commands/rework.test.js.map +1 -0
  53. package/dist/cli/commands/run.d.ts.map +1 -1
  54. package/dist/cli/commands/run.js +59 -31
  55. package/dist/cli/commands/run.js.map +1 -1
  56. package/dist/cli/commands/run.test.js +288 -6
  57. package/dist/cli/commands/run.test.js.map +1 -1
  58. package/dist/cli/commands/skill.d.ts +12 -0
  59. package/dist/cli/commands/skill.d.ts.map +1 -0
  60. package/dist/cli/commands/skill.js +123 -0
  61. package/dist/cli/commands/skill.js.map +1 -0
  62. package/dist/cli/commands/skill.test.d.ts +2 -0
  63. package/dist/cli/commands/skill.test.d.ts.map +1 -0
  64. package/dist/cli/commands/skill.test.js +297 -0
  65. package/dist/cli/commands/skill.test.js.map +1 -0
  66. package/dist/cli/commands/skip.d.ts +1 -1
  67. package/dist/cli/commands/skip.d.ts.map +1 -1
  68. package/dist/cli/commands/skip.js +123 -57
  69. package/dist/cli/commands/skip.js.map +1 -1
  70. package/dist/cli/commands/skip.test.js +91 -0
  71. package/dist/cli/commands/skip.test.js.map +1 -1
  72. package/dist/cli/commands/status.d.ts +1 -0
  73. package/dist/cli/commands/status.d.ts.map +1 -1
  74. package/dist/cli/commands/status.js +57 -10
  75. package/dist/cli/commands/status.js.map +1 -1
  76. package/dist/cli/commands/status.test.js +81 -0
  77. package/dist/cli/commands/status.test.js.map +1 -1
  78. package/dist/cli/commands/update.test.js +252 -0
  79. package/dist/cli/commands/update.test.js.map +1 -1
  80. package/dist/cli/commands/version.test.js +171 -1
  81. package/dist/cli/commands/version.test.js.map +1 -1
  82. package/dist/cli/index.d.ts.map +1 -1
  83. package/dist/cli/index.js +8 -0
  84. package/dist/cli/index.js.map +1 -1
  85. package/dist/core/adapters/adapter.d.ts +14 -0
  86. package/dist/core/adapters/adapter.d.ts.map +1 -1
  87. package/dist/core/adapters/adapter.js.map +1 -1
  88. package/dist/core/adapters/adapter.test.js +10 -0
  89. package/dist/core/adapters/adapter.test.js.map +1 -1
  90. package/dist/core/adapters/claude-code.d.ts.map +1 -1
  91. package/dist/core/adapters/claude-code.js +47 -10
  92. package/dist/core/adapters/claude-code.js.map +1 -1
  93. package/dist/core/adapters/claude-code.test.js +41 -20
  94. package/dist/core/adapters/claude-code.test.js.map +1 -1
  95. package/dist/core/adapters/codex.d.ts.map +1 -1
  96. package/dist/core/adapters/codex.js +5 -1
  97. package/dist/core/adapters/codex.js.map +1 -1
  98. package/dist/core/adapters/codex.test.js +5 -0
  99. package/dist/core/adapters/codex.test.js.map +1 -1
  100. package/dist/core/adapters/universal.d.ts.map +1 -1
  101. package/dist/core/adapters/universal.js +0 -1
  102. package/dist/core/adapters/universal.js.map +1 -1
  103. package/dist/core/adapters/universal.test.js +5 -0
  104. package/dist/core/adapters/universal.test.js.map +1 -1
  105. package/dist/core/assembly/context-gatherer.d.ts.map +1 -1
  106. package/dist/core/assembly/context-gatherer.js +5 -2
  107. package/dist/core/assembly/context-gatherer.js.map +1 -1
  108. package/dist/core/assembly/engine.d.ts.map +1 -1
  109. package/dist/core/assembly/engine.js +10 -2
  110. package/dist/core/assembly/engine.js.map +1 -1
  111. package/dist/core/assembly/engine.test.js +19 -0
  112. package/dist/core/assembly/engine.test.js.map +1 -1
  113. package/dist/core/assembly/knowledge-loader.d.ts +25 -0
  114. package/dist/core/assembly/knowledge-loader.d.ts.map +1 -1
  115. package/dist/core/assembly/knowledge-loader.js +75 -2
  116. package/dist/core/assembly/knowledge-loader.js.map +1 -1
  117. package/dist/core/assembly/knowledge-loader.test.js +388 -1
  118. package/dist/core/assembly/knowledge-loader.test.js.map +1 -1
  119. package/dist/core/assembly/meta-prompt-loader.d.ts +6 -0
  120. package/dist/core/assembly/meta-prompt-loader.d.ts.map +1 -1
  121. package/dist/core/assembly/meta-prompt-loader.js +41 -25
  122. package/dist/core/assembly/meta-prompt-loader.js.map +1 -1
  123. package/dist/core/assembly/preset-loader.d.ts +10 -0
  124. package/dist/core/assembly/preset-loader.d.ts.map +1 -1
  125. package/dist/core/assembly/preset-loader.js +26 -1
  126. package/dist/core/assembly/preset-loader.js.map +1 -1
  127. package/dist/core/assembly/preset-loader.test.js +65 -1
  128. package/dist/core/assembly/preset-loader.test.js.map +1 -1
  129. package/dist/core/assembly/update-mode.d.ts.map +1 -1
  130. package/dist/core/assembly/update-mode.js +10 -4
  131. package/dist/core/assembly/update-mode.js.map +1 -1
  132. package/dist/core/assembly/update-mode.test.js +47 -0
  133. package/dist/core/assembly/update-mode.test.js.map +1 -1
  134. package/dist/core/dependency/dependency.d.ts.map +1 -1
  135. package/dist/core/dependency/dependency.js +3 -2
  136. package/dist/core/dependency/dependency.js.map +1 -1
  137. package/dist/core/dependency/dependency.test.js +2 -0
  138. package/dist/core/dependency/dependency.test.js.map +1 -1
  139. package/dist/core/dependency/eligibility.js +3 -3
  140. package/dist/core/dependency/eligibility.js.map +1 -1
  141. package/dist/core/dependency/eligibility.test.js +2 -0
  142. package/dist/core/dependency/eligibility.test.js.map +1 -1
  143. package/dist/core/dependency/graph.d.ts.map +1 -1
  144. package/dist/core/dependency/graph.js +4 -0
  145. package/dist/core/dependency/graph.js.map +1 -1
  146. package/dist/core/dependency/graph.test.d.ts +2 -0
  147. package/dist/core/dependency/graph.test.d.ts.map +1 -0
  148. package/dist/core/dependency/graph.test.js +262 -0
  149. package/dist/core/dependency/graph.test.js.map +1 -0
  150. package/dist/core/rework/phase-selector.d.ts +24 -0
  151. package/dist/core/rework/phase-selector.d.ts.map +1 -0
  152. package/dist/core/rework/phase-selector.js +98 -0
  153. package/dist/core/rework/phase-selector.js.map +1 -0
  154. package/dist/core/rework/phase-selector.test.d.ts +2 -0
  155. package/dist/core/rework/phase-selector.test.d.ts.map +1 -0
  156. package/dist/core/rework/phase-selector.test.js +138 -0
  157. package/dist/core/rework/phase-selector.test.js.map +1 -0
  158. package/dist/dashboard/generator.d.ts +48 -17
  159. package/dist/dashboard/generator.d.ts.map +1 -1
  160. package/dist/dashboard/generator.js +75 -5
  161. package/dist/dashboard/generator.js.map +1 -1
  162. package/dist/dashboard/generator.test.js +213 -5
  163. package/dist/dashboard/generator.test.js.map +1 -1
  164. package/dist/dashboard/template.d.ts +1 -1
  165. package/dist/dashboard/template.d.ts.map +1 -1
  166. package/dist/dashboard/template.js +755 -114
  167. package/dist/dashboard/template.js.map +1 -1
  168. package/dist/e2e/knowledge.test.js +4 -3
  169. package/dist/e2e/knowledge.test.js.map +1 -1
  170. package/dist/e2e/pipeline.test.js +2 -0
  171. package/dist/e2e/pipeline.test.js.map +1 -1
  172. package/dist/e2e/rework.test.d.ts +6 -0
  173. package/dist/e2e/rework.test.d.ts.map +1 -0
  174. package/dist/e2e/rework.test.js +226 -0
  175. package/dist/e2e/rework.test.js.map +1 -0
  176. package/dist/index.js +0 -0
  177. package/dist/project/adopt.test.js +2 -0
  178. package/dist/project/adopt.test.js.map +1 -1
  179. package/dist/project/claude-md.js +2 -2
  180. package/dist/project/claude-md.js.map +1 -1
  181. package/dist/project/claude-md.test.js +4 -4
  182. package/dist/project/claude-md.test.js.map +1 -1
  183. package/dist/project/detector.d.ts.map +1 -1
  184. package/dist/project/detector.js +4 -1
  185. package/dist/project/detector.js.map +1 -1
  186. package/dist/project/frontmatter.d.ts.map +1 -1
  187. package/dist/project/frontmatter.js +54 -15
  188. package/dist/project/frontmatter.js.map +1 -1
  189. package/dist/project/frontmatter.test.js +2 -2
  190. package/dist/project/frontmatter.test.js.map +1 -1
  191. package/dist/state/rework-manager.d.ts +16 -0
  192. package/dist/state/rework-manager.d.ts.map +1 -0
  193. package/dist/state/rework-manager.js +126 -0
  194. package/dist/state/rework-manager.js.map +1 -0
  195. package/dist/state/rework-manager.test.d.ts +2 -0
  196. package/dist/state/rework-manager.test.d.ts.map +1 -0
  197. package/dist/state/rework-manager.test.js +191 -0
  198. package/dist/state/rework-manager.test.js.map +1 -0
  199. package/dist/state/state-manager.d.ts +13 -0
  200. package/dist/state/state-manager.d.ts.map +1 -1
  201. package/dist/state/state-manager.js +39 -2
  202. package/dist/state/state-manager.js.map +1 -1
  203. package/dist/state/state-manager.test.js +74 -1
  204. package/dist/state/state-manager.test.js.map +1 -1
  205. package/dist/state/state-migration.d.ts +23 -0
  206. package/dist/state/state-migration.d.ts.map +1 -0
  207. package/dist/state/state-migration.js +144 -0
  208. package/dist/state/state-migration.js.map +1 -0
  209. package/dist/state/state-migration.test.d.ts +2 -0
  210. package/dist/state/state-migration.test.d.ts.map +1 -0
  211. package/dist/state/state-migration.test.js +451 -0
  212. package/dist/state/state-migration.test.js.map +1 -0
  213. package/dist/types/assembly.d.ts +2 -0
  214. package/dist/types/assembly.d.ts.map +1 -1
  215. package/dist/types/dependency.d.ts +2 -2
  216. package/dist/types/dependency.d.ts.map +1 -1
  217. package/dist/types/frontmatter.d.ts +100 -7
  218. package/dist/types/frontmatter.d.ts.map +1 -1
  219. package/dist/types/frontmatter.js +89 -1
  220. package/dist/types/frontmatter.js.map +1 -1
  221. package/dist/types/index.d.ts +1 -0
  222. package/dist/types/index.d.ts.map +1 -1
  223. package/dist/types/index.js +1 -0
  224. package/dist/types/index.js.map +1 -1
  225. package/dist/types/lock.d.ts +1 -1
  226. package/dist/types/lock.d.ts.map +1 -1
  227. package/dist/types/rework.d.ts +36 -0
  228. package/dist/types/rework.d.ts.map +1 -0
  229. package/dist/types/rework.js +2 -0
  230. package/dist/types/rework.js.map +1 -0
  231. package/dist/utils/errors.d.ts +1 -0
  232. package/dist/utils/errors.d.ts.map +1 -1
  233. package/dist/utils/errors.js +8 -0
  234. package/dist/utils/errors.js.map +1 -1
  235. package/dist/utils/fs.d.ts +6 -0
  236. package/dist/utils/fs.d.ts.map +1 -1
  237. package/dist/utils/fs.js +13 -0
  238. package/dist/utils/fs.js.map +1 -1
  239. package/dist/validation/config-validator.test.d.ts +2 -0
  240. package/dist/validation/config-validator.test.d.ts.map +1 -0
  241. package/dist/validation/config-validator.test.js +210 -0
  242. package/dist/validation/config-validator.test.js.map +1 -0
  243. package/dist/validation/dependency-validator.test.d.ts +2 -0
  244. package/dist/validation/dependency-validator.test.d.ts.map +1 -0
  245. package/dist/validation/dependency-validator.test.js +215 -0
  246. package/dist/validation/dependency-validator.test.js.map +1 -0
  247. package/dist/validation/frontmatter-validator.test.d.ts +2 -0
  248. package/dist/validation/frontmatter-validator.test.d.ts.map +1 -0
  249. package/dist/validation/frontmatter-validator.test.js +371 -0
  250. package/dist/validation/frontmatter-validator.test.js.map +1 -0
  251. package/dist/validation/state-validator.test.d.ts +2 -0
  252. package/dist/validation/state-validator.test.d.ts.map +1 -0
  253. package/dist/validation/state-validator.test.js +325 -0
  254. package/dist/validation/state-validator.test.js.map +1 -0
  255. package/dist/wizard/suggestion.test.d.ts +2 -0
  256. package/dist/wizard/suggestion.test.d.ts.map +1 -0
  257. package/dist/wizard/suggestion.test.js +115 -0
  258. package/dist/wizard/suggestion.test.js.map +1 -0
  259. package/dist/wizard/wizard.d.ts.map +1 -1
  260. package/dist/wizard/wizard.js +34 -1
  261. package/dist/wizard/wizard.js.map +1 -1
  262. package/knowledge/core/adr-craft.md +4 -0
  263. package/knowledge/core/api-design.md +4 -0
  264. package/knowledge/core/automated-review-tooling.md +203 -0
  265. package/knowledge/core/coding-conventions.md +1 -1
  266. package/knowledge/core/database-design.md +4 -0
  267. package/knowledge/core/design-system-tokens.md +4 -0
  268. package/knowledge/core/domain-modeling.md +4 -0
  269. package/knowledge/core/git-workflow-patterns.md +200 -0
  270. package/knowledge/core/operations-runbook.md +5 -1
  271. package/knowledge/core/security-best-practices.md +4 -0
  272. package/knowledge/core/system-architecture.md +5 -1
  273. package/knowledge/core/task-decomposition.md +118 -3
  274. package/knowledge/core/user-story-innovation.md +13 -0
  275. package/knowledge/core/ux-specification.md +13 -0
  276. package/knowledge/execution/enhancement-workflow.md +201 -0
  277. package/knowledge/execution/task-claiming-strategy.md +130 -0
  278. package/knowledge/execution/tdd-execution-loop.md +172 -0
  279. package/knowledge/execution/worktree-management.md +205 -0
  280. package/knowledge/finalization/apply-fixes-and-freeze.md +12 -0
  281. package/knowledge/finalization/developer-onboarding.md +4 -0
  282. package/knowledge/finalization/implementation-playbook.md +83 -5
  283. package/knowledge/product/gap-analysis.md +5 -1
  284. package/knowledge/product/prd-innovation.md +12 -0
  285. package/knowledge/product/vision-craft.md +213 -0
  286. package/knowledge/review/review-adr.md +12 -0
  287. package/knowledge/review/review-api-design.md +13 -0
  288. package/knowledge/review/review-database-design.md +13 -0
  289. package/knowledge/review/review-domain-modeling.md +5 -1
  290. package/knowledge/review/review-implementation-tasks.md +58 -1
  291. package/knowledge/review/review-methodology.md +11 -0
  292. package/knowledge/review/review-operations.md +12 -0
  293. package/knowledge/review/review-prd.md +13 -0
  294. package/knowledge/review/review-security.md +12 -0
  295. package/knowledge/review/review-system-architecture.md +4 -2
  296. package/knowledge/review/review-testing-strategy.md +11 -0
  297. package/knowledge/review/review-user-stories.md +11 -0
  298. package/knowledge/review/review-ux-specification.md +13 -1
  299. package/knowledge/review/review-vision.md +255 -0
  300. package/knowledge/tools/release-management.md +222 -0
  301. package/knowledge/tools/session-analysis.md +215 -0
  302. package/knowledge/tools/version-strategy.md +200 -0
  303. package/knowledge/validation/critical-path-analysis.md +1 -1
  304. package/knowledge/validation/cross-phase-consistency.md +12 -0
  305. package/knowledge/validation/decision-completeness.md +13 -1
  306. package/knowledge/validation/dependency-validation.md +12 -0
  307. package/knowledge/validation/scope-management.md +12 -0
  308. package/knowledge/validation/traceability.md +12 -0
  309. package/methodology/README.md +37 -0
  310. package/methodology/custom-defaults.yml +12 -1
  311. package/methodology/deep.yml +11 -0
  312. package/methodology/mvp.yml +11 -0
  313. package/package.json +3 -3
  314. package/pipeline/architecture/review-architecture.md +18 -7
  315. package/pipeline/architecture/system-architecture.md +11 -8
  316. package/pipeline/build/multi-agent-resume.md +245 -0
  317. package/pipeline/build/multi-agent-start.md +236 -0
  318. package/pipeline/build/new-enhancement.md +456 -0
  319. package/pipeline/build/quick-task.md +381 -0
  320. package/pipeline/build/single-agent-resume.md +210 -0
  321. package/pipeline/build/single-agent-start.md +207 -0
  322. package/pipeline/consolidation/claude-md-optimization.md +11 -8
  323. package/pipeline/consolidation/workflow-audit.md +15 -11
  324. package/pipeline/decisions/adrs.md +7 -5
  325. package/pipeline/decisions/review-adrs.md +14 -6
  326. package/pipeline/environment/ai-memory-setup.md +18 -12
  327. package/pipeline/environment/automated-pr-review.md +10 -4
  328. package/pipeline/environment/design-system.md +9 -7
  329. package/pipeline/environment/dev-env-setup.md +8 -5
  330. package/pipeline/environment/git-workflow.md +3 -1
  331. package/pipeline/finalization/apply-fixes-and-freeze.md +16 -5
  332. package/pipeline/finalization/developer-onboarding-guide.md +22 -8
  333. package/pipeline/finalization/implementation-playbook.md +40 -11
  334. package/pipeline/foundation/beads.md +10 -7
  335. package/pipeline/foundation/coding-standards.md +6 -3
  336. package/pipeline/foundation/project-structure.md +5 -1
  337. package/pipeline/foundation/tdd.md +10 -6
  338. package/pipeline/foundation/tech-stack.md +9 -9
  339. package/pipeline/integration/add-e2e-testing.md +21 -6
  340. package/pipeline/modeling/domain-modeling.md +10 -7
  341. package/pipeline/modeling/review-domain-modeling.md +17 -6
  342. package/pipeline/parity/platform-parity-review.md +31 -11
  343. package/pipeline/planning/implementation-plan-review.md +21 -10
  344. package/pipeline/planning/implementation-plan.md +52 -19
  345. package/pipeline/pre/create-prd.md +22 -7
  346. package/pipeline/pre/innovate-prd.md +10 -8
  347. package/pipeline/pre/innovate-user-stories.md +9 -7
  348. package/pipeline/pre/review-prd.md +11 -2
  349. package/pipeline/pre/review-user-stories.md +12 -3
  350. package/pipeline/pre/user-stories.md +12 -7
  351. package/pipeline/quality/create-evals.md +10 -6
  352. package/pipeline/quality/operations.md +16 -12
  353. package/pipeline/quality/review-operations.md +19 -10
  354. package/pipeline/quality/review-security.md +21 -11
  355. package/pipeline/quality/review-testing.md +23 -12
  356. package/pipeline/quality/security.md +17 -13
  357. package/pipeline/quality/story-tests.md +6 -4
  358. package/pipeline/specification/api-contracts.md +11 -6
  359. package/pipeline/specification/database-schema.md +12 -6
  360. package/pipeline/specification/review-api.md +18 -9
  361. package/pipeline/specification/review-database.md +18 -9
  362. package/pipeline/specification/review-ux.md +20 -10
  363. package/pipeline/specification/ux-spec.md +8 -5
  364. package/pipeline/validation/critical-path-walkthrough.md +14 -7
  365. package/pipeline/validation/cross-phase-consistency.md +14 -7
  366. package/pipeline/validation/decision-completeness.md +14 -7
  367. package/pipeline/validation/dependency-graph-validation.md +15 -7
  368. package/pipeline/validation/implementability-dry-run.md +15 -7
  369. package/pipeline/validation/scope-creep-check.md +15 -7
  370. package/pipeline/validation/traceability-matrix.md +20 -7
  371. package/pipeline/vision/create-vision.md +267 -0
  372. package/pipeline/vision/innovate-vision.md +157 -0
  373. package/pipeline/vision/review-vision.md +149 -0
  374. package/skills/scaffold-pipeline/SKILL.md +33 -18
  375. package/skills/scaffold-runner/SKILL.md +172 -18
@@ -0,0 +1,381 @@
1
+ ---
2
+ name: quick-task
3
+ description: Create a focused task for a bug fix, refactor, or small improvement
4
+ summary: "Takes a one-off request (bug fix, refactor, performance tweak) and creates a single well-scoped task with acceptance criteria and a test plan — for work outside the main implementation plan."
5
+ phase: "build"
6
+ order: 1550
7
+ dependencies: [implementation-playbook]
8
+ outputs: []
9
+ conditional: null
10
+ stateless: true
11
+ category: pipeline
12
+ knowledge-base: [task-claiming-strategy]
13
+ reads: [create-prd, user-stories, coding-standards, tdd, project-structure]
14
+ argument-hint: "<task description>"
15
+ ---
16
+
17
+ ## Purpose
18
+ Create a focused, implementation-ready task for a small, well-defined piece
19
+ of work — a bug fix, refactor, performance improvement, accessibility fix,
20
+ or minor refinement. Produces a single task with clear acceptance criteria
21
+ and a TDD test plan, without the full discovery process of the Enhancement
22
+ prompt.
23
+
24
+ ## Inputs
25
+ - $ARGUMENTS (required) — description of the task to create
26
+ - CLAUDE.md (required) — project conventions, key commands, workflow
27
+ - docs/plan.md (optional) — PRD for requirement context
28
+ - docs/user-stories.md (optional) — existing stories and epics
29
+ - docs/coding-standards.md (required) — code conventions, naming, patterns
30
+ - docs/tdd-standards.md (required) — test categories, mocking strategy, test file locations
31
+ - docs/project-structure.md (required) — where files live, module organization
32
+ - docs/implementation-playbook.md (optional) — quality gates section for project-specific gates
33
+ - tasks/lessons.md (optional) — previous lessons learned
34
+ - .beads/ (conditional) — Beads task tracking if configured
35
+ - Relevant source code — files that will be modified
36
+
37
+ ## Expected Outputs
38
+ - One well-defined task with acceptance criteria, test plan, and implementation notes
39
+ - Task created via Beads (`bd create`) if configured, or documented inline
40
+ - Task summary presented for review
41
+
42
+ ## Quality Criteria
43
+ - (mvp) Complexity gate applied — redirects to Enhancement if scope is too large
44
+ - (mvp) Acceptance criteria are testable Given/When/Then scenarios
45
+ - (mvp) Every criterion maps to at least one test case
46
+ - (mvp) File paths match project-structure.md conventions
47
+ - (mvp) Task uses conventional commit title format: type(scope): description
48
+ - (deep) Duplicate check performed against existing tasks
49
+ - (deep) lessons.md consulted for relevant anti-patterns
50
+ - (deep) Implementation notes reference specific coding standards, not generic advice
51
+ - (deep) Edge cases and regression guards included in acceptance criteria
52
+
53
+ ## Methodology Scaling
54
+ - **deep**: Full complexity gate, duplicate check, lessons.md review, detailed
55
+ acceptance criteria with edge cases and regression guards, comprehensive
56
+ test plan with mocking strategy, specific implementation notes referencing
57
+ coding standards.
58
+ - **mvp**: Complexity gate, basic acceptance criteria (happy path + one edge
59
+ case), test plan with category and cases, file list. Skip duplicate check
60
+ and detailed implementation notes.
61
+ - **custom:depth(1-5)**: Depth 1-2: complexity gate, basic AC, test cases,
62
+ file list. Depth 3: add duplicate check, lessons.md review, regression
63
+ guards. Depth 4: add mocking strategy, specific coding standard references.
64
+ Depth 5: full analysis with innovation suggestions and cross-module impact.
65
+
66
+ ## Mode Detection
67
+ This is a stateless execution command. No persistent document is created.
68
+ - Always operates in CREATE MODE — produces a task definition.
69
+ - If Beads is configured, the task is created via `bd create`.
70
+ - If not, the task is documented inline and implementation begins.
71
+
72
+ ## Update Mode Specifics
73
+ Not applicable — this creates a new task each time. If a similar task already
74
+ exists, the duplicate check will surface it for the user to decide.
75
+
76
+ ## Instructions
77
+
78
+ ### The Request
79
+
80
+ $ARGUMENTS
81
+
82
+ ---
83
+
84
+ ### Phase 0: Complexity Gate
85
+
86
+ Before proceeding, evaluate whether this task is actually small enough for Quick Task. If **any** of these are true, **stop and redirect**:
87
+
88
+ 1. The change requires updating `docs/plan.md` or `docs/user-stories.md`
89
+ 2. The change introduces a new user-facing feature (not a fix or improvement to an existing one)
90
+ 3. The change affects 3+ unrelated modules or features
91
+ 4. The change requires new data model entities or schema migrations
92
+ 5. The change requires competitive analysis or UX research
93
+ 6. You estimate 4+ Beads tasks will be needed
94
+
95
+ **If any criteria match**, tell the user:
96
+
97
+ > This looks like an enhancement, not a quick task. Redirecting to the Enhancement prompt which handles PRD updates, user stories, and multi-task planning.
98
+ >
99
+ > Run: `/scaffold:new-enhancement <description>`
100
+
101
+ **Hard stop** — do not continue with the Quick Task flow.
102
+
103
+ ---
104
+
105
+ ### Phase 1: Understand & Contextualize
106
+
107
+ #### Review Project Context
108
+ Before asking questions, review:
109
+ - `CLAUDE.md` — Project conventions, Key Commands, workflow
110
+ - `docs/coding-standards.md` — Code conventions, naming, patterns
111
+ - `docs/tdd-standards.md` — Test categories, mocking strategy, test file locations
112
+ - `docs/project-structure.md` — Where files live, module organization
113
+ - `tasks/lessons.md` — Previous lessons learned (extract any relevant to this task)
114
+ - If `docs/implementation-playbook.md` exists, check its quality gates section for project-specific gates
115
+ - Relevant source code — Read the files that will be modified
116
+
117
+ #### Check for Duplicates
118
+ **If Beads:** Run `bd list` and check for existing tasks that overlap with this request. If a matching or overlapping task exists:
119
+ - Tell the user which task(s) already cover this work
120
+ - Ask whether to proceed (create a new task) or use the existing one
121
+ - If proceeding, note the relationship in the new task's description
122
+
123
+ #### Extract Relevant Lessons
124
+ Review `tasks/lessons.md` for anti-patterns, gotchas, or conventions related to:
125
+ - The area of code being modified
126
+ - The type of change (fix, refactor, perf, etc.)
127
+ - Similar past mistakes to avoid
128
+
129
+ #### Clarify Ambiguities
130
+ If anything is unclear about the request, use AskUserQuestionTool to batch all questions in a single call. Common clarifications:
131
+ - What is the expected behavior vs. current behavior? (for bugs)
132
+ - What metric or outcome defines success? (for performance)
133
+ - What should NOT change? (for refactors)
134
+
135
+ ---
136
+
137
+ ### Phase 2: Define the Task
138
+
139
+ #### Categorize
140
+ Determine the task type using conventional commit prefixes:
141
+ - `fix` — Bug fix (something is broken)
142
+ - `feat` — Small feature addition within an existing feature area
143
+ - `perf` — Performance improvement
144
+ - `a11y` — Accessibility fix
145
+ - `refactor` — Code restructuring with no behavior change
146
+ - `chore` — Tooling, dependencies, config
147
+ - `test` — Adding or fixing tests only
148
+ - `style` — Code style, formatting (no logic change)
149
+
150
+ #### Priority
151
+ Assign priority using Beads conventions:
152
+ - **P0** — Blocking release or breaking production
153
+ - **P1** — Must-have for current milestone
154
+ - **P2** — Should-have (default for most quick tasks)
155
+ - **P3** — Nice-to-have, backlog
156
+
157
+ #### Acceptance Criteria
158
+ Write 2-5 testable acceptance criteria in Given/When/Then format:
159
+
160
+ ```
161
+ Given <precondition>
162
+ When <action>
163
+ Then <expected result>
164
+ ```
165
+
166
+ Each criterion must be unambiguous — pass/fail should be obvious. Cover:
167
+ - The primary fix or change (happy path)
168
+ - At least one edge case or error state
169
+ - Any regression guard (behavior that must NOT change)
170
+
171
+ #### Files to Modify
172
+ List exact file paths from `docs/project-structure.md`:
173
+ ```
174
+ Files:
175
+ - src/features/auth/services/session.ts (modify)
176
+ - src/features/auth/services/__tests__/session.test.ts (modify)
177
+ ```
178
+
179
+ #### Test Plan
180
+ Reference `docs/tdd-standards.md` for the project's test conventions:
181
+ - **Test category**: unit / integration / e2e (per tdd-standards.md rules for this code area)
182
+ - **Test cases**: Map each acceptance criterion to at least one test case
183
+ - **Mocking**: What to mock and what NOT to mock (per the project's mocking strategy)
184
+ - **Test file location**: Per the project's test file convention
185
+
186
+ #### Implementation Notes
187
+ - Patterns to follow (reference specific conventions from coding-standards.md)
188
+ - Known gotchas or pitfalls (from lessons.md or code review)
189
+ - What is explicitly out of scope
190
+
191
+ ---
192
+
193
+ ### Phase 3: Create the Task
194
+
195
+ **If Beads:**
196
+ ```bash
197
+ bd create "type(scope): description" -p <priority>
198
+ # Example: bd create "fix(auth): prevent duplicate session creation on rapid re-login" -p 2
199
+ ```
200
+
201
+ **Without Beads:** Document the task inline and proceed directly to implementation.
202
+
203
+ Then set the task description with the full context from Phase 2. Include all of:
204
+
205
+ ```
206
+ ## Acceptance Criteria
207
+
208
+ - Given <precondition>, when <action>, then <expected result>
209
+ - ...
210
+
211
+ ## Files to Modify
212
+
213
+ - path/to/file.ts (modify — reason)
214
+ - path/to/test.ts (modify — add test cases)
215
+
216
+ ## Test Plan
217
+
218
+ **Category**: unit
219
+ **Cases**:
220
+ 1. Test description -> validates AC #1
221
+ 2. Test description -> validates AC #2
222
+ **Mocking**: Mock X, do not mock Y
223
+ **Location**: path/to/__tests__/file.test.ts
224
+
225
+ ## Implementation Notes
226
+
227
+ - Follow pattern from [reference]
228
+ - Watch out for [gotcha from lessons.md]
229
+ - Out of scope: [what NOT to do]
230
+ ```
231
+
232
+ ---
233
+
234
+ ### Phase 4: Output Summary
235
+
236
+ Present the task summary:
237
+
238
+ ```
239
+ +---------------------------------------------------+
240
+ | Quick Task Created |
241
+ +----------+----------------------------------------+
242
+ | ID | <task-id> |
243
+ | Title | type(scope): description |
244
+ | Priority | P<n> |
245
+ | Status | open |
246
+ +----------+----------------------------------------+
247
+ | Acceptance Criteria |
248
+ | - Given... When... Then... |
249
+ | - Given... When... Then... |
250
+ +---------------------------------------------------+
251
+ | Files |
252
+ | - path/to/file.ts |
253
+ | - path/to/test.ts |
254
+ +---------------------------------------------------+
255
+ | Test Plan |
256
+ | - Category: unit |
257
+ | - Cases: N test cases |
258
+ +---------------------------------------------------+
259
+ | Implementation Notes |
260
+ | - Key note 1 |
261
+ | - Key note 2 |
262
+ +---------------------------------------------------+
263
+ ```
264
+
265
+ ---
266
+
267
+ ### Process Rules
268
+
269
+ 1. **Respect the complexity gate** — If it is bigger than a quick task, redirect immediately. Do not try to squeeze a feature into the quick task format.
270
+ 2. **One task only** — Quick Task creates exactly one Beads task. If you need multiple, use the Enhancement prompt.
271
+ 3. **Check for duplicates first** — Run `bd list` before creating. Do not create tasks that already exist.
272
+ 4. **Lessons.md is required reading** — Always check `tasks/lessons.md` for relevant anti-patterns before defining the task.
273
+ 5. **Acceptance criteria drive tests** — Every criterion must map to at least one test case. If you cannot test it, rewrite the criterion.
274
+ 6. **Conventional commit titles** — Always use `type(scope): description` format. This feeds directly into commit messages.
275
+
276
+ ---
277
+
278
+ ### When to Use This Prompt
279
+
280
+ - Bug fixes — something is broken and needs fixing
281
+ - Refactoring — restructuring code without changing behavior
282
+ - Performance improvements — targeted optimizations
283
+ - Accessibility fixes — a11y improvements to existing features
284
+ - Test gaps — adding missing test coverage
285
+ - Chores — dependency updates, config changes, tooling fixes
286
+ - Small refinements — polish within an existing feature
287
+
288
+ ### When NOT to Use This Prompt
289
+
290
+ - **New features**: Use `/scaffold:new-enhancement` — new features need PRD updates and user stories
291
+ - **Multi-task work**: Use `/scaffold:new-enhancement` — if you need 4+ tasks, it is an enhancement
292
+ - **Initial project setup**: Use the pipeline from `/scaffold:create-prd` forward
293
+ - **Major refactors**: If the refactor touches 3+ unrelated modules, use `/scaffold:new-enhancement` for proper impact analysis
294
+
295
+ ---
296
+
297
+ ### Quality Standards
298
+
299
+ #### From `docs/tdd-standards.md`:
300
+ - Every acceptance criterion maps to at least one test case
301
+ - Test category (unit/integration/e2e) follows the project's rules for this code area
302
+ - Mocking strategy matches the project's conventions — do not over-mock or under-mock
303
+
304
+ #### From `docs/coding-standards.md`:
305
+ - File paths match `docs/project-structure.md` conventions
306
+ - Naming follows project patterns
307
+ - Implementation notes reference specific standards, not generic advice
308
+
309
+ #### Eval Gate
310
+ - If `tests/evals/` exists, run `make eval` (or equivalent eval command from CLAUDE.md Key Commands) as a required pre-commit check
311
+
312
+ ---
313
+
314
+ ### Example
315
+
316
+ Here is what the output looks like for a typical quick task:
317
+
318
+ **Request**: "The save button shows a success toast even when the API returns a 409 conflict"
319
+
320
+ ```
321
+ +---------------------------------------------------+
322
+ | Quick Task Created |
323
+ +----------+----------------------------------------+
324
+ | ID | abc-123 |
325
+ | Title | fix(editor): show error toast on |
326
+ | | 409 conflict during save |
327
+ | Priority | P1 |
328
+ | Status | open |
329
+ +----------+----------------------------------------+
330
+ | Acceptance Criteria |
331
+ | 1. Given the user saves a document, |
332
+ | when the API returns 409 Conflict, |
333
+ | then an error toast "Save conflict -- |
334
+ | someone else edited this document" |
335
+ | is shown instead of the success toast |
336
+ | 2. Given the user saves a document, |
337
+ | when the API returns 200 OK, |
338
+ | then the success toast still appears |
339
+ | (regression guard) |
340
+ | 3. Given the user sees a 409 error toast, |
341
+ | when they click "Refresh", |
342
+ | then the latest version is fetched |
343
+ +---------------------------------------------------+
344
+ | Files |
345
+ | - src/features/editor/services/save.ts |
346
+ | - src/features/editor/services/__tests__/ |
347
+ | save.test.ts |
348
+ +---------------------------------------------------+
349
+ | Test Plan |
350
+ | - Category: unit |
351
+ | - Cases: 3 (one per AC) |
352
+ | - Mock: HTTP client. Don't mock toast service. |
353
+ +---------------------------------------------------+
354
+ | Implementation Notes |
355
+ | - save.ts catches errors but doesn't check |
356
+ | status codes -- add 409 handling in catch |
357
+ | - Follow error handling pattern from |
358
+ | src/features/auth/services/login.ts |
359
+ | - Out of scope: auto-merge or diff view |
360
+ +---------------------------------------------------+
361
+ ```
362
+
363
+ ---
364
+
365
+ ## After This Step
366
+
367
+ When this step is complete, tell the user:
368
+
369
+ ---
370
+ **Quick task created** — Task ready with acceptance criteria, test plan, and implementation notes.
371
+
372
+ **After implementation:**
373
+ - If this fix revealed a pattern or gotcha: update `tasks/lessons.md`.
374
+ - If this fix changed a convention or pattern: consider updating `docs/implementation-playbook.md` and `docs/coding-standards.md`.
375
+ - After merging, consider running `/scaffold:version-bump` if the change is user-facing.
376
+
377
+ **Next:** Run `/scaffold:single-agent-start` or `/scaffold:single-agent-resume` to begin implementation (or `/scaffold:multi-agent-start <agent-name>` / `/scaffold:multi-agent-resume <agent-name>` for worktree agents).
378
+
379
+ **Pipeline reference:** `/scaffold:prompt-pipeline`
380
+
381
+ ---
@@ -0,0 +1,210 @@
1
+ ---
2
+ name: single-agent-resume
3
+ description: Resume single-agent work after a break
4
+ summary: "Recovers context from the previous session — reads lessons learned, checks git state, reconciles merged PRs — and continues the TDD loop from where you left off."
5
+ phase: "build"
6
+ order: 1520
7
+ dependencies: [implementation-playbook]
8
+ outputs: []
9
+ conditional: null
10
+ stateless: true
11
+ category: pipeline
12
+ knowledge-base: [tdd-execution-loop, task-claiming-strategy]
13
+ reads: [coding-standards, tdd, git-workflow]
14
+ ---
15
+
16
+ ## Purpose
17
+ Resume single-agent implementation work after a break — whether from a
18
+ context window reset, a paused session, or returning the next day. Recovers
19
+ session context by checking git state, task status, and open PRs, then
20
+ continues the TDD execution loop from where you left off.
21
+
22
+ ## Inputs
23
+ - CLAUDE.md (required) — project conventions, key commands, workflow
24
+ - docs/implementation-playbook.md (required if exists) — primary task execution reference
25
+ - docs/implementation-plan.md (fallback) — task list when no playbook exists
26
+ - docs/onboarding-guide.md (optional) — project context for orientation
27
+ - docs/coding-standards.md (required) — code conventions, naming, patterns
28
+ - docs/tdd-standards.md (required) — test categories, mocking strategy
29
+ - docs/project-structure.md (required) — where files live
30
+ - tests/acceptance/ (optional) — TDD test skeletons
31
+ - tests/evals/ (optional) — project eval checks for quality gates
32
+ - tasks/lessons.md (optional) — previous lessons learned
33
+ - .beads/ (conditional) — Beads task tracking if configured
34
+
35
+ ## Expected Outputs
36
+ - Completed in-progress work from previous session
37
+ - Continued task implementation with passing tests
38
+ - Pull requests for each completed task
39
+ - Updated task status in playbook/plan or Beads
40
+
41
+ ## Quality Criteria
42
+ - (mvp) In-progress work is identified and completed before starting new tasks
43
+ - (mvp) Merged PRs are reconciled with task status
44
+ - (mvp) Each task follows red-green-refactor TDD cycle
45
+ - (mvp) All quality gates pass before PR creation
46
+ - (deep) Git state is fully reconciled (stale branches cleaned, rebased on latest main)
47
+ - (deep) lessons.md is consulted before resuming work
48
+
49
+ ## Methodology Scaling
50
+ - **deep**: Full state reconciliation, rebase on latest main, review onboarding
51
+ guide, consult lessons.md, reconcile all open PRs, detailed PR descriptions.
52
+ - **mvp**: Quick git state check, identify in-progress work, finish or pick
53
+ next task, TDD loop, make check, create PR.
54
+ - **custom:depth(1-5)**: Depth 1-2: check branch and continue. Depth 3: add
55
+ PR reconciliation and lessons.md review. Depth 4: add rebase, full test
56
+ suite validation, onboarding review. Depth 5: full state audit with branch
57
+ cleanup and eval gates.
58
+
59
+ ## Mode Detection
60
+ This is a stateless execution command. No document is created or updated.
61
+ - Always operates in RESUME MODE.
62
+ - If there is no prior work (clean main, no feature branches, no task
63
+ progress), redirect to `/scaffold:single-agent-start` instead.
64
+
65
+ ## Update Mode Specifics
66
+ Not applicable — this is a stateless execution command that does not produce
67
+ a persistent document.
68
+
69
+ ## Instructions
70
+
71
+ ### State Recovery
72
+
73
+ Recover your context by checking the current state of work:
74
+
75
+ 1. **Read project context**
76
+ - Read `CLAUDE.md` for project conventions and key commands
77
+ - Read `docs/onboarding-guide.md` if it exists (refresh project context)
78
+ - Read `tasks/lessons.md` for relevant anti-patterns
79
+
80
+ 2. **Git state assessment**
81
+ - `git branch --show-current` — determine if you are on a feature branch (in-progress work) or main
82
+ - `git status` — check for uncommitted changes or staged files
83
+ - `git stash list` — check for stashed work
84
+ - `git log --oneline -5` — review recent commits for context
85
+
86
+ 3. **PR reconciliation**
87
+ - `gh pr list --author="@me"` — check for open PRs
88
+ - For each open PR, check if it has been merged: `gh pr view <number> --json state`
89
+ - If a PR was merged while you were away, reconcile the task status (see below)
90
+
91
+ 4. **Dependency sync**
92
+ - `git fetch origin` — get latest remote state
93
+ - Run the install command from CLAUDE.md Key Commands to ensure dependencies are current
94
+
95
+ ### Beads Recovery
96
+
97
+ **If Beads is configured** (`.beads/` exists):
98
+ - `bd list` — check for tasks with `in_progress` status
99
+ - If a PR shows as merged, close the corresponding task: `bd close <id> && bd sync`
100
+ - If there is in-progress work, finish it (see "Resume In-Progress Work" below)
101
+ - Otherwise, start fresh with `bd ready` to find the next available task
102
+ - Continue working until `bd ready` shows no available tasks
103
+
104
+ **Without Beads:**
105
+ - Read `docs/implementation-playbook.md` as the primary task reference.
106
+ Fall back to `docs/implementation-plan.md` when no playbook is present.
107
+ - If a PR shows as merged, mark the corresponding task as complete in the plan/playbook
108
+ - If there is in-progress work on your current branch, finish it
109
+ - Otherwise, pick the next uncompleted task with no unfinished dependencies
110
+
111
+ ### Resume In-Progress Work
112
+
113
+ If you are on a feature branch with changes:
114
+
115
+ 1. **Assess the state**
116
+ - `git diff --stat` — what files have been changed?
117
+ - `git log --oneline origin/main..HEAD` — what commits exist on this branch?
118
+ - Read the task description to understand what was being worked on
119
+
120
+ 2. **Rebase on latest main**
121
+ - `git fetch origin && git rebase origin/main`
122
+ - Resolve any conflicts, re-run tests
123
+
124
+ 3. **Check test state**
125
+ - Run the project's test suite
126
+ - If tests pass: you may be in the refactor phase or ready for PR
127
+ - If tests fail: determine if these are your in-progress test cases (red phase) or regressions
128
+
129
+ 4. **Continue the TDD loop**
130
+ - Pick up where the previous session left off
131
+ - Follow the same Red-Green-Refactor cycle as in `/scaffold:single-agent-start`
132
+
133
+ ### Continue to Next Task
134
+
135
+ Once in-progress work is complete (or if there was none):
136
+
137
+ 1. **Quality gates**
138
+ - Run `make check` (or equivalent from CLAUDE.md Key Commands)
139
+ - If `tests/evals/` exists, run `make eval` (or equivalent eval command)
140
+
141
+ 2. **Create PR** (if not already created for in-progress work)
142
+ - Push the branch: `git push -u origin HEAD`
143
+ - Create a pull request: `gh pr create`
144
+ - Follow the PR workflow from `docs/git-workflow.md` or CLAUDE.md
145
+
146
+ 3. **Claim next task**
147
+ - Return to main: `git checkout main && git pull origin main`
148
+ - Pick the next task following the same process as `/scaffold:single-agent-start`
149
+ - Continue the TDD execution loop
150
+
151
+ ### Recovery Procedures
152
+
153
+ **Uncommitted changes on a feature branch:**
154
+ - Review the changes: `git diff`
155
+ - If the changes look intentional, stage and continue implementation
156
+ - If the changes look broken or experimental, stash them: `git stash`
157
+
158
+ **Stale feature branch (main has diverged significantly):**
159
+ - `git fetch origin && git rebase origin/main`
160
+ - If conflicts are extensive, consider whether it is easier to start the task fresh
161
+ - Re-run full test suite after rebase
162
+
163
+ **PR was rejected or has requested changes:**
164
+ - `gh pr view <number>` — read the review comments
165
+ - Address the feedback on the existing branch
166
+ - Push updates and re-request review
167
+
168
+ **Task was completed by another agent (multi-agent overlap):**
169
+ - If Beads: `bd sync` will show updated task states
170
+ - Without Beads: check the plan/playbook for recently completed tasks
171
+ - Skip to the next available task
172
+
173
+ **Tests fail after pulling latest main:**
174
+ - Determine if the failure is from your changes or from recently merged work
175
+ - If from merged work: fix or flag to the user before continuing
176
+ - If from your changes: debug and fix as part of your current task
177
+
178
+ ### Process Rules
179
+
180
+ 1. **Always recover state first** — Never start new work without checking for in-progress tasks and merged PRs.
181
+ 2. **Rebase before continuing** — Ensure your branch is up to date with main.
182
+ 3. **Reconcile task status** — Merged PRs must be reflected in the task tracker.
183
+ 4. **TDD is not optional** — Continue the red-green-refactor cycle for any in-progress work.
184
+ 5. **Quality gates before PR** — Never create a PR with failing checks.
185
+ 6. **Follow CLAUDE.md** — It is the authority on project conventions and commands.
186
+
187
+ ---
188
+
189
+ ## After This Step
190
+
191
+ When this step is complete (all tasks done or session ending), tell the user:
192
+
193
+ ---
194
+ **Resume session complete** — In-progress work reconciled, tasks continued.
195
+
196
+ **Session summary:**
197
+ - Recovered state: [in-progress task or "clean start"]
198
+ - Tasks completed this session: [list task IDs/titles]
199
+ - PRs created: [list PR numbers]
200
+ - Remaining tasks: [count or "none"]
201
+
202
+ **If resuming again later:** Run `/scaffold:single-agent-resume` again.
203
+
204
+ **If all tasks are done:**
205
+ - Review `tasks/lessons.md` and add any patterns learned during implementation.
206
+ - Consider running `/scaffold:version-bump` for a release.
207
+
208
+ **Pipeline reference:** `/scaffold:prompt-pipeline`
209
+
210
+ ---