Agent skill
triage
Triage and categorize findings for the CLI todo system
Install this agent skill to your Project
npx add-skill https://github.com/ratacat/claude-skills/tree/main/skills/triage
SKILL.md
Arguments
[findings list or source type]
- First set the /model to Haiku
- Then read all pending todos in the todos/ directory
Present all findings, decisions, or issues here one by one for triage. The goal is to go through each item and decide whether to add it to the CLI todo system.
IMPORTANT: DO NOT CODE ANYTHING DURING TRIAGE!
This command is for:
- Triaging code review findings
- Processing security audit results
- Reviewing performance analysis
- Handling any other categorized findings that need tracking
Workflow
Step 1: Present Each Finding
For each finding, present in this format:
---
Issue #X: [Brief Title]
Severity: π΄ P1 (CRITICAL) / π‘ P2 (IMPORTANT) / π΅ P3 (NICE-TO-HAVE)
Category: [Security/Performance/Architecture/Bug/Feature/etc.]
Description:
[Detailed explanation of the issue or improvement]
Location: [file_path:line_number]
Problem Scenario:
[Step by step what's wrong or could happen]
Proposed Solution:
[How to fix it]
Estimated Effort: [Small (< 2 hours) / Medium (2-8 hours) / Large (> 8 hours)]
---
Do you want to add this to the todo list?
1. yes - create todo file
2. next - skip this item
3. custom - modify before creating
Step 2: Handle User Decision
When user says "yes":
-
Update existing todo file (if it exists) or Create new filename:
If todo already exists (from code review):
- Rename file from
{id}-pending-{priority}-{desc}.mdβ{id}-ready-{priority}-{desc}.md - Update YAML frontmatter:
status: pendingβstatus: ready - Keep issue_id, priority, and description unchanged
If creating new todo:
{next_id}-ready-{priority}-{brief-description}.mdPriority mapping:
- π΄ P1 (CRITICAL) β
p1 - π‘ P2 (IMPORTANT) β
p2 - π΅ P3 (NICE-TO-HAVE) β
p3
Example:
042-ready-p1-transaction-boundaries.md - Rename file from
-
Update YAML frontmatter:
yaml--- status: ready # IMPORTANT: Change from "pending" to "ready" priority: p1 # or p2, p3 based on severity issue_id: "042" tags: [category, relevant-tags] dependencies: [] --- -
Populate or update the file:
yaml# [Issue Title] ## Problem Statement [Description from finding] ## Findings - [Key discoveries] - Location: [file_path:line_number] - [Scenario details] ## Proposed Solutions ### Option 1: [Primary solution] - **Pros**: [Benefits] - **Cons**: [Drawbacks if any] - **Effort**: [Small/Medium/Large] - **Risk**: [Low/Medium/High] ## Recommended Action [Filled during triage - specific action plan] ## Technical Details - **Affected Files**: [List files] - **Related Components**: [Components affected] - **Database Changes**: [Yes/No - describe if yes] ## Resources - Original finding: [Source of this issue] - Related issues: [If any] ## Acceptance Criteria - [ ] [Specific success criteria] - [ ] Tests pass - [ ] Code reviewed ## Work Log ### {date} - Approved for Work **By:** Claude Triage System **Actions:** - Issue approved during triage session - Status changed from pending β ready - Ready to be picked up and worked on **Learnings:** - [Context and insights] ## Notes Source: Triage session on {date} -
Confirm approval: "β Approved:
{new_filename}(Issue #{issue_id}) - Status: ready β Ready to work on"
When user says "next":
- Delete the todo file - Remove it from todos/ directory since it's not relevant
- Skip to the next item
- Track skipped items for summary
When user says "custom":
- Ask what to modify (priority, description, details)
- Update the information
- Present revised version
- Ask again: yes/next/custom
Step 3: Continue Until All Processed
- Process all items one by one
- Track using TodoWrite for visibility
- Don't wait for approval between items - keep moving
Step 4: Final Summary
After all items processed:
## Triage Complete
**Total Items:** [X] **Todos Approved (ready):** [Y] **Skipped:** [Z]
### Approved Todos (Ready for Work):
- `042-ready-p1-transaction-boundaries.md` - Transaction boundary issue
- `043-ready-p2-cache-optimization.md` - Cache performance improvement ...
### Skipped Items (Deleted):
- Item #5: [reason] - Removed from todos/
- Item #12: [reason] - Removed from todos/
### Summary of Changes Made:
During triage, the following status updates occurred:
- **Pending β Ready:** Filenames and frontmatter updated to reflect approved status
- **Deleted:** Todo files for skipped findings removed from todos/ directory
- Each approved file now has `status: ready` in YAML frontmatter
### Next Steps:
1. View approved todos ready for work:
```bash
ls todos/*-ready-*.md
```
-
Start work on approved items:
bash/resolve_todo_parallel # Work on multiple approved items efficiently -
Or pick individual items to work on
-
As you work, update todo status:
- Ready β In Progress (in your local context as you work)
- In Progress β Complete (rename file: ready β complete, update frontmatter)
## Example Response Format
Issue #5: Missing Transaction Boundaries for Multi-Step Operations
Severity: π΄ P1 (CRITICAL)
Category: Data Integrity / Security
Description: The google_oauth2_connected callback in GoogleOauthCallbacks concern performs multiple database operations without transaction protection. If any step fails midway, the database is left in an inconsistent state.
Location: app/controllers/concerns/google_oauth_callbacks.rb:13-50
Problem Scenario:
- User.update succeeds (email changed)
- Account.save! fails (validation error)
- Result: User has changed email but no associated Account
- Next login attempt fails completely
Operations Without Transaction:
- User confirmation (line 13)
- Waitlist removal (line 14)
- User profile update (line 21-23)
- Account creation (line 28-37)
- Avatar attachment (line 39-45)
- Journey creation (line 47)
Proposed Solution: Wrap all operations in ApplicationRecord.transaction do ... end block
Estimated Effort: Small (30 minutes)
Do you want to add this to the todo list?
- yes - create todo file
- next - skip this item
- custom - modify before creating
## Important Implementation Details
### Status Transitions During Triage
**When "yes" is selected:**
1. Rename file: `{id}-pending-{priority}-{desc}.md` β `{id}-ready-{priority}-{desc}.md`
2. Update YAML frontmatter: `status: pending` β `status: ready`
3. Update Work Log with triage approval entry
4. Confirm: "β
Approved: `{filename}` (Issue #{issue_id}) - Status: **ready**"
**When "next" is selected:**
1. Delete the todo file from todos/ directory
2. Skip to next item
3. No file remains in the system
### Progress Tracking
Every time you present a todo as a header, include:
- **Progress:** X/Y completed (e.g., "3/10 completed")
- **Estimated time remaining:** Based on how quickly you're progressing
- **Pacing:** Monitor time per finding and adjust estimate accordingly
Example:
Progress: 3/10 completed | Estimated time: ~2 minutes remaining
### Do Not Code During Triage
- β
Present findings
- β
Make yes/next/custom decisions
- β
Update todo files (rename, frontmatter, work log)
- β Do NOT implement fixes or write code
- β Do NOT add detailed implementation details
- β That's for /resolve_todo_parallel phase
When done give these options
What would you like to do next?
1. run /resolve_todo_parallel to resolve the todos
2. commit the todos
3. nothing, go chill
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
brave-search
Use when user asks to search the web, look something up online, find current/recent/latest information, or needs cited answers. Triggers on "search", "look up", "find out about", "what is the current/latest", image searches, news lookups. NOT for searching code/filesβonly for web/internet searches.
bug-reproduction-validator
Use this agent when you receive a bug report or issue description and need to verify whether the reported behavior is actually a bug. This agent will attempt to reproduce the issue systematically, validate the steps to reproduce, and confirm whether the behavior deviates from expected functionality. <example>\nContext: The user has reported a potential bug in the application.\nuser: "Users are reporting that the email processing fails when there are special characters in the subject line"\nassistant: "I'll use the bug-reproduction-validator agent to verify if this is an actual bug by attempting to reproduce it"\n<commentary>\nSince there's a bug report about email processing with special characters, use the bug-reproduction-validator agent to systematically reproduce and validate the issue.\n</commentary>\n</example>\n<example>\nContext: An issue has been raised about unexpected behavior.\nuser: "There's a report that the brief summary isn't including all emails from today"\nassistant: "Let me launch the b...
agent-native-audit
Run comprehensive agent-native architecture review with scored principles
brainstorming
This skill should be used before implementing features, building components, or making changes. It guides exploring user intent, approaches, and design decisions before planning. Triggers on "let's brainstorm", "help me think through", "what should we build", "explore approaches", ambiguous feature requests, or when the user's request has multiple valid interpretations that need clarification.
performance-oracle
Use this agent when you need to analyze code for performance issues, optimize algorithms, identify bottlenecks, or ensure scalability. This includes reviewing database queries, memory usage, caching strategies, and overall system performance. The agent should be invoked after implementing features or when performance concerns arise.\n\n<example>\nContext: The user has just implemented a new feature that processes user data.\nuser: "I've implemented the user analytics feature. Can you check if it will scale?"\nassistant: "I'll use the performance-oracle agent to analyze the scalability and performance characteristics of your implementation."\n<commentary>\nSince the user is concerned about scalability, use the Task tool to launch the performance-oracle agent to analyze the code for performance issues.\n</commentary>\n</example>\n\n<example>\nContext: The user is experiencing slow API responses.\nuser: "The API endpoint for fetching reports is taking over 2 seconds to respond"\nassistant: "Let me invoke the...
every-style-editor
This skill should be used when reviewing or editing copy to ensure adherence to Every's style guide. It provides a systematic line-by-line review process for grammar, punctuation, mechanics, and style guide compliance.
Didn't find tool you were looking for?