summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/implement-spec-run-fixes.md5
-rw-r--r--skills/engineering/implement-spec/SKILL.md8
-rw-r--r--skills/engineering/prototype/SKILL.md4
3 files changed, 12 insertions, 5 deletions
diff --git a/.changeset/implement-spec-run-fixes.md b/.changeset/implement-spec-run-fixes.md
new file mode 100644
index 0000000..756db21
--- /dev/null
+++ b/.changeset/implement-spec-run-fixes.md
@@ -0,0 +1,5 @@
+---
+"mattpocock-skills": patch
+---
+
+`implement-spec` implementers now fast-forward the integration branch themselves, so a merger subagent runs only when that fails. They verify with the pre-commit hook plus touched tests (CI runs the full suite), treat prototype branches as a behaviour reference only, and step 7 splits review fixes into batches of about five across parallel implementers. `prototype` tags deliberate shortcuts with `PROTOTYPE-SHORTCUT` and says its code is never copied.
diff --git a/skills/engineering/implement-spec/SKILL.md b/skills/engineering/implement-spec/SKILL.md
index 73d36c2..6de5bc8 100644
--- a/skills/engineering/implement-spec/SKILL.md
+++ b/skills/engineering/implement-spec/SKILL.md
@@ -29,13 +29,15 @@ Communication to and from subagents should be sparse. Communicate primarily thro
4. Use a fresh **implementer subagent** for each ticket, each in its own worktree on its own branch. Each implementer subagent:
- confirms its worktree is based on the integration branch before starting, and resets onto it if not;
- calls the Skill tool with `tdd` to build the ticket;
- - merges the integration branch tip into its own branch before reporting done
+ - treats any prototype branch as a behaviour reference only, rewriting it to the repo's standards rather than copying it;
+ - verifies with the pre-commit hook plus the tests for the code it touched, leaving the full suite to CI unless the repo's docs or the user ask for it locally;
+ - merges the integration branch tip into its own branch, then fast-forwards the integration branch to it (`git merge --ff-only`) before reporting done
-5. Once an **implementer subagent** completes, merge its work to the integration branch with a **merger subagent**.
+5. If an **implementer subagent**'s fast-forward fails because the integration branch moved on, merge its work with a **merger subagent**, which verifies the same way.
6. If this changes the **frontier** of available tickets, kick off more **implementer subagents** to work on the new tickets. This allows for maximum concurrency.
-7. Once all tickets are complete, call the Skill tool with `code-review` on the integration branch. Fix all issues raised by the code review in a single fresh **implementer subagent**.
+7. Once all tickets are complete, call the Skill tool with `code-review` on the integration branch. Group the issues it raises into batches of at most about five related findings, and fix each batch in its own fresh **implementer subagent** as in steps 4-5, in parallel where the batches touch different files.
8. If a draft PR exists, mark it ready for review. Otherwise, resolve each ticket the way the issue tracker closes work, and report the integration branch.
diff --git a/skills/engineering/prototype/SKILL.md b/skills/engineering/prototype/SKILL.md
index a004450..e457ed9 100644
--- a/skills/engineering/prototype/SKILL.md
+++ b/skills/engineering/prototype/SKILL.md
@@ -21,6 +21,6 @@ The two branches produce very different artifacts, so getting this wrong wastes
1. **Throwaway from day one, and clearly marked as such.** Locate the prototype code close to where it will actually be used (next to the module or page it's prototyping for) so context is obvious, but name it so a casual reader can see it's a prototype, not production. For throwaway UI routes, obey whatever routing convention the project already uses; don't invent a new top-level structure.
2. **Trivial to run.** A UI prototype starts from one command in the project's task runner: `pnpm <name>`, `python <path>`, `bun <path>`, etc. A logic demo is a single HTML file the user double-clicks. Either way, no thinking required to start it.
3. **No persistence by default.** State lives in memory. Persistence is the thing the prototype is _checking_, not something it should depend on. If the question explicitly involves a database, hit a scratch DB or a local file with a clear "PROTOTYPE, wipe me" name.
-4. **Skip the polish.** No tests, no error handling beyond what makes the prototype _runnable_, no abstractions. The point is to learn something fast.
+4. **Skip the polish.** No tests, no error handling beyond what makes the prototype _runnable_, no abstractions. The point is to learn something fast. Tag each deliberate shortcut with a `PROTOTYPE-SHORTCUT` comment.
5. **Surface the state.** After every action (logic) or on every variant switch (UI), print or render the full relevant state so the user can see what changed.
-6. **Capture it when done.** Fold any validated decision into the real code, then capture the prototype itself as a **primary source**: commit it to a throwaway branch, out of main, and leave a context pointer to that branch on the implementation issue. Capture the answer too (the verdict and the question it settled) in the issue or a commit. The main branch keeps only the validated decision.
+6. **Capture it when done.** Fold any validated decision into the real code, then capture the prototype itself as a **primary source**: commit it to a throwaway branch, out of main, and leave a context pointer to that branch on the implementation issue. Capture the answer too (the verdict and the question it settled) in the issue or a commit. The main branch keeps only the validated decision. The prototype code is a behaviour reference only: whoever builds from it writes the code fresh to the repo's standards, never copying it.