/doc-polish
Clean up AI-generated content and improve documentation quality.
$ npx -y skills add athola/claude-night-market --agent claude-codeHow 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.mdDoc 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
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
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.
Other commands on claude-night-market.
- /aggregate-logs
Generate LEARNINGS.md from skill execution logs.
Open command - /analyze-skill
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Open command - /bulletproof-skill
Harden skills against rationalization and bypass behaviors
Open command - /context-report
Generate context optimization report for skill directories
Open command - /create-command
Create slash commands with brainstorming and best practices
Open command - /create-hook
Create hooks with brainstorming and security-first design
Open command

