analyze-misfires
Identify skills injected where not needed, propose regex and description tightening
Eval all skills with sufficient data, rank by procedure-following score, identify candidates for optimization
> /plugin marketplace add iliaal/whetstone > /plugin install whetstone@iliaal-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/eval-skillsContext preview
What this command does when you run it.
Eval all skills with sufficient data, rank by procedure-following score, identify candidates for optimization
name: eval-skills description: Eval all skills with sufficient data, rank by procedure-following score, identify candidates for optimization argument-hint: "[--min-examples 30] [--top 10]"
Assess historical outputs against each skill's current rubric to identify traces worth investigating. These scores do not measure a skill's effect or compare baseline and candidate behavior. `--skill-file` changes only the retrospective rubric. For a behavioral comparison, use `compare-skill`'s fresh paired executions described in `/evolve-skill`.
MIN_EXAMPLES=30 (minimum harvested examples to include a skill, default: 30) TOP=10 (how many bottom-ranked skills to highlight, default: 10)
Parse from: `$ARGUMENTS`
python3 distillery/scripts/distiller.py harvest-sessions
Capture the JSON output. Extract the `skills` dict to know which skills have data and how many examples each has.
From the harvest output, list skills with `count >= MIN_EXAMPLES`. Exclude `_unattributed`. Sort by example count descending.
Present a table (include the `ambiguous` count — it is the dominant class post-2026-07-07 and the split is meaningless without it):
| Skill | Examples | Positive | Negative | Ambiguous | |--------------------------------|----------|----------|----------|-----------| | ia-code-review | 438 | 0 | 3 | 435 | | ... | | | | |
Read the columns honestly:
The judging runs as **in-session sub-agents** (no billed `claude -p`). For each eligible skill, build a golden set then emit judge tasks.
RECOMMENDED (human-label) build, since harvest data is mostly `ambiguous` and `approve-golden` hard-errors on ungraded labels:
python3 distillery/scripts/distiller.py build-golden <skill> --top 20 # → edit candidates.jsonl labels to positive / negative / skip, then: python3 distillery/scripts/distiller.py approve-golden <skill> python3 distillery/scripts/distiller.py dspy-eval <skill> --dataset golden --max-examples 10 --emit-tasks
Fast path (only when the harvested signal is already well-graded): swap the first two commands for `build-golden <skill> --top 20 --auto`. `--auto` prints a stderr WARNING when >50% of rows are `ambiguous`; if you see it, fall back to the human-label path — an ambiguous-dominated golden set produces meaningless eval scores.
The `--emit-tasks` call returns `{count, tasks:[{index, prompt, ...}]}` with no LLM call. Then:
1. Dispatch one sub-agent (Agent tool, `general-purpose`) per task — each task's `prompt` is the full judge prompt; the sub-agent returns ONLY its judge JSON. Batch ~8 per message. 2. Collect `[{index, signal, session_id, skill_version, response}]` and aggregate: `python3 distillery/scripts/distiller.py dspy-eval <skill> --dataset golden --score-from-verdicts @<file>`.
Cap at 10 examples per skill. **Mind session rate limits:** across all eligible skills this is many sub-agents — pace the batches rather than firing every skill's tasks at once.
Collect all eval results. Present a ranked table sorted by procedure-following score (lowest first). Keep the composite column for continuity with saved history, but do not rank on it:
| Rank | Skill | Composite | Correct | Procedure | Concise | Examples | Neg | Amb | |------|---------------------------|-----------|---------|-----------|---------|----------|-----|-----| | 1 | ia-pinescript | 0.42 | 4.2 | 5.0 | 5.1 | 92 | 4 | 85 | | 2 | ia-receiving-code-review | 0.48 | 5.1 | 5.0 | 4.8 | 56 | 2 | 51 | | 3 | ia-simplifying-code | 0.51 | 5.5 | 5.0 | 5.3 | 69 | 1 | 63 | | ... | | | | | | | | |
The last two columns are absolute COUNTS, not rates. **Neg** = genuine typed user corrections (the tie-breaker — a raw count of 2-4 is meaningful and actionable). **Amb** = examples with no typed outcome (the normal case; not a dissatisfaction signal). Do not compute a "positive rate": with positives near zero and ambiguous dominating, a rate is noise.
Flag the bottom `TOP` skills and recommend action.
**Rank by `procedure_following`, not by composite.** The composite is `0.5*correctness + 0.3*procedure + 0.2*conciseness` (`distiller.py`), and only the procedure axis measures what a skill claims to change. Correctness is mostly a property of the model and the task; conciseness moves with the ambient output style. Fusing the three hides the signal inside two axes the skill does not control, so a skill that improved procedure at a small cost in conciseness looks flat. Report all three axes and rank on procedure.
A Claude Code plugin that makes AI coding agents follow engineering discipline. Plan before coding. Verify before claiming done. Find root cause before patching. Review before merge. Skills activate based on file type and task signals, not manual toggling.
Repo: iliaal/whetstone
Identify skills injected where not needed, propose regex and description tightening
Draft X/Twitter announcement post (or thread) for the latest plugin release
Deep quality audit of all skills, agents, and commands for inconsistencies, gaps, duplication, and token waste
Analyze negative-signal sessions for a skill, identify failure patterns, propose and apply fixes
Propose a skill revision and compare fresh executions under a frozen rubric
Prune stale entries from the whetstone sync decision log