agents-md-generator

agents-md-generator is a skill for Claude Code, Codex from n-n-code/n-n-code-skills. It costs 88 tokens per session (1,800 once invoked), scanned A, original, MIT.

A skill for creating and reviewing AGENTS.md files, which are repository instructions for coding assistants. It uses evidence from the codebase to decide what guidance belongs at the root or in a subdirectory.

In plain words
What is it for?
Use it to create, audit, revise, or migrate coding-agent guidance, including converting CLAUDE.md instructions into AGENTS.md. It is also useful for deciding instruction scope in a monorepo, a repository containing multiple related projects.
Why use it?
It reduces the risk of giving an assistant vague, misplaced, or repository-inaccurate instructions. It also defines safe limits for inspecting and editing instruction files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it to create, audit, revise, or migrate coding-agent guidance, including converting CLAUDE.md instructions into AGENTS.md. It is also useful for deciding instruction scope in a monorepo, a repository containing multiple related projects.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/n-n-code/n-n-code-skills/agents-md-generator"><img src="https://agentmods.dev/badge/skills/n-n-code/n-n-code-skills/agents-md-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,800 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.00088 $0.01800
Opus 5.5 $0.00035 $0.00720
Sonnet 5.5 $0.00018 $0.00360
Haiku 4.5 $0.00009 $0.00180

Measured 2mo ago against content hash 949caf638ac1, 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-generator 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 2mo 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.

.agents/skills/agents-md-generator/SKILL.md · 120 lines

How it starts

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

AGENTS.md generator

Create high-signal, repository-grounded instructions with a host-neutral semantic core for coding-agent hosts that support AGENTS.md. Treat tool-specific instruction files as adapters when a host requires them.

Scope and side effects

  • findings and draft do not authorize instruction-file edits. Only apply authorizes those edits, limited to the requested files; validation side effects require separate authorization under the rule below.
  • The default target is the root AGENTS.md. Create or revise a nested target only when the user names or approves that path and selects apply.
  • Repository inspection is read-only. Validation commands may write caches or artifacts, install dependencies, use the network, or trigger external systems. Assess them first, run the smallest safe check, and get authorization before consequential validation.
  • Before editing, inspect the target file and any existing worktree diff. Preserve unrelated and pre-existing changes.
  • Never delete or overwrite source instruction files such as CLAUDE.md without explicit authorization covering those files. Reuse authorization already granted for the same action. Report any validation artifacts that cannot be safely cleaned up.

Core workflow

  1. Define the task, output, and target independently so mixed requests remain representable.
  2. Inspect the repository, existing instruction files, and target-file worktree state.
  3. Resolve operational facts, policy, host compatibility, and source conflicts using the rules below.
  4. Ask only the missing questions that materially affect the result.
  5. Produce findings, a draft, or authorized edits for the selected root or nested target.
  6. Decide whether nested files or host-specific adapters are justified.
  7. Validate claims and, after writes, review the resulting diff.
  8. Tighten the instructions and hand off evidence, assumptions, and residual uncertainty.

Do not skip repository inspection unless the user supplies the complete relevant context.

Read the full file on GitHub · 120 lines

Files

What ships with it

3 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. 2mo ago Changed 949caf638ac1
  2. 3mo ago First seen · 120 lines · 88 tokens per session scan A 9e9c99fe04bd

Subscribe to this mod's changes

agents-md-generator is a skill published in the GitHub repository n-n-code/n-n-code-skills (4 stars, last pushed 29d ago), licensed MIT. It adds 88 tokens to every session and 1,800 once invoked, about $0.0004 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-31.

Related

agents-md-generator compared with skills from other repositories

agents-md-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agents-md-generatorn-n-code/n-n-code-skillsSkill429d agoMITA88Claude Code, Codex
init-workspacegtrabanco/agentic-workflowSkill25todayMITA54Claude Code
execute-phasegtrabanco/agentic-workflowSkill25todayMITA106Claude Code
fold-findingsgtrabanco/agentic-workflowSkill25todayMITA65Claude Code
unit-lanegtrabanco/agentic-workflowSkill25todayMITA53Claude Code
audit-docsgtrabanco/agentic-workflowSkill25todayMITA147Claude Code
audit-prgtrabanco/agentic-workflowSkill25todayMITA71Claude Code