triage

triage is a command for Claude Code from JairoTorregrosa/jaiskills. It costs 25 tokens per session (786 once invoked), scanned A, original, MIT.

A command that presents pending review findings one at a time for a user's decision. Triage means deciding whether each finding should be approved, skipped, or changed before implementation begins.

In plain words
What is it for?
Use it to review pending TODO files, filter them by ID or priority, and choose what should become ready for resolution.
Why use it?
It separates decision-making from coding, so work is not started before the user approves it. It also orders findings by priority and shows their problem, proposed solution, effort, location, and dependencies.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Part of the jaiskills plugin — 12 skills, 13 commands, 4 agents, 2 hooks, 1 MCP server shipped together

Good fit Use it to review pending TODO files, filter them by ID or priority, and choose what should become ready for resolution.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jairotorregrosa/jaiskills/triage
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/JairoTorregrosa/jaiskills

Made for: Claude Code.

Or install jaiskills, the plugin that ships this one along with the rest of its 12 skills, 13 commands, 4 agents, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for triage

README.md
[![agentmods](https://agentmods.dev/badge/commands/jairotorregrosa/jaiskills/triage/github.svg)](https://agentmods.dev/commands/jairotorregrosa/jaiskills/triage)
Your own site
<a href="https://agentmods.dev/commands/jairotorregrosa/jaiskills/triage"><img src="https://agentmods.dev/badge/commands/jairotorregrosa/jaiskills/triage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for triage

Your own site · 80×15
<a href="https://agentmods.dev/commands/jairotorregrosa/jaiskills/triage"><img src="https://agentmods.dev/badge/commands/jairotorregrosa/jaiskills/triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00786
Opus 5 $0.00013 $0.00393
Sonnet 5 $0.00005 $0.00157
Haiku 4.5 $0.00003 $0.00079

Measured 10d ago against content hash bb6732030297, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

triage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/triage.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Triage Pending TODOs

DO NOT CODE ANYTHING DURING TRIAGE. This command is for decision-making only. Implementation happens in /jaiskills:resolve-todos.

Steps

1. Load Pending TODOs

Read all todos/*-pending-*.md files using Glob.

If an argument was provided (e.g., a specific ID like 003 or a pattern like p1), filter to only matching files.

If no pending TODOs found, tell the user: "No pending TODOs to triage. Create some from review findings first."

2. Sort by Priority

Order the pending TODOs for presentation:

  1. p1 (Critical) first
  2. p2 (Important) second
  3. p3 (Nice-to-have) last

Within the same priority, sort by ID (ascending).

3. Present Each TODO

For each pending TODO, display a summary card:

--- Finding [N] of [M] ---

[P1 CRITICAL | P2 IMPORTANT | P3 NICE-TO-HAVE]

Title: [title from the TODO heading]
Tags: [tags from frontmatter]
Location: [file:line references from Findings section]
Problem: [first 2-3 sentences of Problem Statement]
Proposed Solution: [summary of recommended option or first option]
Effort: [effort estimate from proposed solution]
Dependencies: [dependency IDs if any]

4. User Decision

Use AskUserQuestion for each TODO with these options:

  • Approve: Accept this finding for implementation
  • Skip: Remove this TODO — not worth fixing or not actionable
  • Modify: Let the user provide changes (priority, description, solution) before approving
On Approve:
  1. Rename the file from pending to ready:
    mv todos/{id}-pending-{priority}-{desc}.md todos/{id}-ready-{priority}-{desc}.md
    
  2. Update the status field in YAML frontmatter from pending to ready
  3. Update the updated date in YAML frontmatter
On Skip:
  1. Delete the TODO file:
    rm todos/{id}-pending-{priority}-{desc}.md
    
On Modify:
  1. Ask the user what to change (priority, recommended action, description, etc.)
  2. Apply the modifications to the file content
  3. Then rename from pending to ready (same as Approve)
  4. Update status and updated fields in frontmatter

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 104 lines · 25 tokens per session scan A bb6732030297

Subscribe to this mod's changes

triage is a command published in the GitHub repository JairoTorregrosa/jaiskills (5 stars, last pushed 9d ago), licensed MIT. It adds 25 tokens to every session and 786 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.