Repository navigation
feat(skills): add writing levers and a named-command reproduction rule - #25
Merged
Merged
Conversation
Adopt the two authorised items from the mattpocock/skills scout report. firstmate-coding-guidelines gains a "Lines that earn their load" section covering the three levers it lacked: the no-op test, with a scoping rule that keeps a safety-boundary line until evidence shows it is a no-op and requires an always-loaded sweep to be its own reviewed task; negation as a failure mode, with prompt-the-positive, the hard-guardrail carve-out, and a guard that keeps prohibition rewrites on a safety surface out of unrelated changes; and completion criteria judged on clarity and demand, with premature completion and the context-boundary limit on splitting. diagnostic-reasoning names the strongest reproduction form - one already-run command, output shown, red-capable, deterministic, fast, and agent-runnable - and has diagnosis briefs require [DEBUG-<hash>] tagged debug logs that are grepped out before reporting. Items 2 through 6 of the report are not authorised and are untouched; no no-op sweep was run on AGENTS.md or any other file.
…-building code reads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
The captain reviewed a scout report on Matt Pocock's public skills repository and on 2026-09-07 authorised exactly two of its seven proposed items. The report is at data/fm-mattpocock-skills-r5/report.md in the firstmate home; section 6 is the numbered list and section 7 records the calls.
Item 1, authorised: add the three missing writing levers to .agents/skills/firstmate-coding-guidelines/SKILL.md - a no-op test with a safety-line scoping rule, negation as a failure mode, and completion criteria including premature completion. The report estimates twenty-five to thirty-five lines.
Item 7, authorised: add the named-command reproduction criterion and the [DEBUG-] tagging convention to .agents/skills/diagnostic-reasoning/SKILL.md. The report estimates about eight lines.
Items 2 through 6 are explicitly NOT authorised. Item 2 in particular, the no-op sweep of the always-loaded contract and the section 9 ban-list rewrite, is described in the report itself as an experiment on a safety surface and the captain did not approve it.
Captain 2026-11-09, releasing the held firstmate fixes: "5 yup" (start them, two at a time).
Substance of the referenced report items, as the report proposed them:
Item 1 (report section 3.1, adapted from mattpocock/skills writing-for-agents): one new section in firstmate-coding-guidelines, roughly 25 to 35 lines, with no new skill, no new always-loaded pointer, and no AGENTS.md change.
Item 7 (report section 3.6, adapted from mattpocock/skills diagnosing-bugs): two edits to diagnostic-reasoning, about 8 lines. Sharpen the soft reproduction bound ("Require an end-to-end reproduction aligned with the real user path whenever it is feasible and safe") into a named-command criterion: one command (a script path, a test invocation, a curl) already run at least once with its invocation and output shown, that is red-capable, deterministic, fast, and agent-runnable - reading code to build a theory before that command exists is the exact failure the procedure prevents. And add to the scope-and-act section the convention of tagging every debug log with a unique prefix such as [DEBUG-a4f2], so cleanup is a single grep and untagged logs survive while tagged ones die.
What Changed
[DEBUG-a4f2]and grep that prefix to delete them all before reporting.🤖 Generated with Claude Code
Risk Assessment
✅ Low: The change only edits documentation and skill text, and it stays within the two authorised items. The round-1 fix now makes the named reproduction command a requirement before any code is read to build a theory, and keeps the not-feasible fallback.
Testing
This is a markdown-only change to the skills, so there is no UI to screenshot. I ran the skill-selection and DoD worker-role tests (both pass) and ran the real skill-candidate listing, which still picks up both edited skills. I saved the delivered skill sections as evidence and checked them by hand against the authorised items 1 and 7 and the user's review decision. Everything matches, and AGENTS.md is unchanged. The worktree has no leftover artifacts.
Evidence: Delivered text of the changed skill sections
Source: Delivered text of the changed skill sections
Evidence: Worker skill candidates still include both changed skills
Source: Worker skill candidates still include both changed skills
diagnostic-reasoning [project] .agents/skills/diagnostic-reasoning/SKILL.md firstmate-coding-guidelines [project] .agents/skills/firstmate-coding-guidelines/SKILL.mdPipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
.agents/skills/diagnostic-reasoning/SKILL.md:20- The reproduction rule is weaker than the intent asks for. The intent says to "Sharpen the soft reproduction bound ... into a named-command criterion" and says "reading code to build a theory before that command exists is the exact failure the procedure prevents". The diff keeps the soft bound on line 19 and adds the command only as "Its strongest form ... produce one whenever you can, because reading code to build a theory in place of a reproduction is the exact failure". Two things change: (1) the named command becomes an optional ideal instead of the completion criterion, and (2) "before that command exists" becomes "in place of a reproduction". Under (2), an agent may read code and form a theory first, as long as it reproduces at some point later. That is exactly the ordering failure the report wanted to block, and the vague bound is what this change's own completion-criteria lever warns about. Suggested remedy: state the named command as the criterion that must be met before code-reading for a theory starts, and keep the 'not feasible' fallback on the next line for cases with no faithful repro. This reverses a deliberate wording choice, so the author should confirm.🔧 Fix: Require named reproduction command before theory-building code reads
1 info still open:
CHANGELOG.md:16- This entry doesn't read correctly. "requires a named ... reproduction command before reading code ..., unless ..., and for tagged debug logs that are removed before reporting" has no verb for the second clause. It also drops the "or not safe" fallback that the skill states. Suggested wording: "Bug diagnosis now requires a named, already-run reproduction command before reading code to build a theory (unless a faithful reproduction is not feasible or not safe), and requires every added debug log to be tagged and removed before reporting."✅ **Test** - passed
✅ No issues found.
bash tests/fm-skill-select.test.sh- checks how skill frontmatter is discovered and parsed when choosing worker skills (all pass)bash tests/fm-dod-lib.test.sh- covers the worker role that names firstmate-coding-guidelines and gives its fallback SKILL.md path (all pass)bash bin/fm-skill-select.sh --candidates --project firstmate --harness devin --project-dir $PWD- real consumer; both changed skills are still listed as valid candidatesManual check of the delivered text against the intent: the named, already-run reproduction command (red-capable, deterministic, fast, agent-runnable) must exist before code-reading for a theory starts, and the not-feasible fallback is on the next line; the[DEBUG-a4f2]tagging and grep cleanup is in the scope-and-act section; the new 28-line section covers the no-op test with its safety-line scoping rule, negation as a failure mode, and completion criteria including premature completiongit diff --name-only 4123a5eb 23538cb5- confirms AGENTS.md is untouched, so none of the unauthorised items 2-6 (including the section 9 ban-list rewrite) are present✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.