agents-md-writer
Skill4 starsChanged 6 months agoMITView on GitHub
Autonomous documentation editor responsible for creating, updating, and maintaining `AGENTS.md` files strictly adhering to the organizational baseline structure. You MUST load this skill when creating or updating `AGENTS.md` files.
- Reads credentials
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
- pauloribeiro16/my-skillstheir own version, first seen May 28, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- jqaisystems/jqai-ai-skills★ 3same name
- cathaysia/skills★ 2same name
- RUIIIOVO/agents-md-writer★ 2same name
- pauloribeiro16/my-skills★ 1same 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 repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- gh-modelsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. 0 are common, 24 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
24
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Every AI coding agent starts a task by scanning your repository (file trees, package manifests, READMEs).
- Distinctive: line 64
Prune Entropy: Ensure high-density, contract-style imperatives with zero conversational filler.
- Distinctive: line 65
Preserve Quality: When updating, always choose the better, clearer sections.
- Distinctive: line 66
Verify Validation: Check against formatting and constraints and run verification gates.
- Distinctive: line 73
Keep your README for humans, AGENTS.md for agents.
- Distinctive: line 76
Commands Early: Put relevant executable commands in an early section.
- Distinctive: line 77
Contract Style: Write dense, imperative, expert-level instructions assuming ninja proficiency.
- Distinctive: line 84
Living Documentation: Treat AGENTS.md as living documentation.
- Distinctive: line 94
Code Style Rules: Only rules that differ from language defaults.
- Distinctive: line 96
Testing Instructions: Test runner, how to run a single test, what to mock and what not to.
- Distinctive: line 106
Ignoring Artifacts: Don't refine prompts based on error feedback.
- Distinctive: line 110
Dumping Entire Style Guides: Don't include your whole linting config.
- Distinctive: line 111
Only include rules that the agent consistently gets wrong or that are unique to the project.
- Distinctive: line 113
If you change your build tool or test runner, update AGENTS.md immediately.
- Very specific: line 114
Making it Tool-Specific: Don't put tool-specific config (like @imports) in AGENTS.md.
- Distinctive: line 116
Hardcoding: Never embed specific values, file paths, repository names, user details, job IDs, or tool versions in examples.
- Distinctive: line 118
Duplication: NEVER duplicate code-level comments or obvious steps that the agent can easily infer from the codebase.
- Distinctive: line 129
If you use multiple coding agents, use AGENTS.md for shared instructions and tool-specific files for features unique to those platforms.
- Very specific: line 132
Use a tool-specific file (CLAUDE.md, GEMINI.md, .cursorrules) when:
- Distinctive: line 143
If you only use one tool, its native file alone may be sufficient, but AGENTS.md remains the cross-tool standard.
- Distinctive: line 149
MUST: ensure the following initial structure is used in every AGENTS.md you create or update:
- Distinctive: line 158
Follow with invariant statements that capture non-negotiable assumptions, constraints, or operating rules.
- Distinctive: line 166
Keep this file entropy-pruned and up-to-date.
- Distinctive: line 177
Prefer compact, agent-friendly lists by default.
- Distinctive: line 180
Use mermaid diagrams to describe complex concepts by embedding class, flowchart, mind maps, requirements, user journeys, sequence diagrams …
- Distinctive: line 186
Verify that the generated file contains all the required headers.
“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
Agents MD Writer
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->Autonomous documentation editor responsible for creating, updating, and maintaining AGENTS.md files strictly adhering to the organizational baseline structure.
When to Use
- Repository Onboarding: Creating the initial
AGENTS.mdfile to provide immediate context for any autonomous agent entering the codebase. - Constraint Enforcement: Defining project-specific boundaries, forbidden files, and "Never" rules (e.g., "Never mutate vendor folders").
- Command Automation: Documenting exact build, test, and lint flags to prevent agents from wasting time on exploratory execution.
- Directory-Specific Guidance: Authoring nested
AGENTS.mdfiles to provide tailored instructions for sub-trees (e.g., frontend vs. backend). - Baseline Synchronization: Updating
AGENTS.mdfiles to align with the organizational baseline structure and entropy-minimized standards.
When Not to Use
- User-Facing Documentation: Writing general READMEs or tutorials for humans —
AGENTS.mdis strictly for agentic consumption. - Persona Specification: Designing a specialized agent role or reasoning protocol — use
agent-md-writerinstead. - Tool-Specific Configuration: Setting up features unique to a single platform (e.g., Claude Code
@imports) — useCLAUDE.mdor similar.
Common Pitfalls
- Informational Bloat: Including abstract descriptions or basics the agent can easily infer; favor dense, contract-style imperatives.
- Stale Command Sets: Failing to update build or test flags when the underlying tools change, leading to agent execution failures.
- Vague Boundaries: Providing non-actionable constraints like "make it better" instead of explicit, empirical verification gates.
AGENTS.md is a simple, open format for guiding coding agents. Every AI coding agent starts a task by scanning your repository (file trees, package manifests, READMEs). But READMEs are written for humans—they explain what a project does, not how an agent should work on it. AGENTS.md fills that gap.
It is a plain markdown file, typically placed at the root of your repository (no required fields, no YAML frontmatter, no special syntax), that contains the context coding agents need to work effectively. It is where you define project specifics: build commands with exact flags, test procedures, code style rules that differ from defaults, architectural constraints, and boundaries (files the agent should never touch).
The mechanism is straightforward. Without AGENTS.md, the agent spends time exploring: reading directory structures, inferring build systems, guessing test commands. With AGENTS.md, that context is provided upfront. The agent skips exploratory steps and works directly toward the solution. It is the cross-tool standard—one file, every agent.
Setup & Environment Invariants
- Formatting must comply.
- Target file must be named
AGENTS.mdor**/AGENTS.md.
Core Process
- Locate Target: Identify the
AGENTS.mdfile to be created or updated (e.g., in.github/or a subdirectory). - Apply Structure: Enforce the exact structure from the organizational baseline.
- Prune Entropy: Ensure high-density, contract-style imperatives with zero conversational filler.
- Preserve Quality: When updating, always choose the better, clearer sections. If previous changes are better, leave them intact. Always pick the best format.
- Verify Validation: Check against formatting and constraints and run verification gates.
Core Principles
- Agent-Focused Guidance: AGENTS.md complements your README and docs. It contains agent-specific context that would clutter human documentation (exact test flags, architectural constraints, files to never modify). Keep your README for humans, AGENTS.md for agents.
- Be Specific About Stack: Say "React 18 with TypeScript, Vite, and Tailwind CSS" not "React project." Include versions and key dependencies.
- Code Examples Over Explanations: One real code snippet showing your style beats three paragraphs describing it. Show what good output looks like.
- Commands Early: Put relevant executable commands in an early section. Include flags and options, not just tool names. Your agent will reference these often.
- Contract Style: Write dense, imperative, expert-level instructions assuming ninja proficiency; skip basics, favor one-liners.
- Cover Six Core Areas: Hitting these areas puts you in the top tier: commands, testing, project structure, code style, git workflow, and boundaries.
- Directory Hierarchy: Nested
AGENTS.mdfiles provide directory-specific context. The agent reads the nearest file to the code being edited. Root-level rules apply everywhere; subdirectory rules override for that subtree. - Keep it Short: Shorter files perform better because agents spend less time parsing instructions and more time on the task.
- Living Documentation: Treat
AGENTS.mdas living documentation. - Predictable Location: Give agents a clear, predictable place for instructions.
- Set Clear Boundaries: Tell AI what it should never touch (e.g., secrets, vendor directories, production configs, or specific folders). "Never commit secrets" is a crucial constraint.
- Structural Strictness: You must always format
AGENTS.mdfiles according to the canonicalAGENTS.mdstructure.
What to Include in AGENTS.md
- Build & Test Commands: Exact commands with flags. Include environment setup, migration scripts, and dev server startup.
- Code Style Rules: Only rules that differ from language defaults. Things the agent would get wrong without guidance.
- Project Structure: Map directories to responsibilities. E.g. route handlers vs business logic.
- Testing Instructions: Test runner, how to run a single test, what to mock and what not to.
- Git Workflow: Branch naming conventions, commit message format, PR requirements.
- Boundaries: What the agent should never touch. Never modify files in /generated/. Never commit .env files.
Common Pitfalls to Avoid
- Too Vague: "Make the code better" → Specify exactly what "better" means.
- Too Restrictive: Over-constraining can prevent useful optimizations.
- Missing Context: Include relevant domain knowledge and terminology.
- No Examples: Concrete examples guide an LLM better than abstract descriptions.
- Ignoring Artifacts: Don't refine prompts based on error feedback.
What to Avoid
- Dumping Entire Style Guides: Don't include your whole linting config. Only include rules that the agent consistently gets wrong or that are unique to the project.
- Forgetting to Update: Outdated instructions are worse than no instructions. If you change your build tool or test runner, update AGENTS.md immediately.
- Making it Tool-Specific: Don't put tool-specific config (like
@imports) in AGENTS.md. Save those for tool-specific files (CLAUDE.md, GEMINI.md). - Hardcoding: Never embed specific values, file paths, repository names, user details, job IDs, or tool versions in examples; use placeholders instead.
- Duplication: NEVER duplicate code-level comments or obvious steps that the agent can easily infer from the codebase.
SKILL.md vs AGENTS.md
AGENTS.md tells agents about your project.
SKILL.md tells agents about a specific capability.
A skill is a portable directory containing a SKILL.md file plus optional scripts, references, and assets.
AGENTS.md vs Tool-Specific Files (CLAUDE.md, GEMINI.md, .cursorrules)
If you use multiple coding agents, use AGENTS.md for shared instructions
and tool-specific files for features unique to those platforms.
Use a tool-specific file (CLAUDE.md, GEMINI.md, .cursorrules) when:
- You need to configure tool-specific behavior (like Claude Code's permission boundaries or Cursor's glob scoping).
- Your team standardizes on one tool.
- You want to leverage features unique to that tool.
Tool-specific files include:
- CLAUDE.md: For Claude Code features (like
@imports, skills, or hooks). - GEMINI.md: For Google Gemini CLI context and directory traversal rules.
- .cursorrules: For Cursor-specific rules and context.
If you only use one tool, its native file alone may be sufficient, but AGENTS.md
remains the cross-tool standard. Most tools automatically read both their
native file and AGENTS.md when both are present.
Expected AGENTS.md Structure
MUST ensure the following initial structure is used in every AGENTS.md you create or update:
# AGENTS.md (subdir-specific)## Setup & Environment Invariants## Prerequisites(Organizational, Technical)## Requirements## Key Files & Context Injection## Agent Directives (Contract Style)- Begin with a role statement that defines the agent's scope and responsibilities.
- Follow with invariant statements that capture non-negotiable assumptions, constraints, or operating rules.
- Hardened NEVER Constraints: Include explicit
NEVERbullets for prohibited behaviors (e.g., "NEVER commit secrets", "NEVER mutate vendor directories"). - Hardened MUST Constraints: Include explicit
MUSTbullets for required behaviors (e.g., "MUST run tests before completion", "MUST follow conventional commits").
## Common Tasks## Related Prompts or Skills (load when relevant)## Testing & Verification Gates## Maintenance## Final Assurance Gates- Keep this file entropy-pruned and up-to-date.
- Inject full content into every sub-agent context.
## Validation checklist## Troubleshooting Matrixsignature error / smell
- root-cause vector
- isolation steps
- verified fix + prevention
Formatting
- Prefer compact, agent-friendly lists by default; use Markdown tables only when the content is inherently tabular and a table improves scanability.
- Use mermaid diagrams to describe complex concepts by embedding class, flowchart, mind maps, requirements, user journeys, sequence diagrams or other when applicable.
Testing & Verification Gates
- Verify formatting.
- Verify that the generated file contains all the required headers.
Final Assurance Gates
- Inject full content into every sub-agent context.
- Keep this file entropy-pruned and up-to-date.
References
Related Skills
- docs-review: You MUST load this skill when asked to review or check consistency of documentation.
- mermaid: You MUST load this skill when creating Mermaid diagrams within markdown files.
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.

