agentleFS
goeroekugoeroeku/aicrew/skills/cve-audit/SKILL.md

cve-audit

Skill0 starsChanged 31 days agoMITView on GitHub

Use to audit a project's dependencies (package-lock.json, go.mod, requirements*.txt) against OSV and open one issue per vulnerable package with upgrade advice (patch, minor, major). Run on demand or on a schedule; never updates dependencies itself.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. runxhq/runx★ 97same name
    2. Evan-Daruwalla/claude-skill-suite★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check all repo dependencies against OSV, then open one issue per vulnerable package with upgrade advice.

    line 10

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

Language: reply in the language the user writes in. Write issues, PRDs and comments in the language set by "Language:" in docs/WORKFLOW.md, or in the user's language when it is absent. "Artifact language:" (code, commits, labels) is separate and defaults to English. Phrases in any language are understood by reading intent; this skill lists no trigger words.

Dependency CVE audit

Check all repo dependencies against OSV, then open one issue per vulnerable package with upgrade advice.

  1. View the plan first: bash ${CLAUDE_PLUGIN_ROOT}/scripts/cve-audit.sh --dry-run. Without arguments, files are detected from git ls-files (package-lock.json, go.mod, requirements*.txt); or name the files explicitly.
  2. Show the owner the list of issues to be created (title CVE: <paket> <versi> -> <target> (<saran>)) and wait for approval if there are many.
  3. Create issues: run without --dry-run. Issues are labeled needs-security; major or tanpa-perbaikan advice also gets needs-principal (the token tanpa-perbaikan must be written exactly as shown because scripts read it back). Packages that already have an open issue starting with CVE: <paket> are skipped. Issues are created via REST, so they do not depend on GraphQL rate limits.
  4. Follow-up: patch or minor advice is worked on by aicrew-senior-coder like a normal issue (test first, full suite). major and tanpa-perbaikan advice waits for a principal or owner decision (version, mitigation, package replacement, or a cve waiver).

Private packages (the Private packages: line in WORKFLOW.md, GOPRIVATE, .npmrc scopes) are skipped: they are never sent to OSV, and the report states their count ("N private packages not checked"), not their names.

Rules: never upgrade a dependency version without an issue and tests; never call the result "CVE-free", only "no known vulnerabilities in OSV as of <tanggal> for <berkas>" (the database is incomplete, zero-days exist, and transitive dependencies without a lockfile are invisible). Exit code 2 = OSV unreachable: retry later.

Periodic scheduling: use the /schedule or /loop skill to run this skill; the script does not schedule itself.

Repos released from a non-default branch

Scheduled workflows (schedule) and dependabot.yml are only active from the default branch. When the default branch does not contain the project code (e.g. without go.mod, Dockerfile, or pins; everything lives only on the integration branch), copying the full workflow there will fail. The script warns about this ("N scheduled workflows not yet active (integration only)"), and issues whose PR has only been merged into integration are labeled awaiting-release until the file exists on the default branch.

A pattern that worked in one project (not a guarantee; not yet verified in other repos): place a small bridge on the default branch.

Bridge workflow on the default branch (scheduled there, but checks out the integration branch):

on:
  schedule:
    - cron: "0 3 * * *"
jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          ref: <cabang-integrasi>
      # langkah audit/uji yang biasanya dijalankan di integrasi

.github/dependabot.yml on the default branch, targeting PRs at integration:

version: 2
updates:
  - package-ecosystem: gomod
    directory: /
    target-branch: <cabang-integrasi>
    schedule:
      interval: weekly

In that project, the first Dependabot PR against the integration branch appeared within about an hour.

Note: during a full integration -> default release, add/add conflicts on the bridge files (dependabot.yml, workflow) are expected because the same files exist on both branches; resolve by keeping the integration version, then remove the bridge when it is no longer needed.

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.