Flag triage

From the-agency-ai/the-agency · View interactive version

Flag triage is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Structured flag review — categorize, approve, dispose. Three-bucket triage for accumulated flags.

How to use this skill

Skill file

<!--

Flag #62/#63: allowed-tools removed. Inherits Bash(*) from

.claude/settings.json. Restricting to specific subcommand patterns at the

skill level silently blocks agents on permission prompts the agent cannot

see — see dispatch #171 for the devex incident that surfaced this trap.

-->

Flag Triage

Structured review session for accumulated flags. Agent pre-categorizes into three buckets, principal approves dispositions, then each bucket is processed.

Arguments

Instructions

Step 1: Gather flags

Run bash $CLAUDE_PROJECT_DIR/agency/tools/flag list to get all unread/read flags.

If no flags are waiting, report "No flags to triage" and stop.

Step 2: Categorize into three buckets

Review each flag and assign it to one of three buckets. Present the categorization to the principal as a numbered table:

Bucket 1 — Resolved: Items that are already done, no longer relevant, or overtaken by events. For each, cite the evidence (commit, dispatch, code change) that resolves it.

Bucket 2 — Autonomous: Items the agent can handle independently — writing seeds, sending dispatches, updating docs, filing bugs, creating tools. No principal collaboration needed. For each, state the proposed disposition (what you'll do).

Bucket 3 — Collaborative: Items requiring principal input, joint decision-making, or 1B1 discussion. For each, state why it needs discussion.

Format:

## Flag Triage — [N] items

### Bucket 1: Resolved ([n] items)
| # | Flag | Evidence | Disposition |
|---|------|----------|-------------|
| 1 | ... | commit abc123 fixed this | Mark resolved |

### Bucket 2: Autonomous ([n] items)
| # | Flag | Proposed Action |
|---|------|----------------|
| 4 | ... | Write seed to iscp workstream |

### Bucket 3: Collaborative ([n] items)
| # | Flag | Why discuss? |
|---|------|-------------|
| 7 | ... | Needs prioritization decision |

Step 3: Principal review

STOP and wait for principal approval. The principal may:

Do NOT proceed until the principal approves the bucket assignments.

Step 4: Process Bucket 1 (Resolved)

For each approved Bucket 1 item:

Step 5: Process Bucket 2 (Autonomous)

For each approved Bucket 2 item, execute the proposed disposition:

Report each action taken with the artifact created (file path, dispatch ID, etc.).

Step 6: Process Bucket 3 (Collaborative)

Enter 1B1 discussion mode for collaborative items. For each item:

  1. Present the item with context
  2. Three possible dispositions per item:
  1. Execute the chosen disposition before moving to the next item

Use the standard 1B1 protocol: present → feedback → resolve → next.

Step 7: Summary

After all buckets are processed, report:

## Triage Complete

- Resolved: [n] items
- Autonomous: [n] items ([n] dispatches sent, [n] seeds written, ...)
- Collaborative: [n] items ([n] actioned, [n] flagged to project, [n] binned)
- Total: [N] flags processed

Run bash $CLAUDE_PROJECT_DIR/agency/tools/flag clear to mark all processed flags.

Key Rules

OFFENDERS WILL BE FED TO THE — CUTE — ATTACK KITTENS!

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.