Skip to content
Development
Command

/doc-polish

Clean up AI-generated content and improve documentation quality.

From plugin
claude-night-market
325163 skills59 agents163 commands1 MCP
Install
$ npx -y skills add athola/claude-night-market --agent claude-code

How it fires

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

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/doc-polish

Context preview

What this command does when you run it.

Clean up AI-generated content and improve documentation quality.

Command definition

doc-polish.md

Doc Polish

Clean up AI-generated content and improve documentation quality.

Usage

/doc-polish [target] [options]

Arguments

| Argument | Description | |----------|-------------| | `target` | File or directory to polish |

Options

| Option | Description | |--------|-------------| | `--style` | Style profile to apply (default: none) | | `--aggressive` | Apply all fixes without prompting | | `--dry-run` | Show changes without applying | | `--section` | Polish specific section only | | `--docstrings` | Polish only docstrings in code files |

Examples

# Polish README with prompts
/doc-polish README.md

# Apply style profile
/doc-polish docs/ --style project-docs

# Preview changes
/doc-polish api.md --dry-run

# Polish Python docstrings only
/doc-polish src/**/*.py --docstrings

Workflow

1. **Scan** for slop markers (audit mode by default; pass `--prevention` for strict mode on freshly generated docs) 2. **Categorize** by severity (includes Tier 5 / 2026 patterns: em-dash, plus-sign, spatial copula, negative parallelism, throat-clearing openers, three-fragment burst, smart quotes, significance cluster, loop/cascade vocabulary) 3. **Present** section-by-section changes 4. **Apply** approved changes 5. **Verify** improvement

Interactive Mode

For each section with issues:

## Section: Overview (Lines 1-35)

Current slop score: 4.2

Proposed changes:
1. Delete opener "In today's fast-paced world..."
2. Replace "comprehensive" with "thorough"
3. Convert bullet list to prose

Before:
> In today's fast-paced world, comprehensive
> documentation is essential...

After:
> scribe detects AI patterns in documentation
> and helps you fix them.

Proceed? [Y]es / [N]o / [E]dit / [S]kip section

Docstring Mode

When polishing code:

# BEFORE
def process(data):
    """
    This function leverages advanced algorithms
    to comprehensively process the input data.
    """

# AFTER
def process(data):
    """Process input data and return result."""

Code logic remains untouched.

Exit Codes

| Code | Meaning | |------|---------| | 0 | Polish complete | | 1 | Some sections skipped | | 2 | Error during polish |

See Also

  • `/slop-scan` - Detect issues first
  • `Skill(scribe:doc-generator)` - Full generation skill
Read more
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

Get the whole plugin, auto-invoked
Stats
325
Stars
0
Views
35
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
8mo ago
Created

Repo: athola/claude-night-market