Initialize documentation folder structure for a project
Creates documentation folder structure with configurable templates for projects.
/plugin marketplace add mwguerra/claude-code-plugins/plugin install code@mwguerra-marketplace[--check] [--structure minimal|standard|full] [--force]Set up a recommended documentation folder structure for a project.
/docs-specialist:init [options]
| Argument | Required | Description |
|---|---|---|
--check | No | Preview what would be created without making changes |
--structure=<type> | No | Structure type: minimal, standard, full (default: standard) |
--force | No | Overwrite existing docs folder |
Basic documentation structure for small projects.
docs/
├── README.md # Documentation index
└── api.md # API reference (if applicable)
Recommended structure for most projects.
docs/
├── README.md # Documentation index and navigation
├── api/
│ └── README.md # API documentation overview
├── guides/
│ ├── README.md # Guides index
│ └── getting-started.md
└── architecture/
└── README.md # Architecture overview
Comprehensive structure for larger projects.
docs/
├── README.md # Documentation hub
├── api/
│ ├── README.md # API overview
│ ├── authentication.md
│ └── endpoints/
│ └── README.md # Endpoints index
├── guides/
│ ├── README.md # Guides index
│ ├── getting-started.md
│ ├── tutorials/
│ │ └── README.md
│ └── how-to/
│ └── README.md
├── architecture/
│ ├── README.md # Architecture overview
│ ├── decisions/
│ │ └── README.md # ADR index
│ └── diagrams/
│ └── README.md
├── development/
│ ├── README.md # Developer guide
│ ├── setup.md # Development setup
│ ├── contributing.md
│ ├── testing.md
│ └── code-style.md
└── deployment/
├── README.md
└── environments.md
Check Existing Structure
docs/ folder--force: report and exitAnalyze Project
Create Structure
Report
# Project Documentation
Welcome to the project documentation.
## Quick Links
- [Getting Started](./guides/getting-started.md)
- [API Reference](./api/README.md)
- [Architecture](./architecture/README.md)
## Documentation Structure
| Directory | Contents |
|-----------|----------|
| `api/` | API reference documentation |
| `guides/` | User guides and tutorials |
| `architecture/` | System architecture and decisions |
## Contributing to Docs
To contribute to this documentation:
1. Follow the existing structure
2. Use markdown formatting
3. Include code examples where helpful
4. Keep content up to date with code changes
---
*Last updated: [date]*
# Getting Started
This guide will help you get up and running with [Project Name].
## Prerequisites
Before you begin, ensure you have:
- [ ] Prerequisite 1
- [ ] Prerequisite 2
## Installation
\`\`\`bash
# TODO: Add installation commands
\`\`\`
## Quick Start
\`\`\`bash
# TODO: Add quick start commands
\`\`\`
## Next Steps
- [Tutorial 1](./tutorials/tutorial-1.md)
- [API Reference](../api/README.md)
---
*TODO: Complete this guide based on actual project setup*
# Preview what would be created
/docs-specialist:init --check
# Create standard structure (default)
/docs-specialist:init
# Create minimal structure
/docs-specialist:init --structure=minimal
# Create full structure
/docs-specialist:init --structure=full
# Recreate docs folder (overwrites existing)
/docs-specialist:init --force
Documentation Structure Created
===============================
Structure: standard
Location: ./docs/
Created:
✓ docs/README.md
✓ docs/api/README.md
✓ docs/guides/README.md
✓ docs/guides/getting-started.md
✓ docs/architecture/README.md
Next Steps:
1. Edit docs/README.md with project overview
2. Complete docs/guides/getting-started.md
3. Run /docs-specialist:docs generate api to populate API docs
4. Run /docs-specialist:docs status to check progress
/docs-specialist:docs generate to populate from code--force is used