role-root

role-root is a skill for Claude Code, Codex from ryan-scheinberg/harness. It costs 14 tokens per session (990 once invoked), scanned A, original, MIT.

The default operating role for a coding-agent session. It handles incoming work directly and coordinates other agents when a task is too large for one session.

In plain words
What is it for?
Use it to manage general requests, delegate implementation units to builder agents, coordinate verification, and drive work through to completion.
Why use it?
It gives a session a clear place to start, while providing a process for splitting, building, and checking larger tasks.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ryan-scheinberg/harness/role-root
Any agent
npx skills add ryan-scheinberg/harness --skill role-root
Clone the repo
git clone --depth 1 https://github.com/ryan-scheinberg/harness

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 role-root

README.md
[![agentmods](https://agentmods.dev/badge/skills/ryan-scheinberg/harness/role-root.svg)](https://agentmods.dev/skills/ryan-scheinberg/harness/role-root)
Your own site
<a href="https://agentmods.dev/skills/ryan-scheinberg/harness/role-root"><img src="https://agentmods.dev/badge/skills/ryan-scheinberg/harness/role-root.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 990 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00014 $0.00990
Opus 5 $0.00007 $0.00495
Sonnet 5 $0.00003 $0.00198
Haiku 4.5 $0.00001 $0.00099

Measured 3d ago against content hash 3673df459db6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

role-root 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 3d 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.

codex/roles/role-root/SKILL.md · 57 lines

How it starts

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

You are the root session. When the user runs bare codex, you appear

Handle whatever lands here. Default to doing the work directly, with the help of $role-verify and subagents. When a task outgrows one context, orchestrate it — you stay the only point of contact and drive it to shipped, no one pinging back

Orchestrating

Spawn with agent_type: "luna_builder" per implementation unit, its prompt opening $role-build plus the context it needs. When the spawn schema exposes fork_turns, pass fork_turns: "none" so the custom role/model override applies. After assembling the batch, record the exact pre-batch commit as base and run Fable directly in the foreground:

env -u ANTHROPIC_API_KEY -u ANTHROPIC_AUTH_TOKEN -u ANTHROPIC_BASE_URL \
  -u CLAUDE_CODE_USE_BEDROCK -u CLAUDE_CODE_USE_VERTEX -u CLAUDE_CODE_USE_FOUNDRY \
  claude -p --model fable --effort medium --dangerously-skip-permissions --no-session-persistence \
  "/role-qa ... exact <base>..HEAD range ... info about what to qa + approvals / what it's allowed to do to qa such as full playwright."

Use the shell tool's full-access mode for this call: Claude's subscription credential lives in the macOS Keychain, which the default Codex workspace sandbox cannot read. This is one blocking call, not a Codex courier or tracked plugin job. Keep it blocked until Claude exits (poll a yielded shell session); treat a nonzero exit or authentication message as BLOCKED. Fable must return PASS, FAIL, or BLOCKED and must not edit or fix code

  • $role-build via agent_type: "luna_builder" — one unit of work: architected, built, self-proven, committed, returned. One agent per independent unit; they run in parallel
  • Fable QA — the foreground claude -p --model fable call above, with the assembled-batch prompt beginning /role-qa
  • $role-deploy — ships the verified batch through the project's deploy skill
  • $role-harness-engineer — evolve the harness itself (skills, AGENTS.md, hooks) when real work exposes a gap. Outside the product loop

The loop: cut the work into units → a luna_builder agent per unit, each prompt beginning $role-build → merge the finished units to main yourself → run the foreground Fable QA call on the assembled <base>..HEAD range → spawn luna_builder to fix what Fable finds, QA evidence in the prompt → rerun Fable → $role-deploy. You read each return and decide the next move; nothing reaches back into a running subagent

Read the full file on GitHub · 57 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. 3d ago First seen · 57 lines · 14 tokens per session scan A 3673df459db6

Subscribe to this mod's changes

role-root is a skill published in the GitHub repository ryan-scheinberg/harness (2 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 990 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

fablize

A harness that makes Opus (or any Claude model) behave like Fable — it enforces seeing a task through to the end, with evidence and verification, as procedure. Use when starting a multi-step task (2+ sequential stories), long autonomous work, debugging or root-cause investigation, building render/executable artifacts…

fivetaku/fablize · 104 tokens

api-gateway

Call third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected search or scraping…

maton-ai/api-gateway-skill · 173 tokens

owner-facing-reporting

Use for every progress update, status report, problem explanation, ETA, review, acceptance, or completion report to the operator/owner, especially when they ask “到哪了”, “什么问题”, “做了什么”, “结果呢”, “还要多久”, or “说人话”. Translate technical evidence into visible or operational outcomes before details.

ConnorRX56/presentation-delivery-skills · 76 tokens

human-intent-audit

Enforce traceability from natural-language intent to machine predicates, final observables, evidence, and owner-readable acceptance. Use when conducting any audit, review, QA pass, parity or compliance check, security assessment, code or architecture review, visual or behavioral comparison, data validation, system…

ConnorRX56/presentation-delivery-skills · 77 tokens

visual-deck-studio

视觉演示工坊——用HTML做高保真原型、幻灯片、动画、可视化与专家评审,需求模糊时给设计方向。触发词:做原型、PPT、幻灯片、动画、设计风格、评审、做个HTML页面、UI mockup、导出MP4/GIF、做个好看的。生产级Web App/需后端的系统不适用。.

ConnorRX56/presentation-delivery-skills · 103 tokens

conducting-scientific-research

Conduct rigorous, reproducible multi-step scientific work with literature, databases, local files, Python, R, shell, artifacts, reviewers, and approved compute. Use for evidence synthesis, data or statistical analysis, machine learning, simulation, study design, scientific figures or manuscripts, reproduction audits…

Shoko-official/Claude-Science-System-Prompts · 99 tokens