triage
Fungsinya
Skill ini memeriksa keluaran pemindai keamanan, menghapus duplikat, memeriksa temuan mana yang nyata, dan mengurutkannya berdasarkan seberapa mudah dieksploitasi. Skill ini ditujukan untuk tim keamanan yang menerima daftar temuan mentah yang panjang.
Kapan dipakai
- βSaat pemindai keamanan telah mengembalikan daftar temuan panjang untuk ditinjau.
- βSaat Anda perlu menghapus temuan duplikat dari beberapa pemindaian.
- βSaat Anda ingin masalah nyata yang paling mendesak diurutkan dan ditugaskan kepada pemiliknya.
Link skill
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/triage/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda memeriksa keluaran pemindai ini, menghapus alarm palsu, dan memberi tahu saya apa yang harus diperbaiki lebih dulu?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memeriksa setiap temuan terhadap kode sumber, mengelompokkan duplikat, mengurutkan sisanya berdasarkan risiko nyata, dan menulis daftar terurut dengan saran pemilik.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah ini memerlukan kode sumber?
Ya. Agent harus membaca kode yang ditunjuk temuan agar dapat memeriksa apakah temuan itu nyata.
Apakah bisa berjalan tanpa pertanyaan?
Bisa. Mode otomatis memakai pengaturan default dan melewati wawancara.
File apa yang ditulis?
Skill ini menulis file triase dalam format JSON dan ringkasan markdown yang mudah dibaca.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 7.7k
- Peringkat
- #13106
- Lisensi
- β
- Diperbarui
- 6/8/2026
Komentar
- β¦
Skill lain dari repositori ini
customize
7.7kMembantu agent Anda mengadaptasi pipeline AI pencari kerentanan ke jenis bug, bahasa, atau target baru, dengan menulis ulang bagian yang spesifik.
dnr-hunt
7.7kMembantu agent Anda memburu log web tanpa peringatan di tangan, mencari tanda serangan dan menuliskan insiden yang ditemukan.
dnr-respond
7.7kMembantu agent Anda menangani satu peringatan atau indikator keamanan, dengan memeriksa apakah serangan berhasil dan seberapa jauh jangkauannya.
patch
7.7kMembantu agent Anda menyusun kandidat perbaikan kode untuk temuan keamanan yang sudah diverifikasi, disimpan sebagai diff untuk ditinjau seseorang.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.