/doc:jd-docsfrom doc
Scaffolds, validates, and maintains Johnny.Decimal documentation structure for software projects. Provides day-2 operations: add areas, classify files, generate indexes.
Ships in doc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Scaffold, validate, and maintain Johnny.Decimal documentation structure with sensible defaults and per-project customization.
# Scaffold a new structure
uv run scripts/jd_init.py --dry-run # Preview first
uv run scripts/jd_init.py # Create docs/ with defaults
uv run scripts/jd_init.py --diataxis # Include Diataxis areas (41-44)
# Validate existing structure
uv run scripts/jd_validate.py --dir docs
# Regenerate README index
uv run scripts/jd_index.py --dir docs
# Day-2: Add a new area
uv run scripts/jd_add_area.py --prefix 40 --name operations --dry-run
# Day-2: Classify unorganized files
uv run scripts/jd_classify.py docs/*.md
uv run scripts/jd_classify.py docs/*.md --diataxis # With quadrant info
# Day-2: Move a file to an area
uv run scripts/jd_add.py docs/roadmap.md 00 --dry-run
See WORKFLOW.md for the full methodology.
jd_init.py) — Create J.D directory tree with README templates; supports --product for monorepo sub-trees, --init-config to generate .jd-config.json, and --diataxis to include Diataxis quadrant areas (41-44)jd_validate.py) — Check NN-kebab-case naming, detect orphan files, verify README presence per area; --strict for CI enforcementjd_index.py) — Generate/update root README with table or tree index; preserves custom content via <!-- JD:INDEX:START/END --> markersjd_add_area.py) — Create a new J.D area with prefix, name, README stub, config update, and auto re-indexjd_classify.py) — Classify files into areas using keyword heuristics with confidence scoring (high/medium/low); --diataxis adds Diataxis quadrant column, --diataxis-move routes files to quadrant areas (41-44)jd_add.py) — Move a file to an area with auto-normalized kebab-case naming and cross-reference detection| 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).
With --diataxis, areas 41-44 are added for Diataxis quadrants:
| 41- | tutorials | Tutorials — step-by-step lessons (Diataxis) |
| 42- | how-to | How-to guides — practical tasks (Diataxis) |
| 43- | reference | Reference — technical descriptions (Diataxis) |
| 44- | explanation | Explanation — conceptual discussions (Diataxis) |
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.
| 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 |
| Low confidence on all files | Expand keywords in config or use Claude-driven classification |
See TROUBLESHOOTING.md for all error scenarios.
EXAMPLES.md (opens in a new tab)TROUBLESHOOTING.md (opens in a new tab)WORKFLOW.md (opens in a new tab)scripts/jd_add.py (opens in a new tab)scripts/jd_add_area.py (opens in a new tab)scripts/jd_classify.py (opens in a new tab)scripts/jd_index.py (opens in a new tab)scripts/jd_init.py (opens in a new tab)scripts/jd_validate.py (opens in a new tab)scripts/shared.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/adrCreate, review, and manage Architecture Decision Records (ADRs) with auto-numbering, template detection, quality review, and index maintenance. Use when user mentions "ADR", "architecture decision", "document this decision", "create ADR", "review ADR", editing ADR files (docs/adr/, doc/adr/, .adr/), or discussing architectural choices and tradeoffs./code-explanationExplains complex code through clear narratives, visual diagrams, and step-by-step breakdowns. Use when user asks to explain code, understand algorithms, analyze design patterns, wants code walkthroughs, or mentions "explain this code", "how does this work", "code breakdown", or "understand this function"./diagrammingCreates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual documentation./diataxisAudit, classify, validate, and scaffold documentation using the Diataxis framework (Tutorials, How-to guides, Reference, Explanation). Use when user mentions "diataxis", "documentation framework", "quadrant", "doc audit", "doc coverage", "collapsed document", "tutorial vs how-to", "quadrant purity", "documentation types", or wants to classify docs by type./doc-coauthoringGuide users through structured collaborative documentation creation. Use when user wants to write documentation, update README, create architecture docs, draft proposals, technical specs, decision docs, refactor documentation, create API docs, or document code./doc-freshnessDetect documentation drift, stale references, and cross-document inconsistencies in any project. Scans for code-doc drift (API/function changes not reflected in docs), cross-doc drift (conflicting information across documents), and stale references (broken links, deleted files, outdated versions). Use when checking "doc freshness", "stale docs", "documentation drift", "broken links", "outdated documentation", "doc accuracy", "docs out of date", "doc audit", "doc health", or "verify documentation".
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin docOther plugins' skills for the same job