compile

compile is a command for coding agents from seob717/nunchi. It costs 19 tokens per session (3,032 once invoked), scanned A, original, MIT.

A command that reads rules from CLAUDE.md and linked documents and turns action-specific ones into trigger-based rule files. Rules are instructions that should be recalled before a particular tool call or coding action.

In plain words
What is it for?
Use it to compile rules for actions such as editing files, running commands, committing changes, or creating pull requests, while reporting procedures that may belong in skills.
Why use it?
It separates actionable reminders from general guidance and multi-step procedures, so each kind of instruction can live in a more suitable place.

Command

Part of the nunchi plugin — 1 skill, 2 commands, 3 hooks shipped together

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 commands/seob717/nunchi/compile
Clone the repo
git clone --depth 1 https://github.com/seob717/nunchi

Or install nunchi, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 3 hooks.

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 compile

README.md
[![agentmods](https://agentmods.dev/badge/commands/seob717/nunchi/compile.svg)](https://agentmods.dev/commands/seob717/nunchi/compile)
Your own site
<a href="https://agentmods.dev/commands/seob717/nunchi/compile"><img src="https://agentmods.dev/badge/commands/seob717/nunchi/compile.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,032 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.00019 $0.03032
Opus 5 $0.00010 $0.01516
Sonnet 5 $0.00004 $0.00606
Haiku 4.5 $0.00002 $0.00303

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

Security

Grade A, and why

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 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.

commands/compile.md · 110 lines

How it starts

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

/nunchi:compile

Compile rules with the following procedure.

1. Collect input

  • Argument: $ARGUMENTS
  • If an argument is given, read only that document; otherwise read the project CLAUDE.md and every @path document it references.

2. Extract rules

From each document, extract only rules that "are effective when recalled right before a specific action." Criteria:

  • Can it be tied to a specific tool call? (creating a PR, committing, editing a specific file, running a specific command)
  • Content that can't be tied to an action is not a compilation target — skip it, but classify what you skip into two lists for the final report (§6):
    • Procedure — an ordered, multi-step how-to or workflow (release steps, migration order, environment setup). The right home is a Claude Code skill: a skill loads only its description at session start and its body on invocation — the same context economics as a nunchi rule, for content that is a how rather than a before. Report it as a skill candidate, quoting the passage that makes it procedural. Boundary: a checklist to run before one specific action ("before pushing, review the diff and run the checks") is a rule bound to that action, not a skill candidate — being multi-step doesn't disqualify it (measured misroute: pilot/RESULTS-compile-bench-skillroute.md); skill candidates are only for how-tos with no single triggering tool call.
    • Always-on guidance — tone, general coding style, facts that must color every turn: stays in CLAUDE.md. When unsure, classify here — never propose moving content out of CLAUDE.md on a guess, and never route anything action-bindable into a skill candidate (an action rule compiles; a skill candidate is only for what step 1 of this section already rejected).
  • Tables, fenced code blocks, and list items are rule candidates on equal footing with prose. A constraint doesn't stop being a rule because it sits in a table row or next to a code sample. But distinguish usage catalogs from constraints: a commands table that only lists what you can run is documentation, not a rule — it becomes a rule only when the document attaches an obligation, prohibition, or ordering to the action (must / never / before / after / only).
  • One rule per trigger: when one sentence bundles requirements aimed at different triggers ("run X after editing A; run Y before pushing"), split them so each rule carries its own trigger and strength. Do NOT split an enumeration that shares one trigger, one strength, and one source ("run make format, make lint, make test before creating a PR" stays a single rule) — same-trigger copies would deliver the same source document multiple times for nothing.

Read the full file on GitHub · 110 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 · 110 lines · 19 tokens per session scan A 41286d3aa788

Subscribe to this mod's changes

compile is a command published in the GitHub repository seob717/nunchi (8 stars, last pushed 7d ago), licensed MIT. It adds 19 tokens to every session and 3,032 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.