triage
This skill should be used when triaging legacy local todo files in todos/. For GitHub issues, use ticket-triage agent.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
This skill should be used when triaging legacy local todo files in todos/. For GitHub issues, use ticket-triage agent.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
This skill should be used when auditing the recurring per-Anthropic-model-release checklist (model IDs, claude-code-action pin freshness, pricing drift, tier-map re-evaluation): it auto-fixes stale model-ID swaps into a CI-gated PR and flags the rest.
This skill should be used when performing exhaustive code reviews using multi-agent analysis, ultra-thinking, and worktrees.
This skill should be used when designing agent-native applications where agents are first-class citizens: architecting autonomous agents, creating MCP tools, building apps where features are agent-driven outcomes.
This skill should be used when working with DSPy.rb, a Ruby framework for type-safe, composable LLM applications.
This skill provides a promptfoo eval harness that measures whether a Soleur skill or agent edit actually improves behavior, comparing a skill arm against a baseline control arm.
This skill should be used when resolving all TODO comments in the codebase using parallel processing. It analyzes dependencies, creates a resolution plan with a mermaid flow diagram, and spawns parallel resolver agents.
| name | triage |
| description | This skill should be used when triaging legacy local todo files in todos/. For GitHub issues, use ticket-triage agent. |
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.
Note: The
/soleur:reviewskill now creates GitHub issues directly for all new findings. This triage skill handles only legacy localtodos/*.mdfiles that predate the GitHub issue integration.
IMPORTANT: DO NOT CODE ANYTHING DURING TRIAGE!
This skill is for:
Before commissioning work on any CodeQL-derived finding (issue title starts with
sec: CodeQL alert #N or body cites alert #N), verify the alert is still open:
gh api "/repos/:owner/:repo/code-scanning/alerts/<N>" --jq '.state'
If the response is dismissed or fixed, the finding is an orphan — close it
with a pointer to the dismissing PR (search via gh pr list --search "alert #<N>" --state merged -L 200 — a dismissing PR has merged, and gh pr list otherwise defaults to open-only and would never find it, #6786)
instead of approving for work. The .github/workflows/codeql-to-issues.yml
close-orphans job sweeps these automatically once a day, but a triage-time
check prevents wasted planning when the daily run is hours away. See
knowledge-base/project/learnings/best-practices/2026-04-19-codeql-orphan-issue-post-dismissal-sweep.md.
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
When user says "yes":
Update existing todo file (if it exists) or Create new filename:
If todo already exists (from code review):
{id}-pending-{priority}-{desc}.md -> {id}-ready-{priority}-{desc}.mdstatus: pending -> status: readyIf creating new todo:
{next_id}-ready-{priority}-{brief-description}.md
Priority mapping:
p1p2p3Example: 042-ready-p1-transaction-boundaries.md
Update YAML frontmatter:
---
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:
# [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":
When user says "custom":
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:
/resolve-todo-parallel # Work on multiple approved items efficiently
Or pick individual items to work on
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:
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?
## 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