By iwritec0de
Dependency guardian — intercepts package installs to enforce latest versions and block vulnerable packages. Supports npm, pip, and composer. Hard-blocks when offline or scans unavailable.
Dependency security for Claude Code — automatically intercepts package install commands to enforce latest versions and block vulnerable packages before they reach your project.
Every time Claude runs a package install command, dep-guard intercepts it and:
| Condition | Action |
|---|---|
| Registry offline | BLOCK — can't verify safety |
| Critical/High vulnerability | BLOCK — suggests alternatives |
| Medium vulnerability | WARN — allows with warning |
| Outdated version requested | BLOCK — provides corrected command |
| No issues found | ALLOW |
| Ecosystem | Install Commands | Registry |
|---|---|---|
| npm | npm install, npm i, npm add | npmjs.org |
| yarn | yarn add | npmjs.org |
| pnpm | pnpm add, pnpm install | npmjs.org |
| bun | bun add, bun install | npmjs.org |
| pip | pip install, pip3 install, uv add, uv pip install | pypi.org |
| composer | composer require | packagist.org |
Lockfile-only installs (npm ci, bare yarn, bare pnpm install, pip install -r requirements.txt, etc.) are skipped — no new packages means no checks needed.
> npm install [email protected]
============================================================
BLOCKED: High/Critical vulnerabilities detected
============================================================
[HIGH] event-stream: GHSA-xxx-xxx
Malicious dependency injection via flatmap-stream
============================================================
> npm install [email protected]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VERSION UPGRADE: Installing latest versions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
express: 4.17.0 -> 5.1.0
Updated command: npm install [email protected]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BLOCKED: Outdated versions requested. Use this command instead:
npm install [email protected]
> pnpm add zod
✓ Registry online
✓ Latest version: 3.24.4
✓ No vulnerabilities found
/dep-guard:dep-check [package] — Check a specific package for vulnerabilities before installing/dep-guard:dep-audit [--fix] — Audit all installed dependencies in the current projectAdd to your project's .claude/settings.json:
{
"extraKnownMarketplaces": {
"iwritec0de-plugins": {
"source": { "source": "github", "repo": "iwritec0de/claude-plugin-marketplace" }
}
},
"enabledPlugins": {
"dep-guard@iwritec0de-plugins": true
}
}
Debug logs are written to /tmp/dep-guard.log for troubleshooting.
MIT
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub iwritec0de/claude-plugin-marketplace --plugin dep-guardFull-stack Next.js development: App Router patterns, TypeScript engineering, Supabase/PostgreSQL/MySQL database integration, Prisma ORM, API design and scaffolding, authentication and authorization, Framer Motion animations, quality gate enforcement, and security scanning
WordPress development plugin — enforces WPCS, blocks insecure code patterns, and provides WP/WooCommerce development guidance
Check dependencies for known vulnerabilities, outdated packages, and license compliance
Evaluates packages, manages dependencies, and addresses supply chain security
Secure dependency upgrades with supply chain protection, cooldown periods, post-install script hardening, lockfile validation, and staged rollout across npm, Bun, pnpm, and Yarn. Use when upgrading dependencies, configuring security policies, or preventing supply chain attacks.
Audit, update, and manage project dependencies with safety checks
DevsForge package dependency updater with smart version resolution, breaking change detection, and automated testing
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use