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.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- multi-storage-client/AGENTS.mdAGENTS.md
- multi-storage-explorer/AGENTS.mdAGENTS.md
- capture-learningSkill
- cloud-storage-setupSkill
- generate-specSkill
- generate-test-planSkill
- prepare-mrSkill
- release-automationSkill
- researchSkill
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
- Distinctive: line 45
Search the repo for each affected package across all layers:
- Distinctive: line 53
If a package is not found anywhere, tell the user and skip it.
- Distinctive: line 64
Check whether the parent package (the one that pulls it in) has a version that already requires the fixed version.
- Very specific: line 67
If no parent version solves it, determine whether a constraint-dependencies entry or an override-dependencies entry is needed:
- Distinctive: line 96
Verify the lock file contains the expected versions:
- Distinctive: line 109
Only run verification for layers that were changed.
- Distinctive: line 149
If an override is the only option, explain why and ask for confirmation.
- Very specific: line 150
If a fix requires widening an upper bound on a direct dependency (e.g.
- Distinctive: line 152
If a CVE affects a package not in the dependency tree, report it and skip.
≈ “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.
Files
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 descriptionStep 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:
| CVE | Package | Vulnerable | Fixed | CVSS | Severity |
Step 2: Locate affected dependencies
Search the repo for each affected package across all layers:
| Layer | Files to check |
| Python direct | multi-storage-client/pyproject.toml [project.dependencies] and [project.optional-dependencies] |
| Python transitive | uv.lock — grep for the package name |
| Rust | rust/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 thelowest-directresolver 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.lockStep 5: Verify builds
| Layer | Verification command |
| Python | just multi-storage-client/run-unit-tests (or cd multi-storage-client && uv run pytest) |
| Rust | cd 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-27962PR 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 errorsKey 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.
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
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.

