analyze-misfires
Identify skills injected where not needed, propose regex and description tightening
Triage all open PRs with parallel agents, label, group, and review one-by-one
> /plugin marketplace add iliaal/whetstone > /plugin install whetstone@iliaal-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
/triage-prsContext preview
What this command does when you run it.
Triage all open PRs with parallel agents, label, group, and review one-by-one
name: triage-prs description: Triage all open PRs with parallel agents, label, group, and review one-by-one argument-hint: "[optional: repo owner/name or GitHub PRs URL]" disable-model-invocation: true allowed-tools: Bash(gh *), Bash(git log *)
Review, label, and act on all open PRs for a repository using parallel review agents. Produces a grouped triage report, applies labels, cross-references with issues, and walks through each PR for merge/comment decisions.
Detect repo context:
If `$ARGUMENTS` contains a GitHub URL or `owner/repo`, use that instead. Confirm the repo with the user if ambiguous.
Run these in parallel:
1. **List all open PRs:**
gh pr list --repo OWNER/REPO --state open --limit 50
2. **List all open issues:**
gh issue list --repo OWNER/REPO --state open --limit 50
3. **List existing labels:**
gh label list --repo OWNER/REPO --limit 50
4. **Check recent merges** (to detect duplicate/superseded PRs). Resolve the default branch first — do not assume `main`:
DEFAULT_BRANCH=$(gh repo view --repo OWNER/REPO --json defaultBranchRef -q .defaultBranchRef.name)
Only when the current working directory is a local clone of OWNER/REPO, read from local git:
git log --oneline -20 "$DEFAULT_BRANCH"
Otherwise (cwd is not that clone), pull recent commits from the API instead:
gh api "repos/OWNER/REPO/commits?per_page=20" --jq '.[].commit.message | split("\n")[0]'Group PRs into review batches of 4-6 based on apparent type:
Spawn one review agent per batch using the Task tool. Each agent should:
For each PR in their batch: 1. Run `gh pr view --repo OWNER/REPO <number> --json title,body,files,additions,deletions,author,createdAt` 2. Run `gh pr diff --repo OWNER/REPO <number>` (pipe to `head -200` for large diffs) 3. Determine:
Instruct each agent to:
After all agents report, match issues to PRs:
Build a mapping table:
| Issue | PR | Relationship | |-------|-----|--------------| | #158 | #159 | PR fixes issue |
Group all issues into themes (3-6 themes):
Present a single report with:
1. **Summary stats:** X open PRs, Y open issues, Z themes 2. **PR groups** with recommended actions:
3. **Issue-to-PR mapping** 4. **Themes across issues** 5. **Suggested cleanup:** spam issues, duplicates, stale items
After presenting the report, ask user:
> "Apply these labels to all PRs on GitHub?"
If yes, run `gh pr edit --repo OWNER/REPO <number> --add-label "<label>"` for each PR.
Use **AskUserQuestion** to ask:
> "Ready to walk through PRs one-by-one for merge/comment decisions?"
Then for each PR, ordered by priority (bug fixes first, then docs, then features, then stale):
### PR #<number> - <title> Author: <author> | Files: <count> | +<additions>/-<deletions> | <age> Label: <label> <1-2 sentence description> Fixes: <linked issues if any> Related: <related PRs if any>
Show the diff (trimmed to key changes if large).
Use **AskUserQuestion**:
After all PRs are reviewed:
1. **Close resolved issues** that were fixed by merged PRs 2. **Close spam/off-topic issues** (confirm with user first) 3. **Summary of actions taken:**
## Triage Complete Merged: X PRs Commented: Y PRs Closed: Z PRs Skipped: W PRs Issues closed: A Labels applied: B
Use **AskUserQuestion**:
1. **Run `/ia-document-release`** - Sync docs to what shipped if co
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