agents-md-writer
Skill1 starsChanged 6 months agoMITView on GitHub
Use when creating, updating, or improving AGENTS.md files. Trigger phrases: write agents.md, update agents.md, create onboarding file, improve agent instructions, write CLAUDE.md, project onboarding.
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- jqaisystems/jqai-ai-skillstheir own version, first seen Nov 1, 2026
- RUIIIOVO/agents-md-writertheir own version, first seen Oct 29, 2026
- cathaysia/skillstheir own version, first seen Oct 23, 2026
- Cogni-AI-OU/cogni-ai-agent-skillstheir own version, first seen May 19, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- jqaisystems/jqai-ai-skills★ 3same name
- cathaysia/skills★ 2same name
- RUIIIOVO/agents-md-writer★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-evaluationSkill
- academic-writingSkill
- agent-orchestrationSkill
- algorithmic-artSkill
- brand-guidelinesSkill
- codebase-architectureSkill
- code-reviewSkill
- commit-workflowSkill
- context-checkpointSkill
- doc-coauthoringSkill
- docxSkill
- etl-runnerSkill
- eval-runnerSkill
- feature-devSkill
- frontend-designSkill
- hpc-deucalionSkill
- internal-commsSkill
- langchainSkill
- langfuseSkill
- langgraphSkill
- llm-observability-stackSkill
- mcp-builderSkill
- neo4j-verifySkill
- pdfSkill
- pptxSkill
- project-conventionsSkill
- python-best-practicesSkill
- react-namingSkill
- security-hooksSkill
- service-verifySkill
- skill-creatorSkill
- skill-inspectorSkill
- slack-gif-creatorSkill
- sprint-contractSkill
- theme-factorySkill
- uml-modelingSkill
- webapp-testingSkill
- web-artifacts-builderSkill
- web-debugSkill
- xlsxSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 13 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Six core areas: every AGENTS.md must cover: Commands, Testing, Structure, Style, Git, Boundaries.
- Distinctive: line 68
Every AGENTS.md should include a skills section explaining how skills are activated:
- Distinctive: line 103
If >150 lines → condense or split.
- Distinctive: line 111
Before making changes to an AGENTS.md file, evaluate its current state:
- Distinctive: line 128
Read the entire AGENTS.md file.
- Distinctive: line 129
Check line count and structure.
- Distinctive: line 136
When working with hierarchical AGENTS.md structures:
- Distinctive: line 138
Root File: Keep general rules, commands, and boundaries.
- Distinctive: line 140
Links: Use cross-references between files.
- Distinctive: line 141
Avoid Duplication: Ensure information isn't repeated across files.
- Distinctive: line 142
Size Limits: All files ≤150 lines (root and sub-files share the same limit).
- Distinctive: line 146
When converting between hierarchical and simple structures:
- Distinctive: line 157
Iterate: Update when the agent makes the same mistake twice.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Writes effective AGENTS.md files — a "README for machines" with structured technical guidance for AI coding agents. Based on analysis of 2,500+ repositories, OpenAI Codex, and GitHub Copilot best practices.
When to Use
- Creating a new AGENTS.md for a project.
- Updating or reviewing an existing AGENTS.md.
- Converting CLAUDE.md / .cursorrules / copilot-instructions.md to AGENTS.md.
- Splitting a large AGENTS.md into hierarchical sub-files.
- Auditing whether an AGENTS.md is current (commands still work, structure still matches).
When NOT to Use
- Human-facing project documentation → write a README.md, not AGENTS.md.
- Skill authoring (SKILL.md files in
~/.zcode/skills/) →skill-creator(the official plugin version). - Agent definition files (with
tools:,skills:,color:) → they are a different schema.
Hard Rules
- All AGENTS.md files must be ≤150 lines. Root and sub-files share the same limit. Larger → condense or split.
- Six core areas every AGENTS.md must cover: Commands, Testing, Structure, Style, Git, Boundaries.
- Never include secrets. Reference where they live, not the values.
- Commands must be copy-pasteable. Exact commands with flags, not "run the tests."
- File-scoped commands first. Full suite only as fallback.
- Code examples over explanations. One snippet beats three paragraphs.
- Document how skills are activated in a dedicated section, because agents need to know how to load them.
- Complements README.md: AGENTS.md is for machines; do not duplicate human-oriented content.
- Treat AGENTS.md as code, not documentation: update on PR, audit quarterly, update immediately when commands/structure change, and update when the agent makes the same mistake twice.
Examples
Good vs. vague command:
# Good — file-scoped, exact flags
pnpm vitest run src/lib/format.test.js
# Vague — agent has to guess
"run the tests"Good vs. bad Boundaries:
## Boundaries
- **Always:** Run tests before finishing, write scratch files to tmp/
- **Ask first:** Adding dependencies, modifying package.json
- **Never:** git commit, git push, create files outside the defined structureSix Core Areas
| Priority | Area | What to Include |
| 1 | Commands | Setup, file-scoped tests/lint, full suite. Exact with flags. |
| 2 | Testing | Framework, how to run single file + full suite, coverage target. |
| 3 | Project Structure | Key directories with one-line descriptions. |
| 4 | Code Style | Naming, formatting, good/bad examples. |
| 5 | Git Workflow | Branch naming, commit format, PR requirements. |
| 6 | Boundaries | Three tiers: Always / Ask first / Never. |
Skills Section in AGENTS.md
Every AGENTS.md should include a skills section explaining how skills are activated:
## Skills (Activate on Demand)
Skills are loaded via the `skill` tool. When a task matches a skill's
description, call `skill({ name: "skill-name" })` to load its instructions.
| Skill | When |
|-------|------|
| **skill-name** | Trigger description |Separate global skills from project-local skills when both exist.
Workflow
1. Evaluate
Assess the current AGENTS.md structure and content: is it hierarchical or simple? What patterns exist? What must be preserved?
2. Analyze
Detect build system, test framework, package manager, tech stack from package.json, lockfiles, folder structure, and any existing config.
3. Plan
Determine changes needed while preserving existing patterns. Identify what goes in the root vs. sub-AGENTS.md.
4. Write
Commands first, then structure, style, boundaries. Keep the file lean.
5. Check Size
If >150 lines → condense or split. Do not ship an oversized AGENTS.md.
6. Validate
Can an agent setup, test, build, and deploy from this file alone? If not, the file is incomplete.
Evaluation Guidelines
Before making changes to an AGENTS.md file, evaluate its current state:
- Structure Type: Determine if it's hierarchical or simple.
- Consistency Check: Identify patterns to maintain.
- Change Impact: Assess what needs to be preserved.
Hierarchical vs Simple
| Aspect | Hierarchical | Simple |
| Size | ≤150 lines per file | ≤150 lines |
| Scope | Multiple domains | Single domain |
| Organization | Split into sub-AGENTS.md | Single file |
| Use Case | Complex projects | Simple projects |
Evaluation Process
- Read the entire AGENTS.md file.
- Check line count and structure.
- Identify existing patterns and conventions.
- Determine if changes should maintain hierarchy or simplify.
- Note sections that should be preserved or updated.
Maintaining Hierarchical Consistency
When working with hierarchical AGENTS.md structures:
- Root File: Keep general rules, commands, and boundaries.
- Sub-files: Maintain domain-specific content.
- Links: Use cross-references between files.
- Avoid Duplication: Ensure information isn't repeated across files.
- Size Limits: All files ≤150 lines (root and sub-files share the same limit).
Transition Guidelines
When converting between hierarchical and simple structures:
- Hierarchical to Simple: Consolidate content from sub-files; remove redundancy; preserve critical sections.
- Simple to Hierarchical: Identify logical domains; create sub-files; keep root file general.
Writing Style for AGENTS.md
- Be specific: "React 18 with TypeScript, Vite, Tailwind" not "React project".
- Show examples: Good code vs. bad code with concrete snippets.
- Put commands early: Setup and test commands before explanations.
- Think like onboarding: What would a new teammate need for their first PR?
- Iterate: Update when the agent makes the same mistake twice.
Common Mistakes
| Mistake | Fix |
| Too verbose (>150 lines) | Condense or split into subdirectory files |
| Vague commands | Use exact commands: pytest tests/unit/ not "run tests" |
| No boundaries | Add Always/Ask/Never section |
| Including secrets | Reference location, never the value |
| Forcing full builds | Provide file-scoped commands first |
| No code examples | Add good/bad snippets |
| Outdated info | Review in PRs, treat as living code |
References
references/ecosystem.md— Adoption, tool compatibility, parsing differences (Codex, Copilot, Cursor, Claude).references/patterns.md— Codex workflow patterns, GitHub agent best practices, prompt structure, maintenance.references/security.md— Security deep dive, scanning tools, CI/CD gates, deployment validation.references/template-minimal.md— Simple project template (~85 lines).references/template-comprehensive.md— Complex project template with tech patterns (~400 lines).
Quick Reference
AGENTS.md = Commands + Structure + Style + Testing + Git + Boundaries.
All files ≤150 lines. Commands first. Show examples. Never secrets.
Split when >150 lines or monorepo. Nearest file wins.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

