agent-shims

agent-shims is a skill for Codex from Borda/AI-Rig. It costs 33 tokens per session (1,221 once invoked), scanned A, original, Apache-2.0.

A tool for checking, installing, or removing role-agent helper files used by Codex Rig. It also reports whether those helpers are working.

In plain words
What is it for?
Use it to inspect agent-helper health or perform one lifecycle action: doctor, status, install, or remove.
Why use it?
It reduces the risk of using an agent role that is installed but not actually selected or usable.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Before asking, read [User Questions](../../shared/codex-user-questions.md). Waits, plan updates, and test runs follow [Agent Waits](../../shared/native-skill-co.

Good fit Use it to inspect agent-helper health or perform one lifecycle action: doctor, status, install, or remove.

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/agent-shims

Made for: 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 agent-shims

README.md
[![agentmods](https://agentmods.dev/badge/skills/borda/ai-rig/agent-shims/github.svg)](https://agentmods.dev/skills/borda/ai-rig/agent-shims)
Your own site
<a href="https://agentmods.dev/skills/borda/ai-rig/agent-shims"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/agent-shims/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 agent-shims

Your own site · 80×15
<a href="https://agentmods.dev/skills/borda/ai-rig/agent-shims"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/agent-shims.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,221 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00033 $0.01221
Opus 5.5 $0.00013 $0.00488
Sonnet 5.5 $0.00007 $0.00244
Haiku 4.5 $0.00003 $0.00122

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

Security

Grade A, and why

agent-shims 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 15d 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/codex-rig/skills/agent-shims/SKILL.md · 49 lines

How it starts

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

Before asking, read User Questions. Waits, plan updates, and test runs follow Agent Waits, Plan Updates, and Sandboxed Test Runs.

Agent Shims

At initial entry, after recovery, and after user intervention or repeated invocation, follow Resume And Re-entry: proactively complete the selected action's permitted recovery, verification and diagnostic instructions below. This manager keeps its non-artifact lifecycle and action-specific stop rules; it doesn't skip its closing checks or replace final explanation with raw JSON.

This is experimental lifecycle tool. Installing authenticated standalone agent TOML does not prove that active collaboration interface can select that custom profile. A task name or child path matching role name is not proof. Use installed shims only when runtime exposes explicit custom-agent selector and observed child metadata plus verifier output prove selection; otherwise use blank-agent role-card injection.

Accept exactly one action: doctor, status, install, or remove. Reject missing, extra, or unknown arguments without writes.

Any follow-up question follows User Questions: put accepted action names or required input format in the permitted native control after showing context; use plain chat only when no permitted native control is suitable. Preserve the manager's exact-digest removal confirmation syntax; never substitute a generic yes/no response for that digest-bound input. The blocked install action still requires no approval prompt.

Resolve PLUGIN_ROOT two levels above this installed skill directory. Run PLUGIN_ROOT/bin/python PLUGIN_ROOT/scripts/manage_role_agents.py <action> with the selected action; on native Windows use PLUGIN_ROOT/bin/python.cmd. Never copy manager, resolve it through source checkout, or edit generated agent files directly.

  • doctor: run read-only live prerequisite check, render its JSON result for person.
  • status: run read-only health and installed-roster summary, render its JSON result for person.
  • install: report stable platform block. Never request approval; no new shim plan or write is allowed.
  • remove: use the manager's exact-digest removal confirmation to remove every intact managed shim. Never delete by filename prefix or marker alone. On failure, apply the same per-failure-category recovery guidance in item 4 below for doctor and status — it applies to remove's failure modes too.

Preserve manager's exit contract: 0 success/converged, 2 usage, 3 cancelled, 4 drift/conflict, 5 prerequisite blocked, 6 untrusted state, 7 internal/recovery failure. Never retry mutating action after codes 4, 6, or 7; report evidence, keep files untouched.

For doctor and status, never return only raw JSON or generic safety label:

  1. Start with plain-English explanation of whether shims are usable and what needs attention. Then give Healthy, Degraded, or Blocked, followed by first non-pass check and its exact detail; never expose raw diagnostic JSON as whole answer.
  2. List every other non-pass check once, then summarize state, targets, recovery, namespace candidates.
  3. State No files changed.
  4. Give narrow safe next step. For package or active-package failures, refresh or reinstall Codex Rig, start fresh session. For executable failures, report selected path, rerun from fresh session with stable Python and Codex selection. For permission, owner, type, or link failures, inspect only named path, verify its metadata before changing anything. For corrupt, inconsistent, modified, or foreign evidence, back it up, never adopt, edit, or delete it automatically. For recognized recovery residue, use remove, review its authenticated approval digest.

Read the full file on GitHub · 49 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 15d ago Changed ac814a691f85
  2. 18d ago Changed d152c931a763
  3. 1mo ago Changed · +5 tokens per session 0f685c63618a
  4. 2mo ago Changed fe22c2ae1d2b
  5. 2mo ago Changed c49368e80321
  6. 2mo ago Changed be960b45f41e
  7. 2mo ago Changed 13846e345afc
  8. 2mo ago Changed · +2 lines 9f64285f4e4c
  9. 2mo ago Changed · +4 lines 6e51cc5414db
  10. 2mo ago First seen · 43 lines · 28 tokens per session scan A 7b4ebeaf345d

Subscribe to this mod's changes

agent-shims is a skill published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 1,221 once invoked, about $0.0001 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-09-03.

Related

agent-shims compared with skills from other repositories

agent-shims next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-shimsBorda/AI-RigSkill31yesterdayApache-2.0A33Codex
i18n-parityhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA95Claude Code, Codex
file-headershoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA101Claude Code
productivity-scorehoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA67Claude Code, Codex
dashboard-statushoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA69Claude Code, Codex
dag-maphoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA65Claude Code, Codex
regression-watchhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA82Claude Code, Codex