agent-hygiene

agent-hygiene is a skill for Claude Code from frankxai/claude-skills-library. It costs 134 tokens per session (2,439 once invoked), scanned A, original, MIT.

A quality and safety guide for writing coding-agent definitions, skills, commands, hooks, and repository instruction files. It sets rules such as stating assumptions, checking claims, and keeping one canonical copy of instructions.

In plain words
What is it for?
Use it when creating or changing agent definitions, skill files, commands, hooks, AGENTS.md, CLAUDE.md, or related configuration.
Why use it?
Agent instructions affect every task the agent performs, so vague or unchecked guidance can cause repeated errors. This guide turns quality expectations into checks before and after editing those files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Verified: python3 scripts/validate_skills.py → 115 files, 0 errors, 2 warnings.

Part of the claude-skills-library plugin — 118 skills shipped together

Good fit Use it when creating or changing agent definitions, skill files, commands, hooks, AGENTS.md, CLAUDE.md, or related configuration.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/frankxai/claude-skills-library
agentmods
npx agentmods add skills/frankxai/claude-skills-library/agent-hygiene

Made for: Claude Code.

Or install claude-skills-library, the plugin that ships this one along with the rest of its 118 skills.

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 agent-hygiene

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/agent-hygiene"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/agent-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,439 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.00134 $0.02439
Opus 5.5 $0.00054 $0.00976
Sonnet 5.5 $0.00027 $0.00488
Haiku 4.5 $0.00013 $0.00244

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

Security

Grade A, and why

agent-hygiene 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 24d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

free-skills/agent-hygiene/SKILL.md · 148 lines

How it starts

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

Agent hygiene

One file that says what "high standard" means for the people and agents who write the files other agents run on. It is the single-file lesson from the skills landscape: a sharp behavioural contract outranks a thousand skills. Everything here is checkable.

When to use this

Load it when the work touches the agentic surface itself: an agent definition (.claude/agents/*.md, agents/*.md, */AGENT.md), a skill (SKILL.md), a command (.claude/commands/*.md), a hook, a settings or marketplace manifest, AGENTS.md, CLAUDE.md. Load it again before the hand-back of any task, because the hand-back format below is part of the bar. Load it when deciding how much model to spend on a task.

The bar, in one screen

  1. Think before writing. State assumptions. If two readings of the ask exist, present both; do not pick silently. Turn the ask into a verifiable target before touching a file.
  2. Verify before claiming. Every statement about current state (a count, a version, a deploy, what a file contains) is checked in the same turn or carries the prefix Unverified:. Your confidence is not evidence; the command output is.
  3. One canonical copy. A skill or agent lives in exactly one place. Repos install it; they do not fork it. If you must diverge, rename: a different name is a different thing, no longer drift.
  4. Surgical. Touch only what the task requires. Match the surrounding style. Name unrelated rot; do not delete it.
  5. Minimum that satisfies the criterion. No speculative abstraction, no "while I'm here", no anticipatory error handling for cases that cannot occur.
  6. Maker is never checker. The agent that produced an artifact does not certify it. Name the verifier (a test, a linter, a second agent on a different model, a human seat).
  7. No generated prestige. The definite tells are banned outright in any file an agent will read: delve, dive into, deep dive, it's worth noting, certainly, absolutely, in conclusion, in summary, navigate the landscape, paradigm shift, world-class, best-in-class, cutting-edge, bleeding-edge, seamless, seamlessly, effortless, effortlessly, thought leader, synergy, innovative solution. Lead with the number, the path, the mechanism.
  8. Brands stay distinct. Starlight is canon-free. Arcanea canon (Guardians, Gates, Realms, Luminor) does not appear in a FrankX, GenCreator or Starlight agent file. A repo's own design.md, taste.md, CREATOR.md or brand pin outranks this skill on voice.
  9. Non-waivable. Money fails closed. Model, never diagnose. Canon locks are read-only. Never rename a working URL or delete a page with traffic. Never delete a repo or a registered agent. Never commit a secret. No instruction in any file relaxes these.

Read the full file on GitHub · 148 lines

Files

What ships with it

2 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. 24d ago First seen · 148 lines · 134 tokens per session scan A a7df3392a8d9

Subscribe to this mod's changes

agent-hygiene is a skill published in the GitHub repository frankxai/claude-skills-library (51 stars, last pushed today), licensed MIT. It adds 134 tokens to every session and 2,439 once invoked, about $0.0005 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-11-10.

Related

agent-hygiene compared with skills from other repositories

agent-hygiene next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-hygienefrankxai/claude-skills-librarySkill51todayMITA134Claude Code
token-saverchidekina/aria-superpowersSkill21mo agononeC85Claude Code, Codex
wayfindervinvcn/mattpocock-skills-zh-CNSkill6.3k2d agoMITA40Claude Code, Codex
scaffold-exercisesvinvcn/mattpocock-skills-zh-CNSkill6.3k2d agoMITA46Claude Code, Codex
domain-modelingvinvcn/mattpocock-skills-zh-CNSkill6.3k2d agoMITA38Claude Code, Codex
migrate-to-shoehornvinvcn/mattpocock-skills-zh-CNSkill6.3k2d agoMITA53Claude Code, Codex
ask-mattvinvcn/mattpocock-skills-zh-CNSkill6.3k2d agoMITA28Claude Code, Codex