agents-md-authoring
Skill11 starsChanged 49 days agoApache-2.0View on GitHub
Create and maintain AGENTS.md files that bootstrap AI agent context. Use when a project lacks an AGENTS.md, when onboarding a repo for AI agents, or when updating project conventions agents should follow. Covers the agents.md standard, the context-loading instruction block, and the CLAUDE.md bridge for Claude Code.
In this repository83 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- about-konductorSkill
- adr-generatorSkill
- adversarial-code-review-pass-integritySkill
- adversarial-code-review-pass-schemaSkill
- adversarial-code-review-pass-securitySkill
- adversarial-code-reviewSkill
- adversarial-design-reviewSkill
- app-discoverySkill
- architecture-advisorSkill
- architecture-diagram-generationSkill
- argumentation-referenceSkill
- asana-sprint-planningSkill
- asdlc-aspect-reviewSkill
- asdlc-code-simplifierSkill
- aws-service-validatorSkill
- backend-developmentSkill
- backend-reviewSkill
- claude-teams-behaviorSkill
- cmux-dispatchSkill
- code-reviewSkill
- constraintsSkill
- cost-estimationSkill
- cypress-test-implementationSkill
- decision-researchSkill
- decision-writingSkill
- delegation-protocolSkill
- deliberation-panelSkill
- design-doc-guidelinesSkill
- design-evaluationSkill
- design-impact-reviewSkill
- design-quality-checkSkill
- doc-accuracy-analyzerSkill
- document-formatsSkill
- dom-inspectionSkill
- dynamodb-designSkill
- dynamodb-validationSkill
- e2e-test-strategySkill
- external-researchSkill
- find-aws-skillsSkill
- frontend-developmentSkill
- frontend-reviewSkill
- git-mergeSkill
- git-workflowSkill
- historical-issues-registrySkill
- humanize-writingSkill
- iam-policy-designSkill
- infra-validationSkill
- kiro-design-generationSkill
- kiro-requirements-generationSkill
- kiro-task-generationSkill
- legacy-to-agentic-estimateSkill
- mux-dispatchSkill
- non-functional-requirementsSkill
- persistent-memorySkill
- plan-reviewSkill
- playwright-test-implementationSkill
- policy-validationSkill
- pre-planning-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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 70
Keep it concise and scannable — bullets and short sections, not prose.
- Very specific: line 72
When asked to edit CLAUDE.md, edit AGENTS.md instead (CLAUDE.md should just @AGENTS.md).
- Distinctive: line 76
Check whether AGENTS.md exists at the repo root.
- Very specific: line 78
Ensure a CLAUDE.md exists with @AGENTS.md (create it if missing) for Claude Code compatibility.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md Authoring
AGENTS.md is a README for AI agents — a predictable place at the repo root for project context and
instructions. It is part of the open agents.md standard, read by many agentic tools.
When to create or update
- A repository has no
AGENTS.mdand agents are working in it - Project conventions, build commands, or structure changed
- A durable learning should be promoted from session memory into permanent project guidance
Critical: how AGENTS.md is loaded (differs by runtime)
| Kiro CLI custom agents | Claude Code custom agents | |
AGENTS.md | NOT auto-read — must be in the agent's clientConfig.kiroCli.resources as file://AGENTS.md | NOT auto-read — Claude Code only reads CLAUDE.md |
CLAUDE.md | NOT auto-read | Auto-read at session start (all hierarchy levels) |
Implication: AGENTS.md does NOT support import directives (@path or #[[file:]]) when loaded by Kiro.
To make agents load steering/memory/skills, use instructions inside AGENTS.md (see below), not imports.
Bootstrap requirements
- Kiro: the agent spec must list
"file://AGENTS.md"inclientConfig.kiroCli.resources. - Claude Code: the repo must have a
CLAUDE.mdcontaining@AGENTS.md(import) so Claude Code loads AGENTS.md content. Chain further imports there if needed (e.g.,@.konductor/memory/MEMORY.md).
Required structure
Author AGENTS.md with these sections, adapted to the project as follows: infer what you can directly from the repo (build files, existing test commands, directory structure, git history for commit-message conventions); ask the user only for what cannot be inferred (e.g., PR/review conventions not visible in the repo, or team-specific domain knowledge). State inferred content as inferred so the user can correct it during review.
- Context Loading (MUST follow at session start) — instruction block (see template below)
- Project Overview — what the project is, in 2-3 sentences
- Project Structure — directory map
- Setup & Commands — build, test, install commands
- Code Style & Conventions — formatting, naming, language rules; if a
.kiro/steering/*.mdfile already documents these, reference it (See .kiro/steering/<file>.md) rather than duplicating its content - Testing — how to run tests
- Workflow — git/PR/CR conventions
- Domain Knowledge (optional) — durable project-specific facts
Context-loading instruction block (always include)
Because Kiro does not expand import directives in AGENTS.md, use explicit MUST-read instructions so the agent loads adjacent context via its own file-read tools:
## Context Loading (MUST follow at session start)
Before starting work, load available project context:
- You MUST read `.kiro/steering/**/*.md` if present — workspace steering rules.
- You MUST read `<workspace>/memory/*.md` if present — persistent facts and preferences.
- Workspace-specific skills may exist at `.kiro/skills/**/ws-*.md` — be aware and load when relevant.
If a path does not exist, skip it silently and continue.Replace <workspace> with the project root (e.g., .konductor), so <workspace>/memory/*.md -> .konductor/memory/*.md.
Rules
- AGENTS.md is developer-written instructions, NOT agent memory. Do not dump session memory or timestamped facts here — that belongs in the memory files. Promote only durable, reviewed learnings.
- Keep it concise and scannable — bullets and short sections, not prose.
- For public packages, keep content generic — no internal tools, domains, or credentials.
- When asked to edit
CLAUDE.md, editAGENTS.mdinstead (CLAUDE.md should just@AGENTS.md).
Procedure
- Check whether
AGENTS.mdexists at the repo root. If it does, read it and patch rather than replace. - Draft/update the sections above, always including the Context Loading block.
- Ensure a
CLAUDE.mdexists with@AGENTS.md(create it if missing) for Claude Code compatibility. - Confirm the relevant agent specs list
file://AGENTS.mdinclientConfig.kiroCli.resources. - Show the proposed content to the user and confirm before writing.
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.

