SLOPSHOPPER

nebster

Nebster's Claude Code toolkit — Reviewer, Fixer, and SEO subagents, /nebster:review and /nebster:qa skills, Comrade, Peon and Mate output styles, plus a…

bandspinnerrowsprocesstimer
v?no licenseupdated 2026-10-26NebsterSK/claude-settings
A shopper browsing a rack in a slop shop
Preview · a replayed session in a sandbox
claude · ~/work/app · nebster
› 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: 42s Opus 5.5 ctx ▰▰▰▱▱ 49% 5h ▰▰▱▱▱ 31% ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── › ? for shortcuts

Draws

Band
Opus 5.5 ctx ▰▰▰▱▱ 49% 5h ▰▰▱▱▱ 31%
Turn line
Worked: 42s
README

Nebster's Claude Code Plugin

A Claude Code plugin marketplace shipping the nebster plugin — specialized subagents, skills (slash commands), and output styles (personas). Install once and — with auto-update enabled — Claude Code keeps them up to date from GitHub.

Install

Add the marketplace and install the plugin:

/plugin marketplace add NebsterSK/claude-settings
/plugin install nebster@nebster-claude-settings

That's it — the agents, commands, and output styles are now available in every project.

Keep it auto-updating

Third-party marketplaces do not auto-update by default. Enable it once so you get new agents/commands on startup:

  • Via UI: run /plugin, open the Marketplaces tab, select nebster-claude-settings, and enable auto-update.
  • Via managed settings (settings.json):
  {
    "extraKnownMarketplaces": {
      "nebster-claude-settings": {
        "source": { "source": "github", "repo": "NebsterSK/claude-settings" },
        "autoUpdate": true
      }
    }
  }

Because the plugin ships without a pinned version, every push to this repo is treated as a new version — enabled installs pick it up automatically.

What's inside

Agents

AgentPurpose
ReviewerSenior code reviewer / quality gatekeeper. Audits security, bugs, tech debt, performance, testing, and accessibility before production — and, on a PR, checks the diff against what the PR says it does.
FixerApplies a single scoped fix from a review finding — edits only the fix's footprint, adds a covering test for behavior fixes, makes no unrelated changes, reports back in one line. Spawned in parallel by the review command.
SEOOn-page and technical SEO — meta descriptions, keywords, structured data, Core Web Vitals.

Skills

Skills are invoked as slash commands namespaced under the plugin name.

SkillPurpose
/nebster:reviewDispatches the change set to the Reviewer subagent and relays its findings. Fixes them interactively on your own work, or reports read-only on someone else's PR — see Review modes.
/nebster:qaCode-style and static-analysis gate. Runs Larastan, Pint, ESLint, and Prettier and fixes every issue they surface. Does not run the test suite. Runs in an isolated subagent and only when you invoke it.
Review modes

/nebster:review tries the gh CLI first to read the PR behind your current branch — title, description, linked issue, and existing review comments — and hands that stated purpose to the Reviewer as a claim to verify against the diff (goal not met, scope creep, undocumented behavior change). No gh, or no PR? It says so and reviews the plain git diff.

Check the branch out yourself first — the command never runs gh pr checkout.

Fix mode — your own branch or your own PR. Findings with exactly one obvious fix that restores the code's evident intent (no product-rule, API, schema, or data decision) are auto-fixed in the background at any severity — Medium/Low immediately, Critical/High after a single confirm where you can hold some back. Everything that needs a decision is triaged one finding at a time, uncapped, with accepted fixes applied by background Fixer agents on a shared per-file queue. Closes with scoped tests and a status table.

Report-only mode — the PR author isn't you, or you passed --report-only. Nothing is edited: no fixers, no commits, no pushes. You get the full report, then an offer to post findings to the PR — you pick which ones, and the payload is shown for confirmation before anything is published. Posts as a plain review comment, never an approval or change request.

Arguments are positional: base branch first, PR second.

/nebster:review                       # current branch, auto-detects base and mode
/nebster:review develop               # diff against a specific base
/nebster:review 1234                  # a PR number or URL (base auto-detected)
/nebster:review develop 1234          # both
/nebster:review --report-only         # force read-only on your own work

