Skip to content
Development
Skill

/doc-refactor

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

From plugin
sd0x-dev-flow
18899 skills16 agents5 hooks
Install
$ npx -y skills add sd0xdev/sd0x-dev-flow --skill doc-refactor --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/doc-refactor

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

doc-refactor.SKILL.md
name: doc-refactor
description: "Refactor documents — simplify without losing information, visualize flows with sequenceDiagram."
allowed-tools: Read, Grep, Glob, Edit, Agent

Document Refactoring

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 Type | Target Lines | |-----------|-------------| | CLAUDE.md | < 50 | | rules/*.md | < 30 | | agents/*.md | < 50 |

Output

## Refactoring Result

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

## Changes

- <summary>
Read more
Ships withsd0x-dev-flow

Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Full control plane on Claude Code. Skills-only distribution for Codex CLI and other compatible agents.

Get the whole plugin

Other skills on sd0x-dev-flow.