Skip to content
Development
Command

/update-docs

Update project documentation with consolidation, debloating, AI slop detection, capabilities sync, and accuracy verification.

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/update-docs

Context preview

What this command does when you run it.

Update project documentation with consolidation, debloating, AI slop detection, capabilities sync, and accuracy verification.

Command definition

update-docs.md
description: Update project documentation with consolidation, debloating, AI slop detection, capabilities sync, and accuracy verification.
usage: /update-docs [--skip-consolidation] [--skip-slop] [--skip-capabilities] [--strict] [--book-style]

Update Project Documentation

Update documentation files based on recent changes while enforcing project writing guidelines. Includes consolidation detection, AI slop detection, directory-specific style rules, and accuracy verification.

Arguments

  • `--skip-consolidation` - Skip redundancy detection phase (Phase 2.5)
  • `--skip-slop` - Skip AI slop detection phase (Phase 4.25)
  • `--skip-capabilities` - Skip capabilities documentation sync (Phase 4.75)
  • `--strict` - Treat style warnings as errors
  • `--book-style` - Apply lenient book/ rules to all files

What's New

This command now addresses: 1. **Consolidation**: Detects redundant/bloated docs (like /merge-docs) 2. **Debloating**: Enforces directory-specific line limits and style rules 3. **AI Slop Detection**: Uses `scribe:slop-detector` to find AI-generated content markers 4. **Capabilities Sync**: Ensures plugin.json registrations are reflected in reference docs 5. **Accuracy**: Validates version numbers and counts against codebase 6. **LSP Integration (2.0.74+)**: **Default approach** for documentation verification

  • Find all references to documented functions (semantic, not text-based)
  • Verify API completeness (all public APIs documented)
  • Check signature accuracy (docs match actual code)
  • **Recommended**: Enable `ENABLE_LSP_TOOL=1` permanently
  • **Best Practice**: Always use LSP for documentation updates

Workflow

Load the required skills in order:

1. Run `Skill(sanctum:git-workspace-review)` to capture the change context 2. Run `Skill(sanctum:doc-updates)` and follow the enhanced checklist:

  • Context collection
  • Target identification
  • **Consolidation check** (detects redundancy, bloat, staleness)
  • Edits applied
  • **Guidelines verified** (directory-specific: docs/ strict, book/ lenient)
  • **AI slop scanned** via `Skill(scribe:slop-detector)`
  • **Capabilities synced** (plugin.json ↔ reference docs)
  • **Accuracy verified** (version/count validation)
  • Preview changes

Writing Style Integration

For enhanced writing quality, the workflow checks for external style guides:

# Primary: Use elements-of-style if installed (superpowers marketplace)
Skill(elements-of-style:writing-clearly-and-concisely)

# Fallback: Use scribe:doc-generator principles
Skill(scribe:doc-generator) --remediate

If slop score exceeds threshold, use the interactive editor:

Agent(scribe:doc-editor) --target [file]

Directory-Specific Style Rules

| Location | Style | Max File | Max Paragraph | |----------|-------|----------|---------------| | `docs/` | Strict reference | 500 lines | 4 sentences | | `book/` | Technical book | 1000 lines | 8 sentences | | `wiki/` | Wiki reference | 500 lines | 4 sentences | | `plugins/*/README.md` | Plugin summary | 300 lines | 4 sentences | | Other | Default strict | 500 lines | 4 sentences |

The `book/` directory has more leeway because it follows technical book format with longer explanations and tutorials. Plugin READMEs should be concise summaries.

Consolidation Detection

Phase 2.5 scans for:

  • Untracked reports (ALL_CAPS *_REPORT.md files)
  • Bloated committed docs exceeding line limits
  • Stale files with outdated content

User approval is required before any:

  • File deletions
  • Content merges
  • File splits

Accuracy Verification

Phase 5 validates documentation claims:

  • Version numbers vs `plugin.json` files
  • Plugin/skill/command counts vs actual directories
  • Referenced file paths exist

**LSP-Enhanced Verification (2.0.74+)**: When `ENABLE_LSP_TOOL=1` is set:

  • Find all public APIs and check documentation coverage
  • Verify function signatures match documented examples
  • Locate all references to show usage patterns
  • Cross-reference documentation with actual code structure

Warnings are non-blocking; user decides whether to fix.

Examples

# Standard documentation update
/update-docs

# Quick update without consolidation check
/update-docs --skip-consolidation

# Skip AI slop detection (faster, less thorough)
/update-docs --skip-slop

# Strict mode: treat all warnings as errors
/update-docs --strict

# Apply lenient rules everywhere (for book-like docs)
/update-docs --book-style

# Full cleanup with slop remediation
/update-docs && /slop-scan docs/ --fix

# Skip capabilities sync (faster for non-plugin repos)
/update-docs --skip-capabilities

Manual Execution

If a skill cannot be loaded, follow these steps:

1. Gather Git Context

pwd && git status -sb && git diff --stat

2. Check All Doc Locations for Bloat

# docs/ - strict (500 lines)
find docs/ -name '*.md' -exec wc -l {} \; 2>/dev/null | awk '$1 > 500'

# book/ - lenient (1000 lines)
find book/ -name '*.md' -exec wc -l {} \; 2>/dev/null | awk '$1 > 1000'

# wiki/ - strict (500 lines)
find wiki/ -name '*.md' -exec wc -l {} \; 2>/dev/null | awk '$1 > 500'

# Plugin READMEs - summary (300 lines)
for f in plugins/*/README.md; do
  [ -f "$f" ] && lines=$(wc -l < "$f") && [ "$lines" -gt 300 ] && echo "$lines $f"
done

3. Validate Versions

for p in plugins/*/.claude-plugin/plugin.json; do
  jq -r '"\(.name): \(.version)"' "$p" 2>/dev/null
done

4. Update Documents and Preview

  • Update each document using the directory-specific guidelines
  • Preview the resulting diffs with `git diff`

Output Examples

Consolidation Detection Output

When Phase 2.5 runs, you'll see a table of detected candidates:

## Phase 2.5: Consolidation Opportunities

### Untracked Reports (merge or delete)

| File | Score | Markers | Recommendation |
|------|-------|---------|----------------|
| API_REVIEW_REPORT.md | 6 | Executive Summary, Findings | Merge to docs/api-overvie
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