Skip to content

Repository files navigation

dotagents-standard — an agent skill

skills.sh License: MIT Format: Agent Skill

An agent skill that teaches an AI coding agent how to implement and utilize the dotagents standard — a slim AGENTS.md "router" at the repository root plus a .agents/ directory that organizes agent context for progressive disclosure.

Install this skill and your agent knows how to set up, migrate to, and work inside a .agents/ layout — instead of stuffing everything into one monolithic AGENTS.md / CLAUDE.md.

The dotagents standard

As agents take on more work, a single context file (AGENTS.md, CLAUDE.md, .cursorrules) tends to bloat: the agent reads a database schema while editing CSS, behavioral rules blur into static facts, and vendor folders (.claude/, .cursor/, .gemini/) litter the repository root.

dotagents solves this by splitting context into a router and a library:

  • AGENTS.md — a slim router at the repo root, always read. It states the agent's identity and points to deeper context conditionally.
  • .agents/ — the library of "heavy" context, split by kind: rules/, context/, memory/, personas/, skills/, specs/, logs/.

The agent loads only what the current task matches. This skill packages the know-how to do that well — the decision taxonomy, the router pattern, and ready-to-use templates — and also covers the broader .agents Protocol superset.

flowchart LR
    task([current task]) --> R
    R["AGENTS.md<br/>slim router, always read"]
    R -. "DB work" .-> C[".agents/context/<br/>schema, API types"]
    R -. "new feature" .-> S[".agents/specs/<br/>active PRD"]
    R -. "a decision" .-> M[".agents/memory/<br/>ADRs, prefs"]
    R -. "always obey" .-> RU[".agents/rules/<br/>invariants"]
    R -. "when testing" .-> P[".agents/personas/<br/>QA, architect"]
Loading

The router is always read; each .agents/ file loads only when its condition matches — that's progressive disclosure.

What this skill does

Once installed, it triggers whenever you:

  • ask to set up dotagents / an .agents/ layout in a repository,
  • want to split or migrate a monolithic AGENTS.md / CLAUDE.md / .cursorrules,
  • need to work inside a repository that already has an AGENTS.md router or a .agents/ directory,
  • or want the broader .agents Protocol (global ~/.agents/ layer, mcp.json, sub-agents, tasks, memories, shareable bundles).

It then walks the agent through classifying each piece of context, writing a tight router, and authoring each .agents/ subdirectory — with copy-paste templates.

Install

With the Skills CLI (recommended)

npx skills add zaventh/dotagents-standard-skill

This installs the dotagents-standard skill for any agentskills.io-compatible agent and keeps it current via npx skills check / npx skills update.

Manual (symlink)

git clone https://github.com/zaventh/dotagents-standard-skill.git
cd dotagents-standard-skill
ln -s "$(pwd)/skills/dotagents-standard" ~/.claude/skills/dotagents-standard

Claude Code discovers skills under ~/.claude/skills/ (symlinks included), so it is picked up automatically. If you keep a canonical skills store at ~/.agents/skills/, symlink it there too. For other agents, copy or symlink skills/dotagents-standard/ into wherever your tool loads skills.

Repository layout

.
├── skills/
│   └── dotagents-standard/           # the installable skill (npx skills add …)
│       ├── SKILL.md                  # mental model, taxonomy, workflows, router pattern
│       ├── references/               # per-subdir deep reference + protocol superset
│       ├── assets/templates/         # copy-paste starters
│       └── LICENSE
├── examples/
│   └── sample-project/               # worked example: a filled-in .agents/ layout
├── .github/                          # CI: validate SKILL.md frontmatter + check links
├── CHANGELOG.md
├── README.md
└── LICENSE

How it works

Skills use progressive disclosure: the agent always sees the skill's name and description, reads SKILL.md when a task matches, and only opens references/ or assets/ when it needs the depth. That mirrors the dotagents philosophy itself — load the router first, the library on demand.

Example

See the worked example for a filled-in .agents/ layout — a slim AGENTS.md router plus real rules/, context/, memory/, personas/, and specs/ files for a hypothetical billing API. It's the concrete counterpart to the blank starters in the skill's assets/templates/.

Relationship to the standards

This skill is an independent guide, not the standard itself. It builds on:

Standard What it defines
dotagents (Brandon Greenwell) The core directory-as-context architecture: AGENTS.md router + .agents/.
.agents Protocol A superset — global layer, machine config, structured sub-agents / tasks / memories, a sharing Hub.
Agent Skills The SKILL.md format this skill (and .agents/skills/) follow.
AGENTS.md The cross-vendor entry-point file the router rides on.

Acknowledgements

Thanks to Brandon Greenwell for the dotagents proposal, and to the authors of the .agents Protocol for extending it. This skill exists to make those ideas easy for any agent to apply.

License

MIT © 2026 Jeffrey Walter Mixon

Releases

Packages

Contributors