Authorization notice. Sloptrim is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forAn editor or content writer who has a finished draft and wants a local check for AI-writing patterns before sending it out.
The problemReading a draft line by line to find machine-like phrasing is slow, and uploading the draft to a web service is not acceptable for unpublished work.
The outcomeA JSON report with a 0-100 score, one of five bands (clean, light tells, mixed, heavy tells, pervasive tells), the named patterns and the metrics, all produced on your machine.
What you need first
- Python 3.9 or newer for the detector
- Node for the Claude Code hooks
- Git, to clone the repository
- A coding agent such as Claude Code, Codex or Cursor, if you want the on-save guard or the contract
Steps
- Clone the repository with
git clone https://github.com/seyedehsanhadi/sloptrim.git ~/.claude/skills/sloptrim - Change into the cloned folder, for example
cd ~/.claude/skills/sloptrim(inferred, check the README) - Run
python scripts/detect.py draft.docxon your file, replacing draft.docx with its path - Read the score and band in the JSON, then check the listed patterns and metrics
- In Claude Code, run
/sloptrim check <file>to get a score and the named tells without a rewrite (inferred, check the README)
Prompt for your agent
Using the sloptrim repo at <repo path>, run `python scripts/detect.py <draft file>` on <draft file> and report the 0-100 score, the band and the named patterns. Verify that the output is valid JSON and includes a score between 0 and 100.
Caveat. The score describes the writing only and must not be used to judge whether a person or a model wrote the text, as the README warns.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for seyedehsanhadi/sloptrim and "Score a prose draft for AI-writing tells"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer