agentleFS
NVIDIAKnown publisherNVIDIA/multi-storage-client/.agents/skills/fix-cve/SKILL.md

fix-cve

Skill85 starsChanged 3 months agoApache-2.0View on GitHub

Fix CVE vulnerabilities by upgrading affected dependencies across Python (uv), and Rust layers. Use when the user mentions CVE numbers, asks to fix security vulnerabilities, or asks to patch dependencies for CVEs.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search the repo for each affected package across all layers:

    line 45
  2. Distinctive:

    If a package is not found anywhere, tell the user and skip it.

    line 53
  3. Distinctive:

    Check whether the parent package (the one that pulls it in) has a version that already requires the fixed version.

    line 64
  4. Very specific:

    If no parent version solves it, determine whether a constraint-dependencies entry or an override-dependencies entry is needed:

    line 67
  5. Distinctive:

    Verify the lock file contains the expected versions:

    line 96
  6. Distinctive:

    Only run verification for layers that were changed.

    line 109
  7. Distinctive:

    If an override is the only option, explain why and ask for confirmation.

    line 149
  8. Very specific:

    If a fix requires widening an upper bound on a direct dependency (e.g.

    line 150
  9. Distinctive:

    If a CVE affects a package not in the dependency tree, report it and skip.

    line 152

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

Fix CVE

Fixes one or more CVE vulnerabilities in the multi-storage-client repository by identifying and upgrading affected dependencies.

Input

The user provides one or more CVE identifiers (e.g. CVE-2026-27459).

Workflow

Copy this checklist and track progress with TodoWrite:

- [ ] Step 1: Research each CVE
- [ ] Step 2: Locate affected dependencies
- [ ] Step 3: Plan fixes (present to user)
- [ ] Step 4: Apply fixes
- [ ] Step 5: Verify lock files and builds
- [ ] Step 6: Output commit message and PR description

Step 1: Research each CVE

For each CVE, web-search for:

  • Affected package name and vulnerable version range
  • Fixed version (minimum safe version)
  • CVSS score and severity

Collect into a table:

CVEPackageVulnerableFixedCVSSSeverity

Step 2: Locate affected dependencies

Search the repo for each affected package across all layers:

LayerFiles to check
Python directmulti-storage-client/pyproject.toml [project.dependencies] and [project.optional-dependencies]
Python transitiveuv.lock — grep for the package name
Rustrust/Cargo.toml and rust/Cargo.lock

If a package is not found anywhere, tell the user and skip it.

Step 3: Plan fixes (present to user before proceeding)

For each affected dependency, determine the fix strategy:

Python direct dependency

Bump the version floor in multi-storage-client/pyproject.toml. If the upper bound excludes the fixed version, widen it.

Python transitive dependency

Check whether the parent package (the one that pulls it in) has a version that already requires the fixed version. If so, bump the parent's floor.

If no parent version solves it, determine whether a constraint-dependencies entry or an override-dependencies entry is needed:

  • Use constraint-dependencies (preferred) when the upstream allows the fixed version but the lowest-direct resolver picks an older one. A constraint tightens the floor without conflicting with upstream bounds.
  • Use override-dependencies (last resort) only when an upstream package has an explicit upper bound that blocks the fixed version. Overrides silently ignore upstream constraints and should be documented with a comment explaining why.

To test which is needed: try constraint-dependencies first. If uv lock fails with an unsolvable conflict, the upstream has a blocking upper bound and an override is required.

Both live in the workspace-root pyproject.toml under [tool.uv].

Rust dependency

Edit rust/Cargo.toml version requirement, then cargo update -p <crate>.

Step 4: Apply fixes

Apply each fix. After modifying Python constraints/overrides, regenerate the lock file:

uv lock --upgrade-package <package1> --upgrade-package <package2>

Verify the lock file contains the expected versions:

grep -A2 'name = "<package>"' uv.lock

Step 5: Verify builds

LayerVerification command
Pythonjust multi-storage-client/run-unit-tests (or cd multi-storage-client && uv run pytest)
Rustcd rust && cargo test

Only run verification for layers that were changed.

Step 6: Output commit message and PR description

Commit message format

Single line only — no body.

fix: upgrade <packages> for <CVE list>

Example:

fix: upgrade pyOpenSSL and authlib for CVE-2026-27459, CVE-2026-27962

PR description format

## Summary
- <Bullet per CVE: ID, severity, package, what the vulnerability allows, fixed version.>

## Changes
- <Bullet per file changed and what was done.>

## Override justification
<If any override-dependencies were added, explain why a constraint was
insufficient (which upstream package blocks the fixed version and what its
upper bound is). If no overrides, omit this section.>

## Test plan
- [ ] Python unit tests pass
- [ ] Lock file contains expected versions
- [ ] No new linter errors

Key decisions to confirm with user

  • If an override is the only option, explain why and ask for confirmation.
  • If a fix requires widening an upper bound on a direct dependency (e.g. cryptography>=44,<46 → <47), flag the change and its implications.
  • If a CVE affects a package not in the dependency tree, report it and skip.

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.