MCPInstall
athola avatar

doc-generator

Generates or remediates documentation with human-quality writing. Use when creating new docs, rewriting AI-generated content, or applying style profiles.

Installs
162
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/athola/claude-night-market --skill doc-generator
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads doc-generator automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Documentation Generator

A document costs the sum of its readers' time. Earn that cost or cut.

Generate documents that are grounded in specific claims, lead with their thesis, and earn every sentence. Filler phrases like "In today's fast-paced world" and vague descriptors like "thorough" or "complete" without evidence are bloat. So is any sentence that does not carry, instance, bound, or repeat the document's one takeaway.

This skill enforces both sentence-level cleanliness (no slop vocabulary, em dash overuse, or sycophantic openers) and document-level economy (thesis-first, every sentence earns weight, repetition reserved for the thesis). See Skill(scribe:slop-detector) module document-economy.md for the full rubric.

When NOT To Use

  • Converting an external file into markdown (use leyline:document-conversion and its project-import module)
  • Scanning existing prose for AI patterns (use scribe:slop-detector)

Core Writing Principles

Use active voice and an authorial perspective. Explain the reasoning behind technical choices (why this database, not that one) rather than presenting neutral boilerplate. Use bullets sparingly for short, parallel summaries. Convert multi-line bullet waterfalls into prose so the reasoning survives.

Vocabulary and Style

Avoid business jargon and linguistic tics like mirrored sentence structures or em dash overuse. Use the imperative mood for docstrings ("Validate input", not "Validates"). Do not humanize non-living constructs ("the code wants", "the function speaks to").

Instead ofUse
fallbackdefault, secondary
leverageuse
utilizeuse
facilitatehelp, enable
comprehensivethorough, 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).

11. One Term per Concept, One Home per Fact

When a concept already has a name, use the term the repository already uses. A new synonym makes readers ask whether two things exist. When a number, threshold or path is stated in another file, link to the file that states it. A second copy drifts, and code left inconsistent with its docs is measurably more bug-prone (docs/knowledge-corpus/decoherence.md).

When a document replaces another, describe only the current state in the new one. The superseded document gets the forward pointer and its status: deleted, deprecated, or still valid for a named case. The commit message records the supersession.

Required Progress Items

  1. doc-generator:scope-defined - Target files and type identified
  2. doc-generator:style-loaded - Style profile applied (if available)
  3. doc-generator:content-drafted - Initial content created
  4. doc-generator:slop-scanned - AI markers checked
  5. doc-generator:quality-verified - Principles checklist passed
  6. doc-generator:user-approved - Final approval received

Mode: Generation

For new documentation:

Step 1: Define Scope

## Generation Request

**Type**: [README/Guide/API docs/Tutorial]
**Audience tier**: [newcomer | practitioner | expert | persona: <one line>]
**Audience**: [developers/users/admins]
**Audience size**: [1 / small team / org / public]
**Read frequency**: [once / weekly / per-invocation]
**Thesis**: [one sentence the reader must walk away with]
**Length target**: [~X words or sections]
**Style profile**: [profile name or "default"]

The Thesis field is required. If you cannot state the takeaway in one sentence, the scope is not ready. Audience size and read frequency feed the reader-time budget (see scribe:slop-detector module document-economy.md): a skill loaded daily by 50 users has a wildly different budget than a 1:1 design note.

Audience tier is required too, and when the request omits it, ask, do not guess. A guessed reader produces a document that reads as competent and serves nobody. The tier table, the Socratic set for eliciting one, and the creative-writing carve-out are in scribe:slop-detector module audience-targeting.md.

The tier decides what survives the draft:

TierKeepMove to a deep dive
newcomerThe one path that works, end to endInternals, history, alternatives considered
practitionerRepo-specific facts they cannot deriveGeneral-domain teaching
expertThe novel claim and its numbersNothing. Deep dives land here

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

Lead with the thesis. The first paragraph must state the single takeaway. If a reader stops after the lead, they should still leave with the message. Echo the thesis once in the body and once at the close. Cut every other repetition.

Follow the 10 core principles above. For each section:

  1. Start with the essential information (state the thesis or a clear instance of it)
  2. Add context only if it adds value (does it carry, instance, or bound the thesis?)
  3. Use specific examples (one is proof; two is emphasis; three is filler)
  4. Prefer prose over bullets
  5. End when information is complete (no summary padding, no "in conclusion" restatements)

