maintain-agent-instructions

maintain-agent-instructions is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 77 tokens per session (1,031 once invoked), scanned A, original, MIT.

A maintenance guide for keeping coding-agent instruction files consistent. It reconciles files such as CLAUDE.md, AGENTS.md, and editor-specific instructions with a shared machine-readable policy model.

In plain words
What is it for?
Use it when instruction files disagree, drift checks fail in continuous integration, or shared agent policy changes need to be reflected across files.
Why use it?
It addresses instruction drift, where different agent files give conflicting guidance or no longer match the project's policy. It also helps keep always-loaded instructions short and detailed rules scoped.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it when instruction files disagree, drift checks fail in continuous integration, or shared agent policy changes need to be reflected across files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/maintain-agent-instructions
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 Arasz/ai-raccoon --skill maintain-agent-instructions
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

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 maintain-agent-instructions

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/maintain-agent-instructions"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/maintain-agent-instructions.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,031 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.
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.01031
Opus 5.5 $0.00031 $0.00412
Sonnet 5.5 $0.00015 $0.00206
Haiku 4.5 $0.00008 $0.00103

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

Security

Grade A, and why

maintain-agent-instructions 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 yesterday.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check-agent-drift.mjs, scripts/constraint_count_lint.py, scripts/reasoning_scaffold_lint.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.ai-badger/skills/maintain-agent-instructions/SKILL.md · 109 lines

How it starts

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

Maintain agent instructions

This skill keeps agent guidance consistent while minimizing always-loaded context. It follows a hub-and-spoke model: one compact, always-loaded entrypoint per agent (CLAUDE.md, .github/copilot-instructions.md, …) plus detailed, path-scoped or on-demand instruction files. The model is machine-readable so drift between agent files can be checked by script instead of by eye — if the project records this decision as an ADR, link it here.

When NOT to Use

  • A single-file typo fix in one instruction file — edit it directly
  • No drift exists and CI checks pass
  • Authoring brand-new policy from scratch — that is content work, not reconciliation

Principles

  • Use scripts first; inspect only failing files/rules.
  • Keep each agent's always-loaded entrypoint compact. Put detailed guidance in scoped or on-demand files.
  • Update the agent-instructions model (.ai-badger/agent-instructions/model.json by default; see references/agent-instruction-model.md) when changing shared policy.
  • Treat .github/instructions/*.instructions.md (or the project's equivalent) as the shared path-scoped implementation rule source.
  • Do not rewrite every agent file just to rephrase. Make the smallest consistency-preserving edit.
  • The scripts are check-only by default; the agent handles semantic policy decisions and wording.

Standard workflow

  1. Run validation:

    node .ai-badger/skills/maintain-agent-instructions/scripts/validate-agent-instructions.mjs
    
  2. Run drift detection:

    node .ai-badger/skills/maintain-agent-instructions/scripts/check-agent-drift.mjs
    

    Both scripts are #!/usr/bin/env node and import only node:fs / node:path — Node 18+, no bundler, no dependencies. Run them from the project root; they read process.cwd() and AGENT_INSTRUCTIONS_DIR (default .ai-badger/agent-instructions). Adjust the path prefix if the skill was scaffolded elsewhere.

  3. If both pass, report success.

  4. If either fails:

    • inspect only the reported files and rules,
    • update the model if the policy changed,
    • update the smallest affected instruction file(s),
    • rerun both scripts.
  5. If the change modifies architecture/process policy, add or update an ADR (if the project keeps one).

Read the full file on GitHub · 109 lines

Files

What ships with it

6 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. yesterday First seen · 109 lines · 77 tokens per session scan A e25fe03f28e1

Subscribe to this mod's changes

maintain-agent-instructions is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 1,031 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-12-05.

Related

maintain-agent-instructions compared with skills from other repositories

maintain-agent-instructions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
maintain-agent-instructionsArasz/ai-raccoonSkill7todayMITA77Claude Code, Codex
cartographer-kb-createBeppeTemp/cartographerSkill74yesterdayApache-2.0A53Claude Code, Codex
cartographer-kb-importBeppeTemp/cartographerSkill74yesterdayApache-2.0A51Claude Code, Codex
cartographer-kb-source-authorBeppeTemp/cartographerSkill74yesterdayApache-2.0A106Claude Code, Codex
cartographer-feedbackBeppeTemp/cartographerSkill74yesterdayApache-2.0A83Claude Code, Codex
cartographer-cliBeppeTemp/cartographerSkill74yesterdayApache-2.0A37Claude Code, Codex
cartographer-kb-doctorBeppeTemp/cartographerSkill74yesterdayApache-2.0A91Claude Code, Codex