SLOPSHOPPER

prompt-booster

Adds repo context to short prompts, plus one-word commands for common tasks.

newcommandpromptprocess
A shopper browsing a rack in a slop shop
README

claude-mods

Eleven mods for Claude Code. Install the ones you want; each is independent.

Repo Radar

Repo Radar: a live map of where Claude is working

repo-radar draws your repo as a live map of rectangles, one per folder. Reads glow cyan, edits amber, failures red, and each subagent gets its own colour, so you can watch parallel agents work across your codebase. Glows fade like a radar trace; files touched this session keep a faint tint. /radar opens it. More →

/plugin marketplace add lakmadev/claude-mods
/plugin install repo-radar@claude-mods

For fun

pixel-pet: the band

ModWhat it does
pixel-petA tiny animated pixel pet above your prompt. It sleeps (snoring) when things are quiet and wakes slowly when you type. It narrates what Claude is doing with a sliding status line, hatches half-size helpers in their own colours for each subagent that slide into the meter line one by one and wave bye when done. It watches you type, and you click it to pet it. A gradient context meter with your 5-hour and weekly usage sits beside it, details on hover. 28 colours via /pet color <name>.
code-wrapped/wrapped opens your Claude Code Wrapped: a GitHub-style activity heatmap, hours, lines, streaks, top files and tools, your coding personality (Night Owl 🦉, Refactorer 🧹, Shell Wizard 🧙…) and 14 unlockable achievements that pop as toasts. Copy share text puts a one-line brag on your clipboard.
lofi-modeSoft lo-fi beats start when Claude has been working for a few seconds and stop when it finishes. The loop is original and synthesized for this mod. /lofi toggles it. macOS audio.

For work

