From nexus-agents
Improves technical docs in-place via phased Audit → Research → Rewrite → Validate workflow. Calls docs-review for scoring; applies rubric-defined formatting rules.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nexus-agents:docs-rewriteThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!--
Use when actively improving an existing technical doc — RFC, ADR,
README, CLAUDE.md, architecture doc, blog-style technical post. The
workflow modifies the file in place; it's not a read-only audit. For
audit-only, use docs-review directly.
Trigger keywords: rewrite docs · improve this doc · optimize doc · docs rewrite · refresh doc · improve docs.
Call docs-review against the target file. Capture:
Do not edit yet. Present the audit summary to the operator.
Before any file edits, present a section-by-section rewrite plan:
# Rewrite plan: <file>
Baseline: 71 / 100
§ Introduction (lines 1-25)
- Issue: thesis is hedged (3 questions in first paragraph)
- Plan: hoist the central claim to the first sentence; convert
questions to declarative statements
§ Section 2 (lines 30-89)
- Issue: 4 unsourced assertions (per blog-factcheck)
- Plan: find Tier 1-3 sources for each, or remove
§ Section 3 (lines 95-150)
- Issue: paragraphs > 150 words (lines 102, 134)
- Plan: split each into 2-3 paragraphs of 40-80 words
§ Conclusion (lines 200-220)
- Issue: doesn't restate the thesis
- Plan: add a 60-word citation capsule that names what was
demonstrated and what remains open
Wait for explicit operator approval before proceeding to Phase 3.
This gate is the single most important rule in the workflow. Skipping it produces rewrites that diverge from operator intent — and rewrites are by definition destructive of the existing doc's voice.
For any unsourced claim flagged by blog-factcheck:
.rules/docs-rubric.md:
[ORIGINAL DATA] / [PERSONAL EXPERIENCE] /
[UNIQUE INSIGHT] (only when genuinely first-hand).rules/untrusted-input.md fence convention before quoting.Apply changes in the exact order from the plan. Per the rubric, prefer these patterns:
[ORIGINAL DATA] / [PERSONAL EXPERIENCE] / [UNIQUE INSIGHT].
Don't apply these to synthesis of public knowledge — they're
reserved for what's not findable elsewhere.Run docs-review again on the rewritten file. Compare:
Reject the rewrite if the new score is lower than the baseline. This is non-negotiable: if the rewrite made the doc worse by the rubric, revert and re-plan. The validate gate is the rubric's purpose.
Output:
# Rewrite complete: <file>
Score: 71 → 87 (+16) ✅
Issues resolved (from baseline top-10):
- thesis is hedged → resolved (line 3)
- 2 unsourced assertions → resolved (added Tier 1-2 citations)
- § 3 paragraph > 150 words → resolved (split into 3)
Issues newly introduced: none.
Three new top issues (post-rewrite):
1. [Medium] line 142 — H2 cadence: 480 words between §3.2 and §3.3
2. [Low] line 88 — Year missing on Linux kernel cite
3. [Low] line 219 — Conclusion could include one info-gain marker
docs-review. Always.documentation-management's
outline + write workflow. This skill improves existing docs.code-simplification or other code-focused skills.docs-review's reject. If validate says the score
regressed, revert. Don't reason around it.skills/docs-review — the read-only audit counterpart this skill
calls.rules/docs-rubric.md — the canonical rubric.rules/untrusted-input.md — fence convention for any external
content quoted into the docskills/documentation-management — operating manual for doc worknpx claudepluginhub nexus-substrate/nexus-agentsReviews documentation from a novice user's perspective, rating clarity, completeness, actionability, and structure. Outputs prioritized issues and concrete suggested fixes.
Writes and audits technical documentation, API docs, user guides, and specifications for completeness, sequence, precision, and audience calibration.
Analyzes markdown docs using Diataxis principles: classifies sections as tutorial/how-to/reference/explanation, identifies type-specific issues, and interactively refines.