From essential-skills
Standards for maintaining design docs, folder READMEs, source-level interface docs, and test documentation across any project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/essential-skills:document-guidelineThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Defines how AI agents should create and maintain documentation at every level of a codebase — from high-level architecture down to individual source files and tests.
Defines how AI agents should create and maintain documentation at every level of a codebase — from high-level architecture down to individual source files and tests.
A well-documented project maintains three layers:
docs/) — Design decisions, system overviews, and workflowsREADME.md in each directory) — Purpose and layout of that directory.md companion files next to source) — Public and internal API referenceWhere: docs/ directory
Purpose: Capture high-level design rationale so future contributors understand why the system is shaped the way it is.
Create or update when:
Writing tips:
Skip architecture docs when:
Rule: Every non-hidden directory should contain a README.md.
Purpose: Let a developer landing in any folder understand what it contains and how files are organised.
When to create: Whenever a new directory is added to the project.
What to include:
Keep it concise — a few lines is fine for simple folders; longer explanations are welcome for complex modules.
Rule: Every source file should have a companion .md file documenting its interfaces.
Applies to: .py, .ts, .js, .c, .cpp, .go, .rs, and similar source files.
Naming: Match the source file name — handler.py gets handler.md, parser.cpp gets parser.md.
Required sections:
Document everything the outside world can call:
Document implementation details worth explaining:
Rule: Every test file should explain what it verifies.
Acceptable formats:
.md file (better for complex test suites covering many scenarios)What to document per test:
This documentation standard pairs naturally with a design-first workflow:
Following this order ensures documentation stays ahead of code rather than lagging behind.
Temporary inconsistency is acceptable on feature branches where implementation is still in progress. However, by the time work is merged into the main branch, documentation must accurately reflect the code.
| What to document | Where | When |
|---|---|---|
| Architecture & design decisions | docs/ | New subsystems, major features |
| Folder purpose & layout | README.md in each directory | Every new directory |
| Public & internal APIs | .md companion to source file | Every source file |
| Test intent & coverage | Inline comments or companion .md | Every test file |
npx claudepluginhub ayazhankadessova/essential-skills --plugin essential-skillsScaffolds project documentation (README, ARCHITECTURE, API, CODE_COMMENTS) from templates with placeholders and standards. Use for bootstrapping docs in new or under-documented codebases.
Scaffolds starter documentation (README, ARCHITECTURE, API, CODE_COMMENTS) from templates with placeholders and standards. For new or under-documented codebases.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.