generate-docs
БесплатноБез исполняемых скриптовНе проверенGenerate configuration reference documentation from conclaude-schema.json using src/bin/generate-docs.rs. USE WHEN the schema file changes, configuration…
Об этом скилле
Generate Documentation
This skill helps you generate the configuration reference documentation for conclaude. The documentation is generated from conclaude-schema.json and output as Markdown files ready for the Starlight-based documentation site.
USE WHEN
Use this skill when:
- The
conclaude-schema.jsonfile has been updated - New configuration sections or properties have been added
- Configuration descriptions or examples have been modified in the schema
- Documentation is out of sync with the configuration schema
- Preparing documentation updates for a release
- Setting up or rebuilding the documentation site
- Schema descriptions, types, or default values have changed
- Adding new configuration examples to the schema
Do NOT use this skill when:
- Just viewing or reading the existing documentation
- Making changes unrelated to configuration
- Working on non-documentation features
- The schema hasn't changed since last doc generation
How It Works
The documentation generator (src/bin/generate-docs.rs) processes the JSON Schema file to create structured documentation:
- Reads
conclaude-schema.jsonfrom the workspace root - Parses the schema to extract:
- Configuration sections and their properties
- Type information and default values
- Descriptions and documentation strings
- YAML examples embedded in descriptions
- Nested type definitions
- Generates Markdown files with Starlight frontmatter:
- Overview page with quick reference table
- Individual section pages with detailed properties
- Nested type documentation
- Complete configuration examples
- Outputs to
docs/src/content/docs/reference/config/by default
The generated documentation integrates seamlessly with the Starlight documentation site.
Instructions
Step 1: Ensure Schema is Up-to-Date
First, make sure your schema file reflects the current configuration:
# If you've made config changes, regenerate schema first
cargo run --bin generate-schema
Step 2: Generate Documentation
Run the documentation generator:
cargo run --bin generate-docs
This will:
- Read the schema from
conclaude-schema.json - Generate an overview page at
docs/src/content/docs/reference/config/configuration.md - Create individual section pages (e.g.,
hooks.md,files.md, etc.) - Extract and format YAML examples from schema descriptions
- Document nested types used by configuration properties
Step 3: Custom Output Directory (Optional)
To generate docs to a different location:
cargo run --bin generate-docs -- --output path/to/output/dir
Step 4: Verify Generated Documentation
Check the generated files:
ls -l docs/src/content/docs/reference/config/
cat docs/src/content/docs/reference/config/configuration.md
Look for:
- Overview page with all configuration sections listed
- Individual section pages with property tables
- Properly formatted YAML examples
- Nested type definitions where applicable
- Starlight frontmatter with title and description
Step 5: Review in the Documentation Site
If you have the docs site running locally:
cd docs
npm run dev
Navigate to /reference/config/configuration to review the generated documentation in context.
Step 6: Commit the Documentation
Include the generated docs in your commit:
git add docs/src/content/docs/reference/config/
git commit -m "Update configuration reference documentation"
Expected Output
When successful, you'll see:
Conclaude Documentation Generator
==================================
Reading schema from conclaude-schema.json...
Parsing JSON schema...
Creating output directory: docs/src/content/docs/reference/config
Generating configuration overview page...
Generating documentation for section: files
Generating documentation for section: hooks
Generating documentation for section: preventGeneratedFileEdits
Generating documentation for section: sessionStart
Documentation generation complete!
Generated files in: docs/src/content/docs/reference/config
Generated files include:
configuration.md- Overview page with quick referencehooks.md- Hooks configuration documentationfiles.md- File protection rules documentationsession-start.md- Session startup configuration- Additional section pages as needed
Common Issues
Schema File Not Found
If the generator can't find the schema:
- Ensure
conclaude-schema.jsonexists in the workspace root - Run from the workspace root directory
- Regenerate the schema:
cargo run --bin generate-schema
Build Errors
If the generator fails to build:
- Ensure Rust toolchain is installed:
cargo --version - Check that all dependencies are available:
cargo build - Verify
src/bin/generate-docs.rscompiles
Output Directory Creation Failed
If it fails to create the output directory:
- Check file system permissions
- Ensure parent directories exist
Установить generate-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл generate-docs?
Generate configuration reference documentation from conclaude-schema.json using src/bin/generate-docs.rs. USE WHEN the schema file changes, configuration options are added/modified, or documentation needs to be regenerated for the website.
Как установить скилл generate-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл generate-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic