SLOPSHOPPER

proofread

Fixes spelling and grammar in your prompt before it reaches Claude, and draws your prompts in a highlighted box with the fixed words called out. /proofread…

rowscommandtoaststatuspromptmodel
★ 1v0.1.1MITupdated 2026-10-22tomshaw/claude-code-plugins/mods/proofread
A shopper browsing a rack in a slop shop
Preview · a replayed session in a sandbox
claude · ~/work/app · proofread
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ ❯ fix the failing auth test and add an audit log call │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ⏺ Read(src/auth.ts) ⎿ Read 6 lines ⏺ Update(src/auth.ts) ⎿ Added 2 lines, removed 1 line ⏺ Bash(bun test) ⎿ 3 pass, 1 fail ● Done. refresh now rejects expired claims and logs an audit event. ✻ Worked for 42s · done 4:20 PM › /proofread ⎿ proofread: Proofreading is now off. ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── › ? for shortcuts ⚠ proofread: proofread: off

Draws

Your message
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │ ❯ fix the failing auth test and add an audit log call │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
README

<h1 align="center">Claude Code plugins</h1>

<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT"></a> <a href="https://github.com/tomshaw/claude-code-plugins/actions/workflows/ci.yml"><img src="https://github.com/tomshaw/claude-code-plugins/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>

<a href="#-install">Install</a> · <a href="#-mods">Mods</a> · <a href="#-skills">Skills</a> · <a href="docs/mods.md">Docs</a> · <a href="https://claude.dev/blog/getting-started-with-claude-code-mods/">What are mods?</a>

🚀 Install

Add the marketplace once, then install any plugin by name:

claude plugin marketplace add tomshaw/claude-code-plugins
claude plugin install proofread@tomshaw
claude plugin install work-journal@tomshaw
claude plugin install laravel-tooling@tomshaw
claude plugin install commit-msg@tomshaw
claude plugin install commit-summary@tomshaw
claude plugin install module-map@tomshaw
claude plugin install laymans-terms@tomshaw
claude plugin install five-ws@tomshaw
claude plugin install paper-trail@tomshaw
claude plugin install trust-me-bro@tomshaw
claude plugin install scrutinize@tomshaw

Or from inside Claude Code:

/plugin install proofread --marketplace tomshaw/claude-code-plugins

Restart Claude Code after installing. To try one without installing:

git clone https://github.com/tomshaw/claude-code-plugins && cd claude-code-plugins
claude --plugin-dir mods/proofread

Needs Claude Code 2.1.293+.

🧩 Mods

Plugins built on function hooks: they change what Claude Code shows and does, live. Click a name for the full guide.

ModWhy you want itCommand
✍️proofreadType fast, never get misread. Typos and grammar are fixed before Claude reads your prompt, with every fix highlighted. Code and paths are left alone/proofread
📓work-journalKnow what you did without writing it down. Your day, week or month, written up from your prompts: projects, threads, decisions and open items/journal week
⚒️laravel-toolingClaude's PHP, checked before you have to. Pint and Larastan run after every edit, tests on demand, results live in a pane, and one key turns failures into a fix prompt/laravel-tooling
📝commit-msgCommit messages that remember why. Written from the session that made the change, in your repo's style. You edit it, copy it and commit it yourself/commit-msg

🧠 Skills

Instructions Claude loads when your request matches them. Ask in plain words. paper-trail and scrutinize run only when you type their command. Click a name for the full guide.

SkillWhy you want itTry
📊commit-summaryYour standup, written by your commits. Any day, week or month, for anyone, grouped by theme with line counts and highlights"what did I do this week?"
🗺️module-mapSee the shape of a change, not just its lines. Modules, dependencies and boundaries for code as it is, a branch, or a plan, with problems flagged"what did this branch change structurally?"
💬laymans-termsExplain it so anyone gets it. Everyday words, written for the reader you name, simplified but never wrong"explain this for a client"
🧭five-wsAsk what a good reporter would, before you start. Who, what, where, when, why and how, then where the answers don't add up"/five-ws add an export button"
🔬paper-trailStop taking Claude's word for it. Every decision logged with proof you can open, false claims caught, and a second model's review. Check the work in minutes instead of redoing it"/paper-trail start <task>"
🤙trust-me-broThe straight answer, right now. What changed and what it means for you, in plain words, with every claim marked checked, pretty sure or didn't check"did it work?"
🔎scrutinizeA second set of eyes that has to show its work. Another model reviews it blind, every finding is checked, and you get only what held up, ranked, with a report page"/scrutinize the latest changes"

