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.
npx skills add Arasz/ai-raccoon --skill maintain-agent-instructionsgit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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.
[](https://agentmods.dev/skills/arasz/ai-raccoon/maintain-agent-instructions)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.jsonby default; seereferences/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
-
Run validation:
node .ai-badger/skills/maintain-agent-instructions/scripts/validate-agent-instructions.mjs -
Run drift detection:
node .ai-badger/skills/maintain-agent-instructions/scripts/check-agent-drift.mjsBoth scripts are
#!/usr/bin/env nodeand import onlynode:fs/node:path— Node 18+, no bundler, no dependencies. Run them from the project root; they readprocess.cwd()andAGENT_INSTRUCTIONS_DIR(default.ai-badger/agent-instructions). Adjust the path prefix if the skill was scaffolded elsewhere. -
If both pass, report success.
-
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.
-
If the change modifies architecture/process policy, add or update an ADR (if the project keeps one).
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.
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.
- yesterday First seen · 109 lines · 77 tokens per session scan A e25fe03f28e1
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.
maintain-agent-instructions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| maintain-agent-instructionsArasz/ai-raccoon | Skill | 7 | today | MIT | A | 77 | Claude Code, Codex |
| cartographer-kb-createBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 53 | Claude Code, Codex |
| cartographer-kb-importBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |
| cartographer-kb-source-authorBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 106 | Claude Code, Codex |
| cartographer-feedbackBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 83 | Claude Code, Codex |
| cartographer-cliBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 37 | Claude Code, Codex |
| cartographer-kb-doctorBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 91 | Claude Code, Codex |