/iceberg:score [file-path or paste text] [--no-em-dash] [--no-weakeners] [--strip-ai-commentary] [--jargon=<pack>] [optional: intent description]from iceberg
Scores technical documents against 14 Hemingway writing rules, returning a graded violation report with quoted offenders and top fixes. Automatically runs on every plan or document Claude writes.
Ships in iceberg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Score a document against the 14 Hemingway rules. Read only — never modify the input.
/iceberg:score <file-path> — read the file, score it, print the report. Resolve relative paths from the current working directory./iceberg:score <file-path> "intent: formal engineering spec" — score with intent context/iceberg:score <file-path> --no-em-dash --no-weakeners --strip-ai-commentary — also scan for the opt-in extended rules (any combination, including one alone)/iceberg:score <file-path> --jargon=finance,legal — also flag words from the named bundled packs for this run/iceberg:score — user pastes text; score and return the report.iceberg/jargon.txt exists, because the file is the user's standing opt-in.The optional intent argument overrides the inferred profile. Pass one of: "technical", "conversational", or "executive", or a free-form string the scorer maps to the nearest profile.
Extended rules (15, 16, 17) are scanned and reported only when their flag is present. Without the flag, don't scan for them at all — an unflagged report looks exactly like it did before these rules existed.
Skip: code-only responses, shell output, error messages, stack traces, files under vendor/, node_modules/, or dist/, any document under 50 words. If auto-triggered on a document under 50 words, return it unchanged with no comment.
weighted_violations / (word_count / 100)..iceberg/last-score.txt. Skip silently if unwritable.1 — Short sentences [HIGH]: Flag sentences over 25 words. Violation at 30 words — split unconditionally.
2 — Active voice [HIGH]: Flag all passive constructions including agentless ones ("is forwarded", "was configured", "are stored"). Keep passive only when the actor is unknown or irrelevant.
3 — Strong verbs, no adverbs [MEDIUM]: Flag adverbs that mask a weak verb ("quickly scans", "silently marks"). Do NOT flag quantifying adverbs (linearly, approximately) or temporal ones (currently, previously).
4 — No qualifiers or hedges [MEDIUM]: Flag: very, quite, somewhat, rather, fairly, essentially, basically, arguably, maybe, perhaps, appears to, tends to, could potentially, a bit, sort of, kind of. If a word triggers both Rule 3 and Rule 4, count it under Rule 4 only.
5 — Concrete nouns [MEDIUM]: Flag abstract categories. Signal words: solution, approach, initiative, framework, experience, value, requirements, functionality, ecosystem, posture, collaboration, improvement, visibility, scalability.
6 — One idea per sentence [MEDIUM]: Flag compound sentences where both clauses could stand alone (joined by "and", "which", "but", "that"). If a sentence triggers both Rule 1 and Rule 6, count it under Rule 1 only.
7 — Conditions before instructions [LOW]: Flag "do X if Y" — correct form is "if Y, do X". Example violation: "Reduce the burst limit if you observe quota exhaustion."
8 — Lead with the answer [MEDIUM]: Flag when the key conclusion is buried after context sentences. Exception: sections titled Background, Overview, Context, or How it works.
9 — Second person [LOW]: Flag "we recommend", "users should", "one should". Use "you" for instructions; component name for system behavior.
10 — Simple words [LOW]: Flag: utilize→use, facilitate→help, initiate→start, terminate→stop, leverage→use, in order to→to, subsequent to→after, prior to→before, it is worth noting that→(delete).
11 — No negative framing [LOW]: Flag "don't", "do not", "avoid", "never" except for genuine safety warnings or known failure modes.
12 — Short paragraphs [LOW]: Flag paragraphs with more than 4 sentences.
13 — Jargon [MEDIUM]: Flag technical terms a new team member would not know. Do NOT flag universally known abbreviations (HTTP, JSON, YAML, SQL, API, REST, HTML). Flag domain-specific terms (PromQL, etcd, canary rollout, idempotent, TTL in non-general context).
14 — Measure, don't describe [HIGH]: Flag subjective descriptors without a number: fast, large, easy, good, high, low, significant, reasonable, permissive, well, flexible, comprehensive, robust.
15 — No em dashes [flag: --no-em-dash]: Flag every em dash (—). Report each occurrence with its sentence quoted; don't guess the fix in the score report, that's /iceberg:edit's job.
16 — No mid-document weakeners [flag: --no-weakeners]: Flag a clause that concedes uncertainty about a claim just made, when it sits outside a section explicitly labeled Limitations, Caveats, Risks, or Open questions. Signal phrases: we're still figuring this out, take this with a grain of salt, no promises, could be wrong here, this might not hold up, don't quote us on this, fingers crossed. Distinct from Rule 4: Rule 4 is single hedge words inside a confident sentence; Rule 16 is a whole clause undercutting the sentence around it. A hedge inside a labeled Limitations/Caveats/Risks section is not a violation — that's the section doing its job.
17 — No AI commentary [flag: --strip-ai-commentary]: Flag self-referential assistant voice ("I've added...", "let me know if...", "I hope this helps", "as requested", "great question!") and dev-cycle narration ("in this PR...", "we then implemented...", "as discussed", "in this session", a bare "TODO"/"WIP" left in prose). Do NOT flag legitimate in-document cross-references ("see the Setup section above") — those don't reveal how the document was made. Same Changelog exception as Rule 16.
When none of these flags are passed, skip all three rules entirely — don't scan for them, don't report "0 violations," don't include them in density or the TOP 3. The report should look identical to a pre-extended-rules report.
Runs when .iceberg/jargon.txt exists in the working directory, or when --jargon=<pack>[,<pack>] is passed. With neither, skip it entirely: no scan, no "0 violations" line, no effect on density or the TOP 3.
Build one merged list before scoring:
@pack <name> line in .iceberg/jargon.txt, then by --jargon=, read skills/jargon/packs/<name>.txt and add its entries. Try ${CLAUDE_PLUGIN_ROOT}/skills/jargon/packs/<name>.txt first. If that does not resolve, Glob for **/skills/jargon/packs/<name>.txt. If a pack cannot be found, say so in one line and continue without it..iceberg/jargon.txt itself. A later entry replaces an earlier entry for the same term.!term line.Entry format: term => replacement replaces. A bare term deletes. Lines starting with # are comments. Format details live in skills/jargon/SKILL.md.
leverage also catches leveraged.ICEBERG SCORE — path/to/doc.md
Assumed intent: conversational onboarding guide
(signals: tutorial-style steps, "you'll learn" phrasing, casual headers)
Objective Intent-adjusted
Grade: C A
Density: 6.2/100w 1.4/100w (target: ≤4.0)
Violations: 18 4 (14 deprioritized for conversational)
Word count: 290w
VIOLATIONS
Rule 1 — Short sentences [HIGH / HIGH] 2 violations
· "The system fetches the config and validates it, which can take up to 500ms." (34w)
· … 1 more
Rule 9 — Second person [LOW / skip] 2 violations ← deprioritized for conversational
· "we recommend configuring…"
· "our team suggests…"
Rule 13 — Jargon [MEDIUM / HIGH] 3 violations ← stricter for conversational readers
· "idempotent" used without definition
· … 2 more
[continue for all 14 rules — format: [objective / intent-adjusted]]
[if any of --no-em-dash / --no-weakeners / --strip-ai-commentary were passed, append their rules after Rule 14, same format:]
Rule 15 — No em dashes [flag: --no-em-dash] 3 violations
· "The API is fast — under 50ms — for reads."
· … 2 more
[if Rule 18 is active (jargon list or --jargon), append it last, after any extended rules:]
Rule 18 — Banned jargon [MEDIUM / MEDIUM] 2 violations (list: .iceberg/jargon.txt, 38 terms)
· "We will leverage the cache." → use
· "Let's touch base on Monday." → delete
TOP 3 TO FIX (intent-adjusted): jargon (Rule 13), long sentences (Rule 1), passive voice (Rule 2)
Run /iceberg:edit to apply all fixes.
Extended-rule violations count toward density and the TOP 3 only when their flag was passed for this run. Rule 18 violations count whenever Rule 18 is active.
| Grade | Density | Meaning |
|---|---|---|
| A | ≤ 1.0 | Publish-ready |
| B | ≤ 4.0 | Minor cleanup needed |
| C | ≤ 8.0 | Needs work before sharing |
| D | ≤ 15.0 | Significant rewrite required |
| F | > 15.0 | Start over |
The scorer infers intent automatically. Pass an explicit intent to override.
| Rule | Technical (default) | Conversational | Executive |
|---|---|---|---|
| 5 — Concrete nouns | MEDIUM | MEDIUM | HIGH |
| 8 — Lead with answer | MEDIUM | MEDIUM | HIGH |
| 9 — Second person | LOW | skip | LOW |
| 11 — Negative framing | LOW | skip | LOW |
| 12 — Short paragraphs | LOW | skip | HIGH |
| 13 — Jargon | MEDIUM | HIGH | HIGH |
"skip" = violation found and reported but excluded from weighted count.
Spawn the iceberg-score agent with the full document, the intent string, which extended-rule flags (--no-em-dash, --no-weakeners, --strip-ai-commentary, if any) were passed, and the merged jargon list as a [JARGON] block (one term => replacement or bare term per line, already resolved). The skill loads and merges the list so the agent does not parse files. If Rule 18 is inactive, pass [JARGON] as empty. Return the agent's output as the final result.
Write a compact one-liner to .iceberg/last-score.txt:
conversational | Obj: C (6.2/100w) | Adj: A (1.4/100w) | Top: jargon, long sentences, passive voice
Create the .iceberg/ directory if it doesn't exist. Skip silently if unwritable.
What SKILL.md sets; muted values are Claude Code's defaults
iceberg@gago-plugins is listed by gagoar/gago-plugins — review the source before installing
npx claudepluginhub gagoar/gago-plugins --plugin iceberg3 skills in this plugin
/edit/iceberg:edit — Rewrite a technical document using 14 Hemingway rules (short sentences, active voice, no hedges, concrete nouns). Returns the clean document, no annotations.
ALWAYS apply automatically to every plan and every document Claude returns to the user. This is not optional and requires no user prompt. Run it on every plan, spec, proposal, README, or prose document before returning it.
Also trigger on: /iceberg:edit <file-path>, /iceberg:edit with pasted text.
Natural language triggers: "make this shorter", "simplify this", "tighten this up", "clean up the writing", "fix the prose", "apply hemingway", "rewrite this"
Accepts an optional intent argument: /iceberg:edit <file-path> "intent description" Use intent to preserve voice while applying rules (e.g., "formal engineering spec", "conversational onboarding guide").
Three opt-in extended rules, off by default: --no-em-dash strips every em dash; --no-weakeners strips mid-document statements that undercut a claim the document just made (outside a labeled Limitations/Caveats section); --strip-ai-commentary strips self-referential assistant voice and dev-cycle narration so the document reads as a finished product, not a transcript of the work that produced it.
Jargon list (Rule 18): if .iceberg/jargon.txt exists, its words are replaced or removed automatically. --jargon=<pack> adds a bundled industry pack (technology, finance, marketing, corporate, legal) for one run. Build the list with /iceberg:jargon.
Rewrites with inline replacements. No annotations. No changelog. Returns only the clean document.
For documents over 500 words, spawn the iceberg-edit agent to preserve the main context window.
/jargon/iceberg:jargon — Build and manage the jargon list that /iceberg:edit removes and /iceberg:score flags (Rule 18). Pick an industry pack (technology, finance, marketing, corporate, legal), name your own words, or both. Writes .iceberg/jargon.txt.
Trigger on: /iceberg:jargon, "drop these words", "ban these words", "remove jargon words", "my jargon list", "add <word> to the jargon list", "jargon for <industry>".
Never writes the list without the user's confirmation.
Other plugins' skills for the same job