Claude-Skills-Security
AGENTS.md8 starsChanged 8 days agoMITView on GitHub
This file describes the agentic capabilities, invocation contracts, and skill discovery metadata for the Claude-Skills-Security repository. Compatible with: Claude Code, OpenAI Codex agents, AutoGPT, LangGraph, CrewAI, and any agent runtime that reads AGENTS.md for capability discovery. File: skills/security-triage/SKILL.md Version: 1.2.2 Type: Triage methodology / system prompt skill A confidence-gated security triage skill for AI agents. Covers 6 tracks: CVE analysis, code review, LLM application security, CI/CD hardening, container/infrastructure review, and secrets exposure. When to invoke: - User pastes a CVE…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,040 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- llms.txtllms.txt
- security-triageSkill
- security-triageSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 61
Every invocation produces one of:
- Distinctive: line 89
When a GitHub MCP server is connected, the skill operates in agentic mode:
- Very specific: line 174
Always construct full vector: CVSS:3.1/AV:_/AC:_/PR:_/UI:_/S:_/C:_/I:_/A:_
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file describes the agentic capabilities, invocation contracts, and skill discovery metadata for the Claude-Skills-Security repository.
Compatible with: Claude Code, OpenAI Codex agents, AutoGPT, LangGraph, CrewAI, and any agent runtime that reads AGENTS.md for capability discovery.
Available Skills
security-triage
File: skills/security-triage/SKILL.md
Version: 1.2.2
Type: Triage methodology / system prompt skill
A confidence-gated security triage skill for AI agents. Covers 6 tracks: CVE analysis, code review, LLM application security, CI/CD hardening, container/infrastructure review, and secrets exposure.
When to invoke:
- User pastes a CVE ID, scanner output (Snyk, Dependabot, Trivy, SARIF), or audit report
- User pastes source code and asks about security
- User pastes a GitHub Actions workflow file
- User pastes a Dockerfile, docker-compose.yml, or k8s YAML
- User asks about prompt injection, LLM security, RAG pipelines, or AI agents
- User pastes scanner output naming a leaked key, a committed .env, or a token in a bundle
- User asks "is this safe?", "is this vulnerable?", or "what's the risk here?"
When NOT to invoke:
- General coding help with no security context
- Architecture questions with no specific artifact to triage
- Compliance checklists (this skill is exploitability-focused, not compliance-focused)
Invocation Contract
Input format
The skill accepts any of the following as input:
1. Raw text
Paste the artifact directly. The skill auto-classifies the track.
2. Labeled input (preferred for multi-artifact sessions)
TRACK: D
ARTIFACT:
<paste workflow YAML here>
3. Mixed input
Multiple artifacts can be pasted together.
The skill will produce a findings summary table + individual reports.Output contract
Every invocation produces one of:
A. Findings summary + individual triage reports (one or more HIGH/MEDIUM findings)
FINDINGS SUMMARY
┌────┬──────────────┬────────────┬──────────┬───────┐
│ # │ Title │ Confidence │ Severity │ Track │
└────┴──────────────┴────────────┴──────────┴───────┘
[Individual triage reports follow in severity order]
NOTES (LOW confidence issues — informational only)
FIX CHECKLISTB. Clean result (no HIGH/MEDIUM findings)
No HIGH or MEDIUM confidence findings identified.
[Optional: LOW confidence notes if present]The skill NEVER produces vague warnings. If a finding cannot be assigned HIGH or MEDIUM confidence, it does not appear as a finding.
Agentic Workflow: GitHub MCP
When a GitHub MCP server is connected, the skill operates in agentic mode:
1. Fetch workflow files proactively
GET /repos/{owner}/{repo}/contents/.github/workflows
2. Check for existing Dependabot fix PRs
GET /repos/{owner}/{repo}/dependabot/alerts
3. Cross-reference dangerous patterns across ALL workflow files simultaneously
4. Audit SHA-pinning across all actions:
Pattern: uses: .+@[^a-f0-9]{40} flags non-SHA pins
5. Use web search to check for public PoCs or active exploitation of CVEsAnnounce each fetch before executing. Show raw findings before triaging. Degrade gracefully if MCP unavailable — prompt user to paste relevant files.
Confidence Gate (Agent Decision Logic)
Agents MUST apply this gate before assigning severity to any finding.
def confidence_gate(finding):
if (
finding.vulnerable_pattern_confirmed and
finding.attacker_controlled_input_confirmed and
finding.exploitable_in_context
):
return "HIGH" # produce full triage report
elif (
finding.vulnerable_pattern_found and
(not finding.input_source_clear or not finding.context_fully_visible)
):
return "MEDIUM" # produce triage report with caveat
else:
return "LOW" # do NOT produce a finding — notes section onlyFalse-positive checks before assigning HIGH:
- Is input actually attacker-controlled, or server config / internal data?
- Does sanitization or validation run upstream that wasn't shown?
- Is the vulnerable code path reachable from an unauthenticated entry point?
- For CI/CD: is the trigger
pull_request(safe) orpull_request_target(dangerous)? - For LLM: is this model-level (unfixable in code) or application-level (fixable)?
- For CVEs: is the vulnerable function actually called, or just present as a transitive dep?
Track Classification (Agent Auto-Routing)
Input contains CVE ID, Dependabot alert, Snyk/Trivy/SARIF output
→ Route to Track A: CVE / Scanner Alert
Input contains source code in any language
→ Route to Track B: Code Snippet
Input contains prompt template, LLM app code, RAG pipeline, agent tools, system prompt
→ Route to Track C: LLM Application Security
Input contains .github/workflows/*.yml or CI config
→ Route to Track D: CI/CD & GitHub Actions
Input contains Dockerfile, docker-compose.yml, k8s YAML, Helm chart
→ Route to Track E: Container & Infrastructure
Input contains gitleaks/trufflehog output, a committed .env, a key-shaped string,
or a token in a client bundle / source map
→ Route to Track F: Secrets & Credential ExposureMultiple tracks can be active simultaneously. Classify ALL applicable tracks before triaging.
CVSS Construction (Agent Guidance)
Always construct full vector: CVSS:3.1/AV:_/AC:_/PR:_/UI:_/S:_/C:_/I:_/A:_
Common agent errors to avoid:
- XSS findings: use
S:C(scope change — crosses browser boundary), notS:U - CI/CD attacks requiring maintainer approval:
UI:R, notUI:N - Transitive dependency with no direct call: do NOT use base CVSS score
- Internal-only service:
AV:Noverstates real risk — note this explicitly in report
For LLM findings (Track C): use the OWASP LLM Risk Rating, NOT CVSS. Cite categories with
their year — the 2026 list (published 2026-08-04) renumbered several entries, so
LLM05:2025 (Improper Output Handling) and LLM05:2026 (Data and Model Poisoning) are
different categories. The skill carries the full 2025 to 2026 mapping table, plus the
Agentic ASI01-ASI10 IDs.
CVSS maps poorly to LLM application layer vulnerabilities.
Evals
evals/ holds 12 labelled cases — 6 vulnerabilities, 6 false-positive traps — with
expected.yaml as ground truth. Run the protocol in evals/README.md after any change to
the gate, and re-publish the score. Do not publish a number you have not measured.
Version History
See CHANGELOG.md
Repository Structure
Claude-Skills-Security/
├── skills/
│ └── security-triage/
│ └── SKILL.md # Canonical skill — the only file you edit
├── .claude/
│ └── skills/
│ └── security-triage/
│ └── SKILL.md # Generated mirror (make sync) — do not edit
├── img/ # banner and gate diagrams
├── install.sh # universal installer, 12 targets
├── llms.txt # machine-readable repo index
├── examples/ # Three input/output pairs
├── evals/ # 12-case labelled corpus + protocol
├── .github/
│ ├── workflows/validate.yml # Drift, frontmatter, corpus checks
│ └── ISSUE_TEMPLATE/ # bug, false positive, new track
├── AGENTS.md # This file — agentic discovery
├── CHANGELOG.md # Version history
├── COMPATIBILITY.md # Runtime compatibility details
├── CONTRIBUTING.md # How to improve the methodology
├── SECURITY.md # Reporting issues in the skill itself
├── Makefile # make sync / make check
├── LICENSE # MIT
└── README.md # Human-readable docsDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

