agentleFS
runxhqrunxhq/runx/skills/cve-audit/SKILL.md

cve-audit

Skill97 starsChanged 33 days agoApache-2.0View on GitHub

Audit exact npm dependency versions against OSV through Runx native HTTP and emit replay-verified evidence with no unverified findings.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use cve-audit when a reviewer needs reproducible evidence for the advisories affecting exact npm versions in a public immutable lockfile.

    line 18
  2. Distinctive:

    Do not use it for mutable branch URLs, private repositories without a declared reader, non-npm ecosystems, exploit development, or coverage …

    line 24
  3. Very specific:

    Read the pinned lockfile through the web connector's page.read, retaining its transport digest and refusing truncation.

    line 43
  4. Very specific:

    Read each returned advisory with osv/vulnerabilities.read, validate advisory identity, and exclude withdrawn advisories.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Exact CVE Audit

Audit exact npm versions from an immutable package-lock.json against OSV. Runx owns every network request, response bound, retry, host admission, and receipt. Package code owns only lockfile inventory and OSV result semantics.

The audit is read-only. It does not install dependencies, execute target code, repair packages, publish advisories, or treat missing OSV data as proof of safety.

When to use it

Use cve-audit when a reviewer needs reproducible evidence for the advisories affecting exact npm versions in a public immutable lockfile. It is appropriate for dependency review, release triage, and the evidence stage before vuln-triage. Exact-version matching matters: package-name or loose-range scans can turn possible exposure into false findings.

Do not use it for mutable branch URLs, private repositories without a declared reader, non-npm ecosystems, exploit development, or coverage claims broader than the selected dependency scope.

Inputs

  • target_name: human-readable project name.
  • target_repo: public https://github.com/... repository URL.
  • target_commit: full 40-character Git commit.
  • lockfile_url: raw.githubusercontent.com package-lock URL containing that commit in its path.
  • dependency_scope: direct-production by default, or all-installed.

Private repositories, credentials, mutable branch URLs, abbreviated commits, and non-npm lockfiles are outside this runner.

Execution contract

  1. Validate the immutable GitHub target before any network call.
  2. Read the pinned lockfile through the web connector's page.read, retaining its transport digest and refusing truncation.
  3. Extract exact installed versions from package-lock versions 2 or 3. The inventory is capped at 10,000 entries.
  4. Query OSV in batches of 500 with the osv connector's vulnerabilities.query. It sends POSTs but is a read; it is not a mutation lane.
  5. Refuse the audit if any OSV query result carries a page token. A partial provider result must never be reported as complete.
  6. Read each returned advisory with osv/vulnerabilities.read, validate advisory identity, and exclude withdrawn advisories. The verified advisory set is capped at 50; a larger set stops instead of being truncated.
  7. Assemble the audit, report, and evidence from the exact inventory and full advisory records.
  8. Repeat the OSV query and advisory reads in separate graph steps. Compare dependency path, exact version, advisory id, and withdrawal state. Finalize only when the two complete sets match.

The connectors admit only their declared hosts, reject credentials in URLs, and block private-network resolution. The skill has no private HTTP client and its deterministic JavaScript worker has no network access.

Outputs

  • audit_result (runx.security.exact_cve_audit.v1): immutable target, selected inventory, findings, and counts.
  • report (runx.security.exact_cve_report.v1): Markdown report bound by digest.
  • evidence (runx.security.exact_cve_evidence.v1): exact queries and returned non-withdrawn advisory ids.
  • verification (runx.security.exact_cve_verification.v1): independent replay comparison, including false, missing, changed, and withdrawn counts.
  • delivery (runx.security.exact_cve_delivery.v1): digests of every final packet, emitted only after successful verification.

The sealed graph receipt records both native provider passes and every derived packet. Checked-in example artifacts are illustrative prior evidence, not live provider proof for a new run.

Stop conditions

  • Target or lockfile URL is mutable, unpinned, non-HTTPS, or outside the declared GitHub hosts.
  • Lockfile version or shape cannot produce an exact inventory.
  • Inventory, advisory count, response size, or batch output exceeds a declared bound.
  • OSV returns an error, malformed shape, identity mismatch, or a pagination token the graph cannot complete.
  • The replay observes any added, removed, changed, or newly withdrawn finding.

The selected dependency scope is always carried into the output. A direct-production result makes no claim about transitive or development dependencies.

Example

For a lockfile pinned to one full Git commit, the skill inventories the exact installed production versions, queries OSV, reads every returned advisory, and then repeats the provider pass. It seals only if both complete finding sets match. The same request pointed at main/package-lock.json stops before the network boundary because the target is mutable; a clean finding set still means “OSV returned no matching advisory for this scope,” not “the project is safe.”

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.