Initialize documentation structure for a project with frontmatter standards
Creates a complete documentation directory structure with frontmatter standards, main guide template, and configuration file. Use this to bootstrap documentation for new projects or establish standards in existing ones.
/plugin marketplace add gaurangrshah/gsc-plugins/plugin install docs@gsc-pluginsInitialize documentation structure for a project.
/docs-init [options]
--path <dir> - Documentation root (default: ~/docs or $DOCS_ROOT)--guide <name> - Main guide filename (default: guide.md)--with-worklog - Configure worklog.db integrationCreates directory structure:
$DOCS_ROOT/
├── README.md
├── guide.md (or custom name)
├── FRONTMATTER-SCHEMA.md
├── security/
│ └── README.md
├── guides/
│ └── README.md
├── services/
│ └── README.md
└── baselines/
Creates configuration file:
~/.claude/docs.local.md
Contains environment variables for this project.
Initializes main guide with template sections:
After initialization, ~/.claude/docs.local.md contains:
# Docs Plugin Configuration
## Environment
- DOCS_ROOT: /path/to/docs
- MAIN_GUIDE: /path/to/docs/guide.md
- KNOWLEDGE_BASE: ~/.claude/knowledge
## Worklog Integration
- WORKLOG_DB: (path if --with-worklog used)
Basic initialization:
/docs-init
Custom path and guide name:
/docs-init --path ~/project/docs --guide project-guide.md
With worklog integration:
/docs-init --with-worklog
After running /docs-init:
$MAIN_GUIDE~/.claude/docs.local.md if needed/docs-validate to verify structuredocs.local.md