rote-compile

rote-compile is a skill for Claude Code, Codex from trevhud/rote. It costs 175 tokens per session (4,147 once invoked), scanned A, original, Apache-2.0.

A compiler that turns an AI skill bundle into a planned workflow and generated runtime code. It separates fixed procedures, model-based decisions, agent loops, and points where a person must intervene.

In plain words
What is it for?
Use it to analyse a SKILL.md bundle, create a pipeline plan, generate code, or produce a report without generating code.
Why use it?
It makes repeatable parts of a loosely written AI workflow explicit and keeps ambiguous decisions in the places that need them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to analyse a SKILL.md bundle, create a pipeline plan, generate code, or produce a report without generating code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trevhud/rote/rote-compile
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.

Any agent
npx skills add trevhud/rote --skill rote-compile
Clone the repo
git clone --depth 1 https://github.com/trevhud/rote

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 rote-compile

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trevhud/rote/rote-compile"><img src="https://agentmods.dev/badge/skills/trevhud/rote/rote-compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,147 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.00175 $0.04147
Opus 5.5 $0.00070 $0.01659
Sonnet 5.5 $0.00035 $0.00829
Haiku 4.5 $0.00017 $0.00415

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

Security

Grade A, and why

rote-compile 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 4d 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.

skills/rote-compile/SKILL.md · 352 lines

How it starts

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

Skill Compilation

You are the rote compiler. You read fuzzy AI skills and produce reliable workflows.

Input: a directory containing a SKILL.md and an optional references/ folder with sub-files.

Output: an intermediate representation (pipeline.yaml) plus runtime-specific emitted code that the user can drop into their durable execution engine. rote then renders a human-readable compilation report (compile-report.md) from your pipeline.yaml and code: what was codified, what stayed agentic, and every judgment call you marked.

The guiding philosophy: keep the LLM at points where the input is unbounded or ambiguous (parsing, classifying, drafting, summarizing). Codify everything else — control flow, retries, parallelism, idempotency, side-effecting tool calls, fixed batching — into deterministic code. Every token spent re-deriving a known-fixed procedure at runtime is waste.

Phase Routing

Entry Point Start At Example Triggers
Full compilation Phase 1 → 7 "compile the bdr-outreach skill"
Report only Phase 1 → 5, skip 6 "analyze this skill, don't emit code"
Re-emit for different runtime Phase 6 "emit the existing pipeline.yaml for inngest"
Update compilation after skill changed Phase 1 → 7, diff "recompile bdr-outreach, it changed"

Pipeline

Think in files, not in your head. Your reasoning is not a draft. Anything you would write out in full (the classification table, a module, a test) belongs in a file, written once. Reason about one decision at a time, just before the Write it informs. Do not plan the whole compile, or draft its files, in one long block of thinking first: a real compile spent 64,000 tokens and 14 minutes that way before its first Write, and the block was discarded when it hit the per-response output limit. So the order is:

  1. One turn of Reads: every rubric reference and every file of the source skill, together.
  2. Write pipeline.yaml next, before any module: it is the Phase 2 classification and the data flow in one artifact. Every module then takes exactly its node's inputs: keys (and constants:) as parameters, which is a check rote runs.
  3. Write each module together with its test, two or three modules per turn.
  4. eval.yaml, last. Then stop, and end your turn with one short sentence, not a summary: rote renders compile-report.md and prints the verdict, so a summary is output nobody reads.

Read the full file on GitHub · 352 lines

Files

What ships with it

8 files 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. 4d ago Changed · +19 lines 9500af3d48d3
  2. 5d ago Changed · +38 lines 9822c5cd3bd2
  3. 6d ago Changed · +29 lines 9bb34bc89a23
  4. 1mo ago First seen · 266 lines · 175 tokens per session scan A bdf4c3e39261

Subscribe to this mod's changes

rote-compile is a skill published in the GitHub repository trevhud/rote (8 stars, last pushed yesterday), licensed Apache-2.0. It adds 175 tokens to every session and 4,147 once invoked, about $0.0007 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-08-31.