Doc Yet
Mission
Turn a real repository into durable, navigable documentation.
- Keep the canonical internal documentation in
.agents.
- Improve the root
README.md in place when it exists.
- Generate cross-tool bridge files so Cursor, Claude, Codex, and Gemini can all find the same source of truth.
- Interpret the repository shape first. Do not force the same folder layout onto every project.
Core workflow
- Inspect the repository before proposing a documentation structure.
- Detect the project topology: single app, feature-based app, monorepo, multi-service repo, shared package workspace, or mixed architecture.
- Ask a few short questions only where choices are still unresolved.
- Run a gap analysis against existing docs before writing anything.
- Create or update the minimum useful documentation set in
.agents.
- Improve the root
README.md without flattening all details into it.
- Generate or refresh bridge files for Cursor, Claude, Codex, and Gemini.
- Summarize what was created, what was updated, and what remains uncertain.
Questions to ask after the first inspection
Ask short, concrete questions. Prefer 3-6 questions. Use defaults when the user does not answer all of them.
Always ask:
- Which AI tools are actively used in this repo? Default to
Cursor, Claude, Codex, and Gemini.
- Who is the main audience for the docs right now: new contributors, current team, AI agents, or external integrators?
- Are there any folders, services, or features that should be excluded from documentation?
Ask when relevant:
- For monorepos: which apps or packages matter most right now?
- For frontend repos: is there a design system, token source, or Storybook-like source of truth that should be documented?
- For backend repos: are there external APIs, queues, workers, or scheduled jobs that must be covered?
- For security-sensitive code: should secrets, internal URLs, or operational details be intentionally omitted?
If the user is unsure, continue with reasonable assumptions and record them in the docs.
Repository inspection checklist
Inspect before writing:
- Root manifests and workspace manifests:
package.json, pnpm-workspace.yaml, turbo.json, nx.json, Cargo.toml, go.mod, pyproject.toml, etc.
- App and package boundaries:
apps/, packages/, services/, src/features/, modules/, libs/.
- Entrypoints, build tooling, framework config, and deployment config.
- Existing docs: root
README.md, docs/, existing .agents/, ADRs, architecture notes.
- API signals: route definitions, OpenAPI files, GraphQL schemas, RPC contracts, client SDKs.
- Data signals: ORM models, schema files, migrations, seed scripts, warehouse models.
- Infra signals: Docker, compose, CI, Terraform, Helm, Vercel, Render, Fly, AWS, GCP, Azure.
- Frontend signals: component libraries, Storybook, theme files, CSS variables, Tailwind config, token JSON, design-system packages.
- Auth and security signals: auth providers, RBAC code, middleware, policy files, permission maps.
Do not document guessed architecture as fact. Mark assumptions clearly.
Canonical documentation layout
Use .agents as the canonical home for internal project documentation, but adapt placement to repository shape.
Global docs
For the whole repository, keep the canonical global docs in:
.agents/project/documentation-index.md
.agents/project/project-overview.md
.agents/project/architecture.md
.agents/project/tech-stack.md
.agents/project/gap-analysis.md
Local scoped docs
When a subtree has enough independence or complexity, create a local .agents inside that subtree as well.
Common examples:
apps/web/.agents/
apps/api/.agents/
packages/ui/.agents/
services/billing/.agents/
src/features/analytics/.agents/
src/domains/orders/.agents/
Use local .agents when the subtree has one or more of these properties:
- Independent ownership or release cadence
- Distinct runtime or deployment model
- Non-trivial public surface area
- Enough internal complexity that future agents would benefit from local context
- A shared UI or design-system boundary
Do not create a local .agents for every folder. Prefer fewer, well-linked docs over documentation sprawl.
Topology rules
Read references/topology-playbook.md before deciding placement.
High-level defaults:
- Single-repo, single-deployable app: keep most docs in
.agents/project/.
- Monorepo: always create
.agents/project/, then add local .agents for meaningful apps, packages, or services.
- Feature-based frontend: create
.agents/project/, then local .agents for major features or domains when they are large enough to deserve their own map.
- Shared UI/design-system package: add a local
.agents there and document component conventions and tokens.
- Multi-service backend: global docs plus local
.agents for each important service.
When unsure, prefer this progression:
- Global
.agents/project/
- Local
.agents only for high-value boundaries
- Cross-links between global and local indexes
Required outputs
Always create or update:
.agents/project/documentation-index.md
.agents/project/project-overview.md
.agents/project/architecture.md
.agents/project/tech-stack.md
.agents/project/gap-analysis.md
- Root
README.md
If README.md exists, improve it in place.
If it does not exist, create it in English by default.
Use Mermaid diagrams in architecture.md by default when they materially help explain flows, boundaries, or integrations.
Optional outputs
Read references/documentation-blueprints.md and generate the subset that matches the repo:
repository-map.md
api-contracts.md
data-model.md
integrations.md
auth-and-security.md
deployment-and-environments.md
testing-strategy.md
observability.md
business-rules.md
onboarding.md
troubleshooting.md
glossary.md
adr/
design-system.md
design-tokens.md
Frontend-specific expectation
If the repo contains a frontend with shared UI primitives, themes, tokens, or component patterns, strongly prefer documenting:
design-system.md
design-tokens.md
- Relevant local feature docs when the app is feature-based
README language rule
- Preserve the dominant language of the existing
README.md.
- If the current README is mostly Portuguese, keep it in Portuguese when improving it.
- If there is no README, default to English.
- The
.agents docs should be written in English unless the user explicitly asks otherwise.
Gap analysis rules
Before writing final docs, create or refresh .agents/project/gap-analysis.md with:
- Existing docs worth preserving
- Missing docs
- Outdated docs
- Proposed local
.agents placements
- Open questions
- Assumptions used for the current pass
This file is not a brainstorm dump. Keep it crisp and actionable.
Content rules
- Prefer verified repository facts over generic best-practice filler.
- Use concrete file paths, commands, frameworks, environments, services, and package names.
- Preserve good existing documentation instead of rewriting for style alone.
- Do not create placeholder sections with
TODO unless the unknown is important and genuinely unresolved.
- Distinguish clearly between verified facts, likely inferences, and open questions.
- Keep docs navigable: short sections, cross-links, and clear file names.
- Use tables when they improve scanability, not by default.
- When the project is large, summarize details in the global docs and push specifics into local
.agents.
README rules
The root README.md is the public entrypoint, not the entire internal wiki.
It should usually contain:
- What the project is
- Main apps, services, or packages
- Quick start
- Key commands
- High-level architecture snapshot
- Where to find deeper docs in
.agents
It should usually not contain:
- Every package detail in a monorepo
- Exhaustive internal architecture prose
- Long operational runbooks better kept in
.agents
Cross-tool bridge files
By default, generate or update these bridge files:
AGENTS.md
CLAUDE.md
GEMINI.md
.cursor/rules/doc-yet-project-docs.mdc
.claude/commands/doc-yet.md
Read references/bridge-templates.md before writing them.
Bridge file rules:
- Keep them thin. They should point to canonical docs instead of duplicating them.
- Point to
.agents/project/documentation-index.md first.
- Tell the tool to also read the nearest local
.agents/ when working inside a subtree that has one.
- Preserve any strong existing project instructions; merge instead of overwriting blindly.
- Keep update instructions short and operational: after major architecture or workflow changes, refresh
.agents and the root README.md.
Do not create additional tool-specific command files unless the repo already uses them or the user asks for them.
Blueprint references
Use these bundled references instead of inventing structure from scratch:
Delivery checklist
- The global docs exist in
.agents/project/.
- Local
.agents directories exist only where they add real value.
architecture.md includes Mermaid when useful.
- The root
README.md was improved or created in the correct language.
- Bridge files were created or carefully updated for Cursor, Claude, Codex, and Gemini.
- Frontend repos with real UI systems include design-system and token docs.
- Monorepos link global and local documentation clearly.
- The docs state assumptions instead of presenting guesses as facts.
Source: Dirosaki/skills — distributed by TomeVault.
1---2name: doc-yet3description: Build and maintain high-signal project documentation inside `.agents` for almost any repository, then expose that documentation to Cursor, Claude, Codex, and Gemini through lightweight bridge files. Use whenever the user wants to document a codebase, improve an existing `README.md`, map architecture, explain a monorepo, capture feature boundaries, document a frontend design system or design tokens, create onboarding material, or keep project docs synchronized with the code. Use when this capability is needed.4---56# Doc Yet78## Mission910Turn a real repository into durable, navigable documentation.1112- Keep the canonical internal documentation in `.agents`.13- Improve the root `README.md` in place when it exists.14- Generate cross-tool bridge files so Cursor, Claude, Codex, and Gemini can all find the same source of truth.15- Interpret the repository shape first. Do not force the same folder layout onto every project.1617## Core workflow18191. Inspect the repository before proposing a documentation structure.202. Detect the project topology: single app, feature-based app, monorepo, multi-service repo, shared package workspace, or mixed architecture.213. Ask a few short questions only where choices are still unresolved.224. Run a gap analysis against existing docs before writing anything.235. Create or update the minimum useful documentation set in `.agents`.246. Improve the root `README.md` without flattening all details into it.257. Generate or refresh bridge files for Cursor, Claude, Codex, and Gemini.268. Summarize what was created, what was updated, and what remains uncertain.2728## Questions to ask after the first inspection2930Ask short, concrete questions. Prefer 3-6 questions. Use defaults when the user does not answer all of them.3132Always ask:3334- Which AI tools are actively used in this repo? Default to `Cursor`, `Claude`, `Codex`, and `Gemini`.35- Who is the main audience for the docs right now: new contributors, current team, AI agents, or external integrators?36- Are there any folders, services, or features that should be excluded from documentation?3738Ask when relevant:3940- For monorepos: which apps or packages matter most right now?41- For frontend repos: is there a design system, token source, or Storybook-like source of truth that should be documented?42- For backend repos: are there external APIs, queues, workers, or scheduled jobs that must be covered?43- For security-sensitive code: should secrets, internal URLs, or operational details be intentionally omitted?4445If the user is unsure, continue with reasonable assumptions and record them in the docs.4647## Repository inspection checklist4849Inspect before writing:5051- Root manifests and workspace manifests: `package.json`, `pnpm-workspace.yaml`, `turbo.json`, `nx.json`, `Cargo.toml`, `go.mod`, `pyproject.toml`, etc.52- App and package boundaries: `apps/`, `packages/`, `services/`, `src/features/`, `modules/`, `libs/`.53- Entrypoints, build tooling, framework config, and deployment config.54- Existing docs: root `README.md`, `docs/`, existing `.agents/`, ADRs, architecture notes.55- API signals: route definitions, OpenAPI files, GraphQL schemas, RPC contracts, client SDKs.56- Data signals: ORM models, schema files, migrations, seed scripts, warehouse models.57- Infra signals: Docker, compose, CI, Terraform, Helm, Vercel, Render, Fly, AWS, GCP, Azure.58- Frontend signals: component libraries, Storybook, theme files, CSS variables, Tailwind config, token JSON, design-system packages.59- Auth and security signals: auth providers, RBAC code, middleware, policy files, permission maps.6061Do not document guessed architecture as fact. Mark assumptions clearly.6263## Canonical documentation layout6465Use `.agents` as the canonical home for internal project documentation, but adapt placement to repository shape.6667### Global docs6869For the whole repository, keep the canonical global docs in:7071- `.agents/project/documentation-index.md`72- `.agents/project/project-overview.md`73- `.agents/project/architecture.md`74- `.agents/project/tech-stack.md`75- `.agents/project/gap-analysis.md`7677### Local scoped docs7879When a subtree has enough independence or complexity, create a local `.agents` inside that subtree as well.8081Common examples:8283- `apps/web/.agents/`84- `apps/api/.agents/`85- `packages/ui/.agents/`86- `services/billing/.agents/`87- `src/features/analytics/.agents/`88- `src/domains/orders/.agents/`8990Use local `.agents` when the subtree has one or more of these properties:9192- Independent ownership or release cadence93- Distinct runtime or deployment model94- Non-trivial public surface area95- Enough internal complexity that future agents would benefit from local context96- A shared UI or design-system boundary9798Do not create a local `.agents` for every folder. Prefer fewer, well-linked docs over documentation sprawl.99100## Topology rules101102Read [references/topology-playbook.md](./references/topology-playbook.md) before deciding placement.103104High-level defaults:105106- Single-repo, single-deployable app: keep most docs in `.agents/project/`.107- Monorepo: always create `.agents/project/`, then add local `.agents` for meaningful apps, packages, or services.108- Feature-based frontend: create `.agents/project/`, then local `.agents` for major features or domains when they are large enough to deserve their own map.109- Shared UI/design-system package: add a local `.agents` there and document component conventions and tokens.110- Multi-service backend: global docs plus local `.agents` for each important service.111112When unsure, prefer this progression:1131141. Global `.agents/project/`1152. Local `.agents` only for high-value boundaries1163. Cross-links between global and local indexes117118## Required outputs119120Always create or update:121122- `.agents/project/documentation-index.md`123- `.agents/project/project-overview.md`124- `.agents/project/architecture.md`125- `.agents/project/tech-stack.md`126- `.agents/project/gap-analysis.md`127- Root `README.md`128129If `README.md` exists, improve it in place.130If it does not exist, create it in English by default.131132Use Mermaid diagrams in `architecture.md` by default when they materially help explain flows, boundaries, or integrations.133134## Optional outputs135136Read [references/documentation-blueprints.md](./references/documentation-blueprints.md) and generate the subset that matches the repo:137138- `repository-map.md`139- `api-contracts.md`140- `data-model.md`141- `integrations.md`142- `auth-and-security.md`143- `deployment-and-environments.md`144- `testing-strategy.md`145- `observability.md`146- `business-rules.md`147- `onboarding.md`148- `troubleshooting.md`149- `glossary.md`150- `adr/`151- `design-system.md`152- `design-tokens.md`153154### Frontend-specific expectation155156If the repo contains a frontend with shared UI primitives, themes, tokens, or component patterns, strongly prefer documenting:157158- `design-system.md`159- `design-tokens.md`160- Relevant local feature docs when the app is feature-based161162### README language rule163164- Preserve the dominant language of the existing `README.md`.165- If the current README is mostly Portuguese, keep it in Portuguese when improving it.166- If there is no README, default to English.167- The `.agents` docs should be written in English unless the user explicitly asks otherwise.168169## Gap analysis rules170171Before writing final docs, create or refresh `.agents/project/gap-analysis.md` with:172173- Existing docs worth preserving174- Missing docs175- Outdated docs176- Proposed local `.agents` placements177- Open questions178- Assumptions used for the current pass179180This file is not a brainstorm dump. Keep it crisp and actionable.181182## Content rules183184- Prefer verified repository facts over generic best-practice filler.185- Use concrete file paths, commands, frameworks, environments, services, and package names.186- Preserve good existing documentation instead of rewriting for style alone.187- Do not create placeholder sections with `TODO` unless the unknown is important and genuinely unresolved.188- Distinguish clearly between verified facts, likely inferences, and open questions.189- Keep docs navigable: short sections, cross-links, and clear file names.190- Use tables when they improve scanability, not by default.191- When the project is large, summarize details in the global docs and push specifics into local `.agents`.192193## README rules194195The root `README.md` is the public entrypoint, not the entire internal wiki.196197It should usually contain:198199- What the project is200- Main apps, services, or packages201- Quick start202- Key commands203- High-level architecture snapshot204- Where to find deeper docs in `.agents`205206It should usually not contain:207208- Every package detail in a monorepo209- Exhaustive internal architecture prose210- Long operational runbooks better kept in `.agents`211212## Cross-tool bridge files213214By default, generate or update these bridge files:215216- `AGENTS.md`217- `CLAUDE.md`218- `GEMINI.md`219- `.cursor/rules/doc-yet-project-docs.mdc`220- `.claude/commands/doc-yet.md`221222Read [references/bridge-templates.md](./references/bridge-templates.md) before writing them.223224Bridge file rules:225226- Keep them thin. They should point to canonical docs instead of duplicating them.227- Point to `.agents/project/documentation-index.md` first.228- Tell the tool to also read the nearest local `.agents/` when working inside a subtree that has one.229- Preserve any strong existing project instructions; merge instead of overwriting blindly.230- Keep update instructions short and operational: after major architecture or workflow changes, refresh `.agents` and the root `README.md`.231232Do not create additional tool-specific command files unless the repo already uses them or the user asks for them.233234## Blueprint references235236Use these bundled references instead of inventing structure from scratch:237238- [references/documentation-blueprints.md](./references/documentation-blueprints.md)239- [references/topology-playbook.md](./references/topology-playbook.md)240- [references/bridge-templates.md](./references/bridge-templates.md)241242## Delivery checklist243244- The global docs exist in `.agents/project/`.245- Local `.agents` directories exist only where they add real value.246- `architecture.md` includes Mermaid when useful.247- The root `README.md` was improved or created in the correct language.248- Bridge files were created or carefully updated for Cursor, Claude, Codex, and Gemini.249- Frontend repos with real UI systems include design-system and token docs.250- Monorepos link global and local documentation clearly.251- The docs state assumptions instead of presenting guesses as facts.252253---254> Source: [Dirosaki/skills](https://github.com/Dirosaki/skills) — distributed by [TomeVault](https://tomevault.io).255<!-- tomevault:4.0:skill_md:2026-06-16 -->