Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
mblode avatar

Agents Md

  • 364 installs
  • 74 repo stars
  • Updated August 5, 2026
  • mblode/agent-skills

agents-md is an agent-instruction skill that creates and maintains AGENTS.md files so coding agents follow repository conventions, approved tools, and safe execution boundaries.

About

agents-md is an agent-instruction skill from mblode/agent-skills for teams standardizing how Claude Code, Cursor, Codex, and other coding agents work inside a repository. The skill drafts and updates AGENTS.md with repo-specific conventions, toolchain notes, and safe execution boundaries so agents stop guessing project rules on every task. Developers reach for agents-md when onboarding agents to a monorepo, open-source project, or internal service where CLAUDE.md or AGENTS.md should be the single source of agent behavior. The workflow covers initial file creation, convention capture, and ongoing maintenance as tooling or guardrails change. Use it early in agent adoption and revisit when CI rules, package managers, or forbidden commands shift. Skip it for repos that already have complete, current agent instruction files or projects that never use AI coding agents.

  • AGENTS.md scaffolding
  • Repo-specific agent rules
  • Tool-use guardrails
  • Convention encoding
  • Multi-agent handoff notes

Agents Md by the numbers

  • 364 all-time installs (skills.sh)
  • +22 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #2,106 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/mblode/agent-skills --skill agents-md

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs364
repo stars74
Last updatedAugust 5, 2026
Repositorymblode/agent-skills

How do you write AGENTS.md for coding agents?

Create and maintain AGENTS.md instructions that steer coding agents on repo conventions, tools, and safe execution boundaries.

Who is it for?

Engineers adopting AI coding agents in repositories that need persistent, repo-specific instruction files beyond generic system prompts.

Skip if: Teams without AI agent workflows or repositories whose AGENTS.md is already complete and actively maintained.

When should I use this skill?

A developer asks to create, update, or maintain AGENTS.md instructions for coding agents on repo conventions and safe execution.

What you get

A maintained AGENTS.md file documenting repo conventions, tools, and agent execution guardrails.

Files

SKILL.mdMarkdownGitHub ↗

AGENTS.md Audit

AGENTS.md is the source of truth for agent instructions. Claude Code loads both AGENTS.md and CLAUDE.md natively — no symlink required. If a project already has a CLAUDE.md, rename it to AGENTS.md (the tool-agnostic name).

AGENTS.md files are execution contracts, not knowledge bases.

Litmus test for every line: "Would removing this cause the agent to make a mistake?" If no, cut it. Bloated instruction files cause agents to ignore actual rules. KISS applies to instruction files too — the simplest set of rules that prevents mistakes is the best set.

Reference Files

FileRead When
references/quick-checklist.mdDefault: fast triage (10 checks, target >= 8/10)
references/quality-criteria.mdFull audit mode or when quick audit fails
references/refactor-workflow.mdFile is bloated (>150 lines) or low-signal
references/root-content-guidance.mdDeciding what stays in root vs separate files
references/templates.mdDrafting new file or rebuilding from scratch

Quick Example

Input: AGENTS.md with stale commands and generic advice Quick audit result: 5/10 (Fail) Key issues: Missing test command, generic "follow best practices" advice, dead link to deleted folder Fix: Add npm test, replace generic advice with specific gotcha, remove dead link After: 9/10 (Pass)

How to Use

Default path:

  • Start with quick audit using references/quick-checklist.md (10 checks)
  • Escalate to full audit (references/quality-criteria.md) only when quick audit fails, file is high-risk, or user requests it
  • Apply edits only after reporting findings and getting confirmation

Progressive loading:

  • Always load the checklist for the selected audit mode
  • Load references/refactor-workflow.md only for low-signal files (below target score, stale commands, or root file over ~150 lines)
  • Load references/templates.md only when drafting a new file or rebuilding from scratch
  • Load references/root-content-guidance.md only when deciding what stays in root vs moved out

Audit Workflow

Copy this checklist to track progress:

Audit Progress:
- [ ] Step 1: Discover files
- [ ] Step 2: Select audit mode (quick or full)
- [ ] Step 3: Run audit against checklist
- [ ] Step 4: Report findings with score table
- [ ] Step 5: Propose minimal diffs
- [ ] Step 6: Validate changes
- [ ] Step 7: Apply and verify

Step 1: Discover files

Run:

find . \( -name "AGENTS.md" -o -name "CLAUDE.md" -o -name "CLAUDE.local.md" \) 2>/dev/null | sort

Also check for a home-level file: ~/.claude/CLAUDE.md (applies to all sessions).

AGENTS.md is the source of truth. If a project has a CLAUDE.md without an AGENTS.md, recommend renaming it:

mv CLAUDE.md AGENTS.md

Claude Code loads AGENTS.md, CLAUDE.md, and CLAUDE.local.md natively from any level. No symlinks needed. Instruction files at multiple levels (project root, parent directories, child directories) are all loaded automatically. CLAUDE.local.md is the gitignored personal variant. Audit each level independently.

For monorepos, include workspace-level AGENTS.md files.

Step 2: Select audit mode

  • Quick audit: Default for most files (10 checks, target >= 8/10)
  • Full audit: When quick audit fails, file is high-risk, or user requests full scoring

Step 3: Run audit

  • Quick audit target: >= 8/10 checks from references/quick-checklist.md
  • Full audit file-quality target: >= 91% of applicable points from references/quality-criteria.md
  • Full audit execution target: 2/2 when producing an edit proposal
  • Score each root file independently

Step 4: Report findings

Output a concise report before edits:

## AGENTS.md Audit Report

| File | Mode | Score | Grade | Key Issues |
|------|------|-------|-------|------------|
| ./AGENTS.md | Quick | 6/10 | Fail | Missing test command, stale path, doc-heavy section |

Step 5: Propose minimal diffs

  • Fix broken/stale commands first
  • Remove generic, duplicate, or obsolete guidance
  • Move deep detail into linked files using @path/to/file.md import syntax
  • Use emphasis ("IMPORTANT:", "YOU MUST") on critical rules that agents tend to skip
  • Keep rewrites incremental and preserve useful wording when possible

Show each proposed change with rationale and a diff snippet.

Step 6: Validate changes

Validation loop: 1. Run smoke checks for core commands (dev, test, build, lint/typecheck) when applicable 2. If commands cannot be run, verify script existence and note the limitation 3. Check that linked paths resolve 4. Confirm no contradictory rules remain 5. If issues found → revise → validate again 6. Only proceed when validation passes

Step 7: Apply and verify

  • Apply approved edits
  • After each PR, add at most one new gotcha only if it prevented or fixed a real mistake
  • Verify changes by re-running relevant commands

Gotchas

  • Don't rewrite the entire file when targeted edits would pass audit — incremental fixes preserve useful wording and reduce review burden.
  • Don't add gotchas that aren't grounded in a real failure — hypothetical warnings become noise the agent learns to ignore.
  • Don't audit CLAUDE.local.md the same way as AGENTS.md — local files are personal and not committed, so enforce less strictly.
  • Don't remove emphasis markers (IMPORTANT, YOU MUST) from rules agents consistently skip — these exist because the default phrasing was not enough.
  • Don't treat a high quick-audit score as permission to skip validation — stale commands can hide behind passing checklists.

Related skills

FAQ

What file does agents-md maintain?

agents-md creates and updates AGENTS.md, a repository instruction file that tells coding agents which conventions, tools, and execution boundaries apply inside that specific codebase.

When should a team add AGENTS.md?

A team should add AGENTS.md when adopting AI coding agents in a repo with non-obvious conventions, custom tooling, or safety limits that generic agent prompts cannot reliably enforce.

How is agents-md different from CLAUDE.md?

agents-md focuses on the AGENTS.md convention for cross-agent repo guidance, while CLAUDE.md is Claude-specific; both serve similar purposes but agents-md targets portable agent instruction maintenance.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.