Rig Plan
Produce a frozen implementation plan with owned paths, configured gates, risks, and acceptance criteria.
Files1
View on GitHubSKILL.mdplugins/opencode-rig/src/resources/skills/rig-plan/SKILL.md
GitHubRig Plan
Read Evidence rules before writing any factual claim.
Produce one plan that implementation can execute without re-deciding scope.
Input
- Goal or issue.
- Target paths, PR, or area, when known.
- Constraints: compatibility, deadlines, review requirements.
Workflow
- Classify scope.
TRIVIALunder 3 files and 50 changed lines;LOCALone subsystem;BROADcross-subsystem or 8+ files;HIGH_RISKwhen auth, credentials, data, release, CI, or migrations are touched. State the classification and why. - Collect evidence. Read the actual source, tests, configuration, and consumers. Do not plan from filenames alone. Record each authoritative file in the run.
- Start the run. Call
rig_evidencewithaction: "start",skill: "rig-plan", and the target paths. Keep the returnedrun_id. - Map the change. List each affected component, its consumer, the owned path, and the check that proves it still works.
- Write the plan to
<run-dir>/plan.mdwith: goal, scope classification, numbered steps, owned paths, gates, risks, rollback, acceptance criteria, and explicit non-goals. - Challenge the plan once. Dispatch
rig-challenger(native subagent when installed, otherwiserig_dispatch) with the plan, source digests, and acceptance criteria. Accept only findings that cite source. - Freeze it. Record the plan with
rig_evidence(action: "record",plan_path, andreviewernaming the independent challenger) and finalize.
Rules
- A frozen plan is read-only once implementation starts. If source contradicts the plan, stop and report the contradiction; never rewrite the plan to match what was built.
- Every step names its owned path. Two steps may not own the same path.
- Gates come from
rig_gatedetection, never from invented commands. - If no configured gate exists, record a gate exemption and say what manual check replaces it.
- Plans stay in the run directory. Do not ship plan text or private evidence as product content.
Output
Report the plan path, scope classification, digest, step count, gates, top risks, and any unresolved decision. Do not claim the change is implemented.