agents-md

agents-md is a skill for Claude Code, Codex from mblode/agent-skills. It costs 60 tokens per session (3,550 once invoked), scanned A, original, MIT.

A setup and audit workflow for AGENTS.md and related instruction files used by coding agents such as Claude Code, Codex, and Cursor.

In plain words
What is it for?
Use it to set up agent instructions, review existing AGENTS.md or CLAUDE.md files, find missing execution details, and rewrite rules around real project commands and failure cases.
Why use it?
It removes vague or excessive rules and makes the remaining instructions useful across the tools working in the repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to set up agent instructions, review existing AGENTS.md or CLAUDE.md files, find missing execution details, and rewrite rules around real project commands and failure cases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mblode/agent-skills/agents-md
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 mblode/agent-skills --skill agents-md
Clone the repo
git clone --depth 1 https://github.com/mblode/agent-skills

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 agents-md

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mblode/agent-skills/agents-md"><img src="https://agentmods.dev/badge/skills/mblode/agent-skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,550 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
  • Socket pass 23 Oct 2026
  • Snyk pass 6 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 95
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Anti-Refusal · line 115
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
  • medium Rogue Agent · line 94
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Agent Snooping · line 104
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00060 $0.03550
Opus 5.5 $0.00024 $0.01420
Sonnet 5.5 $0.00012 $0.00710
Haiku 4.5 $0.00006 $0.00355

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

Security

Grade A, and why

agents-md 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 27d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (evals/fixtures/claude-file-migration/base/packages/api/src/http.ts, evals/fixtures/claude-file-migration/base/packages/api/src/routes/quotes.ts, evals/fixtures/missing-deploy-script/base/scripts/check-migrations.mjs, …), 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.

skills/agents-md/SKILL.md · 176 lines

How it starts

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

AGENTS.md Setup and Audit

  • IS: wiring a repo so every agent tool in use reads the same rules, then auditing, scoring, refactoring, and writing the AGENTS.md / CLAUDE.md / CLAUDE.local.md files agents load at session start.
  • IS NOT: authoring SKILL.md files (use agent-skills-creator), project docs or READMEs (use ghostwriter), or mining session history (use the external cadence-advise skill where installed; this skill audits the file as-is).

AGENTS.md files are execution contracts, not knowledge bases. Two tests catch the two ways a line fails.

  • Dead weight: "Would removing this cause the agent to make a mistake?" If no, cut it; bloat makes agents ignore the rules that matter.
  • Harmful precision: "Is this wrong on any plausible task in this repo?" A prohibition that is wrong one task in ten is still obeyed on that task, and the agent cannot tell that this is the exception. State the outcome you want and let the surrounding code pick the path. NEVER write comments becomes match the comment density of the file you are editing: shorter, no exception list to maintain, and correct in a densely commented file without being told.

Absolutes still earn their place for safety, data loss, format contracts, and rules this repo's agents have actually been observed to break.

AGENTS.md is the tool-agnostic source of truth. Claude Code's built-in agents-md mod supports it directly. Use AGENTS.md at the root and in scoped subdirectories, without CLAUDE.md wrappers or symlinks. The default claude-md-or-agents-md mode yields when project Claude instruction files exist on the root-to-working-directory path; see references/project-setup.md for migration, settings, and loader limits. Preserve unique instructions before removing old files. User-level and managed Claude files are separate from repository migration.

Choose a Mode

  • Repo has no agent instructions, or targets a tool it is not wired for -> Setup: references/project-setup.md decides which files exist and which tool reads each one, then Writing From Scratch below fills the root file, then Audit scores it.
  • A file exists and the question is quality -> Audit, below.
  • A file exists and is over the Size Budget below, stale, or scored badly -> Refactor, references/refactor-workflow.md.

Read the full file on GitHub · 176 lines

Files

What ships with it

60 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. 27d ago Changed · +29 lines 073c8fea67f4
  2. 1mo ago Changed 4c5bf1560b7b
  3. 1mo ago Changed · +9 lines · -11 tokens per session 2553c9e0e4b4
  4. 2mo ago Changed 9e9bf0396b95
  5. 2mo ago Changed · +4 tokens per session 33457c792219
  6. 2mo ago Changed · -6 lines · -165 tokens per session 67b88e5b32f7
  7. 3mo ago First seen · 144 lines · 232 tokens per session scan A e5104a3ac6ef

Subscribe to this mod's changes

agents-md is a skill published in the GitHub repository mblode/agent-skills (231 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 3,550 once invoked, about $0.0002 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-30.

Related

agents-md compared with skills from other repositories

agents-md next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agents-mdmblode/agent-skillsSkill231todayMITA60Claude Code, Codex
dcf-modelNousResearch/hermes-agentSkill268ktodayMITA14Claude Code, Codex
mle-workflowaffaan-m/ECCSkill315kyesterdayMITA44Claude Code, Codex
autonomous-loopsaffaan-m/ECCSkill315kyesterdayMITA26Claude Code, Kiro
ascii-videoNousResearch/hermes-agentSkill268ktodayMITA17Claude Code, Codex
grounded-citationsNousResearch/hermes-agentSkill268ktodayMITA16Claude Code, Codex
hermes-agent-skill-authoringNousResearch/hermes-agentSkill268ktodayMITA22Claude Code, Codex