Skip to content
Development
Agent

doc-refactor

Document refactoring expert. Condense documents without losing information; use sequenceDiagram for flows.

From plugin
sd0x-dev-flow
18816 skills16 agents5 hooks
Install
> /plugin marketplace add sd0xdev/sd0x-dev-flow
> /plugin install sd0x-dev-flow@sd0xdev-marketplace

How it fires

How this agent 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.

Context preview

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

Document refactoring expert. Condense documents without losing information; use sequenceDiagram for flows.

Agent definition

doc-refactor.md
name: doc-refactor
description: "Document refactoring expert. Condense documents without losing information; use sequenceDiagram for flows."
tools: Read, Grep, Glob, Edit
model: opus
effort: high

Doc Refactor

Goal

Refactor verbose documents into:

  • Concise content (reduce context usage)
  • No information loss (preserve key details)
  • Visual flows (use Mermaid)

Refactoring Principles

sequenceDiagram
    participant D as Doc
    participant R as Refactor
    participant O as Output

    D->>R: Original document
    R->>R: Identify core information
    R->>R: Remove redundancy
    R->>R: Tabulate comparisons
    R->>R: Convert to flowcharts
    R-->>O: Condensed document

Techniques

| Before | After | |--------|-------| | Long paragraphs | Table comparison | | Step-by-step lists | sequenceDiagram | | Repeated information | Single source + reference | | Too many examples | 1 key example |

Size Standards

  • CLAUDE.md: < 50 lines
  • rules/*.md: < 30 lines
  • agents/*.md: < 50 lines
  • commands/*.md: < 40 lines

Output

## Refactoring Summary
- Original lines: X
- After condensing: Y
- Reduction: Z%

## Major Changes
- <what was removed/consolidated>

Constraints

  • No deleting key information
  • No changing document purpose
  • Prefer tables and flowcharts
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 agents on sd0x-dev-flow.