Triage

From ratacat/claude-skills · View interactive version

Triage is an AI agent skill from the GitHub repository ratacat/claude-skills. Triage and categorize findings for the CLI todo system

How to use this skill

Skill file

Arguments

[findings list or source type]

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:

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":

  1. Update existing todo file (if it exists) or Create new filename:

If todo already exists (from code review):

If creating new todo:

```

{next_id}-ready-{priority}-{brief-description}.md

```

Priority mapping:

Example: 042-ready-p1-transaction-boundaries.md

  1. 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: []


```

  1. Populate or update the file:

```yaml

# [Issue Title]

## Problem Statement

[Description from finding]

## Findings

## Proposed Solutions

### Option 1: [Primary solution]

## Recommended Action

[Filled during triage - specific action plan]

## Technical Details

## Resources

## Acceptance Criteria

## Work Log

### {date} - Approved for Work

By: Claude Triage System

Actions:

Learnings:

## Notes

Source: Triage session on {date}

```

  1. Confirm approval: "✅ Approved: {new_filename} (Issue #{issue_id}) - Status: ready → Ready to work on"

When user says "next":

When user says "custom":

Step 3: Continue Until All Processed

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
   ```
  1. Start work on approved items:

```bash

/resolve_todo_parallel # Work on multiple approved items efficiently

```

  1. Or pick individual items to work on
  1. As you work, update todo status:

## 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:

  1. User.update succeeds (email changed)
  2. Account.save! fails (validation error)
  3. Result: User has changed email but no associated Account
  4. Next login attempt fails completely

Operations Without Transaction:

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?

  1. yes - create todo file
  2. next - skip this item
  3. 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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.