Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jorgeferrando/sdd-skills/llms.txt
Use this file to discover all available pages before exploring further.
/sdd-docs turns your openspec/ directory into a fully-formed documentation website. It reads your canonical specs, steering files, and change archive, then uses an LLM to produce narrative prose — not template placeholders — for every section. The result is a complete MkDocs Material site that is ready to preview with mkdocs serve and deploy to GitHub Pages with mkdocs gh-deploy. If an LLM API key is not available, the skill falls back to generating placeholder-filled templates that you can fill in manually.
Usage
Prerequisites
openspec/initialized — run/sdd-initif it does not exist yet.sdd-tuiinstalled with the[fill]extra:ANTHROPIC_API_KEYset in the environment for AI-enriched output (see Without an API key if not available).
What It Does
If the key is missing, the skill explains how to obtain and export one, and offers the placeholder fallback path.
The CLI reads the full
openspec/ directory, builds a project context, and generates the documentation site using the configured LLM. --fill enables AI-enriched prose (no placeholders); --force overwrites any existing output files.Output
All generated files land in the project root alongsidemkdocs.yml:
| File | Content |
|---|---|
mkdocs.yml | Complete MkDocs Material config — navigation, Mermaid support, theme features |
docs/index.md | Narrative homepage: problem statement, tools, quick-start guide, architecture diagram |
docs/reference/{domain}.md | One page per domain from openspec/specs/ — prose explanation, requirement tables, decision log |
docs/changelog.md | Change history generated from openspec/changes/archive/ |
Without an API Key
IfANTHROPIC_API_KEY is not set, the CLI generates templates with {placeholder} markers instead of AI-written prose:
--fill (once a key is available) will replace the placeholders with AI-generated content.
Without
ANTHROPIC_API_KEY, every narrative section in the generated docs will contain placeholder text like {project description} or {domain overview}. The structure and navigation are correct, but the content requires manual authoring. Set the key and re-run with --fill to get fully-written documentation.Supported LLM Providers
| Environment variable | Provider | Notes |
|---|---|---|
ANTHROPIC_API_KEY | Claude (Haiku by default) | Currently supported |
OPENAI_API_KEY | GPT / Codex | Planned |
GEMINI_API_KEY | Gemini | Planned |
src/sdd_tui/ai_docs.py → make_provider().
Skill Metadata
| Field | Value |
|---|---|
model_hint | haiku |
requires | openspec/specs/ |
produces | docs/ directory and mkdocs.yml |
Next Steps
After previewing locally withmkdocs serve, deploy to GitHub Pages:
/sdd-docs after each /sdd-archive cycle — the changelog and reference pages will reflect the newly archived change automatically.