readability-feedback
Skill437 starsChanged 6 months agoApache-2.0View on GitHub
Audit a finished design document for hard-to-read or hard-to-understand paragraphs, then harden the house-style rules so future design docs avoid them. Fans out audit sub-agents, classifies each obscure passage as caught-by-an-existing-rule or a gap, and proposes plus (on approval) applies rule changes across the style docs. Use when the user wants to feed a design doc back into the style guide, find obscure paragraphs and fix the rules, harden the writing rules from a real DD, or close the readability feedback loop. Accepts a design-doc path, an adr dir name, or defaults to the current branch's design. Reports the doc's own violations; does not rewrite the doc.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-tellsSkill
- analyze-changesSkill
- code-reviewSkill
- create-planSkill
- create-presentationSkill
- edit-designSkill
- execute-tracksSkill
- fix-ci-failureSkill
- migrate-workflowSkill
- profile-jmh-regressionsSkill
- profile-query-bottleneckSkill
- review-docsSkill
- review-planSkill
- review-workflow-prSkill
- run-jmh-benchmarks-hetznerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 14
Use it when the user points at a finished or near-finished design document and wants the *rules* improved from it: "harden the style from …
- Very specific: line 39
Validate and report: Run the checks in ## Validation, report what changed, and offer to commit.
- Distinctive: line 43
When a rule is added or renamed, update every file its scope touches:
- Very specific: line 63
After a rename, grep that no stale rule name survives anywhere under .claude/.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Audit a design document for obscure prose and harden the house-style rules so the next design doc avoids the same trouble. The output is rule changes, not a rewrite of the audited doc.
This is the codified form of the manual loop: read a real DD, find the paragraphs a reviewer has to re-read, check whether a rule already forbids each one, and for the ones no rule catches, add or sharpen a rule in the style docs.
When to use this, and when not
Use it when the user points at a finished or near-finished design document and wants the rules improved from it: "harden the style from this design", "find the hard-to-read paragraphs and fix the rules", "feed this DD back into the style guide".
Distinct from three neighbors: ai-tells rewrites a draft; review-docs validates a doc's grammar and query correctness; self-improvement-reflection files YouTrack friction issues. This one edits the prose rules in house-style.md and its sync set, driven by a real DD.
It does not rewrite the audited design document. Design docs are frozen after Phase 1 or live on another branch, so the skill reports their obscure paragraphs for the author to fix separately and changes only the rule docs.
Inputs
$ARGUMENTS resolves in this order:
- A file path to
design.md,design-final.md, ordesign-mechanics.md— audit that file (and its companion if both exist). - An adr dir name — audit
docs/adr/<dir>/_workflow/design.mdplusdesign-mechanics.md, ordocs/adr/<dir>/design-final.mdif the working copy is gone. - Empty — discover the current branch's design under
docs/adr/. If more than one candidate exists, ask which.
The authoritative ruleset is always the live .claude/output-styles/house-style.md in the repo, never a copy.
Procedure
- Resolve the target. Confirm the file(s) exist. Capture section boundaries with
grep -nE '^#{1,3} ' <file>and the line count. - Partition. Split the doc into ~200-line ranges on
##/# Partboundaries; give each companion file (design-mechanics.md) its own range. Cap at ~6 sub-agents. This is the same partition value (window size, boundary set, cap) that the in-loopreadability-auditorfan-out reuses;edit-design/SKILL.md§ Step 4 is the canonical home of that value, and this tool applies it locally — keep the two in sync so the standalone tool and the in-loop path cannot drift. Only the partition value is shared: this tool fans outgeneral-purposesub-agents with the self-contained inline prompt below (step 3), so it does not adopt the in-loop path's whole-doc floor, its agent-side whole-doc guard, or itsslice_count/total_linesparams (those sub-agents take no params file). - Fan out the audit. Launch one
general-purposesub-agent per range, in parallel, with the dispatch prompt in## Audit sub-agent promptbelow (fill{TARGET_PATH},{START},{END}). Each agent readshouse-style.mdin full, audits only its range, and classifies every obscure passage asCAUGHT by § <section>orGAP. - Synthesize. Merge the findings. Split them into CAUGHT (the doc's own violations) and GAP (no rule catches). Group the GAPs by underlying tell, and fold an aggravated-but-caught residual into the nearest group.
- Draft one rule change per GAP group. Name the rule, the target section (general tells go under Banned sentence patterns / Banned analysis patterns / Structural rules; design-doc-shape tells go under Document-shape rules), the scope, a Before/After grounded in the real finding, and the sync set it triggers (see
## Rule sync map). - Gate. Present two things and stop for approval: (a) the obscure-paragraph report with
file:linefor both CAUGHT and GAP, and (b) the proposed rule changes grouped by tell. Apply only what the user approves. Editing the rules is never automatic, because every rule applies to every future design doc. - Apply through the sync discipline. For each approved rule, walk
## Rule sync mapand edit every file the rule's scope touches in one pass. - Validate and report. Run the checks in
## Validation, report what changed, and offer to commit. Re-runs converge: because step 3 reads the current rules, a paragraph that was a GAP last time is CAUGHT next time.
Rule sync map
When a rule is added or renamed, update every file its scope touches:
.claude/output-styles/house-style.md— the rule prose and the matching## Self-checkitem (1-10). Always..claude/output-styles/house-conversation.md— the matching AI-tell enumeration line, only if the rule is general (it then applies to chat too). Skip for design-only rules..claude/workflow/prompts/design-review.md— a### Human-reader cold-read additionsbullet, the§ Tone and depthcount, and the TOC-row summary, only if the rule is a design-doc-shape rule the cold-read reviewer must verify. A rule on prose density or terseness (the kind## Orientationand the over-dense AI-tells cover) instead joins the### Prose AI-tell additionsblock, which scans bothtarget=designandtarget=tracksand carries its own§ Tone and depthevidence clause..claude/workflow/design-document-rules.md— the## Mechanical checkstable and/or thedesign-syncHuman-reader enumeration, only if the rule is design-doc-scoped..claude/scripts/design-mechanical-checks.py— a regex constant wired intocheck_dsc_ai_tell, only if the pattern is cleanly regex-detectable. Most readability tells are judgment-only; say so and skip the script.
On a rename, run the governance grep from conventions.md §1.5 to find every pointer and update them in the same commit:
grep -rnE '## Orientation|## Plain language|§ Orientation|§ Plain language|Banned sentence patterns|Banned analysis patterns' .claude/ CLAUDE.mdOrientation and Plain language are common words, so the scan matches them only in their ## or § heading-pointer form to stay precise; the other two names are distinctive enough to match bare.
Validation
python3 .claude/scripts/workflow-reindex.py --check— run after editing any.claude/workflow/**file; confirms the TOC regions still resolve.- Code-fence balance — after adding a Before/After block, confirm each fenced block has a matching closer. A raw fence count can mislead, because an inline code span may itself contain backtick delimiters.
- After a rename, grep that no stale rule name survives anywhere under
.claude/.
Audit sub-agent prompt
Dispatch this to each range agent, substituting the three placeholders:
Audit a YouTrackDB design document for hard-to-read prose and classify each finding against the house-style ruleset.
STEP 1 — Read the authoritative ruleset IN FULL: `.claude/output-styles/house-style.md`. Note especially § Orientation, § Plain language, § Banned sentence patterns, § Banned analysis patterns (and its subsections), § Punctuation and typography, § Structural rules (and its subsections), and § Document-shape rules.
STEP 2 — Read `{TARGET_PATH}`, lines {START}-{END} only.
STEP 3 — Find every obscure passage in that range: run-on multi-clause sentences; dense identifier soup with no connective tissue; nominalizations and placeholder words (nouns or pro-verbs); file:line, signature, or code-literal asides wedged into a sentence; inline (1)(2)(3) enumerations; broken or telegraphic grammar (a signature or runtime expression in the subject slot, a missing copula, a dropped relative pronoun, a split predicate); disconnected one-line assertions with no motivation. Audit prose and bullets only — skip Mermaid bodies, D/S codes, References footers, and headings.
STEP 4 — Classify each finding as `CAUGHT by § <exact section>` or `GAP`. A too-terse passage — prose that cannot be followed without opening the code, or a one-line assertion dropped with no motivation — is `CAUGHT by § Orientation`, not a GAP. A passage that is hard to read for uncommon words, long sentences, or idioms is `CAUGHT by § Plain language`, not a GAP. Mark GAP only after checking every relevant section; for a GAP, name in one sentence the dimension of unreadability no current rule addresses.
Do NOT propose rewrites. Return EXACTLY this Markdown, no preamble:
## Summary
- Range audited: {TARGET_PATH}:{START}-{END}
- Total findings: <n>
- Caught: <n> GAP: <n>
## Findings
### F1
- Location: <file>:<line(s)>
- Phrase: "<verbatim quote>"
- Why obscure: <one sentence>
- Verdict: CAUGHT by § <section> | GAP
- If GAP — uncovered dimension: <one sentence>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.

