fix(skills): close the agent-facing audit's gaps #204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/skill-gaps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
A documentation audit of the documents agents act on, run on 2026-11-06
at
becb455, found five places where a skill leaves its reader without anext step or with two homes for one rule. An agent in
forgewith nologin, or whose pull request goes to another remote, read that the
action is unavailable and nothing more, although the skill's Done
promises the user the text to paste. An implementer of a parallel task
got a worktree that
parallel.mdhad opened whereopen-worktreeputsone, without the preparation that skill gives, so its Runs could fail
for a missing set-up. An agent in
refactor-coderead that pins comebefore the Brief while the work template has the first task commit
"the pins Constraints asks for", and was sent to the Decisions of a
work file that did not exist yet. The rule for a reproduction built
from text from outside, commit with the hooks off and run only in the
sandbox, stood in the same words in
diagnoseandcheck-issue, so achange to one left the other behind. And
open-worktree's descriptionleft out
check-issue, which opens a scratch worktree from it.What changed
forgeruns the check read in step 2 and the action in step 3, and itsstep 4 ends with the hand-over when the action is unavailable, the
check read fails, or the forge refuses the action: the body file's text
to paste, with the title for a pull request or an issue, or, for a read
whose caller takes a paste, a request for what the forge holds, and for
any other read, a refusal reported to the caller. The refused action is
the one case beyond the audit, taken while the user was away and
recorded as the agent's proposal, D3, in the work file.
parallel.mdstep 2 opens each task worktree asopen-worktreestep 3does, from the work branch's tip, and prepares it as its step 4 does,
skipping its upstream check and its version check.
The sandbox commit has one home,
run-sandboxedstep 1, anddiagnoseand
check-issuepoint to its steps 1 and 2.UPGRADING.mdgains theSandbox commit migration, which carries an adopted repository's changes
to that commit there, and the Shared procedures migration no longer
keeps the commit in
check-issue.refactor-codekeeps its pins first; itsin-brainstormextension hasConstraints list them as the guards, already committed, so the first
task commits none, and leaves the user's decision on a flaw's code open
in the Brief for
design. The guide's forge and run-sandboxed entriesand the refactor-code chart's flaw node say what the skills now say.
How to verify
From a checkout of the branch, read
.agents/skills/forge/SKILL.mdasan agent with no login: step 4 ends the skill with the text to paste;
on main no step does. Read
.agents/skills/execute-plan/parallel.mdstep 2: it names the preparation; on main it does not. Run
grep -rn core.hooksPath .agents/skills: one skill prints; on maintwo. Read
.agents/skills/refactor-code/SKILL.mdbeside the Taskscomment of
.agents/templates/work.md: the pins have one moment, andno step names Decisions before the Brief. Read the description of
.agents/skills/open-worktree/SKILL.mdbesidegrep -rl open-worktree .agents/skills: the callers match.Checks run on the tip: the six checks of
docs/MAINTENANCE.md, allpassing, with 225 agent configuration tests and 46 work-folder tests;
the drafts were reviewed by
document-reviewerbefore they wereapplied, and the branch by
change-reviewer,security-reviewer, anddocument-reviewer. No regression test changes: no test reads the textof the steps the change edits. Not run: the behavioral evals, which
docs/MAINTENANCE.mdleaves to the maintainer before a merge thatchanges skills, since each run is billed.
Considerations
The audit's other findings on these documents stay for a later change:
the route of a pre-existing security flaw in
settle-findings, whichAGENTS.mdandfile-issuealready bound, and nine low ones.