doc-generator
npx machina-cli add skill athola/claude-night-market/doc-generator --openclawDocumentation Generator
Documentation must be grounded in specific claims rather than abstract adjectives. We avoid filler phrases like "In today's fast-paced world" and focus on delivering useful information directly. Each claim should be supported by evidence, such as specific version numbers or request rates, rather than vague descriptors like "comprehensive."
Core Writing Principles
We prioritize authorial perspective and active voice to maintain a consistent team tone. This involves explaining the reasoning behind technical choices, such as selecting one database over another, rather than providing neutral boilerplate. Bullets should be used sparingly for actionable summaries; multi-line bullet waterfalls should be converted to short paragraphs to preserve nuance.
Vocabulary and Style
Avoid business jargon and linguistic tics like mirrored sentence structures or excessive em dashes. We use the imperative mood for docstrings (e.g., "Validate input") and strictly avoid humanizing non-living constructs like code.
| Instead of | Use |
|---|---|
| fallback | default, secondary |
| leverage | use |
| utilize | use |
| facilitate | help, enable |
| comprehensive | thorough, complete |
9. Limit Humanizing Constructs
"Lives under," "speaks to," and similar phrases only make sense for living things.
10. Imperative Mood for Docstrings
"Validate" not "Validates" (per PEP 257, pydocstyle, ruff).
Required TodoWrite Items
doc-generator:scope-defined- Target files and type identifieddoc-generator:style-loaded- Style profile applied (if available)doc-generator:content-drafted- Initial content createddoc-generator:slop-scanned- AI markers checkeddoc-generator:quality-verified- Principles checklist passeddoc-generator:user-approved- Final approval received
Mode: Generation
For new documentation:
Step 1: Define Scope
## Generation Request
**Type**: [README/Guide/API docs/Tutorial]
**Audience**: [developers/users/admins]
**Length target**: [~X words or sections]
**Style profile**: [profile name or "default"]
Step 2: Load Style (if available)
If a style profile exists:
cat .scribe/style-profile.yaml
Apply voice, vocabulary, and structural guidelines.
Step 3: Draft Content
Follow the 10 core principles above. For each section:
- Start with the essential information
- Add context only if it adds value
- Use specific examples
- Prefer prose over bullets
- End when information is complete (no summary padding)
Step 4: Run Slop Detector
Skill(scribe:slop-detector)
Fix any findings before proceeding.
Step 5: Quality Gate
Verify against checklist:
- No tier-1 slop words
- Em dash count < 3 per 1000 words
- Bullet ratio < 40%
- All claims grounded with specifics
- No formulaic openers or closers
- Authorial perspective present
- No emojis (unless explicitly requested)
Mode: Remediation
For cleaning up existing content:
Load: @modules/remediation-workflow.md
Step 1: Analyze Current State
# Get slop score
Skill(scribe:slop-detector) --target file.md
Step 2: Section-by-Section Approach
For large files (>200 lines), edit incrementally:
## Section: [Name] (Lines X-Y)
**Current slop score**: X.X
**Issues found**: [list]
**Proposed changes**:
1. [Change 1]
2. [Change 2]
**Before**:
> [current text]
**After**:
> [proposed text]
Proceed? [Y/n/edit]
Step 3: Preserve Intent
Never change WHAT is said, only HOW. If meaning is unclear, ask.
Step 4: Re-verify
After edits, re-run slop-detector to confirm improvement.
Docstring-Specific Rules
When editing code comments:
- ONLY modify docstring/comment text
- Never change surrounding code
- Use imperative mood ("Validate input" not "Validates input")
- Brief is better - remove filler
- Keep Args/Returns structure if present
Module Reference
- See
modules/generation-guidelines.mdfor content creation patterns - See
modules/quality-gates.mdfor validation criteria
Integration with Other Skills
| Skill | When to Use |
|---|---|
| slop-detector | After drafting, before approval |
| style-learner | Before generation to load profile |
| sanctum:doc-updates | For broader doc maintenance |
Exit Criteria
- Content created or remediated
- Slop score < 1.5 (clean rating)
- Quality gate checklist passed
- User approval received
- No emojis present (unless specified)
Source
git clone https://github.com/athola/claude-night-market/blob/master/plugins/scribe/skills/doc-generator/SKILL.mdView on GitHub Overview
doc-generator creates or remediates documentation to human-quality writing and style. It supports generating new docs, rewriting AI-generated content, and applying style profiles, all while grounding claims with specifics. The tool relies on modules like generation-guidelines, remediation-workflow, and quality-gates to maintain consistency and polish.
How This Skill Works
When invoked, the tool loads an optional style profile, drafts content following core writing principles (grounding every claim with specifics and using an authorial, active voice), and then runs a slop detector and quality gates before finalizing. It enforces required TodoWrite items to ensure scope, style, content, and quality checks are completed with final user approval.
When to Use It
- Creating new documentation such as README, Guide, API docs, or Tutorials.
- Rewriting AI-generated content to achieve human-quality writing and tone.
- Applying a style profile to ensure consistency across multiple docs.
- Remediating existing documentation to remove filler, ground claims with specifics, and improve structure.
- Polishing docs for clarity and conciseness rather than performing slop detection alone.
Quick Start
- Step 1: Define Scope: Type (README/Guide/API docs/Tutorial), Audience, Length target, Style profile.
- Step 2: Load Style (if available): apply voice, vocabulary, and structural guidelines from the profile.
- Step 3: Draft Content and Validate: write content following core principles, then run slop-detector and quality gates; obtain user approval.
Best Practices
- Define scope, audience, and target length before drafting.
- Load and apply the style profile early in the process.
- Ground every claim with specific evidence, versions, or metrics.
- Prefer prose over excessive bullets and keep bullet usage under 40%.
- Run the slop detector and quality gates and iterate until all checks pass.
Example Use Cases
- Generate a new API Reference for a release with versioned examples and concrete parameters.
- Rewrite an AI-generated onboarding doc to remove filler and align with company voice.
- Apply a company-wide style profile to a multi-section README and tutorials for consistency.
- Remediate a legacy doc by removing generic phrasing and adding real-world usage examples.
- Create user-facing guides for a feature release with evidence-backed claims and testable steps.
Frequently Asked Questions
Related Skills
update-readme
athola/claude-night-market
'Run git-workspace-review first to capture repo context. Use when README
version-updates
athola/claude-night-market
'Use this skill for version management and release preparation. Use when
commit-messages
athola/claude-night-market
'Generate conventional commit messages from staged changes with correct
doc-updates
athola/claude-night-market
'Use this skill for general documentation updates with built-in quality
pr-prep
athola/claude-night-market
'Use this skill for PR preparation. Use when preparing PRs for submission,
tutorial-updates
athola/claude-night-market
'Orchestrate tutorial generation from VHS tapes and Playwright specs