Skip to content
Exchange

A triage prompt and workflow

1 file2 KB

A look inside

The first lines of agent-security-triage.md. The whole file is in your library once you get it.

# A triage prompt and workflow

A free card from MenFem's Building with agents, lesson 7.3: Using an agent to sort and fix security findings.
The lesson, with the picture and the examples: https://menfem.com/courses/building-with-agents/agent-security-triage

This is what you keep: what to give the agent, what to ask it for, and who makes each call.

1. Give the agent the full export of findings, the code, and your file of items closed before with their reasons.
2. Ask it to group by cause, then mark each group reachable, not reachable or false alarm, with the file and lines as proof.
3. Rank by how bad it is, whether attackers are using it now, and whether outside input can reach it.
4. One finding, one branch: the smallest fix and a test that fails before and passes after.
5. A person merges the fix, or accepts the risk with a written reason and a date to look again.

**The rule:** The agent sorts, proves and proposes. A person closes.

## Used once

From the lesson, on a made-up shop: "A hole in your image library is on the public list of holes being used in attacks, and your upload page calls the affected code."

Answer: Fix this week. Attackers are using it, and outside input reaches it. That is the top of the list whatever else is in the pile.

## Your turn

Write one case from your own work here, then go down the card line by line.
…and 8 more lines.

What is inside

  • agent-security-triage.md2 KB

How to use it

Open it beside the job and go down the 5 lines in order, then check your answer against the rule at the bottom. It is the card from Building with agents, lesson 7.3 (Using an agent to sort and fix security findings), with one worked example from the lesson and a space for your own case.

Run before it was listed

Tested 2026-11-29: Generated from the lesson's own keep card and checked line by line against it; used once on the lesson's made-up example, which is printed in the file.