SLOPSHOPPER

walk-with-me

Band above the prompt showing the walk-with-me mode, with buttons for its commands.

bandguardprompttool
A shopper browsing a rack in a slop shop
README

Agent Skills

Skills and mods for Claude-Code.

Install

curl -fsSL shalom2552.github.io/agent-skills/install | bash

Or clone and run ./install. See ./install --help for options.

Skills

SkillDescription
docs-syncFind and fix drift between docs and code.
dotconfAnswer, change, and remember dotfile and app configs.
read-onlyLock the session to read-only; change nothing.
setup-sh25-skillsInstall, manage and wire up shalom2552's agent-skills assets.
system-auditRead-only health, security and cleanliness audit of this machine.
system-fixDiagnose, fix, and document a system or config fault on this machine.
to-promptWrite a handoff prompt for a fresh agent.
visualizeTurn any subject into a visual HTML page.
walk-with-meLearn languages and idioms by coding with a coach.

Mods

Claude Code plugins.

/plugin install <mod> --marketplace shalom2552/agent-skills
ModDescription
spinner-wordsSwap the spinner verbs for dev ones.
tape/tape pane of tool calls per turn.
frameRounded frame around your prompts.
beatTurn time and usage as pills.
statuslineBottom status line for claude.
badgesBadge above the prompt for active skill.
tdiffLive diff of session changes.

Settings

Small JSON files that ./install merges into the scope's settings.json.

./install settings --scope global -y
SettingDescription
tmux-truecolorTruecolor inside tmux, so mod hex colors render right.
Source 2 files
hooks/register.tsx 112 lines
1import { atom, read, update } from 'claude-code'
2import type { EngineInterface, Register } from 'claude-code'
3
4import type { Mode } from '../types'
5
6export const TOOL = 'mcp__walk-with-me__mode'
7
8const SESSIONS = 'sessions'
9const MAX_SESSIONS = 20
10
11const mode = atom({ plugin: 'walk-with-me', key: 'mode' } as const, 'off' as Mode)
12
13const savedOf = (raw: unknown): Record<string, unknown> =>
14  typeof raw === 'object' && raw !== null && !Array.isArray(raw) ? { ...(raw as Record<string, unknown>) } : {}
15
16const save = async ($: EngineInterface, next: Mode) => {
17  const id = await $.session.id()
18  const saved = savedOf(await $.store.get(SESSIONS))
19  delete saved[id]
20  const kept = Object.entries(saved).slice(1 - MAX_SESSIONS)
21  await $.store.set(SESSIONS, Object.fromEntries(next === 'off' ? kept : [...kept, [id, next]]))
22}
23
24const restore = async ($: EngineInterface) => {
25  const saved = savedOf(await $.store.get(SESSIONS))[await $.session.id()]
26  if (saved === 'intake' || saved === 'coach' || saved === 'interview') await update($, mode, () => saved)
27}
28
29const set = async ($: EngineInterface, next: Mode) => {
30  await update($, mode, () => next)
31  await save($, next).catch(() => undefined)
32}
33
34const COMMANDS: Record<'coach' | 'interview', string[]> = {
35  coach: ['check', 'show', 'more', 'pause', 'done'],
36  interview: ['run', 'submit', 'hint', 'pause', 'give up'],
37}
38
39const ENDS = ['pause', 'done']
40
41export const register: Register = on => {
42  on('session.start', async ($, e, next) => {
43    await $.tool.register({
44      name: 'mode',
45      description:
46        'Set the /walk-with-me band. "coach" or "interview" once intake picks the mode; "off" when the session pauses or its summary is written.',
47      inputSchema: {
48        type: 'object',
49        properties: { mode: { type: 'string', enum: ['coach', 'interview', 'off'] } },
50        required: ['mode'],
51      },
52    })
53    await restore($).catch(() => undefined)
54
55    return next(e)
56  })
57
58  on('session.end', async ($, e, next) => {
59    if (e.reason === 'clear' || e.reason === 'resume') await update($, mode, () => 'off')
60
61    return next(e)
62  })
63
64  on('skill.prompt', { skill: 'walk-with-me' }, async ($, e, next) => {
65    await set($, 'intake')
66
67    return next(e)
68  })
69
70  on('tool.call', { tool: TOOL }, async ($, e) => {
71    const asked = (e as { mode?: unknown }).mode
72    if (asked !== 'coach' && asked !== 'interview' && asked !== 'off') {
73      return { result: 'mode must be "coach", "interview" or "off".' }
74    }
75    await set($, asked)
76
77    return { result: asked === 'off' ? 'Band off.' : `Band: ${asked}.` }
78  })
79
80  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
81    const current = await read($, mode)
82    if (current === 'off' || e.props.hasSurvey) return next(e)
83
84    const { Box, Button, Text } = $.ui.resolve(e)
85    const rest = await next(e)
86
87    return (
88      <Box flexDirection="column">
89        <Box gap={1}>
90          <Text bold inverse color="success">
91            {current === 'intake' ? ' WALK ' : ` WALK · ${current.toUpperCase()} `}
92          </Text>
93          {!e.props.isWorking &&
94            current !== 'intake' &&
95            COMMANDS[current].map((cmd, i) => (
96              <Button
97                variant={i === 0 ? 'primary' : undefined}
98                key={cmd}
99                label={cmd[0].toUpperCase() + cmd.slice(1)}
100                onPress={async () => {
101                  if (ENDS.includes(cmd)) await set($, 'off')
102                  void $.prompt.submit({ text: cmd, asUser: true })
103                }}
104              />
105            ))}
106        </Box>
107        {rest}
108      </Box>
109    )
110  })
111}
112
types/index.d.ts 8 lines
1export type Mode = 'off' | 'intake' | 'coach' | 'interview'
2
3declare module 'claude-code' {
4  interface PluginState {
5    'walk-with-me': { mode: Mode }
6  }
7}
8