Documentation review, cleanup, and generation with AI slop detection, style learning, and human-quality writing enforcement
- version
- 1.10.3
- GitHub stars
- 350
Add marketplace
/plugin marketplace add athola/claude-night-marketRun it inside Claude Code once, then install the plugin below.
Install
/plugin install scribe@claude-night-marketRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceDocumentation 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-conversionand itsproject-importmodule) - 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 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).
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
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 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:
| Tier | Keep | Move to a deep dive |
|---|---|---|
newcomer | The one path that works, end to end | Internals, history, alternatives considered |
practitioner | Repo-specific facts they cannot derive | General-domain teaching |
expert | The novel claim and its numbers | Nothing. 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:
- Start with the essential information (state the thesis or a clear instance of it)
- Add context only if it adds value (does it carry, instance, or bound the thesis?)
- Use specific examples (one is proof; two is emphasis; three is filler)
- Prefer prose over bullets
- 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/<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:
- 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)
- 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/ordocs/and is linked from the parent's lead - Quality gate checklist passed
- User approval received
- No emojis present (unless specified)
From the athola/claude-night-market README
Claude 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.
Written for a practitioner: someone who already uses Claude Code and wants to know what these plugins do and whether to install them. If you are new to Claude Code, start with the official docs. For the design rationale behind a plugin, see the book.
Night Market skills in action
Install
Requires Claude Code 2.1.16+ (2.1.32+ for agent teams, 2.1.38+ for security features, 2.1.287+ for the context and loop bands that conserve and egregore draw above the prompt) and Python 3.9+ for hooks, which is what macOS ships.
# Add the marketplace, then install the plugins you want
/plugin marketplace add athola/claude-night-market
/plugin install sanctum@claude-night-market # Git workflows
/plugin install pensive@claude-night-market # Code review
/plugin install spec-kit@claude-night-market # Spec-driven dev
Run claude --init-only once after installing. It runs the plugins'
Setup hooks, then exits. Updates are not automatic for third-party
marketplaces. The Installation Guide shows how to enable
auto-update, and covers the one-command, opkg, and skill-files-only
install paths.
If the
Skilltool is unavailable, read skill files directly atplugins/{plugin}/skills/{skill-name}/SKILL.md.
Everyday Use
Night Market is built around the loop you already work in. A typical feature runs end to end on a handful of commands:
- Start a feature.
/attune:missionroutes you through brainstorm, specify, plan, and execute phases. - Write the code.
imbueenforces a failing test before the implementation is written. - Review before you push.
/full-reviewruns a multi-discipline pass;/refine-codecleans up duplication and dead code. - Ship it.
/prepare-prruns quality gates and drafts a description that says who the change is for, where it lands inside and outside the codebase, and when it is fully integrated. - Pick up where you left off.
/catchuprebuilds context from recent git history after a break.
The commands you reach for most:
| Task | Command |
|---|---|
| Run the project lifecycle | /attune:mission |
| Initialize a new project | /attune:arch-init |
| Review a PR | /full-review |
| Address review feedback | /fix-pr |
| Implement an issue | /do-issue |
| Prepare a pull request | /prepare-pr |
| Write a spec | /speckit-specify |
| Catch up on changes | /catchup |
| Package project knowledge as skills | /attune:skill-library |
| Clean up the codebase | /unbloat |
| Pressure-test a decision | /attune:war-room |
Full task-by-task walkthroughs are in the Common Workflows Guide.
What's Inside
23 plugins in four layers. Each installs independently, and dependencies pull their shared runtime automatically.
Foundation is the base every other layer builds on:
leyline (auth, quotas, error patterns, trust verification),
sanctum (git, commits, PR prep, sessions), and imbue
(TDD enforcement, proof-of-work, scope guarding).
Utility handles cross-cutting concerns: conserve (context
and token optimization), conjure (delegation to seven external
model CLIs plus a local runner), hookify (a behavioral rules
engine with a security catalog), egregore (autonomous agent
orchestration), herald (notifications), and oracle (local ML
inference).
Domain is where the day-to-day work happens: pensive (code
and architecture review), attune (project lifecycle), spec-kit
(spec-driven development), parseltongue (Python), minister
(GitHub issues and DORA metrics), memory-palace (knowledge
organization), archetypes (architecture paradigms), gauntlet
(codebase learning), phantom (computer use), scribe
(documentation and slop detection), scry (recordings), tome
(research), and cartograph (codebase visualization).
Meta improves the system itself: abstract (skill authoring,
hook development, evaluation, and skill-stability tracking).
The full skill, command, and agent inventory is in the Capabilities Reference.
Safety
⚠️ Plugins run inside your Claude Code session and can read or edit your repo, run shell commands, and call external services. Review any plugin before installing it.
Five guards reduce the blast radius, but none replace your own review:
- TDD gates (
imbue) block implementation writes that lack a failing test. - Destructive-command blockers (
conserve,hookify) auto-approve safe commands and halt or warn onrm -rf,git push --force, and production-shaped targets. - Credential-read denial (
conserve) refusescat,head,grep,rgandgit showon.env,.netrc, credential files and SSH keys. - External-content sanitizing (
leyline) strips invisible characters from web fetches and other external-tool output, and blocks prompt-injection phrases before the model reads them. - Additive-bias audits (
leyline) flag unjustified additions before commit.
CONSTITUTION.md holds the rules that override any conflicting skill or hook, each paired with what checks it. STEWARDSHIP.md is the maintenance contract.
Network and data
Three parts of the marketplace reach off your machine, and each can be
turned off. Two hooks use your existing GitHub credentials, and both do
nothing when gh is unauthenticated or the network is unavailable.
- Star prompt (
leyline,hooks/auto-star-repo.sh). On session start it checks whether you have starred this repository, throughghor aGITHUB_TOKEN/GH_TOKENvariable. It reads star status, asks once per session, and never stars without your consent.CLAUDE_NIGHT_MARKET_NO_STAR_PROMPT=1disables it. - Learnings posting (
abstract,hooks/post_learnings_stop.py). On session stop, when~/.claude/skills/LEARNINGS.mdhas content, it posts a skill-usage discussion throughghand may promote high-severity items to issues. The target istarget_repoin~/.claude/skills/discussions/config.json, else the current repo. It is on by default.auto_post_learnings: falsein that file disables it. - Delegation (
conjure, also reached byattunemissions andegregoresteps) sends the prompt and the file contents it carries to the first external model CLI that answers, in the order Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, under the credentials you configured for it. It runs by default.CONJURE_DELEGATION=offdeclines it for one run, and"enabled": falsein~/.claude/hooks/delegation/config.jsondeclines it on one machine. When no provider answers, the work stays on your machine.
Plugin Development
make validate-all
make lint && make test # checks only; rewrites nothing
make fix # ruff format + ruff check --fix
A plugin directory holds .claude-plugin/plugin.json (metadata)
plus any of commands/, skills/, hooks/, agents/,
workflows/, and tests/, with a Makefile and
pyproject.toml. A workflows/ script orchestrates several
subagents at once and runs only when you ask for one. Copy the
layout from an existing plugin such as plugins/abstract, then
see the Plugin Development Guide for structure and
naming conventions. Working on this repo needs Python 3.12+
and GNU make 3.82+. The guide covers both, including why
Xcode's make 3.81 reports a green build it did not run.
Documentation
- Installation Guide
- Quick Start
- Common Workflows
- Plugin Development Guide
- Capabilities Reference
- Tutorials
- Architecture Decision Records
- CHANGELOG
Per-plugin pages are in book/src/plugins/.
Stewardship and Contributing
Every plugin is entrusted to the community: steward rather than
own, and think several iterations ahead. Each plugin maintains
its own tests and docs; run make test at the repo root to
execute every suite, and /stewardship-health to view per-plugin
health. Contribution guidelines are in the
Plugin Development Guide.
Acknowledgements
Night Market builds on Anthropic Claude Code and integrates with github/spec-kit (v1.4.0) and obra/superpowers (v7.0.2, see the integration guide). Its AI involvement is declared under the Quillx disclosure standard as 3/5 (Adapted): human-directed, AI-generated, and meaningfully edited.
License
Details
- Marketplace
- athola/claude-night-market
- Source
- plugins/scribe
- Category
- Community
- Keywords
- documentation, slop-detection, writing, style
- Listed since
- Apr 7, 2026
More from athola/claude-night-market
All 23- scryv1.10.3
- spec-kitv1.10.3
- tomev1.10.3
- abstractv1.10.3
- archetypesv1.10.3
- attunev1.10.3
- cartographv1.10.3
- conjurev1.10.3
- conservev1.10.3
- egregorev1.10.3
- gauntletv1.10.3
- heraldv1.10.3
- hookifyv1.10.3
- imbuev1.10.3
- leylinev1.10.3
- memory-palacev1.10.3
- ministerv1.10.3
- oraclev1.10.3
- parseltonguev1.10.3
- pensivev1.10.3
- phantomv1.10.3
- sanctumv1.10.3
Similar to scribe
More Technical Documentation
doc-helperPluginmintlify/docs369 starsCollaborative documentation assistance. Draft, edit, and improve docs with AI help while you make final decisions.
code-documentationPluginwshobson/agents42.8K starsDocumentation generation, code explanation, and technical writing with automated doc generation and tutorial creation
documentation-writerSkillgithub/awesome-copilot28.6K installsStructured authoring assistant that applies the Diátaxis framework to write tutorials, how-to guides, reference, and explanation docs.
doc-authorPluginmintlify/docs369 starsAutonomous documentation writing with guardrails. AI writes docs and opens PRs, with verification checks and clear escalation triggers.
avoid-ai-writingSkillconorbronsdon/avoid-ai-writing5.3K installsAudit and rewrite content to remove AI writing patterns, with detect-only and in-place file modes.
documentation-generatorPlugindavila7/claude-code-templates24.2K starsAutomated documentation generation with API docs, technical writing, and content management
