/gstack-distilled:review-and-debugfrom gstack-distilled
Provides structured protocols for code review, debugging, and incident response. Covers root-cause investigation, confidence calibration, fix verification, and pre-existing blame protocol.
Ships in gstack-distilled. 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.
None: SKILL.md is the whole skill.
How to review code, hunt bugs, and verify fixes without creating noise or whack-a-mole loops.
Source: gstack review/SKILL.md, investigate/SKILL.md, canary/SKILL.md, CLAUDE.md.
"NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. Fixing symptoms creates whack-a-mole debugging. Every fix that doesn't address root cause makes the next bug harder to find."
Four phases, in order:
3 failed hypotheses → STOP.
"This may be an architectural issue rather than a simple bug."
"Recurring bugs in the same files are an architectural smell, not a coincidence."
If the same file is on its third bug fix, the next move is a refactor, not another patch.
Every finding rated 1-10:
Stop reporting noise as if it equals bugs.
Reviews auto-fix:
Reviews ask on:
Reviews don't report below confidence 7 unless P0.
Before suggesting a pattern, verify it's still current best practice. Don't recommend yesterday's wisdom.
Critical-pass categories first:
Then informational findings.
"'Pre-existing' without receipts is a lazy claim. Prove it or don't say it."
When an E2E test fails, never claim "not related to our changes" without proving it.
Required: run the same test on main.
"Never switch to blocking mode and give up when the poll times out. Never say 'I'll be notified when it completes' and stop checking — keep the loop going until the task finishes or the user tells you to stop."
From canary, but it's the universal observability rule:
A page with 3 baseline errors is fine if it still has 3.
"Don't cry wolf — alert only on patterns persisting across 2+ consecutive checks."
"Baseline is king. Without it, canary is just a health check."
Performance:
Read-only by default. Speed > analysis.
"We are NOT trying to pass as human code. We are AI-coded and proud of it. The goal is code quality."
Distinguish "linter gaming" from "genuine quality":
catch {} is the correct fire-and-forget choice"Don't chase the number. Fix patterns that represent actual code quality problems."
catch {} is correctContradicts every linter default — but:
"If a fire-and-forget operation can fail for ANY reason and you don't care,
catch {}is the correct pattern."
The example: cleanup paths. "A cleanup path that throws on EPERM means the rest of cleanup doesn't run. That's worse."
Don't tighten best-effort cleanup paths.
"Bad work is worse than no work. You will not be penalized for escalating. If you have attempted a task 3 times without success, STOP and escalate."
"NEVER copy a full SKILL.md file into an E2E test fixture. Extract only the section the test actually needs."
"Never
pkillrunning eval processes and restart — you lose results and waste money. One clean run beats three killed-and-restarted runs."
When evaluating a debugging investigation, attach the dollar cost:
"Total cost of the investigation: $7 across three eval runs."
Decisions tied to dollar amounts are more honest than decisions described in vague terms.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub 0xabrar/gstack-distilled --plugin gstack-distilled7 skills in this plugin
/agent-managementWorking with AI coding agents — User Sovereignty, agreement-as-signal, Karpathy/Willison framing, per-model overlays, and the rule to measure your prompt nudges./estimate-and-scopeEstimate work and scope decisions in the AI-coding era. Boil the Lake, AI compression ratios, three-layer search before building./learning-loopCompound knowledge across sessions. Plan-tune dual-track psychographic profile (declared vs behavior), retro philosophy that demotes LOC, the keep-or-toss test for learnings.Other plugins' skills for the same job