The older base=develop / pr=1234 forms still work.

Output styles

Personas for the terminal reply only. Pick one with /output-style. Both keep Claude's coding instructions intact and stay out of everything that leaves the terminal — code, comments, commits, PR descriptions, docs, tickets. Code, paths, and error messages are never accented or translated.

StylePersona
ComradeComrade Claude Vladimirowich Claudowich, loyal servant of the Soviet Union. Heavy Russian accent, "we" not "I", bugs are imperialist saboteurs, tests are the five-year plan, git is state ceremony.
PeonOrc peon from Warcraft 3. Broken peon English, "Work, work." / "Job's done!", bugs are Alliance scouts in the base, failing tests mean the base is under attack.

Session band (mod)

A band above the prompt in three tinted segments. Claude: the session name (from /rename) in bold, then model, effort and output style. Usage: context, 5-hour and weekly, each as a five-cell meter with its percentage, green below 60%, yellow from 60%, red from 80%. Git: the branch (green for main/master, yellow for develop, gray otherwise) with changed ~, new + and deleted - file counts, and the branch's open PR as a link (it then leaves the hint line under the prompt, which also drops the (shift+tab to cycle) reminder). It loads with the plugin; nothing to enable. Source in hooks/register.tsx.

The same mod hides background chatter in the transcript: finished tool groups, other agents' messages and task notices. The turn's closing line shows only Worked: <duration>, in a faint gray. Your prompts and Claude's answers stand out; only the tool group still running keeps its normal line, and ctrl+o shows every row in full. The spinner says what the turn is doing (Thinking, Running tools, Writing) instead of a random word. Source in hooks/quiet.tsx.

Repository layout

This repo is both the marketplace and the plugin:

claude-settings/
├── .claude-plugin/
│   ├── marketplace.json   # marketplace manifest (lists the plugin)
│   └── plugin.json        # plugin manifest (no version → always latest)
├── agents/                # reviewer, fixer, seo
├── hooks/                 # session band mod (hooks.json + register.tsx)
├── output-styles/         # comrade.md, peon.md
├── skills/                # review/SKILL.md, qa/SKILL.md
├── tests/                 # mod tests (claude plugin test .)
└── types/                 # mod state contract

Notes

  • The Reviewer targets a Laravel backend but stays framework-agnostic on the frontend (Vue, Livewire, React).
  • PR context and posting findings need the gh CLI, authenticated (gh auth login). It's optional — without it /nebster:review falls back to a plain diff review.
  • /nebster:qa assumes a Laravel + JS/TS project with composer larastan, composer pint, npm run lint, npm run prettier, and npm run types scripts. Adjust to match your tooling.
  • Validate changes before pushing with claude plugin validate . and claude plugin test ..
