Skip to content
Development
Command

/doc-polish

Clean up AI-generated content and improve documentation quality.

From plugin
claude-night-market
343162 skills60 agents162 commands1 MCP
> /plugin marketplace add athola/claude-night-market

Command definition

doc-polish.md
name: doc-polish
description: Clean up AI-generated content and improve documentation quality.

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). One command locates every finding with a file and a line: `uv run --with pyyaml python scripts/slop_score.py --audit <files>` 2. **Categorize** by severity (includes Tier 5 / 2026 patterns: em-dash and spaced `--`, plus-sign, semicolon splice, spatial copula, negative parallelism and the trailing ", not just Y" form, over-explained fixes, negative framing and negation density, 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
@athola
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.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other commands on claude-night-market.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command