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.
git clone --depth 1 https://github.com/Borda/AI-Rignpx agentmods add skills/borda/ai-rig/rig-implementWrote 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.
[](https://agentmods.dev/skills/borda/ai-rig/rig-implement)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.mdfrom a completed, independently reviewedrig-planrun, with its run ID, digest,revision, and scope verdict table; or - a prompt plus a structured mini-plan for a
TRIVIALchange (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, orrefactor. Performance optimization routes torig-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_RISKscope (auth, credentials, data, release, CI, migrations), 3+ files, or no honest feasibility statement meansrig-planfirst. 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 atrig-plan, not as a failure.
Workflow
- Start the run. Detect gates using
rig_gatewithaction: "detect". If there is no configured gate, passgate_exemptionnaming the reason and manual substitute at start. Callrig_evidencewithaction: "start",skill: "rig-implement", target paths, and bothplan_pathandplan_run_idfor a frozen plan; keep the returned run ID. For a trivial change, omitplan_pathandplan_run_idand pass the mini-plan JSON astrivial_plan; itsowned_pathsbecome the scope. - Verify the plan. For a frozen plan, use
rig_evidencewithaction: "inspect"and explicitrun_idfor both this run and the completed, independently reviewedrig-planrun. Compare the normalized project-relativeplan.pathvalues against the project root; equivalent spellings must not cause a false stop, and paths outside the project are rejected. Require digest equality between bothplan.digestvalues, the plan run'sreview.plan_digest, and the current plan file's SHA-256: useshasum -a 256orsha256sumon POSIX, orGet-FileHash -Algorithm SHA256on 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'srevisionand confirm the work stays inside itsin-scoperows. For a mini-plan, confirm the change is still the smaller case it claimed: same owned paths, no new requirement, noHIGH_RISKsurface. If source contradicts either plan, stop and report; do not rewrite the plan. - Establish a baseline. Run the narrowest relevant test or reproduction before editing. For a refactor, capture characterization tests first.
- 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.
- Reconcile the scope. After the last edit and any formatter, call
rig_evidencewithaction: "refresh"and amessagenaming 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 withaction: "append"; a closed one is archived, so the next challenge starts a fresh ledger. - Run configured gates. Call
rig_gatewithaction: "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. - Record outputs.
rig_evidencewithaction: "record"for changed paths, limits, and any decision that future readers need. Map every changed path to anin-scoperow; a path outside the table stops the handoff, which waits for the user to approve a plan revision. - Run the final independent challenge. After the gates pass and before finalizing, dispatch
rig-challenger(native subagent when installed, otherwiserig_dispatch) with the changed paths, the plan tree or mini-plan and acceptance criteria, and the gate receipts. Always write its result withrig_findings(reviewernames 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. - Resolve every finding. Closure is the default, not a negotiation: on an in-scope path, fix it.
rejectedneeds counter-evidence from source, not preference;deferredis only for a finding outside the plan's owned paths and needs an owner and a trigger;accepted-riskrequires an explicit user decision recorded in the run. When the challenge reported asecurity,critical, orhighfinding that is not rejected, converge with the loop:rig_loopwithaction: "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_evidenceaction: "refresh", rerun the affected gates, and re-challenge the new bytes withrig-challenger. rig_loopwithaction: "append"re-assessing every prior signature asopenorfixed, thenaction: "finalize"withconvergedwhen 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 withround-limitand 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.
- 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_RISKscope belongs inrig-plannext 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, callrig_evidencewithaction: "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 returnsstale, callrig_evidencewithaction: "refresh", the run ID and amessagegiving 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 startmessage. If drift recurs, stop and report incomplete. - 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_grantwithaction: "revoke"before the user answers. Only Approve always recordsrig_git_grantwithaction: "approve", the user's literalApprove alwaysanswer inconfirm, andscope_acknowledged: trueonly after that answer accepts the stated scope. Never push.
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.
- 5d ago Changed · +20 lines 9edf2e926150
- 6d ago Changed · +2 lines b6a0b645836f
- 7d ago Changed · +2 lines 37d5f01c949b
- 11d ago Changed · -7 lines · +35 tokens per session 6a496cd9ac3b
- 19d ago Changed · +10 lines 9d4980bbff11
- 27d ago First seen · 38 lines · 24 tokens per session scan A a37f26e5396b
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.
Rig Implement compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Rig ImplementBorda/AI-Rig | Skill | 31 | today | Apache-2.0 | A | 59 | Claude Code, Codex |
| git-commithuangwb8/skills | Skill | 50 | yesterday | MIT | A | 88 | Claude Code, Codex |
| git-workflowhuangwb8/skills | Skill | 50 | yesterday | MIT | A | 47 | Claude Code, Codex |
| post-commitfusengine/agents | Skill | 34 | 1mo ago | MIT | A | 33 | Claude Code |
| commit-detectionfusengine/agents | Skill | 34 | 1mo ago | MIT | A | 26 | Claude Code |
| fix-prWeaverse/.agents | Skill | 0 | 13d ago | MIT | A | 40 | Claude Code |
| finalise-sessionisvlasov/rageatc-oss | Skill | 11 | 4mo ago | MIT | A | 15 | Claude Code |