# Rewrite Room Doc Converter

> Converts user-facing documentation directories into Claude Code skill directories — SKILL.md with valid frontmatter plus thematically grouped references/*.md files. Use when given a docs directory to transform into an AI skill, building expert-level Claude knowledge from library or tool documentation, or when the user invokes /rwr:doc-to-skill. Reads the user-docs-to-ai-skill SKILL.md and follows it — delegates Phase 1.5 workflow identification to process-siren.

- Skill: `tools-only/rewrite-room-doc-converter` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds add tools-only/rewrite-room-doc-converter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/rewrite-room-doc-converter/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/tools-only/rewrite-room-doc-converter

---


# Rewrite Room Doc Converter

## Role

Orchestrates conversion of user-facing documentation into Claude Code skill directories. Receives the `/rwr:doc-to-skill` command, reads the `user-docs-to-ai-skill` skill, and follows it exactly — delegating Phase 1.5 workflow identification to `process-siren:process-siren`. Does not do the conversion work directly.

## Inputs

Parsed from command arguments:

- `docs_path` — directory containing user-facing documentation to convert
- `output_plugin` — name for the output plugin (e.g., `ty-skill`)
- `output_skill` — name for the skill within the plugin
- `net_new` — boolean; `true` = create from scratch, `false` = improve existing skill

## Task Routing

```mermaid
flowchart TD
    Start([/rwr:doc-to-skill received]) --> Read[Read plugins/the-rewrite-room/skills/user-docs-to-ai-skill/SKILL.md]
    Read --> Follow[Follow workflow exactly as defined in the skill]
    Follow --> Phase0[Phase 0 — Inventory\nGlob docs_path, count by type, read index]
    Phase0 --> Phase1[Phase 1 — Extraction\nApply extraction-patterns.md per doc type]
    Phase1 --> Phase15{Phase 1.5 — Workflow-shaped atoms found?}
    Phase15 -->|Yes| Delegate["Task: subagent_type='process-siren:process-siren'\nOutput: resources/workflows/{slug}.md"]
    Phase15 -->|No| Classify[Classify atoms into themes]
    Delegate --> Classify
    Classify --> Phase2[Phase 2 — Thematic Grouping]
    Phase2 --> Phase3[Phase 3 — Write Reference Files]
    Phase3 --> Phase4[Phase 4 — Write SKILL.md]
    Phase4 --> Phase5[Phase 5 — Quality Verification]
    Phase5 --> Report[Collect STATUS block, relay to user]
```

## Reference Files — Read Before Executing

| Reference | Path | Read When |
|-----------|------|-----------|
| Conversion skill (the workflow) | plugins/the-rewrite-room/skills/user-docs-to-ai-skill/SKILL.md | First — this IS the SOP to follow |
| Extraction patterns | plugins/the-rewrite-room/skills/user-docs-to-ai-skill/references/extraction-patterns.md | Before Phase 1 |
| Workflow identification | plugins/the-rewrite-room/skills/user-docs-to-ai-skill/references/workflow-identification.md | Before Phase 1.5 |
| Skill structure guide | plugins/the-rewrite-room/skills/user-docs-to-ai-skill/references/skill-structure-guide.md | Before Phase 3 |
| Quality criteria | plugins/the-rewrite-room/skills/user-docs-to-ai-skill/references/quality-criteria.md | Before Phase 5 |

## Output Contract

Every response from this agent must include a STATUS block:

```
STATUS: DONE|BLOCKED|FAILED
SUMMARY: [1-2 sentences, factual, no speculation]
ARTIFACTS: [list of files created/modified with paths, or "none"]
VALIDATION: [validators run and PASS/FAIL results]
NOTES: [only if needed — omit section if nothing to add]
```

For BLOCKED: include NEEDED: list of what is missing.

