मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी7.7k · #13106

triage

यह क्या करती है

यह स्किल सुरक्षा स्कैनर के आउटपुट की जाँच करती है, दोहराव हटाती है, देखती है कि कौन से निष्कर्ष असली हैं, और उनका शोषण की आसानी के आधार पर क्रम तय करती है। यह उन सुरक्षा टीमों के लिए है जिन्हें कच्चे निष्कर्षों की लंबी सूचियां मिलती हैं।

कब इस्तेमाल करें

  • ✓जब सुरक्षा स्कैनर ने समीक्षा के लिए निष्कर्षों की लंबी सूची लौटाई है।
  • ✓जब आपको कई स्कैन से दोहराए गए निष्कर्ष हटाने हैं।
  • ✓जब आप सबसे ज़रूरी असली समस्याओं को क्रम से लगाकर किसी ज़िम्मेदार व्यक्ति को सौंपना चाहते हैं।

Skill का लिंक

https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/triage/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/triage/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप इस स्कैनर आउटपुट को देख सकते हैं, गलत अलार्म हटा सकते हैं, और बता सकते हैं कि पहले क्या ठीक करना है?”

हर हफ़्ते 5 नई skills, 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, 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
अक्सर पूछे जाने वाले सवाल

क्या इसके लिए सोर्स कोड चाहिए?

हां। इसे वह कोड पढ़ना होता है जिस ओर निष्कर्ष इशारा करते हैं, ताकि जांच सके कि वे असली हैं।

क्या यह बिना सवालों के चल सकता है?

हां। एक ऑटोमैटिक मोड डिफ़ॉल्ट सेटिंग इस्तेमाल करता है और बातचीत छोड़ देता है।

यह कौन सी फ़ाइलें लिखती है?

यह JSON में एक ट्रायज फ़ाइल और पढ़ने योग्य markdown सारांश लिखती है।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
7.7k
रैंकिंग में स्थान
#13106
लाइसेंस
—
अपडेट की गई
6/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

customize

7.7k

यह आपके एजेंट को AI से सुरक्षा कमज़ोरी खोजने वाली पाइपलाइन को नए बग प्रकार, भाषा या लक्ष्य के लिए ढालने में मदद करती है, खास हिस्से दोबारा लिखकर।

कोडिंगसिक्योरिटी

dnr-hunt

7.7k

यह आपके एजेंट को बिना किसी अलर्ट के वेब लॉग में हमले के संकेत खोजने और मिली घटनाओं का लिखित विवरण बनाने में मदद करती है।

कोडिंगसिक्योरिटी

dnr-respond

7.7k

यह आपके एजेंट को एक सुरक्षा अलर्ट या संकेत की जाँच करने में मदद करती है कि हमला सफल हुआ या नहीं और वह कितनी दूर तक पहुंचा।

कोडिंगसिक्योरिटी

patch

7.7k

यह आपके एजेंट को जाँचे गए सुरक्षा निष्कर्षों के लिए कोड सुधार के ड्राफ़्ट बनाने में मदद करती है, जिन्हें समीक्षा के लिए diff के रूप में सहेजा जाता है।

कोडिंगसिक्योरिटी

मिलती-जुलती skills