/rsturla-skills:investigate-cvefrom rsturla-skills
Investigate a CVE to find upstream fix commits, affected versions, severity, and backport status. Queries OSV.dev, NVD, and Red Hat Security APIs, then checks upstream git history. Use when the user mentions a CVE ID, asks about a vulnerability fix, or wants to know if a patch has been backported — even if they just say "is this CVE fixed?"
Ships in rsturla-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Given a CVE ID, trace it to upstream fix commits and check backport status.
Best structured data. Maps CVEs to fix commits for Go, Rust, Python, npm, Linux.
curl -s "https://api.osv.dev/v1/vulns/<cve_id>" | jq '{
id: .id,
summary: .summary,
severity: .severity,
affected: [.affected[] | {package: .package, versions: .versions, fix_events: [.ranges[]?.events[]? | select(.fixed)]}],
fix_refs: [.references[]? | select(.type == "FIX")]
}'
Key fields:
affected[].ranges[].events[].fixed — version that fixes the CVEreferences[] where type == "FIX" — direct links to fix commitsComprehensive CVE details and reference links.
curl -s "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=<cve_id>" | jq '{
id: .vulnerabilities[0].cve.id,
description: .vulnerabilities[0].cve.descriptions[0].value,
severity: .vulnerabilities[0].cve.metrics,
references: [.vulnerabilities[0].cve.references[] | {url, tags}]
}'
Look for references tagged Patch, Third Party Advisory, or URLs containing commit, pull, patch.
NVD rate-limits unauthenticated requests to 5 per 30 seconds. If hitting limits, request a free API key at
https://nvd.nist.gov/developers/request-an-api-key and pass it as ?apiKey=<key> query parameter.
Debian's CVE list frequently contains upstream fix commit URLs in NOTE: lines. Clone the tracker repo and grep locally:
# Clone once (reuse for subsequent queries)
git clone --depth 1 https://salsa.debian.org/security-tracker-team/security-tracker.git ~/.cache/debian-security-tracker
# Search for CVE
grep -A 15 "^<cve_id>" ~/.cache/debian-security-tracker/data/CVE/list | head -20
Look for:
NOTE: https://...commit/... — upstream fix commit (often includes version tag in parentheses)NOTE: https://...advisories/... — security advisory with fix details- node-postcss 8.5.12+~cs9.3.32-1)<no-dsa>, <postponed>, <not-affected>If the clone already exists, git -C ~/.cache/debian-security-tracker pull to update.
curl -s "https://access.redhat.com/hydra/rest/securitydata/cve/<cve_id>.json" | jq '{
name: .name,
severity: .threat_severity,
cvss3_score: .cvss3.cvss3_scoring_vector,
bugzilla: .bugzilla,
affected_packages: [.affected_release[]?.package],
fix_state: [.package_state[]? | {product: .product_name, package: .package_name, fix_state: .fix_state}]
}'
Key fields:
bugzilla.url — links to Bugzilla with patch detailsaffected_release[].package — packages with fixes shippedpackage_state[].fix_state — "Fixed", "Not affected", "Will not fix"See REFERENCE.md for upstream git search and backport detection.
Present findings as:
## <cve_id>
- **Summary**: <one-line description>
- **Severity**: <CVSS score and vector>
- **Affected**: <package name> versions <introduced> to <fixed>
- **Fix commit**: <sha> (<link>)
- **Fixed in version**: <version>
- **Backport status**:
- `main`: included
- `release/1.x`: included (cherry-pick <sha>)
- `release/0.9.x`: NOT backported
git branch --contains requires a full clone, not shallow. Use --unshallow if needed.(cherry picked from commit ...) trailer first. For manual backports, fall back to
searching the target branch for similar diffs or commit message keywords from the original fix.What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/build-agentBuild TypeScript AI agents with eval framework, provider abstraction, and production guardrails. Uses Vercel AI SDK for model-agnostic tool-use loops, Zod for structured outputs, Vitest for evals, and OpenTelemetry for observability. Covers prompt caching, extended thinking, RAG pipelines, structured output enforcement, tool annotations, seed tool calls, toolcall regression evals, and duplicate call detection. Use when the user wants to build an agent, create an AI assistant, implement tool-use, or scaffold an agentic system — even if they just say "build a bot", "add AI to this", or "make it agentic."
/code-reviewComprehensive code review using multiple specialized agents. Checks architecture, error handling, naming, testing, and style against project conventions. Use when the user asks for a code review, says "review this", "check my code", or wants feedback on changes — even if they just say "what do you think?" about a diff.
Other plugins' skills for the same job
/commit-messageGenerated from the plugin's indexed repository (rsturla/skills) — no native marketplace selected
npx claudepluginhub p/rsturla-rsturla-skills