fix-dependencies
Skill314 starsChanged 7 months agoMITView on GitHub
Fix all vulnerabilities on the current branch using npm audit. Local branch only — no ADO/GitHub queries.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ZAidBinAsif/flutter-ai-startertheir own version, first seen Jun 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ZAidBinAsif/flutter-ai-starter★ 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 repository8 other files it gives its agents.
- architectureSkill
- create-prSkill
- debug-agentSkill
- knowledge-syncSkill
- pac-cli-updateSkill
- reviewSkill
- security-alertsSkill
- workitemSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Add/update the entry in "overrides" in package.json, then:
- Very specific: line 52
Do not change intentionally-pinned overrides (nanoid, electron-to-chromium, @types/node) unless explicitly asked
- Very specific: line 56
Update the version in dependencies or devDependencies in package.json, then npm install.
- Distinctive: line 93
Document in final summary.
- Very specific: line 106
If npm run ci fails on a non-functional-test step (TypeScript error, lint, unit test), fix it and re-run before continuing.
≈ “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.
Files
Fix Dependencies
Fix all vulnerabilities on the current branch using npm audit. No user input required.
Scope: local branch only — no origin sync, no ADO queries, no Dependabot. For S360 / ADO / GitHub alerts use /security-alerts.
Step 1 — Audit
npm audit --json 2>&1Build a fix list. For each vulnerability, apply the first matching rule:
| Condition | Action |
patched_version exists | Fix it — patch/minor/major all acceptable for security |
inBundle: true, parent has newer version | Upgrade parent (Strategy B) |
inBundle: true, no parent upgrade | Patch lock file directly (Strategy C) |
patched_version: null | Accept risk, document, move on |
scope: development + low severity + no patch | Accept risk, move on |
Known permanent accepted risk — do not flag: elliptic (GHSA-848j-6mx2-7j84) via rewiremock — dev-only, no patched version.
Step 2 — Fix (no pausing between fixes)
Strategy A — npm override (non-bundled transitive dep)
Add/update the entry in "overrides" in package.json, then:
npm view <pkg>@<version> version # confirm version exists
# edit package.json overrides
npm install 2>&1
npm ls <pkg> 2>&1 # confirm version took effectHard rules:
- Never add
"minimatch": "^3.x"as a flat override — infinite npm loop ajvoverride must stay at^6.x— v8 breaks ESLint- Do not change intentionally-pinned overrides (
nanoid,electron-to-chromium,@types/node) unless explicitly asked
Strategy B — Direct dependency bump
Update the version in dependencies or devDependencies in package.json, then npm install.
Strategy C — Lock file patch (for inBundle: true packages)
# Find all paths for the package
node -e "
const l = require('./package-lock.json');
console.log(
Object.keys(l.packages)
.filter(k => k.endsWith('/<pkg>'))
.map(k => k + ' -> ' + l.packages[k].version + ' inBundle:' + l.packages[k].inBundle)
.join('\n')
);"
# Get safe version metadata
npm view <pkg>@<patched-version> dist.tarball dist.integrity --json
# Patch all matching entries
node -e "
const fs = require('fs');
const l = require('./package-lock.json');
Object.keys(l.packages)
.filter(k => k.endsWith('/<pkg>'))
.forEach(k => {
l.packages[k].version = '<patched-version>';
l.packages[k].resolved = '<tarball-url>';
l.packages[k].integrity = '<integrity>';
});
fs.writeFileSync('./package-lock.json', JSON.stringify(l, null, 2) + '\n');
console.log('Patched');
"
npm install 2>&1Strategy D — Accept risk
Document in final summary. Do not block or ask.
Step 3 — Verify
npm audit 2>&1
npm run ci 2>&1npm run ci functional tests will fail locally (require PA_BT_ORG_PASSWORD) — expected, not a blocker.
If npm run ci fails on a non-functional-test step (TypeScript error, lint, unit test), fix it and re-run before continuing. Do not commit a broken build.
Step 4 — Commit and PR (only if Step 3 passes)
git add package.json package-lock.json
git status # confirm nothing accidental staged
git commit -m "chore: fix dependency vulnerabilities"Then run /create-pr to create the pull request.
Final Summary
Print before handing off to /create-pr:
- Fixed: package, old → new version, strategy used
- Accepted risk: package, GHSA ID, reason
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.

