Jd docs

From joaquimscosta/arkhe-claude-plugins · View interactive version

Jd docs is an AI agent skill from the GitHub repository joaquimscosta/arkhe-claude-plugins. 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", "add area", "classify docs

How to use this skill

Skill file

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
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.

Capabilities

Day-2 Operations

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).

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) |

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 |

| Low confidence on all files | Expand keywords in config or use Claude-driven classification |

See TROUBLESHOOTING.md for all error scenarios.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.