triage
하는 일
이 스킬은 보안 스캐너 출력을 확인하고, 중복을 제거하며, 어떤 발견 사항이 실제인지 검사한 뒤 악용 가능성에 따라 순위를 매깁니다. 긴 원시 발견 목록을 받는 보안 팀을 위한 스킬입니다.
사용하는 경우
- ✓보안 스캐너가 검토할 긴 발견 목록을 반환했을 때.
- ✓여러 스캔에서 나온 중복 발견 사항을 제거해야 할 때.
- ✓가장 긴급한 실제 문제에 순위를 매기고 담당자를 지정하고 싶을 때.
스킬 링크
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/triage/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 스캐너 결과를 검토해서 잘못된 경고를 걸러내고, 무엇을 먼저 고쳐야 할지 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 각 발견 사항을 소스 코드와 대조하고, 중복을 묶고, 남은 항목을 실제 위험에 따라 순위를 매긴 뒤, 제안 담당자가 적힌 정렬 목록을 작성합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
triage
Adversarial triage of raw security-scanner output. Does four jobs: verify each finding is real, deduplicate across runs and scanners, rank survivors by derived exploitability rather than the scanner's claimed severity, and route each to a component owner. Output is a short, ranked, owned list instead of a raw dump.
Invoke with /triage <findings-path> [--auto] [--votes N] [--repo PATH] [--fp-rules FILE].
Arguments (parse from $ARGUMENTS; positional $1/$2 expansion is
not stable across runtimes):
- findings path (first positional, required): a JSON file, a directory of
JSON files, a
VULN-FINDINGS.json, anINCIDENTS.json, a pipelineresults/<target>/<ts>/directory, or a markdown report. --auto: skip the interview and use defaults. Default mode is interactive.--votes N: verifier votes per finding (default 3; use 1 for a quick pass, 5 for high-stakes batches).--repo PATH: path to the target codebase, read-only (default cwd). Verification needs source access; the skill stops with an error if the cited files aren't reachable.--fp-rules FILE: append the contents of FILE to the verifier's exclusion-rule list (Phase 3a). Use for org-specific precedents: "we use Prisma ORM everywhere — raw-query SQLi only", "k8s resource limits cover DoS", etc. Plain text, one rule per line or paragraph.--fresh: ignore any existing checkpoint in./.triage-state/and start from Phase 0. Without this flag the skill resumes from the last completed phase if a checkpoint is present.
Tools: Read, Glob, Grep, Write, Task, AskUserQuestion. Bash is
permitted only for git, find, wc, ls, jq, and
python3 .claude/skills/_lib/checkpoint.py (checkpoint I/O).
Do not execute target code. No building, running, installing dependencies, or sending requests. A proof-of-concept that accidentally works against something real is unacceptable, and "couldn't write a working PoC" is weak evidence of non-exploitability. Every conclusion comes from reading source. This applies to the orchestrator and every subagent; include the constraint in every Task prompt. For high-confidence HIGH findings, recommend a human-built PoC as a follow-up instead.
Do not reach the network. No package-registry lookups, CVE-database queries, or upstream-commit fetches.
Checkpointing (runs before Phase 0 and after every phase)
On large finding batches a full run can exhaust context or hit rate limits
mid-way — particularly Phase 3, which spawns candidates × votes verifiers.
Phase state persists to ./.triage-state/ so a fresh /triage session can
resume without re-asking the interview or re-spawning verifiers.
All checkpoint I/O goes through python3 .claude/skills/_lib/checkpoint.py
(atomic writes, JSON-validated). Never use the Write tool for progress.json
directly. Never pass payload via heredoc or stdin; target-derived strings
could collide with the heredoc delimiter and break out to shell. The
Write→--from pattern keeps repo-derived bytes out of Bash argv.
State files in ./.triage-state/:
progress.json— single source of truth for resume position:{"status": "running"|"complete", "phase_done": N, "shards_done": [...]}. Resume decisions read ONLY this file, never a glob ofphase*.jsonor shard files (stale files from a prior run must not be trusted).phaseN.json— data payload for phase N (schemas at the tail of each phase section below)._chunk.tmp— transient payload buffer; overwritten before everysave/shard/appendcall.
Start of run — resume check. Bash:
python3 .claude/skills/_lib/checkpoint.py load ./.triage-state
status == "absent"OR"complete", OR--freshin$ARGUMENTS→ fresh start. Bash:python3 .claude/skills/_lib/checkpoint.py reset ./.triage-state, then proceed to Phase 0.status == "running"withphase_done == N→ resume. Read./.triage-state/phase0.jsonthroughphaseN.jsonin order (and anyshard_*.jsonfiles listed inshards_done), merging keys into working state (later files override earlier — checkpoints may be deltas). PrintResuming from checkpoint: Phase N complete (./.triage-state/phaseN.json), and skip directly to Phase N+1.
End of every phase N. Two tool calls:
- Write tool →
./.triage-state/_chunk.tmpcontaining the phase's output JSON (schema at the tail of each phase section). - Bash → `python3 .claude
자주 묻는 질문
소스 코드가 필요한가요?
네. 발견 사항이 실제인지 확인하려면 발견 사항이 가리키는 코드를 읽어야 합니다.
질문 없이 실행할 수 있나요?
네. 자동 모드는 기본 설정을 사용하고 인터뷰를 건너뜁니다.
어떤 파일을 쓰나요?
JSON 형식의 분류 파일과 읽기 쉬운 마크다운 요약을 씁니다.
상세 정보
작성자의 원본 설명
Triage a batch of raw security findings. Verify each is real, collapse duplicates, re-rank by derived exploitability, and tag with an owner. Takes a directory or file of scanner output and writes TRIAGE.json + TRIAGE.md sorted by what actually needs engineering attention. Use when asked to "triage findings", "validate scanner output", "prioritize vulns", or "review the backlog". Runs interactively by default; pass --auto to skip the interview.
인기도
- GitHub 스타
- 7.7k
- 순위
- #13106
- 라이선스
- —
- 업데이트
- 2026. 8. 6.
댓글
- …
이 저장소의 다른 스킬
customize
7.7k에이전트가 AI 취약점 탐지 파이프라인에서 대상에 특화된 부분만 새 버그 유형, 언어, 대상에 맞게 고치도록 돕습니다.
dnr-hunt
7.7k에이전트가 경보 없이 웹 로그에서 공격의 흔적을 찾고, 발견한 사건을 정리하도록 돕습니다.
dnr-respond
7.7k에이전트가 보안 경보나 침해 지표 하나를 검토해 공격이 성공했는지, 어디까지 퍼졌는지 확인하도록 돕습니다.
patch
7.7k에이전트가 검증된 보안 발견 사항의 코드 수정안을 diff 파일로 작성해, 사람이 검토할 수 있게 돕습니다.