Scaffold, validate, and maintain Johnny.Decimal documentation structure for software projects. Use when user mentions "Johnny Decimal", "J.D docs", "docs structure", "organize docs", "documentation layout", "scaffold docs", "docs migration", "generate index", "docs index", editing files in numbered directories (00-*, 10-*, 20-*), or discussing documentation organization.
Resources
4Install
npx skillscat add joaquimscosta/arkhe-claude-plugins/jd-docs Install via the SkillsCat registry.
Johnny.Decimal Documentation
Scaffold, validate, and maintain Johnny.Decimal documentation structure with sensible defaults and per-project customization.
Quick Start
# Scaffold a new structure
uv run scripts/jd_init.py --dry-run # Preview first
uv run scripts/jd_init.py # Create docs/ with defaults
# Validate existing structure
uv run scripts/jd_validate.py --dir docs
# Regenerate README index
uv run scripts/jd_index.py --dir docsSee WORKFLOW.md for the full six-phase methodology.
Capabilities
- Scaffolding (
jd_init.py) — Create J.D directory tree with README templates; supports--productfor monorepo sub-trees and--init-configto generate.jd-config.json - Validation (
jd_validate.py) — CheckNN-kebab-casenaming, detect orphan files, verify README presence per area;--strictfor CI enforcement - Index generation (
jd_index.py) — Generate/update root README with table or tree index; preserves custom content via<!-- JD:INDEX:START/END -->markers - Migration (Claude-driven) — Classify flat docs into J.D areas using naming heuristics, present a move plan, execute interactively
Default Area Scheme
| Prefix | Name | Purpose |
|---|---|---|
00- |
getting-started | Onboarding, setup, quick start, MVP |
10- |
product | Specs, features, roadmap, design, branding |
20- |
architecture | Tech decisions, system design, integration |
30- |
research | Spikes, investigations, reference material |
90- |
archive | Historical/deprecated docs |
Gap at 40-80 reserved for per-project customization (e.g., 40-operations).
Config File (.jd-config.json)
Optional per-project override at project root:
{
"version": 1,
"root": "docs",
"areas": { "00": "getting-started", "10": "product", "20": "architecture", "30": "research", "90": "archive" },
"products": [],
"ignore": ["adr", "*.pdf"],
"readme_format": "table"
}Create with uv run scripts/jd_init.py --init-config. All fields have sensible defaults.
Common Issues
| Issue | Fix |
|---|---|
uv not found |
curl -LsSf https://astral.sh/uv/install.sh | sh or run with python3 scripts/jd_init.py |
| Orphan files in validation | Move to area dir, or add to "ignore" in .jd-config.json |
| Index appended at wrong position | Move <!-- JD:INDEX:START/END --> markers to desired location after first run |
See TROUBLESHOOTING.md for all 10 error scenarios.
References
- WORKFLOW.md — Six-phase methodology (discovery, config, scaffold, validate, index, migrate)
- EXAMPLES.md — Real-world examples for all six operations
- TROUBLESHOOTING.md — Error handling and debugging tips