triage

triage is a skill for Claude Code from gvkhosla/compound-engineering-pi. It costs 13 tokens per session (1,991 once invoked), scanned A, original, MIT.

A process for reviewing and categorizing findings for a command-line to-do system. It presents each issue with its severity, category, location, scenario, proposed fix, and estimated effort before asking whether to track it.

In plain words
What is it for?
Use it to triage code-review comments, security findings, performance concerns, architecture issues, bugs, and feature requests.
Why use it?
It prevents review findings from being added automatically and gives you a chance to accept, skip, or revise each item.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the TodoWrite tool.

Part of the compound-engineering plugin — 41 skills, 1 MCP server shipped together

Good fit Use it to triage code-review comments, security findings, performance concerns, architecture issues, bugs, and feature requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gvkhosla/compound-engineering-pi/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.

Any agent
npx skills add gvkhosla/compound-engineering-pi --skill triage
Clone the repo
git clone --depth 1 https://github.com/gvkhosla/compound-engineering-pi

Made for: Claude Code.

Or install compound-engineering, the plugin that ships this one along with the rest of its 41 skills, 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/skills/gvkhosla/compound-engineering-pi/triage.svg)](https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/triage)
Your own site
<a href="https://agentmods.dev/skills/gvkhosla/compound-engineering-pi/triage"><img src="https://agentmods.dev/badge/skills/gvkhosla/compound-engineering-pi/triage.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,991 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.00013 $0.01991
Opus 5 $0.00006 $0.00996
Sonnet 5 $0.00003 $0.00398
Haiku 4.5 $0.00001 $0.00199

Measured 7d ago against content hash 53b10d4c0e57, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, 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 7d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • triage — 91% identical, 31 lines differ
plugins/compound-engineering/skills/triage/SKILL.md · 312 lines

How it starts

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

  • First set the /model to Haiku
  • Then read all pending todos from .context/compound-engineering/todos/ and legacy todos/ directories

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

  1. 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: pendingstatus: ready
    • Keep issue_id, priority, and description unchanged

    If creating new todo:

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

    Priority mapping:

    • 🔴 P1 (CRITICAL) → p1
    • 🟡 P2 (IMPORTANT) → p2
    • 🔵 P3 (NICE-TO-HAVE) → p3

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

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

Read the full file on GitHub · 312 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. 7d ago First seen · 312 lines · 13 tokens per session scan A 53b10d4c0e57

Subscribe to this mod's changes

triage is a skill published in the GitHub repository gvkhosla/compound-engineering-pi (51 stars, last pushed 4mo ago), licensed MIT. It adds 13 tokens to every session and 1,991 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-30.