From repo-docs
Generate repository harness docs: a short AGENTS.md map, README.md, CLAUDE.md stub, and repo-local docs that make the codebase legible to agents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/repo-docs:repo-docs-generatorThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build repository docs as an engineering harness, not a prose dump.
Build repository docs as an engineering harness, not a prose dump.
This skill is aligned with OpenAI's February 11, 2026 harness-engineering article:
AGENTS.md should be a short routing map, not a giant manual.AGENTS.md has become a long dumping ground instead of a navigation layer.CLAUDE.md into a minimal @AGENTS.md stub.Treat documentation as a layered harness:
README.md is human-first quickstart and orientation.AGENTS.md is the canonical agent entrypoint and routing map.docs/ (or an equivalent repo-local location)
hold the durable details.CLAUDE.md is a minimal pointer that sources AGENTS.md.Important nuance:
AGENTS.md is the canonical entrypoint.docs/quality/gates.md or docs/architecture/overview.md.CLAUDE.md must not carry unique behavioral rules.Every run should leave the repo with a clear harness shape:
AGENTS.md
README.md
AGENTS.md and any major docs directories.CLAUDE.md
@AGENTS.md stub only.docs/ (or existing equivalent)
Use /repo-docs:generate when creating or rebuilding the harness from scratch.
Discover actual behavior
README.md, AGENTS.md, CLAUDE.md, and any existing
docs/ indexes first.ty, then pyright, then mypy, unless repo docs/CI differ).Choose the smallest useful harness footprint
README.md, AGENTS.md, CLAUDE.md may be enough.AGENTS.md scoped to
its directory.Write docs in the right layer
AGENTS.md.Encode the harness gap
Use /repo-docs:canonicalize when docs already exist but are stale or badly
structured.
AGENTS.md files into routing maps.CLAUDE.md content into AGENTS.md or topic docs.CLAUDE.md to a minimal stub.--dry-run first or pause for human confirmation before broad,
ambiguous, or repo-wide reshaping.docs/quality/, docs/architecture/, docs/runbooks/,
docs/plans/, or existing equivalents over bloating AGENTS.md..pre-commit-config.*, CI jobs, or wrappers define the real workflow,
those must be reflected in the docs.ty as mandatory
when configured.Use the smallest structure that matches the repo:
README.mdAGENTS.mdCLAUDE.mdREADME.mdAGENTS.mdCLAUDE.mddocs/architecture/overview.mddocs/quality/gates.mddocs/runbooks/development.mdREADME.md, AGENTS.md, CLAUDE.mddocs/architecture/, docs/quality/,
docs/runbooks/, docs/specs/, docs/plans/AGENTS.md files only where scope genuinely divergesThe skill should optimize for:
AGENTS.md as success.CLAUDE.md as a pointer only.Report work in this structure:
## Documentation Updated
Repository: /path/to/repo
Harness shape: [small | medium | complex]
Files updated:
- AGENTS.md - [created/updated/trimmed]
- README.md - [created/updated/preserved]
- CLAUDE.md - [normalized]
- docs/... - [created/updated as needed]
Harness upgrades:
- [commands documented]
- [quality gates documented]
- [architecture/runbook docs added]
- [stale patterns removed]
Open follow-ups:
- [optional mechanical enforcement or missing docs]
Load only what you need:
references/harness-principles.md
references/generate-and-canonicalize-playbook.md
references/templates.md
AGENTS.md, CLAUDE.md, README.md, and topic docs.npx claudepluginhub diversioteam/agent-skills-marketplace --plugin repo-docsAnalyzes repository structure to generate or update AGENTS.md contributor guides for AI agents. Supports single-repo and monorepo layouts with update mode that preserves custom sections.
Creates, refreshes, or validates repo AGENTS.md files using evidence from files, git history, CI to keep them concise and current. Use when missing, stale, or after refactors/tooling changes.
Generates hierarchical AGENTS.md structures for codebases to optimize AI agent token usage. Use for repo analysis, monorepos, JIT indexing, and token-efficient root/sub-folder docs.