skills/documentation-guidelines/SKILL.md
Create, reorganize, or update documentation for monorepos or single-project repos using root docs indexes, unique repo/module/feature identifiers, repo-owned detailed docs, cross-repo relationship maps, machine-readable frontmatter, API contracts, workflows, runbooks, testing, and debugging guidance.
npx skillsauth add thienanblog/awesome-ai-agent-skills documentation-guidelinesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Produce documentation that is easy to locate, owned by the correct repo/module/feature, and safe to use as a source of truth. Use this skill for monorepos and single-project repos when creating, reorganizing, or updating architecture docs, module docs, feature docs, API contracts, workflows, runbooks, testing notes, or debugging guidance.
Apply the workflow directly unless the repository has newer explicit agent instructions or a newer docs index that conflicts.
For detailed templates, read references/documentation-guidelines.md.
Before summarizing, moving, deleting, or editing documentation:
docs/README.md exists, read it first. It is the project routing index.README.md, local agent guide, and repo docs/README.md when they exist.modules.md and features.md when resolving a module or feature.Required.A repo is a monorepo when it has multiple independent apps/services/packages or deployable runtimes, such as apps/*, services/*, or packages/*.
Use this documentation shape:
docs/
README.md
naming-and-structure.md
relationship-map.md
runbooks/
decisions/
apps/<repo>/
README.md
docs/
README.md
modules.md
features.md
architecture/
modules/
reference/
runbooks/
memories/
archives/
Root docs/ is a routing and coordination area. Detailed monorepo docs always live inside the owning repository, such as apps/api/docs/..., not under root docs/<repo-id>/....
Root docs/README.md must link to each repo docs index, repo-level modules.md, and repo-level features.md. It must not copy every feature into a full global feature list.
A single-project repo may keep all docs under root docs/, but still uses the same index model:
docs/
README.md
naming-and-structure.md
modules.md
features.md
architecture/
modules/
reference/
runbooks/
memories/
archives/
Use one repo prompt name for routing, such as Main Repo, API Repo, or a domain-specific project name.
Root docs/README.md is the first file an AI agent should use to resolve natural-language prompts. It must include:
monorepo or single-project.modules.md, and features.md.Repo-level modules.md lists modules owned by that repo. Repo-level features.md lists features owned by that repo.
These identifiers must be unique across the whole project:
| Identifier | Example | Purpose |
| :--- | :--- | :--- |
| Repo prompt name | API Repo | Natural-language routing |
| Repo ID | api | Stable machine-readable repo key |
| Canonical module name | Order Module | Natural-language module routing |
| Module ID | order | Stable machine-readable module key |
| Canonical feature name | Approve Order API | Natural-language feature routing |
| Feature ID | approve-order-api | Stable machine-readable feature key |
When the same business concept appears in multiple repos, include owner or surface in the canonical name, such as Approve Order API and Approve Order Office UI.
Aliases are allowed only when each alias maps to exactly one canonical repo, module, or feature. Remove or narrow ambiguous aliases.
Use only these values in relationship maps:
| Level | Meaning | AI Behavior |
| :--- | :--- | :--- |
| Required | Change may break another repo, contract, workflow, or test surface | Read before proposing or editing |
| Recommended | Related context may affect UX, rollout, tests, or integration quality | Read for design, contract, workflow, or user-facing work |
| Optional | Useful background only; not blocking | Mention as context and read only if the task needs it |
| None | No expected coordination | Do not broaden scope unless the prompt explicitly asks |
Independent/tooling repos must be marked None when they have no product runtime or contract dependency.
Place documentation by enforcement owner:
| Information Type | Source of Truth | | :--- | :--- | | API payloads, responses, errors, permissions, validation, database rules | Owning backend/API module feature docs | | UI routes, client state, rendering behavior, form flow | Owning client module feature docs | | Background jobs, queues, schedules, retries | Owning worker/service module docs | | Shared package public APIs | Owning package docs | | Cross-repo dependency | Root relationship map plus owner docs | | Local scripts and developer tooling | Tooling repo docs |
Consumer docs may summarize how they consume a contract, but must link to the owner doc instead of copying the full business rule.
When creating or updating docs:
docs/README.md when present.docs/README.md to find its owner.modules.md, repo features.md, owning module README.md, and existing feature docs.Required; read Recommended docs for design, contract, workflow, and user-facing changes.If routing remains ambiguous after reading indexes, ask one targeted question instead of guessing.
Every new or materially rewritten Markdown doc must start with YAML frontmatter:
---
name: Human Readable Title
description: One sentence describing scope and owner.
version: 1.0.0
last_updated: YYYY-MM-DD
maintained_by: Team Or Owner
---
Module docs must also include routing fields:
repo_prompt_name: API Repo
repo_id: api
module_name: Order Module
module_id: order
module_aliases:
- Orders
related_docs:
- ../../features.md
Feature docs must also include feature routing fields:
repo_prompt_name: API Repo
repo_id: api
module_name: Order Module
module_id: order
feature_name: Approve Order API
feature_id: approve-order-api
feature_aliases:
- Order Approval API
related_docs:
- ../README.md
- ../../../features.md
Preserve existing version/history when migrating docs. Update last_updated and version when content changes materially.
For backend/API contract docs, include when applicable:
For client/workflow docs, include when applicable:
Before finishing:
docs/README.md and the owning repo indexes.None relationship scope when appropriate.references/documentation-guidelines.md: Detailed templates for root indexes, repo-level module/feature indexes, module docs, feature docs, API contracts, client workflows, testing, debugging, and cross-repo relationship maps.development
Create, reorganize, or update documentation for monorepos or single-project repos using root docs indexes, unique repo/module/feature identifiers, repo-owned detailed docs, cross-repo relationship maps, machine-readable frontmatter, API contracts, workflows, runbooks, testing, and debugging guidance.
development
Generate or update AGENTS.md/CLAUDE.md files for AI coding agents through auto-scanning project files combined with interactive Q&A. Supports multiple tech stacks, development environments, and preserves customizations when updating.
development
Generate or update AGENTS.md/CLAUDE.md files for AI coding agents through auto-scanning project files combined with interactive Q&A. Supports multiple tech stacks, development environments, and preserves customizations when updating.
development
Universal developer mindset and project workflow guide for programming projects. Use when creating a new project, choosing or reviewing a tech stack, modifying an existing codebase, implementing features, fixing bugs, writing or updating documentation, designing architecture or folder structure, improving UI/UX consistency, adding tests, debugging errors, improving performance, preparing deployment, or working across multiple repositories. Useful for experienced developers, beginners, non-developers, founders, and anyone who needs AI assistance to build, maintain, document, test, debug, or deploy software safely.