Rig Implement

Rig Implement is a skill for Claude Code, Codex from Borda/AI-Rig. It costs 59 tokens per session (2,856 once invoked), scanned A, original, Apache-2.0.

A controlled workflow for carrying out a fixed coding plan or a small, clearly scoped change. It checks that the plan still matches the source, makes changes in batches, runs focused checks, and prepares evidence for a commit handoff.

In plain words
What is it for?
Implementing features, fixes, refactors, or performance changes; recording a baseline; running configured checks; and producing a handoff for committing the result.
Why use it?
It stops when the plan's assumptions are wrong instead of silently changing the plan. Baselines, batch checks, and reruns make it easier to identify which edit caused a failure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Read [Evidence rules](../../references/evidence.md) and [Commit handoff](../../references/commit-handoff.md). Follow [Role dispatch](../../references/evidence.m.

Good fit Implementing features, fixes, refactors, or performance changes; recording a baseline; running configured checks; and producing a handoff for committing the result.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Borda/AI-Rig
agentmods
npx agentmods add skills/borda/ai-rig/rig-implement

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Rig Implement

README.md
[![agentmods](https://agentmods.dev/badge/skills/borda/ai-rig/rig-implement/github.svg)](https://agentmods.dev/skills/borda/ai-rig/rig-implement)
Your own site
<a href="https://agentmods.dev/skills/borda/ai-rig/rig-implement"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/rig-implement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Rig Implement

Your own site · 80×15
<a href="https://agentmods.dev/skills/borda/ai-rig/rig-implement"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/rig-implement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.02856
Opus 5.5 $0.00024 $0.01142
Sonnet 5.5 $0.00012 $0.00571
Haiku 4.5 $0.00006 $0.00286

Measured 5d ago against content hash 9edf2e926150, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Rig Implement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/opencode-rig/src/resources/skills/rig-implement/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rig Implement

Read Evidence rules and Commit handoff. Follow Role dispatch for delegated work and the shared Optional command compression guidance for read-heavy commands.

Input

  • A frozen plan.md from a completed, independently reviewed rig-plan run, with its run ID, digest, revision, and scope verdict table; or
  • a prompt plus a structured mini-plan for a TRIVIAL change (under 3 files and 50 changed lines).

The mini-plan is the object the tool validates at start; a prompt alone is not one:

{
  "goal": "one sentence stating the outcome",
  "owned_paths": ["src/example.ts"],
  "acceptance_check": "the exact focused command or observation that proves it",
  "feasibility": "why this is understood, coherent and safe to start now"
}
  • Optional: kind = feature, fix, or refactor. Performance optimization routes to rig-optimize.

No plan, no implementation. Without a frozen plan or a valid mini-plan, stop and use rig-plan. Never start an unclear change to find out whether it is small: that is the wasted effort this gate exists for. Ambiguity, HIGH_RISK scope (auth, credentials, data, release, CI, migrations), 3+ files, or no honest feasibility statement means rig-plan first. The tool rejects a malformed, directory-valued, VCS-internal (.git), or scope-widening mini-plan, normalizes the owned paths, and scopes the run to exactly those files; a declared file may not exist yet, so a small new file starts normally and must exist by refresh. The size guideline is accounting: the run reports the change it measured from its own start bytes, and a change above 50 lines or two files is recorded as a limit that points later work at rig-plan, not as a failure.

Workflow

  1. Start the run. Detect gates using rig_gate with action: "detect". If there is no configured gate, pass gate_exemption naming the reason and manual substitute at start. Call rig_evidence with action: "start", skill: "rig-implement", target paths, and both plan_path and plan_run_id for a frozen plan; keep the returned run ID. For a trivial change, omit plan_path and plan_run_id and pass the mini-plan JSON as trivial_plan; its owned_paths become the scope.
  2. Verify the plan. For a frozen plan, use rig_evidence with action: "inspect" and explicit run_id for both this run and the completed, independently reviewed rig-plan run. Compare the normalized project-relative plan.path values against the project root; equivalent spellings must not cause a false stop, and paths outside the project are rejected. Require digest equality between both plan.digest values, the plan run's review.plan_digest, and the current plan file's SHA-256: use shasum -a 256 or sha256sum on POSIX, or Get-FileHash -Algorithm SHA256 on Windows, with the plan file as the argument; compare lowercase hex of the raw bytes without rebinding. Missing provenance, missing review, different normalized paths, or a digest mismatch stops implementation. The tool checks reviewed-plan provenance and unchanged plan bytes at start and finalization. Read the plan's revision and confirm the work stays inside its in-scope rows. For a mini-plan, confirm the change is still the smaller case it claimed: same owned paths, no new requirement, no HIGH_RISK surface. If source contradicts either plan, stop and report; do not rewrite the plan.
  3. Establish a baseline. Run the narrowest relevant test or reproduction before editing. For a refactor, capture characterization tests first.
  4. Implement the task tree depth-first. Walk leaves in tree order; each leaf is a batch: one owner, one acceptance check, and a focused run before the next leaf. A failed leaf check blocks its subtree. Disjoint leaves must run as bounded subagents (one owner per path); serialise only rows that share a path, and never run a shared path in parallel. A leaf whose check cannot run is an explicit block, not a pass. A mini-plan is a single leaf.
  5. Reconcile the scope. After the last edit and any formatter, call rig_evidence with action: "refresh" and a message naming what changed. This is the only way the run adopts edited source; it clears the previous challenge and findings, which must then be re-recorded against the new bytes. An open challenge ledger keeps its rounds and continues with action: "append"; a closed one is archived, so the next challenge starts a fresh ledger.
  6. Run configured gates. Call rig_gate with action: "run" and the run ID. If no configured gate exists, execute and record the manual substitute named in the start-time exemption instead. Fix failures and rerun the same gate. Never retry a failing gate unchanged, and never substitute a manual claim for a failed check. If a gate rewrites files, refresh the scope and rerun that gate.
  7. Record outputs. rig_evidence with action: "record" for changed paths, limits, and any decision that future readers need. Map every changed path to an in-scope row; a path outside the table stops the handoff, which waits for the user to approve a plan revision.
  8. Run the final independent challenge. After the gates pass and before finalizing, dispatch rig-challenger (native subagent when installed, otherwise rig_dispatch) with the changed paths, the plan tree or mini-plan and acceptance criteria, and the gate receipts. Always write its result with rig_findings (reviewer names the challenger, evidence and coverage included; every finding carries a severity and a status). An empty inventory is the required record when the challenge found nothing; finalize rejects a missing one, and a trivial run is exempt. The record binds the current scope digest: any later edit invalidates it and requires a fresh challenge. The parent never counts its own analysis as the challenge.
  9. Resolve every finding. Closure is the default, not a negotiation: on an in-scope path, fix it. rejected needs counter-evidence from source, not preference; deferred is only for a finding outside the plan's owned paths and needs an owner and a trigger; accepted-risk requires an explicit user decision recorded in the run. When the challenge reported a security, critical, or high finding that is not rejected, converge with the loop:
    • rig_loop with action: "start", the implementation run ID, reviewer, and the challenge findings, using each finding ID as its stable signature. Start the ledger before fixing, so it shows the finding open and then fixed; every security, critical and high finding must appear, and finalization rejects a ledger that skipped one.
    • Fix the validated findings, rig_evidence action: "refresh", rerun the affected gates, and re-challenge the new bytes with rig-challenger.
    • rig_loop with action: "append" re-assessing every prior signature as open or fixed, then action: "finalize" with converged when the last round has no open security, critical or high finding. The tool rejects convergence on an open high finding for an implementation run.
    • Repeat while a security, critical or high finding remains open, up to options.maxLoopRounds. At the limit, finalize the loop with round-limit and report the run as blocked with the residue; never claim convergence.
    • No security, critical or high finding: skip the loop entirely (early exit) and close the remaining low findings by disposition.
  10. Finalize. For a frozen plan, recheck the plan's SHA-256 against both bound digests using a raw-bytes command from step 2; stop on any mismatch and never rebind an edited plan to bypass the check. For a mini-plan, read the measured change the tool reports; a measurement above the 50-line or 2-file guideline, an unmeasured file, ambiguity, or HIGH_RISK scope belongs in rig-plan next time, and this run records it as a limit. A declared file that is missing is still a block, and every recorded output must stay inside the declared paths. After the applicable check passes, call rig_evidence with action: "finalize". It requires passing gates, a challenge bound to the current scope, a findings inventory with no open finding, and a converged loop whenever the challenge reported a security, critical or high finding. A failed gate or source drift blocks completion; never edit the record to bypass it. If step 7 detects source drift or finalization returns stale, call rig_evidence with action: "refresh", the run ID and a message giving the reason, rerun the affected evidence and required checks, and finalize again; a completed or failed run cannot be refreshed, so start one replacement run with the old run ID in its start message. If drift recurs, stop and report incomplete.
  11. Commit handoff. Propose the exact commit message and the paths grouped by plan row. Follow Commit handoff: honor explicit restrictions; a user-requested commit or valid existing grant needs no new conversational approval, and proposing this handoff alone does not authorize a commit. Without a grant, use the runtime shell permission prompt for the one-time Approve or Deny decision on that exact commit; do not ask for a conversational Approve first. Approve authorizes only the proposed commit without a persistent grant; Deny leaves changes unstaged. If the user wants persistent approval, offer Approve always separately: its option text states its repository-wide scope across worktrees, the 30-day lifetime, the exclusions, and how to revoke with rig_git_grant with action: "revoke" before the user answers. Only Approve always records rig_git_grant with action: "approve", the user's literal Approve always answer in confirm, and scope_acknowledged: true only after that answer accepts the stated scope. Never push.

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +20 lines 9edf2e926150
  2. 6d ago Changed · +2 lines b6a0b645836f
  3. 7d ago Changed · +2 lines 37d5f01c949b
  4. 11d ago Changed · -7 lines · +35 tokens per session 6a496cd9ac3b
  5. 19d ago Changed · +10 lines 9d4980bbff11
  6. 27d ago First seen · 38 lines · 24 tokens per session scan A a37f26e5396b

Subscribe to this mod's changes

Rig Implement is a skill published in the GitHub repository Borda/AI-Rig (31 stars, last pushed today), licensed Apache-2.0. It adds 59 tokens to every session and 2,856 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.

Related

Rig Implement compared with skills from other repositories

Rig Implement next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Rig ImplementBorda/AI-RigSkill31todayApache-2.0A59Claude Code, Codex
git-commithuangwb8/skillsSkill50yesterdayMITA88Claude Code, Codex
git-workflowhuangwb8/skillsSkill50yesterdayMITA47Claude Code, Codex
post-commitfusengine/agentsSkill341mo agoMITA33Claude Code
commit-detectionfusengine/agentsSkill341mo agoMITA26Claude Code
fix-prWeaverse/.agentsSkill013d agoMITA40Claude Code
finalise-sessionisvlasov/rageatc-ossSkill114mo agoMITA15Claude Code