Source 3 files
hooks/register.tsx 294 lines
1import { atom, read, update } from 'claude-code'
2import type { EngineInterface, Register } from 'claude-code'
3
4import type { Git, Info, PullRequest } from '../types'
5import { registerQuiet } from './quiet'
6
7const name = atom({ plugin: 'nebster', key: 'name' } as const, null)
8const info = atom({ plugin: 'nebster', key: 'info' } as const, {
9  model: null,
10  effort: null,
11  style: null,
12  percent: null,
13  fiveHour: null,
14  weekly: null,
15} as Info)
16// Segment tints, a step above a dark terminal background; empty meter cells sit between.
17const TINT_A = '#1c2129'
18const TINT_B = '#232934'
19const METER_EMPTY = '#4a505a'
20
21const pr = atom({ plugin: 'nebster', key: 'pr' } as const, null as PullRequest)
22const git = atom({ plugin: 'nebster', key: 'git' } as const, { branch: null, changed: 0, added: 0, deleted: 0 } as Git)
23
24// The latest `/rename` lives in the transcript as a `custom-title` row.
25export const lastTitle = (transcript: string): string | null => {
26  const lines = transcript.split('\n')
27  for (let i = lines.length - 1; i >= 0; i--) {
28    const line = lines[i]
29    if (!line?.includes('"custom-title"')) continue
30    try {
31      const row = JSON.parse(line) as { type?: string; customTitle?: string }
32      if (row.type === 'custom-title' && row.customTitle) return row.customTitle
33    } catch {}
34  }
35  return null
36}
37
38// `claude-opus-5-5[1m]` → `Opus 5.5`; anything else passes through.
39export const prettyModel = (id: string): string => {
40  const match = /^claude-([a-z]+)-(\d+)(?:-(\d{1,2}))?(?:-\d{8})?/.exec(id)
41  if (!match) return id
42  const [, family = '', major, minor] = match
43  const label = family.charAt(0).toUpperCase() + family.slice(1)
44  return `${label} ${major}${minor ? `.${minor}` : ''}`
45}
46
47// `medium` → `Medium`, to match the model and style labels.
48export const capitalize = (text: string): string => text.charAt(0).toUpperCase() + text.slice(1)
49
50// Green, then yellow from 60%, red from 80%: the third and fourth of the meter's five cells.
51export const usageColor = (percent: number): 'green' | 'yellow' | 'red' =>
52  percent >= 80 ? 'red' : percent >= 60 ? 'yellow' : 'green'
53
54// A five-cell meter, each cell 20%: 12% → `▰▱▱▱▱`, 40% → `▰▰▱▱▱`, 100% → `▰▰▰▰▰`.
55export const meterCells = (percent: number): { filled: string; empty: string } => {
56  const filled = Math.min(5, Math.max(0, Math.ceil(percent / 20)))
57  return { filled: '▰'.repeat(filled), empty: '▱'.repeat(5 - filled) }
58}
59
60// A rate-limit window's use, rounded; null when the account reports none.
61export const windowPercent = (
62  rateLimits: readonly { kind: string; percentUsed: number }[],
63  kind: 'five_hour' | 'seven_day',
64): number | null => {
65  const window = rateLimits.find(limit => limit.kind === kind)
66  return window === undefined ? null : Math.round(window.percentUsed)
67}
68
69// `git status --porcelain=v1 -b`: the `##` head line, then one line per file;
70// untracked (`??`) and staged-new (`A`) files count as added, a `D` on either side
71// as deleted, the rest as changed.
72export const parseGitStatus = (porcelain: string): Git => {
73  const lines = porcelain.split('\n').filter(line => line !== '')
74  const head = lines[0]?.startsWith('## ') ? lines[0].slice(3) : null
75  const branch =
76    head === null ? null : (head.replace(/^No commits yet on /, '').split('...')[0]?.trim() ?? null)
77  const files = lines.filter(line => !line.startsWith('## '))
78  const added = files.filter(line => line.startsWith('??') || line.startsWith('A')).length
79  const deleted = files.filter(line => line[0] === 'D' || line[1] === 'D').length
80  return { branch, changed: files.length - added - deleted, added, deleted }
81}
82
83// Green for the main line, yellow for develop, gray for anything else.
84export const branchColor = (branch: string): 'green' | 'yellow' | 'gray' =>
85  branch === 'main' || branch === 'master' ? 'green' : branch === 'develop' ? 'yellow' : 'gray'
86
87// The hint line, ` · `-separated: the shift+tab reminder always goes, and the PR goes
88// while the band's git segment shows it.
89export const trimHint = (hint: string, isPullRequestInBand: boolean): string =>
90  hint
91    .split(/\s*·\s*/)
92    .map(part => part.trim())
93    .filter(part => part !== '' && part !== '(shift+tab to cycle)')
94    .filter(part => !(isPullRequestInBand && /^PR #\d+$/.test(part)))
95    .join(' · ')
96
97// `gh pr view --json number,url,state`: the branch's PR while it is open, else null.
98export const parsePullRequest = (json: string): PullRequest => {
99  const found = JSON.parse(json) as { number?: number; url?: string; state?: string }
100  return found.state === 'OPEN' && typeof found.number === 'number' && typeof found.url === 'string'
101    ? { number: found.number, url: found.url }
102    : null
103}
104
105// The PR behind the current branch, from `gh`; null when there is none or no `gh`.
106async function refreshPullRequest($: EngineInterface) {
107  const result = await $.process.run(['gh', 'pr', 'view', '--json', 'number,url,state'], {
108    cwd: await $.session.root(),
109    timeoutMs: 8000,
110  })
111  const open = result.exitCode === 0 ? parsePullRequest(result.stdout) : null
112  await update($, pr, () => open)
113}
114
115async function refreshGit($: EngineInterface) {
116  const result = await $.process.run(['git', 'status', '--porcelain=v1', '-b'], {
117    cwd: await $.session.root(),
118    timeoutMs: 3000,
119  })
120  const status =
121    result.exitCode === 0 ? parseGitStatus(result.stdout) : { branch: null, changed: 0, added: 0, deleted: 0 }
122  await update($, git, () => status)
123}
124
125async function refresh($: EngineInterface) {
126  const config =
127    (await $.env.get('CLAUDE_CONFIG_DIR')) ??
128    `${(await $.env.get('USERPROFILE')) ?? (await $.env.get('HOME'))}/.claude`
129  const project = (await $.session.root()).replace(/[^a-zA-Z0-9]/g, '-')
130  const path = `${config}/projects/${project}/${await $.session.id()}.jsonl`
131  // `$.fs.read` refuses files over 4 MiB, which a long session's transcript outgrows;
132  // then only its `custom-title` rows are pulled out with grep.
133  const transcript = await $.fs
134    .read(path)
135    .catch(() => $.process.run(['grep', '-F', '"custom-title"', path], { timeoutMs: 3000 }).then(result => result.stdout))
136    .catch(() => '')
137  const title = lastTitle(transcript)
138  if (title !== null) await update($, name, () => title)
139
140  const { context, rateLimits } = await $.session.usage()
141  const model = prettyModel(await $.session.model())
142  // `/output-style` writes settings, so the style comes from there; a `prompt.compose`
143  // hook would be answered first by a security plugin and never run.
144  const style = await $.settings.read({ key: 'outputStyle' })
145  await update($, info, current => ({
146    ...current,
147    style: typeof style === 'string' ? style : current.style,
148    model: current.model ?? model,
149    percent: context.percent ?? current.percent,
150    fiveHour: windowPercent(rateLimits, 'five_hour') ?? current.fiveHour,
151    weekly: windowPercent(rateLimits, 'seven_day') ?? current.weekly,
152  }))
153}
154
155// Before the first turn, effort and output style come from settings.
156async function seed($: EngineInterface) {
157  const settings = await $.settings.read()
158  const effort = typeof settings.effortLevel === 'string' ? settings.effortLevel : null
159  const style = typeof settings.outputStyle === 'string' ? settings.outputStyle : null
160  await update($, info, current => ({
161    ...current,
162    effort: current.effort ?? effort,
163    style: current.style ?? style,
164  }))
165}
166
167export const register: Register = on => {
168  registerQuiet(on)
169
170  on('session.start', async ($, e, next) => {
171    const result = await next(e)
172    await seed($).catch(() => {})
173    await refresh($).catch(() => {})
174    await refreshGit($).catch(() => {})
175    // `gh` goes over the network, so it runs on a timer of its own: the turn never waits on it.
176    $.clock.after(0, () => void refreshPullRequest($).catch(() => {}))
177    return result
178  })
179
180  on('session.append', { door: 'command' }, async ($, e, next) => {
181    const result = await next(e)
182    await refresh($).catch(() => {})
183    await refreshGit($).catch(() => {})
184    // `gh` goes over the network, so it runs on a timer of its own: the turn never waits on it.
185    $.clock.after(0, () => void refreshPullRequest($).catch(() => {}))
186    return result
187  })
188
189  on('turn.complete', async ($, e, next) => {
190    const result = await next(e)
191    await refresh($).catch(() => {})
192    await refreshGit($).catch(() => {})
193    // `gh` goes over the network, so it runs on a timer of its own: the turn never waits on it.
194    $.clock.after(0, () => void refreshPullRequest($).catch(() => {}))
195    return result
196  })
197
198  // Rate-limit windows move between turns too; the engine pushes each whole-point move.
199  on('session.measure', async ($, e, next) => {
200    if (e.changed.includes('rateLimits')) {
201      const fiveHour = windowPercent(e.rateLimits, 'five_hour')
202      const weekly = windowPercent(e.rateLimits, 'seven_day')
203      await update($, info, current => ({
204        ...current,
205        fiveHour: fiveHour ?? current.fiveHour,
206        weekly: weekly ?? current.weekly,
207      })).catch(() => {})
208    }
209    return next(e)
210  })
211
212  // Each main-loop request carries the model and effort it actually used.
213  on('turn.step', async function* ($, e, next) {
214    if (e.agentId === undefined) {
215      const model = prettyModel(e.model)
216      const effort = e.effort === undefined ? null : String(e.effort)
217      await update($, info, current => ({ ...current, model, effort })).catch(() => {})
218    }
219    return yield* next(e)
220  })
221
222
223  // The hint line loses the shift+tab reminder, and the PR while the band shows it.
224  on('ui.render', { component: 'PromptHint' }, async ($, e, next) => {
225    const pullRequest = await read($, pr)
226    const hint = trimHint(e.props.hint, pullRequest !== null)
227    return hint === e.props.hint ? next(e) : next({ ...e, props: { ...e.props, hint } })
228  })
229
230  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
231    const current = await read($, name)
232    const { model, effort, style, percent, fiveHour, weekly } = await read($, info)
233    const { branch, changed, added, deleted } = await read($, git)
234    const pullRequest = await read($, pr)
235    if (e.props.hasSurvey) return next(e)
236
237    const { Box, Link, Text } = $.ui.resolve(e)
238    const details = [model, effort === null ? null : capitalize(effort), style].filter(Boolean).join(' · ')
239    const meters = [
240      { label: 'ctx', value: percent },
241      { label: '5h', value: fiveHour },
242      { label: '7d', value: weekly },
243    ].flatMap(meter => (meter.value === null ? [] : [{ label: meter.label, value: meter.value }]))
244
245    // Three tinted segments, Claude · usage · git: the tints group them, so no separators.
246    // The top margin matches the empty row Claude Code leaves between the band and the input.
247    // Every Text carries the tint itself, so the segment stays solid whatever the terminal does.
248    return (
249      <Box flexWrap="wrap" columnGap={1} marginTop={1}>
250        <Box>
251          <Text backgroundColor={TINT_A}> </Text>
252          {current !== null && (
253            <Text backgroundColor={TINT_A} bold color="cyan">{`${current}  `}</Text>
254          )}
255          <Text backgroundColor={TINT_A} dimColor>{`${details} `}</Text>
256        </Box>
257        {meters.length > 0 && (
258          <Box>
259            {meters.map((meter, index) => {
260              const { filled, empty } = meterCells(meter.value)
261              return (
262                <Box key={meter.label}>
263                  <Text backgroundColor={TINT_B} dimColor>{`${index === 0 ? ' ' : '  '}${meter.label} `}</Text>
264                  <Text backgroundColor={TINT_B} color={usageColor(meter.value)}>{filled}</Text>
265                  <Text backgroundColor={TINT_B} color={METER_EMPTY}>{empty}</Text>
266                  <Text backgroundColor={TINT_B} color={usageColor(meter.value)}>{` ${meter.value}%`}</Text>
267                </Box>
268              )
269            })}
270            <Text backgroundColor={TINT_B}> </Text>
271          </Box>
272        )}
273        {branch !== null && (
274          <Box>
275            <Text backgroundColor={TINT_A} color={branchColor(branch)}>{` ⎇ ${branch}`}</Text>
276            {changed > 0 && <Text backgroundColor={TINT_A} color="yellow">{`  ~${changed}`}</Text>}
277            {added > 0 && <Text backgroundColor={TINT_A} color="green">{`  +${added}`}</Text>}
278            {deleted > 0 && <Text backgroundColor={TINT_A} color="red">{`  -${deleted}`}</Text>}
279            {pullRequest !== null && (
280              <Box>
281                <Text backgroundColor={TINT_A} dimColor>{'  PR '}</Text>
282                <Link href={pullRequest.url}>
283                  <Text backgroundColor={TINT_A} color="yellow" underline>{`#${pullRequest.number}`}</Text>
284                </Link>
285              </Box>
286            )}
287            <Text backgroundColor={TINT_A}> </Text>
288          </Box>
289        )}
290      </Box>
291    )
292  })
293}
294
hooks/quiet.tsx 66 lines
1import type { Register } from 'claude-code'
2
3// Background chatter (finished tool groups, agent messages, task notices) is hidden
4// and the turn footer is reduced to its duration, so the person's prompts and
5// Claude's answers carry the transcript. ctrl+o still draws every row in full.
6
7// `3s`, `1m 4s`, `2h 5m`.
8export const formatDuration = (milliseconds: number): string => {
9  const seconds = Math.max(0, Math.round(milliseconds / 1000))
10  if (seconds < 60) return `${seconds}s`
11  const minutes = Math.floor(seconds / 60)
12  if (minutes < 60) return `${minutes}m ${seconds % 60}s`
13  return `${Math.floor(minutes / 60)}h ${minutes % 60}m`
14}
15
16// What the turn is doing, said plainly instead of a random gerund.
17const SPINNER_WORDS = {
18  requesting: 'Waiting for the model',
19  thinking: 'Thinking',
20  'tool-input': 'Preparing a tool call',
21  'tool-use': 'Running tools',
22  responding: 'Writing',
23} as const
24
25// Close to a black background: readable when looked for, out of the way otherwise.
26const FAINT = '#4a4a4a'
27
28export const registerQuiet: Register = on => {
29  on('ui.render', { component: 'Spinner' }, async ($, e, next) => {
30    if (e.props.message !== null) return next(e)
31    return next({ ...e, props: { ...e.props, word: SPINNER_WORDS[e.props.mode] } })
32  })
33
34  // Tool groups: hidden once finished, failed calls included (Claude reacts to those
35  // itself); only the live group keeps the engine's line.
36  on('ui.render', { component: 'ToolGroup' }, async ($, e, next) => {
37    if (e.props.isExpanded || e.props.isActive) return next(e)
38
39    const { Box } = $.ui.resolve(e)
40    return <Box display="none" />
41  })
42
43  // Another agent's message or a background task's notice: hidden. The person's prompts pass.
44  on('ui.render', { component: 'UserMessage' }, async ($, e, next) => {
45    const { from, origin, isExpanded } = e.props
46    if (isExpanded) return next(e)
47    if (from === undefined && origin.kind !== 'task-notification') return next(e)
48
49    const { Box } = $.ui.resolve(e)
50    return <Box display="none" />
51  })
52
53  // The turn's closing line: only how long it took, faint.
54  on('ui.render', { component: 'TurnDuration' }, async ($, e, next) => {
55    const { isExpanded, durationMs } = e.props
56    if (isExpanded) return next(e)
57
58    const { Box, Text } = $.ui.resolve(e)
59    return (
60      <Box marginTop={1} marginLeft={2}>
61        <Text color={FAINT}>{`Worked: ${formatDuration(durationMs)}`}</Text>
62      </Box>
63    )
64  })
65}
66
types/index.d.ts 24 lines
1export type Info = {
2  model: string | null
3  effort: string | null
4  style: string | null
5  percent: number | null
6  fiveHour: number | null
7  weekly: number | null
8}
9
10export type Git = {
11  branch: string | null
12  changed: number
13  added: number
14  deleted: number
15}
16
17export type PullRequest = { number: number; url: string } | null
18
19declare module 'claude-code' {
20  interface PluginState {
21    nebster: { name: string | null; info: Info; git: Git; pr: PullRequest }
22  }
23}
24