mcpbeat

Dependency Management

cosmicstack-labs/dependency-management

Version pinning, vulnerability scanning, monorepo patterns, and upgrade workflows

448 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
365
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill dependency-management

The instruction itself

8 sections, as written by the author

Dependency Management

Safely manage project dependencies at scale.

Version Strategy

Pinning Approaches

| Strategy | Format | Risk | Best For |

|----------|--------|------|----------|

| Exact | 1.2.3 | Low | Docker, CI, production |

| Caret | ^1.2.3 | Medium | Libraries, apps with good tests |

| Tilde | ~1.2.3 | Low-Medium | Conservative updates |

| Range | >=1.2.3 <2.0.0 | High | Rare, legacy |

| Floating | * | Very High | Never in production |

Rule: Pin exact versions for production, caret for libraries.

Vulnerability Scanning

Tools

  • npm audit / yarn audit — quick JS check
  • Dependabot — GitHub-native, auto PRs
  • Snyk — deeper scanning, prioritization
  • Trivy — container scanning
  • OWASP Dependency-Check — Java/.NET

Workflow

  • Scan on every PR (fail on critical/high)
  • Weekly full scan of all repos
  • Patch critical (<7 days), high (<30 days)
  • Track CVEs by severity in dashboard
  • SBOM generation per release

Monorepo Patterns

  • Use workspaces (npm/yarn/pnpm workspaces)
  • Shared dependency versions (single source of truth)
  • Independent vs locked version strategy
  • Deduplicate (npx dedupe after major changes)
  • Audit tree to find conflicting transitive deps

Upgrade Workflow

  • Check changelog for breaking changes
  • Run tests (you have tests, right?)
  • Upgrade one major version at a time
  • Run full test suite + build
  • Deploy to staging, verify
  • Monitor for regressions (logs, metrics, errors)

How to use it

Copy the folder

Take cosmicstack-labs/dependency-management from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference npx. Without those the skill loads but fails at the first command.