triage
Smart triage of Agent Teams Review findings into three action groups (Fix Now / Fix Later / Skip) with intelligent grouping and severity verification. Use when the user wants to triage, prioritize, or sort review findings after a code review. Also use when the user asks what to fix first, wants an action plan from a review, or mentions triage, prioritize findings, review priorities, or sort review results. Requires a completed review report from agent-teams-review.
What this skill does
# Triage — Smart Review Finding Prioritization
Analyze a completed Agent Teams Review report and divide all findings into three actionable groups. The triage produces a prioritized, grouped output that tells the developer exactly what to fix now, what to schedule for later, and what to skip entirely.
## Core Principle: Verify, Don't Trust
Reviewers assign severity based on their domain perspective. A Security Sentinel may flag a missing rate limit as Critical on an internal admin endpoint behind VPN — that's not actually Critical. A Quality Purist may mark a naming issue as Medium when it's a 30-second rename you should just do now.
Triage is the final decision-maker. Evaluate every finding by its **real-world impact on the running application**, not by its severity label.
## Workflow
### Step 1: Load the Review Report
If `$ARGUMENTS` contains a file path, read that report directly.
If no argument is provided, find the most recent review report:
```bash
ls -t docs/reviews/*.md | head -1
```
If no reports exist, inform the user and exit.
Read the full report. Extract all findings from the **Action Items** and **Findings** sections. Also read the **Won't Implement** section if it exists — those items are already triaged and should be excluded from analysis.
### Step 2: Collect Context
To make informed triage decisions, gather additional context:
1. **PR intent** — read the git log to understand what the PR was trying to accomplish:
```bash
git log --oneline main...HEAD | head -20
```
2. **Changed files** — know which files were actually modified in this PR:
```bash
git diff main...HEAD --name-only
```
This context matters because findings in changed code deserve more attention than findings in adjacent code the PR didn't touch.
### Step 3: Assess Each Finding
Reports from `agent-teams-review` v1.8+ tag each finding with `Severity · Confidence · Effort` (e.g. `High · Medium · ~30min`). Use those markers instead of re-deriving them:
- **Effort** — read it directly; do not re-estimate from scratch (verify it only if it looks obviously wrong for the described fix).
- **Confidence** — a `Low` confidence finding is the reviewer telling you it might be a false positive. Lean it toward Skip or "verify first" unless its real impact would be severe. Do not let a Low-confidence finding sit in Fix Now without a reason.
- Older reports without markers: estimate effort and treat confidence as Medium.
Note the **Scope** line in the report header. A **Quick** report contains only Critical/High (Medium/Low were suppressed) — triage is usually thin. A **Full** report includes an **Impact Analysis** section with ripple-risk findings about code outside the diff; weigh those with the Location dimension (they are "distant" by definition but may be exactly why the PR is dangerous).
For every active finding (not in Won't Implement), evaluate it across seven dimensions. Read [references/assessment-guide.md](references/assessment-guide.md) for detailed criteria and examples.
The seven dimensions:
| # | Dimension | Question to answer |
|---|-----------|-------------------|
| 1 | **Real impact** | What actually breaks if we ignore this? Not the label — the consequence. |
| 2 | **Blast radius** | How many users/flows does this affect? Hot path or edge case? |
| 3 | **Effort** | Is this a 2-minute fix or a 2-hour refactor? |
| 4 | **Location** | Is this in code the PR changed, or in adjacent/pre-existing code? |
| 5 | **Regression risk** | Could fixing this break something else? |
| 6 | **Dependencies** | Does this finding block or unlock other findings? |
| 7 | **Nature** | Security/data-integrity vs performance vs code-quality vs stylistic? |
No single dimension is an automatic classifier. A Critical-labeled finding can land in Skip if the real impact is negligible. A Low-labeled finding can land in Fix Now if it's a 30-second fix in a file you're already touching.
### Step 4: Classify Into Three Groups
Based on the seven-dimension assessment, place each finding into one of three groups:
**Fix Now** — fix in this PR, before merge:
- Findings where ignoring them risks real harm (security holes, data corruption, user-facing bugs)
- Quick wins: anything that takes under 5 minutes, regardless of original severity — the cost of deferring exceeds the cost of fixing
- Findings in files you're already changing where the fix is straightforward
- Findings that block other Fix Now items
**Fix Later** — schedule for next sprint:
- Findings that need significant refactoring with high regression risk if rushed
- Performance issues that aren't user-visible at current scale
- Code quality improvements that need design thought before implementing
- Findings in code the PR didn't touch (adjacent/pre-existing issues)
- Findings correctly identified but too risky to squeeze into current PR scope
**Skip** — intentionally exclude:
- Findings where the reviewer's assessment doesn't match reality (overblown severity)
- Purely stylistic preferences with no functional impact
- Theoretical edge cases with negligible real-world probability
- Pre-existing issues not worsened by the PR that aren't worth the churn
- Findings where the "fix" would introduce more complexity than the problem itself
### Step 5: Apply Smart Grouping
After classification, group related findings within each category into logical work packages. This is where triage adds real value — instead of a flat list of 15 items, the developer gets 5-6 coherent tasks.
Apply these five grouping strategies (detailed rules in [references/assessment-guide.md](references/assessment-guide.md)):
1. **Proximity** — findings in the same file within ~30 lines become one task. If one is Fix Now and another would be Fix Later, pull the second into Fix Now with a note ("fix together, same location").
2. **Domain** — findings addressing the same concern across multiple files (e.g., three input validation issues in different controllers) become one task ("Input Validation Pass").
3. **Pattern** — identical fix type repeated in multiple places (e.g., "add strict_types" in 4 files) become one task with a checklist.
4. **Dependency** — when fixing A makes B trivial or B depends on A, chain them together with a suggested order.
5. **Effort bundling** — multiple quick fixes in one file become a single "cleanup" task rather than separate items.
After grouping, number the groups sequentially across all three categories for easy reference.
### Step 6: Output the Triage
Present the triage result to the user using the format below. Display directly.
```markdown
## Triage
> Based on: `{report-path}`
> PR: {branch-name} | {total-findings} findings analyzed | {won't-implement-count} previously triaged
### Fix Now ({group-count} groups, {finding-count} findings, ~{effort-estimate})
**1. {Group Name}** _({N} findings{, grouping-reason})_
- `[XX-NNN]` **Title** — `file:line` — {original-severity} in review{, reclassification-note}
- `[XX-NNN]` **Title** — `file:line` — {original-severity} in review
> {Why fix now. If grouped: why together. If reclassified: why the original severity was wrong.}
**2. {Group Name}** _({N} findings)_
- `[XX-NNN]` **Title** — `file:line` — {original-severity} in review
> {Why fix now.}
### Fix Later ({group-count} groups, {finding-count} findings)
**3. {Group Name}** _({N} findings{, grouping-reason})_
- `[XX-NNN]` **Title** — `file:line` — {original-severity} in review
- `[XX-NNN]` **Title** — `file:line` — {original-severity} in review
> {Why defer. What to consider when implementing later.}
### Skip ({finding-count} findings)
- `[XX-NNN]` **Title** — `file:line` _(Reviewer)_ — {reason for skipping}
- `[XX-NNN]` **Title** — `file:line` _(Reviewer)_ — {reason for skipping}
```
#### Output rules
- Every finding from the original report must appear in exactly one group — nothing gets lost.
- Each group in Fix Now and Fix Later has a descriptive name and a `>` blockquote explainingRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.