Skip to content
Development
Agent

doc-refactor

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

From plugin
sd0x-dev-flow
19416 skills16 agents5 hooks

Claude Code

> /plugin marketplace add sd0xdev/sd0x-harness
> /plugin install sd0x-dev-flow@sd0xdev-marketplace

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
@sd0xdev
Ships withsd0x-dev-flow

Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Claude has discretion inside a closed, test-pinned anchor set.

194102 skills16 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
194
Star history of sd0xdev/sd0x-dev-flow on GitHub, a chart by star-history.com

Other agents on sd0x-dev-flow.

architecture-designer

architecture-designer

Agent

Architecture design expert. Synthesizes code analysis, tech-spec context, and architecture advice into structured architecture…

brief-writer

brief-writer

Agent

PM/CTO executive summary expert. Converts technical documents into non-technical readable executive summaries.

codex-architect

codex-architect

Agent

Codex architecture consulting expert (third brain). Uses Codex CLI to obtain architecture advice and integrates dual perspectives.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react3d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex3d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman4d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about doc-refactor.

Which coding agents can use doc-refactor?
doc-refactor installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.