/crucible:grudgefrom crucible
Cross-session bug tracking that records fixed bugs as 'grudges' per file. Queries past regressions before modifying code to prevent repeat bugs. Machine-local, per-repo, never committed.
Ships in crucible. 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.
Named for the dwarven Dammaz Kron: every wrong is written down and never forgotten until it is settled. A fixed bug becomes a grudge the toolchain holds against the files that caused it — and refuses to let happen again.
Stock Claude Code has no memory across sessions, so the same class of bug re-ships. The grudgebook closes the loop: write-on-resolution + read-on-preflight.
The grudgebook is machine-local and per-repo, NEVER inside a git tree:
$CRUCIBLE_GRUDGE_DIR (or ~/.claude/crucible/grudge)
/<repo>/grudges/<hash>.md
Grudges carry private file paths + repro detail and crucible is PUBLIC, so the
live store must stay outside any repo (mirrors the calibration ledger central
store, PR #326). scripts/grudge_append.py refuses to write into the current
repo's tree. The committed .crucible/grudge/grudges/*.md are synthetic
fixtures only. Isolation is by repo_root (git toplevel realpath), so two
checkouts that share a basename never bleed into each other.
A gating skill runs with an arbitrary cwd, so locate the scripts by absolute path
from the plugin root (same convention as shared/ledger-append.md):
# plugin layout is invariant: <plugin_root>/skills/<name>/ and <plugin_root>/scripts/
plugin_root="$(realpath "<this-skill-base-dir>/../..")"
query="$plugin_root/scripts/grudge_query.py"
append="$plugin_root/scripts/grudge_append.py"
# If unresolved: emit a one-line stderr warning and SKIP. The grudgebook is
# advisory; a missing query/record must NEVER block or fail the host skill.
Before writing/reviewing code, pass the in-scope files (absolute, ./-prefixed,
or repo-relative — all normalized) to the query helper and inject any output into
your working context as a hard constraint:
python3 "$query" path/to/file1 path/to/file2 [--with-signatures] [--limit N]
--with-signatures when you already have file
contents in hand (it greps anti_pattern_signature regexes against file bodies).☠ line as
DO NOT REPEAT — do not re-introduce that bug.--stats (how many grudges held / recently written — spot
starvation) and --cull (strike settled grudges whose files are all gone).grudge: scanned=… matched=… skipped_stale=… always prints so a
silent/empty grudgebook is visible.When a bug is confirmed fixed, record it (best-effort; a failed record logs to stderr and never fails the host skill):
python3 "$append" \
--symptom "one-line observable failure" \
--root-cause "one-line underlying cause" \
--files "src/a.py,src/b.py" \
--signature "optional regex or literal snippet that fingerprints the bug" \
--commit "<fixing sha>" \
--repro "minimal repro steps" \
--why "why this kept happening"
---
schema: 1
hash: <sha256(repo_root|sorted-normalized(files_touched)|discriminator)[:12]>
repo: "<basename>" # cosmetic dir name
repo_root: "<abs realpath>" # isolation key; reads filter on this
fixed_in_commit: "<sha>" # recorded, NOT part of the key
symptom: "<one-line>" # dedupe discriminator when no signature
root_cause: "<one-line>"
files_touched: ["repo/rel/path", ...]
anti_pattern_signature: "<regex or literal snippet>" # optional
date_fixed: "YYYY-MM-DD"
---
## Repro
<steps>
## Why this kept happening
<expanded root cause>
Every free-text value is JSON-encoded (#602):
a field containing a newline, a bare --- line, or key: value lines must not
be able to smuggle forged keys or an early terminator into the frontmatter.
(schema and hash are emitted bare — a constant int and a hex digest that
cannot carry a newline.) The reader (grudge_query.parse_grudge) also rejects
unknown keys and duplicates — never trust a line the writer cannot emit.
Dedupe: key excludes fixed_in_commit (one bug can be fixed in many commits);
discriminator = anti_pattern_signature when non-empty else symptom. Same key →
overwrite (last write wins). A grudge with neither files nor a discriminator is
rejected.
build (Phase 2, post-design/pre-implementation),
quality-gate (round-1 dispatch), debugging (opening phase).debugging (resolution phase), merge-pr (on fix(*) PRs).No semantic search (glob + regex only); no cross-user shared grudgebook
(sanitized community grudges — v1.1 candidate); no settings.json hook.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (raddue/crucible) — no native marketplace selected
npx claudepluginhub p/raddue-crucible51 skills in this plugin
/adrWrite, supersede, and maintain Architecture Decision Records (docs/decisions/) for technical choices that had real, seriously-considered alternatives and would be costly to reverse. Use on "write an ADR", "record this decision", or when recording a choice that a design or PR already settled. Matches the target repo's existing ADR convention before imposing one, and declines with a reason when a decision does not meet the bar — not for routine design docs, implementation plans, session handoffs, the pre-push/merge wrap-up itself (that belongs to `finish` / `merge-pr`), or answering "why did we choose X" from an ADR that already exists (that's a read, owned by `recall` / `recon`)./adversarial-testerUse after completing an implementation to find unknown failure modes. Reads the implementation diff and writes up to 5 tests designed to make it break — per-task, scoped to that single implementation (for a fully-assembled multi-component feature, use inquisitor to hunt cross-component bugs). Triggers on 'break it', 'adversarial test', 'stress test implementation', 'find weaknesses', or any task seeking to expose unknown failure modes in a single implementation./assayRecon-informed approach evaluator. Weighs competing options against codebase constraints and returns structured recommendations with confidence scoring, kill criteria, and evidence grounding. Consumes recon briefs or caller context. Used by design, spec, migrate. Triggers on /assay, 'evaluate approaches', 'which option', 'compare alternatives'.Other plugins' skills for the same job