From devops-skills
Creates, reorganizes, or updates documentation for monorepos or single-project repos with root docs indexes, cross-repo maps, and detailed module/feature docs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/devops-skills:documentation-guidelinesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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. Prefer searchable filenames with explicit suffixes over ...
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. Prefer searchable filenames with explicit suffixes over repeated README.md files for detailed module docs.
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.docs/modules/<module-id>/<module-id>-module.md when it exists. If a project still uses legacy docs/modules/<module-id>/README.md, read it and consider migrating it when editing.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/
order/
order-module.md
features/
approve-order-api-feature.md
workflows/
order-approval-workflow.md
runbooks/
debug-order-approval-runbook.md
order-testing.md
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/
order/
order-module.md
features/
approve-order-api-feature.md
workflows/
order-approval-workflow.md
runbooks/
debug-order-approval-runbook.md
order-testing.md
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. Detailed module docs should use searchable suffix filenames such as docs/modules/<module-id>/<module-id>-module.md, not repeated module README.md files, unless a project explicitly requires folder landing pages.
Use explicit suffixes for detailed docs so developers can find files quickly by name:
| Suffix | Use For | Example |
|---|---|---|
-module.md | Module overview, ownership boundary, source paths, feature index | order-module.md |
-feature.md | One feature, workflow surface, or API contract | approve-order-api-feature.md |
-workflow.md | Multi-step business or UI flow larger than one feature doc | order-approval-workflow.md |
-runbook.md | Debugging, operations, maintenance, incident response | debug-order-approval-runbook.md |
-reference.md | Catalogs, legacy references, external mappings | api-errors-reference.md |
-testing.md | Test matrix, verification commands, test data rules | order-testing.md |
-roadmap.md | Plans, phases, milestones, rollout sequencing | order-roadmap.md |
Reserve README.md for root/repo entrypoints and intentional index folders. Do not create docs/modules/<module-id>/README.md for new module docs when the project follows suffix naming.
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 *-module.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:
- ../order-module.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.*-module.md, *-feature.md, *-workflow.md, *-runbook.md, *-reference.md, *-testing.md, and *-roadmap.md.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.npx claudepluginhub thienanblog/awesome-ai-agent-skills --plugin devops-skillsGuides project documentation structure, content requirements, and best practices. Includes templates for README, ARCHITECTURE, API docs, and change history.
Generates and maintains docs/ folder (architecture, ADRs, feature specs) and README.md with markdown formatting rules, imperative style, and constraint labeling.
Guides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.