/sloplint:checkfrom sloplint
Scans writing for AI-like phrasing and rhythms using sloplint. Reports only scanner output; never assesses prose itself.
Ships in sloplint. 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.
You must actually run the sloplint command and report only what it returns. If it does not run — no shell here, no Ruby installed, any reason at all — say plainly that sloplint could not run and why, and stop there. Never assess the prose yourself, and never present your own judgment as sloplint's findings. Getting no answer is a fine outcome. A made-up one is not: the person then believes a linter cleared their draft when nothing checked it.
If they name a file, use it.
If the prose is in the conversation — pasted in, or drafted with you — write it verbatim to a temporary file with the Write tool and scan that path. Never put the prose inline in a shell command. An unquoted heredoc eats $ and backticks, so $50,000 becomes ,000, and an em dash is something sloplint checks for, so mangled punctuation produces findings that are wrong in both directions with nothing on the page to reveal it.
Ask which file only when there is no prose anywhere to work from.
The regex scanner runs on this machine and nothing leaves it. The judge is the exception: it asks a model the questions a regex cannot, and to do that it sends the text, paragraph by paragraph, to TypeSafe's API at api.typesafe.ai. It costs about a third of a cent per thousand words. The person decides whether that happens, not the presence of a key.
First find out whether the judge is even possible here. This command reads no key and prints none; it only says whether one exists, in the environment or the OS keychain:
ruby "${CLAUDE_PLUGIN_ROOT}/exe/sloplint-judge" status >/dev/null 2>&1 && echo judge-available || echo judge-unavailable
sloplint-judge key set in their own terminal and paste the key when it prompts. Never run that command yourself, and never ask for the key in the conversation.--judge. Ask once per conversation, not once per file.With the judge:
ruby "${CLAUDE_PLUGIN_ROOT}/exe/sloplint" check --judge --markdown -o json --register "READER" PATH
Replace READER with who the document is for, in words: "a developer deciding whether to install this tool, reading its README", "a customer reading an email about an outage", "the on-call engineer reading an incident report". The judge asks every question on that reader's behalf, so whether a sentence is news, filler or a claim that needs a reason depends on who reads it. Without it the judge guesses the reader from the text, which works but is a guess. If the person has not said who the reader is and the document does not make it plain, ask in the same question as the judge.
The JSON is then an object: the notes under notes (the usual array, or keyed by path for several files) and what it spent under judge (backend, requests, token counts, cost). If it exits 2 with a message naming the sloplint-judge gem or TYPESAFE_API_KEY, the judge is not installed or not configured after all; run the plain check and say so.
Without the judge:
ruby "${CLAUDE_PLUGIN_ROOT}/exe/sloplint" check --markdown -o json PATH
Do not add --strict unless the person asks for it. It runs the rules that fire on careful human prose too, and it reports the notes the model was unsure of.
When the judge did run, end the report with one line that says so: the text was sent to api.typesafe.ai, which backend answered, how many requests, how many tokens, and the cost, all from the judge object. If requests is 0, the judge examined nothing: the document was all Markdown furniture, or its paragraphs were too short for the rules that ran. Say that only the regex rules examined the text; do not say the judge found nothing.
If it aborts with a message about needing Ruby 3.3, try each of these and use the first that reports 3.3 or later:
/opt/homebrew/opt/ruby/bin/ruby
/usr/local/opt/ruby/bin/ruby
$(rbenv which ruby)
$(asdf which ruby)
If none works, do not quote the error. Say that this needs a piece of software called Ruby and the copy on this Mac is too old, then offer to install it if Homebrew is present. An offer they can accept beats a command they cannot type.
0 — nothing flagged.1 — notes found, on stdout as JSON.3 — with --judge, the model could not be reached. Nothing was checked, not even the regex rules, so do not report a clean draft. Say the judge backend failed, quote its one-line reason, and offer to run the plain check.2 — a usage or argument error, on stderr. Two common causes worth translating: the input was empty, meaning nothing reached the scanner and nothing was checked; or the file is not plain text or Markdown. A .docx is a zip archive and will fail here — say so in plain words and offer to read the document and scan its text instead.On 0, name what was scanned and how much of it: "Checked your memo, 412 words — nothing flagged." A bare "looks clean" hides the case where the text arrived truncated or the wrong file got scanned.
On 1, present the notes in document order, the order the JSON already gives you. Do not group them by rule: grouping scatters one paragraph's three problems across three sections, so the reader can never fix a paragraph in one pass. For each note, quote the context field — the match bracketed inside about 40 characters either side — then give one plain sentence from suggestion. A note whose confidence is low is a place to look, not a finding: put it to the person as a question, and never edit their text on its word alone.
Do not print the rule id, the category, the severity word, or the line:column unless asked. They have no line 12; their document has pages. Offer that you can explain any one of them, and use ruby "${CLAUDE_PLUGIN_ROOT}/exe/sloplint" explain RULE_ID when they take you up on it; it explains the judge's rules too.
Never paste a scanned sentence into this repository. CLAUDE.md forbids real prose in the fixtures.
sloplint rules lists the whole catalog if someone asks what it checks for.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub benjaminjackson/sloplint --plugin sloplint