Document Refactoring

SkillDocs & knowledge

Refactor documents — simplify without losing information, visualize flows with sequenceDiagram.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Document Refactoring skill

What this skill tells your AI

The instructions your AI receives, as published by sd0xdev/sd0x-harness in skills/doc-refactor/SKILL.md and read by ahel’s review.

Trigger

  • Keywords: refactor doc, simplify document, doc-refactor, condense document

When NOT to Use

  • Code refactoring (use /simplify or /refactor)
  • Document review without changes (use /codex-review-doc)
  • Writing new documents (use /tech-spec or /create-request)

Agent Dispatch

Dispatch to the dedicated doc-refactor agent:

Agent({
  description: "Refactor document — simplify without losing information",
  subagent_type: "doc-refactor",
  prompt: `Refactor the document at: $ARGUMENTS
Follow the task steps and simplification standards defined in this skill.`
})

Task

For the file specified by $ARGUMENTS:

  1. Analyze original content

    • Count lines
    • Identify core information vs redundancy
  2. Refactor

    • Long paragraphs -> tables
    • Steps -> sequenceDiagram
    • Duplicates -> single source
  3. Validate

    • Key information preserved
    • Line count reduced

Simplification Standards

File TypeTarget Lines
CLAUDE.md< 50
rules/*.md< 30
agents/*.md< 50

Output

## Refactoring Result

- Original: X lines
- Simplified: Y lines (-Z%)

## Changes

- <summary>

Signals

GitHub stars
188
Forks
24
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
doc-refactor
Source
github.com/sd0xdev/sd0x-harness