ModWhat it does
context-meterA plain status line: ctx 62% · 5h 85% resets 1h52m · week 40% on a Claude plan (the reset shows once a window passes 70%), or ctx 62% · $1.84 billed (API) when you pay per token. Toasts when context passes 80% or a plan window passes 90%.
safety-netRefuses catastrophic commands (rm -rf ~, mkfs, dd of=/dev/disk, fork bombs). Asks before risky ones (force-push, reset --hard, `curl \sh, DROP TABLE, terraform destroy, sudo, …) and before edits to .env, keys, ~/.ssh, .git/` or shell rc files.
changes-paneSide pane listing every file Claude changed this session with +/- line counts. /changes opens it.
done-notifierChime, toast and desktop notification when a turn longer than 30s finishes or Claude is waiting for you.
prompt-boosterShort prompts ("fix it") get your branch, changed files and recent commits as hidden context. Adds /fix-tests, /explain-code, /review-changes, /write-tests, /commit-msg.
session-journalLogs each turn (project, prompt, files touched) across sessions. /journal [days] lists it; /standup [days] writes a Done / In progress / Blockers update.
secrets-redactorReplaces API keys, tokens, private keys and connection-string passwords with [REDACTED:kind] in your prompts and in tool output before the model sees them, and blocks writing a placeholder back over a real secret.

Install

Requires Claude Code 2.1.293 or later: mods are an early-access feature and gain events with each release. Check with claude --version; update with claude update.

In a Claude Code terminal session:

/plugin marketplace add lakmadev/claude-mods
/plugin install pixel-pet@claude-mods

The first line adds this repo as a plugin marketplace (once); the second installs a mod from it. Repeat the second line with any other mod name from the table.

Settings

Each mod's options show in /config once it is installed:

  • context-meter: contextWarnPercent (80), rateLimitWarnPercent (90)
  • safety-net: strict (off). Turns every "ask" into a refusal. Turn it on if you run in auto or bypass-permissions mode, where an ask can be approved without you.
  • changes-pane: autoOpen (on). The pane opens on its own only in terminals 144+ columns wide.
  • done-notifier: minSeconds (30), sound (on), desktop (on)
  • prompt-booster: autoContext (on), maxWords (15)
  • session-journal: retentionDays (30), model (haiku)
  • secrets-redactor: aggressive (off). Also redacts quoted password = "…"-style assignments.
  • pixel-pet: name (Bit), color (teal)
  • lofi-mode: volume (0.35), delaySeconds (4)

Limits

  • safety-net matches patterns. It is not a sandbox: obfuscated commands (eval, base64, aliases) get through.
  • secrets-redactor only catches known token shapes. Once a secret is redacted, Claude can't use it: put real values in files yourself.
  • pixel-pet, code-wrapped and session-journal keep their data in Claude Code's plugin store on your machine. Two sessions finishing a turn at the same instant can drop one update.
  • done-notifier plays its chime on macOS only. Desktop notifications use osascript (macOS) or notify-send (Linux).
  • session-journal keeps your prompts locally, in Claude Code's plugin store on your machine. /standup sends the log to the model you configure.

Develop

Each mod lives in plugins/<name>/: hooks/register.ts(x) is the code and tests/ holds its tests.

claude plugin validate plugins/<name>
claude plugin test plugins/<name>
claude --plugin-dir plugins/<name>

License

MIT, see LICENSE.

Source 1 files
hooks/register.ts 80 lines
1import type { EngineInterface, Register } from 'claude-code'
2
3type Template = { description: string; argumentHint?: string; prompt: (args: string) => string }
4
5const or = (args: string, fallback: string) => args.trim() || fallback
6
7export const TEMPLATES: Record<string, Template> = {
8  'fix-tests': {
9    description: 'Run the tests, fix the root cause of failures, repeat until green',
10    prompt: () =>
11      "Run this project's test suite and find the failing tests. Fix the root cause in the code (change a test only if the test itself is wrong), then re-run until everything passes. End with a short summary of what was broken and why.",
12  },
13  'explain-code': {
14    description: 'Explain code for someone new to this codebase',
15    argumentHint: '[file, function or feature]',
16    prompt: args =>
17      `Explain ${or(args, 'the code I changed most recently')} for someone new to this codebase: what it is for, how control and data flow through it, the key files, and any gotchas. Keep it under 300 words and cite file:line.`,
18  },
19  'review-changes': {
20    description: 'Review uncommitted changes for bugs, security issues and missing tests',
21    prompt: () =>
22      'Review my uncommitted changes (git diff HEAD, staged and unstaged) for bugs, security issues, and missing tests. List findings by severity with file:line and a one-line fix for each. Do not edit any files.',
23  },
24  'write-tests': {
25    description: "Write tests using the project's own framework and conventions",
26    argumentHint: '[file or function]',
27    prompt: args =>
28      `Write tests for ${or(args, 'the code I changed most recently')} using this project's existing test framework and conventions (look at neighbouring tests first). Cover the main path and the edge cases, then run them.`,
29  },
30  'commit-msg': {
31    description: 'Draft a commit message for the staged changes',
32    prompt: () =>
33      'Write a commit message for the staged changes (git diff --cached): a conventional-commit subject under 72 characters and a short body explaining why. Output only the message; do not commit.',
34  },
35}
36
37export function isVague(text: string, maxWords: number): boolean {
38  const trimmed = text.trim()
39  return trimmed !== '' && !trimmed.startsWith('/') && trimmed.split(/\s+/).length < maxWords
40}
41
42async function repoContext($: EngineInterface): Promise<string | undefined> {
43  const cwd = await $.session.cwd()
44  const git = (args: string[]) => $.process.run(['git', '-C', cwd, ...args], { timeoutMs: 2000 }).catch(() => undefined)
45  const status = await git(['status', '--short', '--branch'])
46  if (status?.exitCode !== 0) return undefined
47  const log = await git(['log', '-3', '--oneline'])
48  const lines = status.stdout.trim().split('\n')
49  const shown = lines.slice(0, 26).join('\n') + (lines.length > 26 ? `\n… ${lines.length - 26} more` : '')
50  return [
51    'Repo context, attached automatically because the prompt was short. Use it to resolve vague references ("this", "the bug", "it"); ignore it if irrelevant.',
52    `git status:\n${shown}`,
53    log?.exitCode === 0 && log.stdout.trim() ? `recent commits:\n${log.stdout.trim()}` : '',
54  ].filter(Boolean).join('\n\n')
55}
56
57export const register: Register = (on, options) => {
58  const maxWords = Number(options.maxWords ?? 15)
59
60  on('session.start', async ($, e, next) => {
61    for (const [name, template] of Object.entries(TEMPLATES)) {
62      await $.command.register({ name, description: template.description, argumentHint: template.argumentHint })
63    }
64    return next(e)
65  })
66
67  on('command.run', { command: ['fix-tests', 'explain-code', 'review-changes', 'write-tests', 'commit-msg'] }, async ($, e) => {
68    const template = TEMPLATES[e.command]
69    if (!template) return { text: `Unknown command ${e.command}` }
70    await $.prompt.submit({ text: template.prompt(e.args) })
71    return {}
72  })
73
74  on('prompt.submit', async ($, e, next) => {
75    if (options.autoContext === false || e.origin.kind !== 'composer' || !isVague(e.text, maxWords)) return next(e)
76    const context = await repoContext($).catch(() => undefined)
77    return context ? next({ ...e, context: [...(e.context ?? []), context] }) : next(e)
78  })
79}
80