/varsel-poc:verifyfrom varsel-poc
Verifies Varsel CVE records against EEF conventions, schema, and lint rules before publishing. Checks previews, blockers, and upstream CVEs.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /varsel-poc:verify still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Reference: https://cna.erlef.org/cve-criteria
Verify the case specified by the user (or the current working case). Fix any issues as proposals (never by editing rendered JSON), then confirm everything passes.
mcp__varsel__refresh_case_derivation(id: <case-id>)
Refresh first: the preview renders from the cached derivation and does not recompute it, so a stale cache renders stale (often empty) version ranges. Derivation also runs on its own a few seconds after a fact changes, but the refresh does not wait for that. refresh_case_derivation recomputes and returns the freshly rendered preview, so you get the record to check from this one call — no separate render_case_preview needed (that tool exists too, but it would render the same cache without recomputing).
Pass refresh: true when the package repository may have changed since the last derivation, most often when a fix shows as unreleased and you are checking whether its tag has landed. It refetches the repository state before deriving; without it, derivation can reuse recently cached git state and miss tags pushed in the meantime.
The returned preview holds the full CVE record (preview.cve_record, using a CVE-0000-0000 placeholder until an ID is assigned) and publish blockers (preview.blockers). Any publish blocker is an automatic FAIL — resolve it before anything else. Use the CNA container at preview.cve_record.containers.cna as the record under test for the convention checklist.
Upstream CVEs. When the case links an upstream CVE (upstream_cve: true), another CNA assigned the ID, and containers.cna is that CNA's container: never check or propose changes to it. The record under test is then the entry in preview.cve_record.containers.adp whose providerMetadata.orgId is this CNA's. It follows the same conventions, except that it has no dateAssigned. Validation of an upstream record checks the CVE schema only, so the convention checklist is the only check of the EEF rules: work through it in full. While the upstream ID is RESERVED, containers.cna is a stand-in and the preview carries a blocker for it. That blocker is expected during an embargo: report it, but do not count it as a defect of the case.
A cannot resolve versions blocker means git could not be reached. Retry with refresh: true
first. When the repository is gone for good (deleted or taken private), the package needs
repo_unreachable: true and a version on every boundary, which derives the ranges from those
versions and tags the commit links broken-link. Verify the repository is actually gone before
reporting that as the fix.
preview.osv_record is the OSV document the record would publish as, enumerated hex.pm versions included (preview.osv_status says why when there is none).
Note: the preview reflects accepted proposals only. If you (or the user) just submitted fixes as new proposals, they must be accepted before they show up here — accept, refresh, then re-render.
mcp__varsel__validate_case(filter: {field: "id", operator: "eq", value: "<case-id>"})
This is a read, addressed by filter rather than by an id argument. It returns the validation result — the schema + cvelint + hex-package check ({valid, errors}) over the rendered record — and nothing else of the case. Any error is a FAIL. Fix it as a proposal, then re-run.
Reach for the standalone validate_cve_record (and the per-check validate_cve_record_schema / _cvelint / _hex_packages) only to isolate a specific failure against a hand-modified record.
Read the rendered record and verify each item. Report PASS/FAIL for each.
mcp__varsel__get_case(id: <case-id>) shows, across assignments and invites, the advisory's collaborators and credited users, the repository owner (when a user, not an organization), and the owners of each affected hex package. Add anyone missing with mcp__varsel__grant_case_access, with role: "maintainer" for the repository owner and package owners; never remove anyone.cveMetadata contains assignerOrgId, assignerShortName, cveId, state. Date fields, if present, are set externally — leave them.cveMetadata.state is "PUBLISHED".programRoutines use Erlang notation module:function/arity — Elixir modules use the 'Elixir.ModuleName' atom prefix (e.g. 'Elixir.Decimal':add/2), not dot notation.programRoutines list vulnerable routines only — no bookkeeping helpers the fix commit happens to touch.modules lists the analogous module names on both sides.value) present.supportingMedia, type: "text/html") present.<tt> for code/paths and <p> for paragraphs.TODO (use before TODO if the fix version is genuinely unknown).value) and HTML.x_technicalAnalysis and x_proofOfConcept, if present, each carry plain text (value), HTML and markdown.impacts[].descriptions[] entry says what an attacker gains; no version ranges, no CVSS score, never "no fix available". An entry that only restates the CAPEC name is the default label, not a finding.versionType: "purl".changes entries use the fix commit SHA, not a release-tag SHA.defaultStatus is "unaffected" on every entry whose versions bound a range. "affected" implicitly marks unlisted versions as vulnerable and is almost always wrong.repo URL has no .git suffix on GitHub entries and is consistent across all entries for the same project.pkg:github/... (source-repo) entry contains only versionType: "git" blocks — no duplicate semver block (that belongs on the package-registry entry).cpes present on each affected entry.cpeApplicability present at the top level, mirroring the version ranges.cpeApplicability operator orientation: outer node "OR", each inner cpeMatch group "AND". Do not invert.Detect the type from the first affected entry's packageURL and apply the matching rules:
OTP (pkg:otp/<lib>):
pkg:otp/<lib>?repository_url=…&vcs_url=… (both qualifiers naming the erlang/otp repository), versionType: "otp". Second: pkg:github/erlang/otp, otp blocks then git blocks.programFiles are library-root-relative (src/ssh_sftpd.erl); second entry programFiles are full repo path (lib/ssh/src/ssh_sftpd.erl).programFiles, programRoutines, modules.Gleam compiler (pkg:software-id/gleam.run/gleam):
pkg:software-id/gleam.run/gleam, versionType: "semver". Second: pkg:github/gleam-lang/gleam, both semver and git blocks. Optional third: pkg:oci/gleam?repository_url=ghcr.io/gleam-lang/gleam with per-image versionType: "other" entries.programFiles, programRoutines, modules.Hex package (pkg:hex/<name>):
pkg:hex/<name> + pkg:github/<owner>/<repo>), plus an optional pkg:npm/<name> entry only when the library ships a JS client on npm and the vulnerable file is in the npm tarball.pkg:hex/<name>, semver. Last github entry: git. If an npm entry exists, its programFiles reflect the real npm-tarball paths and its range matches what shipped to npm.programFiles, programRoutines, modules.A case linked to its GitHub advisory carries the comparison itself. Read the advisory again, then the diff:
mcp__varsel__refresh_github_advisory_link(case_id: <case-id>)
mcp__varsel__get_case_github_advisory(case_id: <case-id>)
diff holds one row per field (title, one row per description section: description (the Summary), details, proof_of_concept, impact, workarounds, configurations, solutions, references, then cve_id, cvss_v4, weaknesses, credits, then one affected row per distribution channel, named in package, holding every advisory entry that names it) with ours, theirs and a status: same, differs, ours_only, theirs_only, or not_derived for a channel the case has but derived no range for. An unmapped row (status unmapped) lists the advisory's description content outside every section, each with its heading and body. get_case_github_advisory finds nothing for an unlinked case; then find the GHSA URL in references (first vendor-advisory) and re-fetch it:
gh api /repos/<owner>/<repo>/security-advisories/<ghsa-id>
TODO in the record is still a TODO in the advisory's patched_versions (the affected rows' theirs.patched). If the advisory now has a real fix version, propose the fix commit and re-derive.vulnerable_version_range: every affected row is same. A differs row means a wrong boundary SHA on the case. Investigate before trusting either side. An OTP package fixed on several maintenance lines states one span open from the introducing release with a fix per line, rather than one range per line; check each fix against the advisory, not the span.credits row is same. A GHSA holds one role per person, the CVE record may hold several. Do not skip pending credits.handles carries the GitHub login the advisory shows for the person (user.login), and the hex.pm username when known. A credit for a person with an account here shows a user_id; propose the missing handle otherwise.source.discovery is "EXTERNAL", "INTERNAL", or "UNKNOWN".workarounds omitted entirely.["vendor-advisory"] (GHSA → ["vendor-advisory", "related"]; a case linked to its GitHub advisory renders this one itself).https://cna.erlef.org/cves/CVE-<num>.html ["related"] (add "third-party-advisory" if no vendor advisory).https://osv.dev/vulnerability/EEF-CVE-<num> ["related"].https://www.erlang.org/doc/system/versions.html#order-of-versions ["x_version-scheme"] present — derived from any OTP-versioned entry, so its absence means no entry is OTP-versioned."patch"-tagged reference, unless the vulnerability is unpatched. The introducing commit renders as a "related" reference, named, alongside them.name that is the page title, or none at all; the derived ones come named.metrics[] entry has the GENERAL scenario, and its baseScore is not 0.0 — i.e. the case has a GENERAL metric and it derived through.List each failed check with the specific problem and the proposal that fixes it (or that is needed). If everything passes and there are no publish blockers, confirm "All checks passed."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
None: SKILL.md is the whole skill.
npx claudepluginhub erlef-cna/varsel --plugin varsel-poc7 skills in this plugin
Other plugins' skills for the same job