Run the cut test on every section against the declared tier: keep what the reader needs before they can act, link what they need later, extract what only a higher tier wants, delete what no tier wants. Extraction is the verdict that gets skipped. Content a newcomer cannot use is usually not weak, it is answering a question they have not asked yet. Move it to modules/<topic>.md for a skill or docs/deep-dive/<topic>.md for a repo doc, and link it from the parent's lead. Never delete to hit a tier.

Step 4: Run Slop Detector

uv run --with pyyaml python scripts/slop_score.py --audit <files>
Skill(scribe:slop-detector)

The script locates every finding with a file and a line, including the low-confidence and opt-in categories the merge gate does not score. The skill says how to rewrite each one. Fix the findings before proceeding, and leave (low) and (medium) hits for a person to judge.

Step 5: Quality Gate

Verify against checklist:

Sentence-level:

  • 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)

Document-level (document-economy module):

  • Thesis stated in the lead, single and clear (2/2)
  • >80% of sentences carry, instance, bound, or repeat the thesis (2/2)
  • Thesis echoed at least 3 times; non-thesis repetition cut (2/2)
  • Writing time roughly proportional to (audience size × read frequency × per-read time)

Audience (audience-targeting module):

  • A tier is declared, and was asked for rather than guessed when the request omitted it (2/2)
  • Every section serves the declared tier
  • Off-tier content was extracted and linked, not deleted
  • Each new deep dive declares its own tier

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:

  1. ONLY modify docstring/comment text
  2. Never change surrounding code
  3. Use imperative mood ("Validate input" not "Validates input")
  4. Brief is better - remove filler
  5. Keep Args/Returns structure if present

Module Reference

  • See modules/generation-guidelines.md for content creation patterns
  • See modules/quality-gates.md for validation criteria

Integration with Other Skills

SkillWhen to Use
slop-detectorAfter drafting, before approval
style-learnerBefore generation to load profile
sanctum:doc-updatesFor broader doc maintenance

Exit Criteria

  • Content created or remediated
  • Slop score < 1.5 (clean rating)
  • Audience tier declared in the request and honored in the draft
  • Document economy score >= 7/8, audience fit scoring 2/2
  • Every extraction landed in modules/ or docs/deep-dive/ and is linked from the parent's lead
  • Quality gate checklist passed
  • User approval received
  • No emojis present (unless specified)

FAQ

What does the doc-generator skill do?

Generates or remediates documentation with human-quality writing. Use when creating new docs, rewriting AI-generated content, or applying style profiles.

How do I install doc-generator?

Run npx skills add https://github.com/athola/claude-night-market --skill doc-generator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/doc-generator/ (personal) or .claude/skills/doc-generator/ (project).

Which AI agents can use doc-generator?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is doc-generator safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains doc-generator?

It is published by athola in athola/claude-night-market. It has 162 recorded installs.

More from athola/claude-night-market

View all →
athola avatar

project-planning

athola/claude-night-market

Converts a specification into a phased, dependency-ordered implementation plan. Use after specification is complete and before execution begins.

athola avatar

code-quality-principles

athola/claude-night-market

Applies KISS, YAGNI, and SOLID principles for clean code with reduced complexity. Use when refactoring or reviewing code for over-engineering.

athola avatar

slop-detector

athola/claude-night-market

Detects AI-generated writing patterns in prose. Use when reviewing docs for slop, vague language, or identity leaks before publishing.

Docs & Writing183 installs
athola avatar

bloat-detector

athola/claude-night-market

Detects codebase bloat via dead code, duplication, complexity, and doc bloat scans. Use when codebase feels large or before a release.

athola avatar

project-brainstorming

athola/claude-night-market

Guides project ideation via Socratic questioning to produce a validated brief. Use before specification when requirements are unclear.

161 installs
athola avatar

shell-review

athola/claude-night-market

Audits shell scripts for correctness, portability, and common pitfalls. Use when reviewing shell scripts or before committing shell changes.

Popular docs & writing skills

View category →
mattpocock avatar

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.4M installs
open.feishu.cn avatar

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing891.3K installs
mattpocock avatar

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing580.9K installs
mattpocock avatar

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing557K installs
mattpocock avatar

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing556.6K installs
heygen-com avatar

slideshow

heygen-com/hyperframes

Build a HyperFrames slideshow to present live - slides, fragment reveals, branching hotspots and presenter mode with speaker notes, served by hyperframes present - or turn an existing page into one. Use when the person wants a deck or presentation rather than a rendered video.

Docs & Writing555.9K installs