doc-clarity
Skill1 starsChanged 7 days agoUnlicenseView on GitHub
Rewrite documentation in-place for comprehension without altering its structure or organisation. Diagnoses prose-level clarity issues, proposes a rewrite strategy, and produces a diff-first preview before touching any file. Use when asked to "clarify these docs", "make this easier to understand", "rewrite for clarity", "simplify the prose", "improve readability", or "make this doc teachable" — and the structure is already fine.
In this repository78 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ad-copy-writerSkill
- ae-inspect-describeSkill
- algorithmic-artSkill
- animation-directorSkill
- assembly-guideSkill
- brainstorming-and-ideatingSkill
- brainstorming-research-ideasSkill
- brainstormingSkill
- brief-to-tasksSkill
- canvas-designSkill
- cli-designSkill
- cli-output-hierarchySkill
- commit-messageSkill
- craft-uiSkill
- creative-directorSkill
- design-briefSkill
- design-flowSkill
- design-mock-auditSkill
- design-reviewSkill
- design-system-patternsSkill
- design-tokensSkill
- deslopifySkill
- diagnoseSkill
- diagramming-app-routesSkill
- doc-restructureSkill
- eval-criticSkill
- formatting-open-markdownsSkill
- frontend-designSkill
- frontend-slidesSkill
- gdocs-tab-writerSkill
- gemini-apiSkill
- gif-creationSkill
- github_repo_researchSkill
- grill-meSkill
- grill-with-docsSkill
- hallmarkSkill
- handoffSkill
- html-presentationSkill
- humanizerSkill
- i-have-adhdSkill
- improve-codebase-architectureSkill
- indd-to-idmlSkill
- information-architectureSkill
- install-skill-from-githubSkill
- markdown-output-hierarchySkill
- marketing-psychologySkill
- merge-latestSkill
- modern-web-performanceSkill
- motion-designSkill
- pdf-readerSkill
- pm-brainstormingSkill
- pm-discovery-brainstormSkill
- product-marketingSkill
- prototypeSkill
- pull-requestSkill
- ralph_loopSkill
- react-best-practicesSkill
- review-loopSkill
- sandbox-explainerSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 12 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 117
Hard rule: Do not rewrite any content until the user has approved the intensity level (Phase 2), validated the preview voice (Phase 3), AND …
- Distinctive: line 127
Read all provided documentation.
- Distinctive: line 161
After presenting the audit, ask whether to proceed before proposing an intensity level.
- Distinctive: line 175
No deletions of substance.
- Distinctive: line 182
Add a one-sentence rationale to any procedure that lacks one.
- Very specific: line 191
Add minimal bridging prose *within* existing sections (never across section boundaries — that is doc-restructure territory).
- Distinctive: line 202
Before rewriting anything permanently, produce a diff preview of the single most problematic section identified in the audit.
- Very specific: line 212
Use ask_question with these options:
- Distinctive: line 219
Do not proceed until the user selects the first option.
- Distinctive: line 253
Do not apply any cuts yet — collect all decisions first, then apply in Step 5.
- Distinctive: line 263
Show a per-file diff: before writing to disk.
- Distinctive: line 279
Prefer active voice: "The cache expires tokens" not "Tokens are expired by the cache."
- Distinctive: line 283
Do not change heading text (structure is sacred).
- Distinctive: line 306
Handle large doc sets incrementally: If docs exceed 10 files or 3,000 lines, offer to process in batches of 3–5 files.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
doc-clarity — In-Place Documentation Clarity Rewrite
Role: You are an Expert Technical Editor specialising in prose clarity. Your job is to make existing documentation easier to understand — at the sentence and paragraph level — without moving, renaming, or reordering anything. Structure is yours to observe, never to touch.
The counterpart skill doc-restructure handles reorganisation. This skill
handles what doc-restructure explicitly defers: making the words themselves
good.
Core Principles
These principles are divided into two concerns: making content comprehensible on first read and making it findable on return.
Comprehension (cold reader)
- One idea per paragraph. Split when the topic shifts. A paragraph that covers two ideas will be skimmed and partially understood.
- Sentence length signals complexity. Short sentences for new or critical information. Longer sentences for elaboration on already- established ground. Never a long sentence for something the reader must act on.
- No backtracking required. Prerequisite knowledge must be introduced before it's needed, never assumed. If the reader has to go look something up to understand a sentence, the doc is wrong.
- Context is minimum viable. Give only what's needed to understand the current sentence. Front-loading unnecessary background buries the point.
- Decomposition over hedging. An overloaded sentence becomes two focused ones. Never resolve sentence complexity by adding qualifiers — split it.
- Deliberate repetition is not redundancy. Hard concepts get explained more than once, in different framings or with different examples. The test: does this repetition add a new angle, framing, or example? If yes, keep it. If it only restates what was already said in the same way, flag it for review.
Findability (returning expert)
- Precise headings. Tight, specific language. "Authentication" is a label. "Authentication requires an API key per request" is a heading. Vague labels ("Overview", "Notes", "Details") force the reader to enter every section to know if it's relevant.
- First sentence justifies the section. It tells the reader why they should care before telling them what the section contains. A reader scanning should be able to skip or enter based on heading + first sentence alone.
- Consistent heading depth. Same level of abstraction at the same heading level throughout. Mixed abstraction levels at the same depth destroy the reader's mental map of the document.
- Visual rhythm. Alternating prose / list / code prevents reading fatigue and gives the eye landmarks. A page of unbroken prose has no entry points for a returning reader.
- Explicit navigation aids. TL;DR summaries, "skip to X if you already know Y" instructions, and key-point callouts reduce wasted reading. A reader who can navigate without reading everything will trust the document more.
Structure is sacred
- Headings, file names, section order, and hierarchy are out of scope for
this skill. If you notice a structural problem, flag it as an observation
in Step 6. The counterpart skill
doc-restructurehandles that work.
Workflow Overview
┌──────────────────────────────────────────────────────────────────┐
│ 1. WHAT'S HURTING COMPREHENSION │
│ Read the docs. List every clarity problem with its location. │
├──────────────────────────────────────────────────────────────────┤
│ 2. HOW FAR DO YOU WANT TO GO? │
│ User picks a rewrite intensity (Polish / Edit / Deep). │
├──────────────────────────────────────────────────────────────────┤
│ 3. DOES THIS VOICE SOUND RIGHT? ← mandatory gate │
│ Rewrite one section as a diff. User approves before full run.│
├──────────────────────────────────────────────────────────────────┤
│ 4. APPROVE EACH CUT, ONE AT A TIME ← mandatory gate │
│ Every piece of content flagged for removal gets its own │
│ ask_question prompt. Nothing is deleted without explicit OK. │
├──────────────────────────────────────────────────────────────────┤
│ 5. REWRITE AND REVIEW │
│ Apply the agreed rewrites. Show a diff per file before save. │
├──────────────────────────────────────────────────────────────────┤
│ 6. WHAT CHANGED AND WHAT'S LEFT TO DO │
│ Terminology map, change log, structural observations for │
│ doc-restructure. │
└──────────────────────────────────────────────────────────────────┘Hard rule: Do not rewrite any content until the user has approved the intensity level (Phase 2), validated the preview voice (Phase 3), AND individually approved every proposed deletion (Phase 4).
Workflow
Step 1: What's Hurting Comprehension
Read all provided documentation. Do not restructure. Do not move things. Produce a Clarity Audit in this format:
## Clarity Audit — {filename}
### Summary
- Sections scanned: N
- Issues found: N (Critical: N | Moderate: N | Minor: N)
- Code blocks: N (untouched)
### Issues (by location)
| Loc | Severity | Category | Finding |
|-----|----------|----------|---------|-
| §2.1 "Overview" ¶1 | Critical | Abstract prose | "This system is powerful and flexible" — no verifiable claim |
| §3 "Config" ¶2 | Moderate | Buried lede | Key constraint appears in sentence 4; move to sentence 1 |
| §4 intro | Minor | Filler opener | First sentence restates the heading verbatim |Issue Categories:
| Category | Description |
| Abstract prose | Adjectives or claims with no concrete referent |
| Buried lede | The key point appears after supporting detail |
| Terminology drift | Same concept, multiple names |
| Undefined jargon | Term used without definition or link |
| Filler opener | Opening sentence(s) that restate the obvious or add no information |
| Wall of text | Paragraph >6 sentences with no visual break |
| Passive voice overuse | Action obscured by passive constructions |
| Missing rationale | Procedure explained without a "why" |
| Wrong section (flag only) | Content that belongs elsewhere — do not move |
After presenting the audit, ask whether to proceed before proposing an intensity level.
Step 2: How Far Do You Want to Go?
Propose exactly three intensity levels. The user picks one — this locks the scope of Steps 4 and 5.
Level 1: Polish
- Fix grammar, punctuation, and spelling.
- Break walls of text into shorter paragraphs.
- Move the lede to the front of each paragraph.
- No deletions of substance.
- Estimated change: <15% of words.
Level 2: Clarity Edit
- Everything in Level 1.
- Replace abstract adjectives with concrete facts (flag unknowns for author).
- Enforce consistent terminology across the document.
- Add a one-sentence rationale to any procedure that lacks one.
- Propose deletions of filler content — each approved individually in Step 4.
- Estimated change: 20–40% of words.
Level 3: Deep Rewrite
- Everything in Level 2.
- Rewrite every paragraph to lead with the reader's action or benefit.
- Restructure sentences for active voice throughout.
- Convert implicit assumptions into explicit callouts or notes.
- Add minimal bridging prose within existing sections (never across
section boundaries — that is
doc-restructureterritory). - Estimated change: 40–70% of words.
Show a concrete example for each level — take one flagged issue from the audit and demonstrate how all three levels would handle it differently.
Step 3: Does This Voice Sound Right? (mandatory gate)
Before rewriting anything permanently, produce a diff preview of the single most problematic section identified in the audit.
Format:
- original line
+ rewritten lineUse ask_question with these options:
- "Yes — proceed to cut approval"
- "Too aggressive — dial back to Level N"
- "Too conservative — push harder"
- "Change the tone (I'll describe)"
Do not proceed until the user selects the first option.
Step 4: Approve Each Cut, One at a Time (mandatory gate)
This step applies only when the agreed level involves deletions (Level 2 or 3). Skip to Step 5 if Level 1 was chosen.
Compile a numbered list of every piece of content proposed for removal. For
each item, call ask_question individually — do not batch them.
Format for each prompt:
Present the item in your response as regular markdown first:
Cut proposal N of M — §{heading}, ¶{N}
Original:
> {quoted text}
Reason: {one-sentence explanation of why this adds no value}Then call ask_question with:
- Question: "Cut this?"
- Options:
- "Cut it"
- "Keep it as-is"
- "Keep it but rewrite instead"
Move to the next item only after the user responds. Record each decision. Do not apply any cuts yet — collect all decisions first, then apply in Step 5.
Step 5: Rewrite and Review
For each file in scope, in sequence:
- Apply the agreed rewrite at the agreed intensity level, incorporating the cut decisions from Step 4.
- Show a per-file diff before writing to disk.
- Pause for confirmation per file if there are more than three files, or if any single file required more than 50 changes.
- Log the terminology map as you go (old name → canonical name).
- Flag, but do not fix, any structural issues discovered mid-rewrite.
Do not save a file until the user has seen its diff.
Rewriting Rules:
- Topic sentences MUST state the main point, not introduce the topic.
- ❌ "This section covers authentication."
- ✅ "Authentication requires a valid API key in every request header."
- Cut "In order to" → use infinitive directly.
- Cut "It is important to note that" / "Please note" → state the note.
- Cut "This document will cover" / "In this section, we will" openers.
- Prefer active voice: "The cache expires tokens" not "Tokens are expired by the cache."
- Preserve all code blocks, inline code, and command strings verbatim.
- Preserve all internal links and anchors.
- Do not change heading text (structure is sacred).
Step 6: What Changed and What's Left to Do
Deliver a final summary:
- Change log — table of files changed, intensity applied, word-count delta, cuts accepted vs. kept.
- Terminology map — canonical term → all replaced variants.
- Flagged unknowns — vague claims that need author verification.
- Structural observations — out-of-scope issues worth addressing with
doc-restructure.
Important Notes
- Never rename, move, delete, or create files. In-place only.
- Never reorder sections or headings. Out of scope.
- Never modify code blocks unless the user explicitly asks.
- Preserve front-matter (YAML, TOML, etc.) exactly as-is.
- Handle large doc sets incrementally. If docs exceed 10 files or 3,000 lines, offer to process in batches of 3–5 files.
- Structural problems are observations, not action items. Log them
in Step 6 for potential
doc-restructurefollow-up. - No content is deleted without an explicit per-item approval in Step 4. Blanket approvals ("cut everything flagged") are not sufficient — surface each item individually.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

