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.
npx claudepluginhub diversioteam/agent-skills-marketplace --plugin repo-docsThis skill is limited to using the following tools:
Build repository docs as an engineering harness, not a prose dump.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Retrieves current documentation, API references, and code examples for libraries, frameworks, SDKs, CLIs, and services via Context7 CLI. Ideal for API syntax, configs, migrations, and setup queries.
Uses ctx7 CLI to fetch current library docs, manage AI coding skills (install/search/generate), and configure Context7 MCP for AI editors.
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.