/cdx:safe-depsfrom cdx
Enforces safe dependency installation practices across all projects. MUST trigger whenever Claude is about to run any package install command (pnpm, bun, uv), add a dependency, initialize a project, scaffold an app, or set up a dev environment. Also triggers when Claude would reach for npm, yarn, or npx — these are banned and must be replaced. Covers JavaScript/TypeScript (pnpm or bun) and Python (uv) ecosystems.
Ships in cdx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill enforces the user's preferred package managers and security-hardened install settings. The rules below exist to defend against supply-chain attacks (typosquats, malicious post-install scripts, surprise updates pulled in by fuzzy version ranges) and to keep installs reproducible across environments — every constraint maps back to one of those two goals.
Never use npm, yarn, or npx. The user does not use these. If a README, tutorial, or template says npm install or yarn add, translate to the correct tool below. For one-off package execution, use pnpm dlx or bunx (never npx).
The user works with both pnpm and bun depending on the project. Detect which one by checking the project directory:
| Signal | Use |
|---|---|
pnpm-lock.yaml or pnpm-workspace.yaml exists | pnpm |
bun.lock or bun.lockb or bunfig.toml exists | bun |
.npmrc with pnpm-specific settings | pnpm |
| Neither detected | Ask the user which they prefer for this project |
If both signals exist (e.g. a migration in progress), ask the user.
Always use uv. Never use pip, pip3, poetry, or pipenv directly.
Every install must enforce three things: exact version pinning, a minimum release age of 10 days, and disabled post-install scripts. These protect against supply-chain attacks and ensure reproducible builds.
Never use ~, ^, or any range specifier when adding dependencies. Always pin to an exact version. Fuzzy ranges silently pull in new code that hasn't been reviewed.
pnpm add <package> --save-exact --ignore-scriptsbun add <package> --exact --ignore-scriptsuv add <package> (uv pins exact versions by default in pyproject.toml)Also set this as the default in config so it applies even if --save-exact/--exact is accidentally omitted:
pnpm — in .npmrc:
save-exact=true
bun — in bunfig.toml:
[install]
exact = true
Minimum release age — set in pnpm-workspace.yaml (value is in minutes; 10 days = 14400):
minimumReleaseAge: 14400
If the project doesn't have this setting yet, add it before running any install command.
Disable scripts — always pass --ignore-scripts:
pnpm install --ignore-scripts
pnpm add <package> --ignore-scripts
Minimum release age — set in bunfig.toml under [install] (value is in seconds; 10 days = 864000):
[install]
minimumReleaseAge = 864000
If the project doesn't have this setting yet, add it (create bunfig.toml if needed) before running any install command.
Disable scripts — always pass --ignore-scripts:
bun install --ignore-scripts
bun add <package> --ignore-scripts
Note: bun already skips lifecycle scripts for dependencies by default, but --ignore-scripts also skips the project's own pre/post install scripts, which is what we want.
Minimum release age — set in pyproject.toml or uv.toml using exclude-newer with a friendly duration:
[tool.uv]
exclude-newer = "10 days"
If the project doesn't have this setting yet, add it before running any install command.
Python packages don't have post-install scripts in the same way as npm, so no extra flag is needed here.
When you're about to install dependencies:
--ignore-scripts and --save-exact/--exact (for pnpm/bun)^ or ~ ranges crept into package.jsonWhen creating a new project from scratch:
pnpm-workspace.yaml, bunfig.toml, or pyproject.toml) with the security settings from the startnpm install — if a scaffolding tool runs npm automatically, re-install with the correct tool afterward| Ecosystem | Tool | Exact pin config | Min release age config | Scripts flag |
|---|---|---|---|---|
| JS/TS | pnpm | .npmrc: save-exact=true | pnpm-workspace.yaml: minimumReleaseAge: 14400 | --ignore-scripts |
| JS/TS | bun | bunfig.toml: exact = true | bunfig.toml: minimumReleaseAge = 864000 | --ignore-scripts |
| Python | uv | default behavior | pyproject.toml: exclude-newer = "10 days" | N/A |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub deviantony/claude-plugins --plugin cdx9 skills in this plugin
/coderevPre-PR code review of the current branch, run by an independent reviewer subagent in a fresh context; the main agent then triages its findings on its own, fixes what is worth fixing in a separate commit, and reports what it fixed, skipped and needs the user for. Use proactively, without being asked, right before opening a pull request on the user's own branch: before running `gh pr create`, or when the user says "open a PR", "ready for review", "ship it", "push this up for review". Also invoked manually as `/cdx:coderev`./dev-docsGenerate and maintain a `docs/` directory of markdown developer documentation for a project. Scans source code, writes structured docs with YAML frontmatter for git-based drift tracking, and produces clean markdown that renders on GitHub (including mermaid diagrams). Use this skill when the user asks to generate, create, update, or refresh developer documentation, scan their codebase for documentation purposes, or check whether existing docs have drifted from the code. Also trigger on phrases like "dev docs", "documentation builder", "doc generator", "refresh the docs", "check docs for drift", or "document this codebase". Do NOT trigger for implementation plans, architecture decisions, migration plans, general project planning, code reviews, API reference generation from annotations, or any task that isn't specifically about producing or maintaining a hand-written developer documentation set.