Agent skill
builder-signoff
Mandatory sign-off procedure for Builder (public output + builder_result.json + validation).
Install this agent skill to your Project
npx add-skill https://github.com/throw-if-null/ds9/tree/main/.opencode/skill/builder-signoff
SKILL.md
Purpose
Execute Builder sign-off deterministically so Foreman can validate and proceed.
This procedure is MANDATORY and must be executed as the final step of every Builder run — even when blocked or when earlier steps fail.
Required behavior
- Always produce a Run Summary message with the required sections.
- Always write
builder_result.jsonto the worktree root. - Always run
validate_builder_resultand fix any issues it reports. - If you are blocked or cannot complete build/test steps, still complete this procedure with your best available information.
Run Summary (MANDATORY format)
Your final chat output MUST include these sections:
Summary- 1–3 short bullets describing the change and why.
Checks run + results- Commands you ran (e.g.
pnpm lint,pnpm check,pnpm test:unit,pnpm prepack) and pass/fail, or why skipped.
- Commands you ran (e.g.
Notes / Risks- Important caveats, known failures, follow-ups, or tradeoffs.
Public API & A11y- Briefly state any public API or accessibility impact.
Checklist (TODO snapshot)- Print the current
todowriteTODO list (all items + final statuses).
- Print the current
Foreman Handoff: builder_result.json (MANDATORY)
You MUST write a JSON file named builder_result.json in the repository/worktree root.
The file MUST contain EXACTLY one JSON object matching this schema:
{
"run": {
"status": "ok" | "failed",
"failed_step": "..." | null,
"error": "..." | null
},
"work": {
"summary": "...",
"complexity": "low" | "medium" | "high"
} | null
}
Rules:
- If
run.statusisok,workMUST be an object. - If
run.statusisfailed,workMUST benull.
After writing builder_result.json, you MUST run validate_builder_result and fix any reported issues until it passes.
If validate_builder_result cannot be executed (tool missing/unavailable), treat it as a hard failure:
- set
run.status = "failed" - set
run.failed_step = "validate_builder_result" - set
run.errorto the exact error output - set
work = nullThen still writebuilder_result.jsonand include the failure in the Run Summary.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
builder-checklist
Builder implementation checklist used to drive todowrite and execution order.
greeter
I greet politely.
inspector-checklist
Inspector review checklist used to drive todowrite and review order.
inspector-signoff
Mandatory final handoff procedure for Inspector (public output + inspector_result.json + validation).
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?