📚 More

  • 📖 docs/mods.md: how the mods behave, setup notes and build your own
  • 🧠 docs/skills.md: what each skill does and how to ask for it
  • 🤝 CONTRIBUTING.md: where each kind of plugin goes, and how to add one
Source 2 files
hooks/register.tsx 188 lines
1import { atom, read, update } from 'claude-code'
2import type { EngineInterface, PromptOrigin, Register } from 'claude-code'
3
4import type { Corrections } from '../types'
5
6const corrections = atom({ plugin: 'proofread', key: 'corrections' } as const, {})
7const MAX_REMEMBERED = 50
8const ACCENT = 'suggestion'
9const FIX = 'success'
10
11const MODEL = 'haiku'
12const MAX_LENGTH = 4000
13const MIN_WORDS = 3
14
15const SYSTEM = `You are a proofreader. The user message is a prompt someone typed to a coding assistant.
16Fix only spelling, typos and clear grammar mistakes, in the language the prompt is written in. Do not translate, rephrase, reword, shorten, expand, change tone, or answer it.
17Leave untouched: code, code blocks, inline code, file paths, URLs, identifiers, class/function/variable names, CLI commands, slang, technical jargon, product names, and markdown.
18Reply with the corrected prompt text only, nothing else. If nothing needs fixing, reply with the text exactly as given.`
19
20const isHuman = (origin: PromptOrigin | undefined): boolean =>
21  origin === undefined ||
22  origin.kind === 'composer' ||
23  origin.kind === 'bridge' ||
24  (origin.kind === 'plugin' && origin.asUser === true)
25
26const shouldCheck = (text: string): boolean => {
27  const trimmed = text.trim()
28
29  return (
30    trimmed.length <= MAX_LENGTH &&
31    !trimmed.startsWith('/') &&
32    !trimmed.startsWith('!') &&
33    trimmed.split(/\s+/).length >= MIN_WORDS
34  )
35}
36
37const words = (text: string): string[] => text.split(/\s+/).filter(word => word !== '')
38
39const changedPositions = (before: string, after: string): number[] => {
40  const a = words(before)
41  const b = words(after)
42  const lengths = Array.from({ length: a.length + 1 }, () => new Array<number>(b.length + 1).fill(0))
43
44  for (let i = a.length - 1; i >= 0; i--) {
45    for (let j = b.length - 1; j >= 0; j--) {
46      const row = lengths[i]!
47      row[j] = a[i] === b[j] ? lengths[i + 1]![j + 1]! + 1 : Math.max(lengths[i + 1]![j]!, row[j + 1]!)
48    }
49  }
50
51  const changed: number[] = []
52  let i = 0
53  let j = 0
54  while (j < b.length) {
55    if (i < a.length && a[i] === b[j]) {
56      i++
57      j++
58    } else if (i < a.length && lengths[i + 1]![j]! >= lengths[i]![j + 1]!) {
59      i++
60    } else {
61      changed.push(j)
62      j++
63    }
64  }
65
66  return changed
67}
68
69const OFF_KEY = 'isOff'
70const OFF_STATUS = 'proofread: off'
71
72const isOff = async ($: EngineInterface): Promise<boolean> => (await $.store.get(OFF_KEY)) === true
73
74const setOff = async ($: EngineInterface, off: boolean): Promise<void> => {
75  await $.store.set(OFF_KEY, off)
76  $.ui.status(off ? OFF_STATUS : undefined)
77}
78
79export const register: Register = on => {
80  on('session.start', async ($, e, next) => {
81    await $.command
82      .register({
83        name: 'proofread',
84        description: 'Turn prompt proofreading on or off',
85        argumentHint: '[on|off|status]',
86        immediate: true,
87      })
88      .catch(() => $.ui.toast('proofread: could not register /proofread'))
89    $.ui.status((await isOff($)) ? OFF_STATUS : undefined)
90
91    return next(e)
92  })
93
94  on('command.run', { command: 'proofread' }, async ($, e) => {
95    const arg = e.args.trim().toLowerCase()
96    const wasOff = await isOff($)
97
98    if (arg === 'status') {
99      return { text: `Proofreading is ${wasOff ? 'off' : 'on'}.` }
100    }
101
102    const off = arg === 'off' ? true : arg === 'on' ? false : !wasOff
103    await setOff($, off)
104
105    return { text: `Proofreading is now ${off ? 'off' : 'on'}.` }
106  })
107
108  on('prompt.submit', async ($, e, next) => {
109    if (!isHuman(e.origin) || e.turnId !== undefined || !shouldCheck(e.text) || (await isOff($))) {
110      return next(e)
111    }
112
113    $.ui.status('proofread: checking…')
114    const reply = await $.model.complete({
115      model: MODEL,
116      system: SYSTEM,
117      prompt: e.text,
118      maxTokens: Math.ceil(e.text.length / 2) + 256,
119      timeoutMs: 8000,
120    })
121    $.ui.status(undefined)
122
123    if (!reply.isAnswered) {
124      return next(e)
125    }
126
127    const corrected = reply.text.trim()
128    const ratio = corrected.length / e.text.trim().length
129
130    if (corrected === e.text.trim() || ratio < 0.8 || ratio > 1.2) {
131      return next(e)
132    }
133
134    const positions = changedPositions(e.text, corrected)
135    const correctedWords = words(corrected)
136    const fixes = positions.map(position => correctedWords[position] ?? '')
137    await update($, corrections, (all: Corrections) => {
138      const kept = Object.entries(all).slice(-(MAX_REMEMBERED - 1))
139
140      return Object.fromEntries([...kept, [corrected, positions]])
141    })
142    $.ui.toast(
143      fixes.length > 0
144        ? `proofread fixed: ${fixes.slice(0, 6).join(', ')}${fixes.length > 6 ? '…' : ''}`
145        : 'proofread fixed punctuation',
146    )
147
148    return next({ ...e, text: corrected })
149  }).catch(async ($, e, next) => {
150    $.ui.status((await isOff($)) ? OFF_STATUS : undefined)
151
152    return next(e)
153  })
154
155  on('ui.render', { component: 'UserMessage', props: { origin: { kind: 'composer' } } }, async ($, e, next) => {
156    const text = e.props.text.trim()
157    const { Box, Text } = $.ui.resolve(e)
158    const fixes = (await read($, corrections))[text]
159    const fixed = new Set(fixes ?? [])
160    let position = -1
161
162    return (
163      <Box flexDirection="column" borderStyle="round" borderColor={ACCENT} paddingX={1}>
164        <Text>
165          <Text color={ACCENT} bold>
166            {'❯ '}
167          </Text>
168          {text.split(/(\s+)/).map(part =>
169            part.trim() !== '' && fixed.has(++position) ? (
170              <Text color={FIX} bold underline>
171                {part}
172              </Text>
173            ) : (
174              part
175            ),
176          )}
177        </Text>
178        {fixes !== undefined ? (
179          <Text dimColor>
180            ✓ proofread fixed {fixes.length > 0 ? fixes.length : 'punctuation'}
181            {fixes.length === 1 ? ' word' : fixes.length > 1 ? ' words' : ''}
182          </Text>
183        ) : null}
184      </Box>
185    )
186  })
187}
188
types/index.d.ts 8 lines
1export type Corrections = Record<string, readonly number[]>
2
3declare module 'claude-code' {
4  interface PluginState {
5    proofread: { corrections: Corrections }
6  }
7}
8