/alfred-testing:fix-it-for-realfrom alfred-testing
Fixes bugs at the system level by reproducing with a failing probe, identifying the general problem, and committing small checked changes. Use for recurring bugs or when asked for proper fixes.
Ships in alfred-testing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This works for any codebase: apps, services, tools and games. The examples mix them, because symptoms are easy to see and easy to patch badly everywhere; the method is the same.
Before you start, find the project's own rules: the agent instructions file (CLAUDE.md, AGENTS.md, .cursorrules or similar), the contributing guide, the architecture doc, the linter and formatter config, and any rules-check script. Where this skill names a file such as "the architecture doc", use the project's equivalent.
Sometimes the user wants the code finished with no time spent on side runs. When they say so, until they say otherwise:
node --check, tsc --noEmit, python -m py_compile, a C# or C++ build) and the project's rules-check script. A file that doesn't load is never left in the tree.Make every edit in the project's own files, the ones that run. No working copy in a scratch folder to edit and copy back, and no "after" tree built beside it. A scratch copy is allowed only to run a probe's before-run against the untouched code at HEAD (read only, deleted after). Keep the tree working while you edit: make each edit whole, run its load or compile check at once, and land it. A file that doesn't load is never left in the tree.
A bug seen on screen (a list that jumps when new items load, a character walking through a wall, a button that does nothing the first time) is a symptom. Before any code:
No fix lands without its probe. If you patch the same area twice, the first fix was a hack: stop and redesign.
Every change, even a one-line fix, passes this gate first. A fix that places, times or decides something by hand is a sign you are rebuilding a solved problem.
Every change follows these. A plan that breaks one isn't approved.
bug-trap.--no-verify)..gitignore.If several agent sessions commit to the same branch from the same folder, the shared git index is a trap. Never git add and leave files staged: another session's commit will take them. Commit only your own changes, in one step.
A path commit takes the whole file. If git diff <file> shows lines that aren't yours (another session is editing it too), commit your hunks from a private index, so nobody else's staged or unstaged work rides along:
git diff HEAD -- <file> > "$TMPDIR/mine.patch" # trim it to your hunks
export GIT_INDEX_FILE=$(mktemp -u); git read-tree HEAD
git apply --cached "$TMPDIR/mine.patch" && git commit -m "..."; unset GIT_INDEX_FILE
git reset -q -- <your paths> # refresh the shared index to the new HEAD for those paths only
read-tree HEAD right before apply, in the same command, never earlier. An index read before another session's commit landed will put the old code back in their files.git diff HEAD -- <file> at that moment.git show --stat HEAD. Every file listed must be one you meant to change, with your line counts.git commit --only -m "..." -- <paths> (new files: git add <paths> && git commit --only -m "..." -- <paths> in the same command). Never a bare git commit in a shared folder.git push. If it is rejected because another session just pushed: git pull --rebase -q && git push.If only one session works in the folder, normal small commits are fine. Using one git worktree per session avoids the problem altogether.
The bar is a shippable product. Nothing debug reaches the user or the log: no debug panels, test pickers, key-help strips, internal names, stray print traces or frame probes in committed code. Keep test aids behind an explicit flag (for example --probe) that is off in normal use. The user sees the product and the choices that matter; the product makes the rest of the calls. Read the log of every run you do, and fix any recurring error or warning instead of ignoring it.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/bug-trapWrite and fix tests that catch real bugs, by testing behaviour, faking only the device boundary and seeding data the way the product writes it. Use when a bug needs a test that fails first, or a unit test is failing or flaky, or when the user says "add a test for this bug", "fix this failing test" or "why is this test flaky". For the bar every test is held to, use test-like-a-user./click-everythingTest your app one module at a time by looking at it like a user does. Your agent lists every route from the router, screenshots every route and state, clicks the buttons, makes the app produce real output and reads it, fixes what doesn't make sense, adds replayable end-to-end tests, and reports. Use when you say "test every page", "/click-everything", "sweep the app", "visually test this module", or when there is no other work queued./dont-break-itYour agent changes code in small, additive, checked commits that never skip hooks and never block on long jobs. Use before editing code, running checks, committing or pushing in any repo, or when you say "change code safely", "commit this properly", "small commits" or "follow the engineering rules"./test-like-a-userHold every test to one bar, real integration tests that walk the whole user journey and prove the intended end state, with fakes only at boundaries you can't control. Use when writing, fixing, reviewing or auditing tests, or when the user says "write a test", "add tests for this", "are these tests any good", "test this properly", "audit the tests" or "review this test".npx claudepluginhub wednesday-solutions/alfred --plugin alfred-testingOther plugins' skills for the same job