agents-md

agents-md is a skill for Claude Code, Codex from jscraik/Agent-Skills. It costs 44 tokens per session (5,078 once invoked), scanned A, original, Apache-2.0.

A guide for creating and maintaining AGENTS.md files, which give coding agents instructions specific to a repository. It organizes larger guidance into linked documents so the right instructions are easier to find.

In plain words
What is it for?
Use it to create, restructure, or audit repository guidance for startup steps, tools, project conventions, and required checks. It is for agent instructions rather than ordinary product documentation.
Why use it?
It reduces duplicated, contradictory, or oversized agent instructions. It also helps check that required instruction files exist, are current, and point to the right supporting documents.

Skill for Claude CodeCodex

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

Good fit Use it to create, restructure, or audit repository guidance for startup steps, tools, project conventions, and required checks. It is for agent instructions rather than ordinary product documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jscraik/agent-skills/original
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 jscraik/Agent-Skills --skill original
Clone the repo
git clone --depth 1 https://github.com/jscraik/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/jscraik/agent-skills/original/github.svg)](https://agentmods.dev/skills/jscraik/agent-skills/original)
Your own site
<a href="https://agentmods.dev/skills/jscraik/agent-skills/original"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/original/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/jscraik/agent-skills/original"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/original.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,078 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.00044 $0.05078
Opus 5.5 $0.00018 $0.02031
Sonnet 5.5 $0.00009 $0.01016
Haiku 4.5 $0.00004 $0.00508

Measured 1mo ago against content hash 3341f17a32af, 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 1mo 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.

Infrastructure/references/deferred-skill-context/agent-ops-agents-md/original-SKILL.md · 307 lines

How it starts

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

Agents Md

Create and maintain concise, high-signal AGENTS guidance with progressive disclosure.

Table of Contents

When to use

  • Use this skill when the user asks to create or update AGENTS.md.
  • Use this skill when AGENTS docs are too large, duplicated, or contradictory.
  • Use this skill when instruction routing needs to be split into linked files.
  • Use this skill when a repo needs AGENTS operating rules such as preflight, stack detection, tooling, required paths, Local Memory policy, Project Brain policy, or startup workflow tailored from real repo evidence.
  • Use this skill when the user wants the project's instruction surface audited so required instruction files are present, current, correctly routed, and accurately disclosed.

Standards snapshot (April 2026)

Use this section as an adaptation guideline for generated AGENTS.md files, not runtime policy.

  • Keep root AGENTS.md minimal and route depth into linked docs.
  • Start with 2-3 focused surfaces for a first pass: usually the root AGENTS.md, one linked-doc tree, and only one nested override if it is truly needed.
  • Teach the canonical discovery chain: global AGENTS.override.md or AGENTS.md, then per-directory AGENTS.override.md, AGENTS.md, then configured fallback filenames.
  • Treat only one auto-loaded instruction file per directory as canonical; linked docs are progressive-disclosure references, not implicitly discovered project instructions.
  • Keep combined project guidance under the project_doc_max_bytes budget (32 KiB default) by splitting large guidance across nested scopes instead of bloating one root file.
  • Instruction budget: frontier thinking models can reliably follow ~150–200 instructions. Every token in AGENTS.md loads on every request regardless of relevance, so every instruction must earn its place.
  • Minimum viable floor: the root file needs only three things — a one-sentence project description, the package manager if not npm, and any non-standard build/typecheck commands. Everything else is a candidate for progressive disclosure.
  • Staleness is poison: avoid documenting file paths in AGENTS.md; they change constantly and agents read stale paths confidently. Describe capabilities and where things might be rather than hardcoding structure.
  • Never auto-generate AGENTS.md files; generated files flood the budget with generic instructions that hurt performance. Write them intentionally.
  • When harmonizing AGENTS.md, CLAUDE.md, and GEMINI.md, keep shared operational rules semantically aligned while respecting each tool's official instruction-file model and section conventions. For cross-tool coverage, a ln -s AGENTS.md CLAUDE.md symlink is a valid low-maintenance option when Claude Code is in scope.
  • Base commands, paths, and conventions on verified repo evidence only.
  • Treat contradiction detection and instruction precedence as first-class outputs.
  • Prefer progressive disclosure over megadoc accumulation.

Read the full file on GitHub · 307 lines

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. 1mo ago First seen · 307 lines · 44 tokens per session scan A 3341f17a32af

Subscribe to this mod's changes

agents-md is a skill published in the GitHub repository jscraik/Agent-Skills (9 stars, last pushed 4d ago), licensed Apache-2.0. It adds 44 tokens to every session and 5,078 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-09-13.

Related

Other skills, from other repositories

agui-dotnet-streaming-chat

Get started with the AG-UI .NET SDK: bootstrap and run your first streaming-chat app (client + server) with the AG-UI .NET NuGet packages (AGUI.Client, AGUI.Server, AGUI.Formatting, AGUI.Abstractions). USE FOR: which packages to install and how to wire them; constructing an AGUIChatClient against an endpoint and…

ag-ui-protocol/ag-ui · 223 tokens

agui-dotnet-protobuf

Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…

ag-ui-protocol/ag-ui · 162 tokens

revdiff-plan

Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…

umputun/revdiff · 84 tokens

moai-ref-ui-polish

UI polish and interface-completion reference: the small visual details — concentric border radius, optical alignment, shadow-vs-border, motion easing, typography smoothing, tabular numbers, icon stroke weight, hit areas — that separate polished interfaces from generic ones. Agent-extending skill that amplifies…

modu-ai/moai-adk · 98 tokens

cog-knowledge-consolidation

Build structured knowledge frameworks from scattered vault notes with source attribution.

a5c-ai/babysitter · 19 tokens

strict-tdd

Strict RED->GREEN->REFACTOR test-driven development with enforcement. Never write production code before a failing test. Atomic commits per TDD cycle.

a5c-ai/babysitter · 34 tokens