Home / Subagents / doc-refactor

doc-refactor

sd0xdev/sd0x-harnessSubagent

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

ScannedSubagentSource: GitHub
194 stars Updated 28d ago License MIT Context ≈30 tokens in your chat
60popular

Why this score

Stars8/35
Usage (forks)2/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 16 subagents, so its 194 stars are split between them (about 12 each) for scoring.

Popularity score: 60/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Edit and write files
  • Read and search files

Tools listed in the file: Read, Grep, Glob, Edit

Model: opus

The agent file

---
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

```mermaid
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

```markdown
## 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

MIT license, from sd0xdev/sd0x-harness at commit a4d4bc1493a9.

Security

Scanned Oct 21, 2026 at commit a4d4bc1493a9, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onedoc-refactor sd0xdev/sd0x-harness · Subagent 60★ 194≈30 in chat28d ago
refactor justxor/claude-code-pro-course · Skill Same job: refactoring 60★ 309≈45 always1mo ago
refactor-planner aspenkit/aspens · Subagent Same job: refactoring 47★ 102≈43 in chat2mo ago
refactor-engineer first-fluke/oh-my-agent · Subagent Same job: refactoring 60★ 1.3k≈45 in chat16d ago
refactor-safely tirth8205/code-review-graph · Skill Same job: refactoring 87★ 32k≈19 always19d ago
refactor-analyst OpenSource03/harnss · Subagent Same job: refactoring 66★ 386≈154 in chat20d ago