skills/infrastructure/cve-source-check/SKILL.md
Audit CVE/vulnerability source coverage for a technology stack. Maps each component (container, library, base image, runtime) to authoritative CVE feeds, flags gaps, and produces audit-ready reports. Generic: works for any service or stack.
npx skillsauth add notque/claude-code-toolkit cve-source-checkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audits CVE/vulnerability source coverage for a technology stack. Given an inventory of components and (optionally) the feeds you currently monitor, it maps each component to authoritative CVE sources, flags gaps, and emits audit-ready reports.
| In scope | Out of scope | |---|---| | Mapping components → authoritative feeds via a versioned registry | Running vulnerability scanners (Trivy/Snyk/etc.) | | Reporting coverage and gaps in JSON + Markdown | Fetching CVE content or ranking by severity | | Optional HEAD-check for source URL reachability | Integrating with private/commercial vuln databases | | Audit-ready output (deterministic, reproducible) | Live LLM research per run |
| Flag | Purpose |
|---|---|
| --inventory <file> | JSON inventory: [{name, version?, type?}, ...] or {components: [...]}. |
| --inline "name@ver,name,..." | Quick comma-separated list. Mutually exclusive with --inventory. |
| --current-sources <file> | Optional. One URL per line. Blank lines and # comments skipped. |
| --service <name> | Free-form name used in report header and filenames. |
| --check-urls | HEAD-check every source URL (5s timeout, graceful degradation). |
| --registry <path> | Override default tech-source-registry.json. |
| --out-dir <path> | Output directory (default: cwd). |
JSON inventory format only. YAML is not supported — stdlib does not ship a YAML parser.
| File | Format |
|---|---|
| cve-source-report-{service}-{YYYYMMDD}.md | Human-readable audit report. |
| cve-source-report-{service}-{YYYYMMDD}.json | Machine-readable per references/output-formats.md. |
| Exit code | Meaning |
|---|---|
| 0 | Full coverage. |
| 1 | Gaps exist (unmapped components or unmonitored sources). |
| 2 | At least one source URL is unreachable (only with --check-urls). |
| 3 | Input error (missing/malformed registry or inventory). |
tech-source-registry.json next to this SKILL.md by default.--inventory: parse JSON; accept either a list or {components: [...]}.--inline: split on commas, parse name@version pairs.--current-sources is provided, read URLs (one per line); normalize for
case-insensitive comparison.Gate: at least one inventory component is present. Empty inventory → exit 3.
name (and aliases) in the registry.
mapped, attach the registry's source list.unmapped, sources [].monitored: true when its
normalized URL appears in the set.--check-urls is set, HEAD-check every unique source URL. Treat
200/301/302/403/405 as reachable; record definite failures and network errors
distinctly. See references/source-verification.md.Gate: every component has a status; every source has monitored and
reachable fields populated (reachable: null when checks are skipped).
Gate: both files exist on disk and the summary printed; exit code reflects the audit result.
# Inline, offline, no monitoring data
python3 scripts/check-cve-sources.py \
--inline "[email protected],[email protected],postgres@16,redis@7,[email protected]" \
--service my-service
# Inventory file + current monitored feeds
python3 scripts/check-cve-sources.py \
--inventory examples/inventory.example.json \
--current-sources examples/current-sources.example.txt \
--service my-service
# Same, with link verification
python3 scripts/check-cve-sources.py \
--inventory examples/inventory.example.json \
--current-sources examples/current-sources.example.txt \
--service my-service \
--check-urls
To add a technology, edit tech-source-registry.json. Each entry needs name,
aliases, type, and 1–3 sources. Schema lives at
references/registry-schema.md.
references/registry-schema.md — registry shape, allowed kind/priority,
and how to add entries.references/source-verification.md — HEAD-check semantics and graceful
degradation rules.references/output-formats.md — JSON schema, Markdown sections, and exit-code
table.Cause: registry file missing or malformed JSON.
Solution: confirm tech-source-registry.json is at --registry (or default
location) and parses with python3 -m json.tool.
Cause: inventory file missing, malformed JSON, or unexpected shape.
Solution: validate with python3 -m json.tool. Inventory must be a list or an
object with a components key.
Cause: no usable components after parsing.
Solution: confirm each entry has a name. Inline form requires non-empty tokens.
Cause: --current-sources URLs do not match registry URLs exactly (e.g., extra
path segments, trailing slashes).
Solution: copy URLs directly from the registry. The script normalizes scheme/host
case and trailing slash; everything else must match.
--check-urls flags many [—] entriesCause: network issues (proxy, DNS, offline) — recorded as reachable: null.
Solution: re-run without --check-urls for the audit; investigate network
separately. Network errors do not affect the gap exit code.
documentation
Document translation: quick/normal/refined modes with chunked parallel subagents and glossary support.
development
AI image generation: Gemini and Nano Banana backends; single/series/batch workflows with prompt-to-disk.
testing
Unified voice content generation pipeline with mandatory validation and joy-check. 13-phase pipeline: LOAD, GROUND, STATS-CHECKPOINT, GENERATE, HOOK-GATE, VALIDATE, REFINE, VARIETY-GATE, JOY-CHECK, ANTI-AI, CLOSE-GATE, OUTPUT, CLEANUP. Use when writing articles, blog posts, or any content that uses a voice profile. Use for "write article", "blog post", "write in voice", "generate content", "draft article", "write about".
documentation
Critique-and-rewrite loop for voice fidelity validation.