analyze-misfires
Identify skills injected where not needed, propose regex and description tightening
Deep quality audit of all skills, agents, and commands for inconsistencies, gaps, duplication, and token waste
> /plugin marketplace add iliaal/whetstone > /plugin install whetstone@iliaal-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/audit-pluginContext preview
What this command does when you run it.
Deep quality audit of all skills, agents, and commands for inconsistencies, gaps, duplication, and token waste
name: audit-plugin description: Deep quality audit of all skills, agents, and commands for inconsistencies, gaps, duplication, and token waste argument-hint: "[optional: specific skill/agent/command name or category to focus on]"
Deep analysis of all skills, agents, and commands in the whetstone plugin. Surfaces quality issues that degrade skill effectiveness, waste tokens, or confuse the model.
PLUGIN_DIR=plugins/whetstone SYNC_LOG=docs/audit/audit-log.md
If `$ARGUMENTS` specifies a name or category, narrow to that. Otherwise audit everything. Normalize component names to the `ia-` prefix before using them as `--skill`/`--component` filters (e.g. `debugging` → `ia-debugging`). Exit code 2 from those commands means the filter matched nothing — almost always a missing prefix — not a validation failure; re-run with the prefixed name.
**Reactive mode:** If invoked after a skill/agent failed during use, detect the failing component from conversation context and focus the audit on that component first.
Read `$SYNC_LOG` in full before any checks run. Build an in-memory set of already-evaluated findings keyed by `(component, issue-signature)` across every run entry. Use it as a filter during Phase 3 presentation:
While reading, also detect prune triggers and emit a one-line reminder at the end of Phase 3 if any fire:
Reminder format: "Sync log has N prune candidates — run `/prune-sync-log`."
If `$SYNC_LOG` doesn't exist, note it and continue — the post-apply step in Phase 5b creates it.
Run the full deterministic validation pass first. This replaces manual inventory, validation gates, anti-pattern detection, structural checks, and reference validation with a single script:
python3 distillery/scripts/distiller.py validate-plugin python3 distillery/scripts/distiller.py test-triggers python3 distillery/scripts/distiller.py budget --check-all # advisory
`validate-plugin` checks every skill, agent, and command for:
The output is a structured JSON report with inventory counts and per-component findings sorted by severity. Include all findings in the Phase 3 presentation alongside AI-generated findings.
`test-triggers` runs the regex regression suite. Include any failing skills as HIGH severity.
`budget --check-all` compares each skill's recorded turn-count/tool-variety baseline against current aggregates and surfaces silent skill bloat. Advisory only — do not block on it, but include any flagged skills as MEDIUM findings in the Phase 3 table (it currently surfaces real findings).
Score each component against these 10 weighted dimensions. Use the weights to prioritize findings -- issues in high-weight dimensions get higher severity.
| Dimension | Weight | What to measure | |-----------|--------|-----------------| | **Triggering accuracy** | 25% | Does the description cause correct activation? Check for missing synonyms, false-positive triggers, description/content mismatch | | **Orchestration fitness** | 20% | Does the component compose well with others? Check cross-references, handoff clarity, scope boundaries | | **Output quality** | 15% | Does the component define what it produces? Check for output format specs, templates, success criteria | | **Scope calibration** | 12% | Does the component stay in its lane? Check for scope creep, overlap with adjacent components | | **Progressive disclosure** | 10% | Does it load only what's needed? Check body size, references/ split, conditional sections | | **Token efficiency** | 6% | Does it waste tokens? Check for "Claude already knows this" content, redundancy, verbose examples | | **Robustness** | 5% | Does it handle edge cases? Check for missing error paths, ambiguous instructions | | **Structural completeness** | 3% | Frontmatter correct? Required sections present? References linked? | | **Code template quality** | 2% | Do bundled scripts work? Are they referenced correctly? | | **Ecosystem coherence** | 2% | Consistent naming, tone, terminology with the rest of the plugin? |
Note: Many structural completeness checks (frontmatter, references) are already covered by Phase 1's `validate-plugin`. Focus PluginEval scoring on the qualitative dimensions that need AI judgment.
Run these checks against every file. Use parallel subagents (model: sonnet) grouped by category to keep context manageable.
These checks require AI judgment. Inert frontmatter and body size are already covered by `validate-plugin`.
| Check | Signal | |-------|--------| | "Claude already knows this" | Content explai
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
Analyze negative-signal sessions for a skill, identify failure patterns, propose and apply fixes
Eval all skills with sufficient data, rank by procedure-following score, identify candidates for optimization
Propose a skill revision and compare fresh executions under a frozen rubric
Prune stale entries from the whetstone sync decision log