analyze-misfires
Identify skills injected where not needed, propose regex and description tightening
Run pre-PR verification chain -- build, types, lint, tests, security scan, diff review
> /plugin marketplace add iliaal/whetstone > /plugin install whetstone@iliaal-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/ia-verifyContext preview
What this command does when you run it.
Run pre-PR verification chain -- build, types, lint, tests, security scan, diff review
name: ia-verify description: Run pre-PR verification chain -- build, types, lint, tests, security scan, diff review argument-hint: "[mode: quick|full|pre-commit|pre-pr]"
Run a structured verification pipeline and produce a single READY / NOT READY report.
**Boundary vs `/ia-review`:** `/ia-verify` is the pre-PR static gate (pass/fail on build/types/lint/tests/security). `/ia-review` is the multi-agent code review with findings synthesis. Use `/ia-verify` first to confirm shippable; use `/ia-review` for design-level assessment.
`$ARGUMENTS` -- defaults to `full` if omitted.
| Mode | What runs | |------|-----------| | `quick` | Build + type check only | | `full` | Build + types + lint + tests | | `pre-commit` | Build + types + lint + tests + console.log audit | | `pre-pr` | Project-declared gates + build + types + lint + tests + console.log audit + security scan + performance + accessibility + infrastructure + documentation + diff review |
Project-declared gates (phase 0) also run before any push, regardless of mode.
Resolve one verification scope before classifying or scanning changes:
1. In `pre-pr` mode, resolve the PR base (`gh pr view --json baseRefName -q .baseRefName`) or the repository's verified default branch, and freeze the current HEAD SHA. Resolve the merge-base against the available base ref, then use `git diff --no-textconv --no-ext-diff <merge-base-sha> <head-sha>` for content and its `--name-only` form for file lists in every diff-based phase below (metadata-only forms such as `--name-only` and `--stat` render no content and need no such flags). If the base cannot be resolved, report NOT READY with that missing input; do not silently substitute an empty working-tree diff. For a dirty checkout, either verify the committed head in isolation or explicitly include and identify local changes; do not claim tests of a different tree verify the frozen PR head. 2. In `pre-commit` mode, use the staged diff (`git diff --no-textconv --no-ext-diff --cached`) and state that scope. In `quick`/`full` mode, use the caller's selected scope, defaulting to tracked staged and unstaged changes (`git diff --no-textconv --no-ext-diff HEAD`) plus explicitly enumerated untracked files. Record the selected scope and tested tree in the report. An empty selected diff is not evidence that a feature branch is unchanged. 3. Classify the selected files:
4. Apply phase filters (pre-pr mode only):
Log which phases were skipped and why in the report.
Run each phase in order. Stop on the first failure unless the mode skips that phase.
Run the project-declared gates check from the `ia-verification-before-completion` skill's Gate Function. Stop and report NOT READY if any gate is unmet, naming it.
Detect and run the project's build command:
Record: pass/fail + error output.
Record: pass/fail + error count.
Detect and run the project's linter:
Compare warning counts against the same explicit base SHA in an isolated checkout when useful. Stashing does not change a committed branch to its base and is not a baseline comparison. Report a skipped baseline comparison directly. Flag net-new warnings even if the overall run passes.
Record: pass/fail + warning/error counts + new warnings introduced (if measurable).
Run the project's test suite:
Record: pass/fail + test count + coverage if available.
Search staged or changed files for debug statements that shouldn't ship:
Report: file:line for each occurrence. These are warnings, not blockers.
**6a. Dependency audit** -- run the project's dependency auditor:
Flag critical/high vulnerabilities as blockers. Moderate/low are warnings.
**6b. Secrets in diff** -- search changed files for:
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
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