ai-config-authoring

ai-config-authoring is a skill for Claude Code, Codex from grimoire-rs/grimoire. It costs 77 tokens per session (1,765 once invoked), scanned A, original, Apache-2.0.

A guide for writing instructions and configuration files for AI coding tools, including skills, rules, agents, and always-on instructions. It explains when each type is appropriate and how to keep configuration within the model's attention budget.

In plain words
What is it for?
Use it to create or review SKILL.md files, rules, agent definitions, hooks, and other coding-agent configuration.
Why use it?
It helps prevent bloated instructions from consuming context and causing important guidance to be overlooked.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it to create or review SKILL.md files, rules, agent definitions, hooks, and other coding-agent configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grimoire-rs/grimoire/ai-config-authoring
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 grimoire-rs/grimoire --skill ai-config-authoring
Clone the repo
git clone --depth 1 https://github.com/grimoire-rs/grimoire

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 ai-config-authoring

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/ai-config-authoring"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/ai-config-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,765 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.00077 $0.01765
Opus 5.5 $0.00031 $0.00706
Sonnet 5.5 $0.00015 $0.00353
Haiku 4.5 $0.00008 $0.00177

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

Security

Grade A, and why

ai-config-authoring 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 2d 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.

catalog/skills/ai-config-authoring/SKILL.md · 140 lines

How it starts

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

AI Config Authoring

Core Principle: Context Is a Budget

Every always-loaded line competes with the user's actual task for model attention, and attention degrades as volume grows — bloated config makes agents ignore the instructions that matter. Pay the always-on price only for content needed every session; defer everything else behind on-demand loading (progressive disclosure). For each line, apply the deletion test: would removing it cause mistakes? If not, cut it.

Budget Table

Artifact Budget Cost is paid
Always-on instruction file < 200 lines Every session, every turn
Glob-scoped rule < 200 lines each Only while matching files are in play
Skill metadata (name + description) ~100 tokens per skill Every session, all skills
Skill body (SKILL.md) < 500 lines / < 5k tokens Only when the skill triggers
Skill bundled files Effectively unlimited Only when read or executed
Subagent Isolated window Separate budget; only its summary returns
Hook Zero context Never — scripts run outside the context

The Artifact-Type Landscape

The first matching row picks the type. Full comparison — vendor support, failure modes, migration paths — in references/choosing-types.md.

The content is... Use
Mechanical, must happen 100% of the time, no judgment Hook
Identity, commands, conventions relevant to every task Always-on instruction file
A standard that applies while editing certain files Glob-scoped rule
An occasional procedure or piece of domain knowledge Skill
A side-effectful workflow to run only on explicit request Manual-only skill
Context-heavy research, parallel work, separate privileges Subagent
Something that must port across clients Skill — the only type every client hosts
Logic a machine can run rather than prose to read Hook, or a script inside a skill

Every row above is packageable — grim distributes skills, rules, subagents, MCP registrations, and now hooks as artifact kinds. That changes distribution, never portability: a hook still needs a lifecycle surface in the client to be written at all, so it reaches a narrow set (four clients today) where a skill reaches all of them. Details in references/choosing-types.md.

Read the full file on GitHub · 140 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. 2d ago Changed · +5 lines fe845f7c5038
  2. 21d ago Changed · +7 lines 75bf7b563aed
  3. 28d ago Changed c13809c54826
  4. 1mo ago First seen · 128 lines · 77 tokens per session scan A 929fd5fe1472

Subscribe to this mod's changes

ai-config-authoring is a skill published in the GitHub repository grimoire-rs/grimoire (14 stars, last pushed today), licensed Apache-2.0. It adds 77 tokens to every session and 1,765 once invoked, about $0.0003 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.