Langsung ke konten
Skillpedia
Keamanan7.7k Β· #13106

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.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/triage/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

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, an INCIDENTS.json, a pipeline results/<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 of phase*.json or 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 every save/shard/append call.

Start of run β€” resume check. Bash: python3 .claude/skills/_lib/checkpoint.py load ./.triage-state

  • status == "absent" OR "complete", OR --fresh in $ARGUMENTS β†’ fresh start. Bash: python3 .claude/skills/_lib/checkpoint.py reset ./.triage-state, then proceed to Phase 0.
  • status == "running" with phase_done == N β†’ resume. Read ./.triage-state/phase0.json through phaseN.json in order (and any shard_*.json files listed in shards_done), merging keys into working state (later files override earlier β€” checkpoints may be deltas). Print Resuming from checkpoint: Phase N complete (./.triage-state/phaseN.json), and skip directly to Phase N+1.

End of every phase N. Two tool calls:

  1. Write tool β†’ ./.triage-state/_chunk.tmp containing the phase's output JSON (schema at the tail of each phase section).
  2. 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.

repo: anthropics/defending-code-reference-harness

Popularitas

Bintang GitHub
7.7k
Peringkat
#13106
Lisensi
β€”
Diperbarui
6/8/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa