Agent skill
project-doc
Organize, create, and maintain documentation for projects. Use when the user asks to set up docs structure, write documentation, update existing docs, create READMEs, ADRs, guides, or any project documentation. Triggers include "organize my docs", "set up documentation", "write docs for this", "update the README", "document this", or when working on a project that needs documentation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/documents/project-doc
SKILL.md
Project Docs
Manage documentation for projects with consistent structure and quality.
Standard Structure
Use this structure for all projects unless the user specifies otherwise:
docs/
├── README.md # Project overview, quick start, links to other docs
├── decisions/ # Architecture Decision Records (ADRs)
│ └── 001-initial-setup.md
├── guides/ # How-to guides for specific tasks
└── reference/ # API docs, config options, schemas
When to Create Docs
Always create/update docs when:
- Setting up a new project → Create README.md + initial ADR
- Making architectural decisions → Create ADR in
decisions/ - Adding configuration or APIs → Update
reference/
Ask before creating:
- If user hasn't mentioned docs but the task would benefit from documentation
- If unsure which doc type fits best
Doc Types and Templates
README.md
# [Project Name]
[One sentence: what this does and why it exists]
## Quick Start
[Minimal steps to get running - 3-5 commands max]
## Configuration
[Key environment variables or config files]
## Documentation
- [Decisions](docs/decisions/) - Why things are built this way
- [Guides](docs/guides/) - How to do specific tasks
ADR (Architecture Decision Record)
Place in docs/decisions/NNN-short-title.md. Number sequentially (001, 002...).
# [Number]. [Title]
Date: [YYYY-MM-DD]
Status: [proposed | accepted | deprecated | superseded by [NNN]]
## Context
[What situation or problem prompted this decision? 2-4 sentences.]
## Decision
[What we decided. Be specific.]
## Consequences
[What this enables and what tradeoffs we accept. Both positive and negative.]
Guide
Place in docs/guides/[topic].md.
# How to [Task]
[Brief intro - when and why you'd do this]
## Steps
[Detailed walkthrough with code examples where relevant]
## Tips
[Optional: gotchas, best practices, shortcuts]
Writing Style
- Be concise: If a sentence doesn't add value, delete it
- Use examples: Show don't tell, especially for technical docs
- Present tense: "Run
npm start" not "You should run..." - No fluff: Skip "In this document we will..." intros
Organizing Existing Docs
When asked to organize existing docs:
- Audit first: List what exists and categorize by type (decision, guide, runbook, reference)
- Propose structure: Show the user the target structure with their docs mapped
- Wait for approval: Don't move/rename without confirmation
- Execute: Move files, update any internal links
Updating Docs
When code changes affect documentation:
- Identify which docs are impacted
- Update in-place using minimal edits
- If a decision is superseded, update its status and link to the new ADR
Creating Docs for Existing Projects
If the project has no docs folder:
- Create
docs/with README.md - Ask: "Want me to add an initial ADR documenting [key architectural choice]?"
- Create additional docs as work reveals the need
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?