LightState Registry / Portable Agent Skill (SKILL.md)s / Security & Infra / skill-dependency-cve-patching
⚡ Pulse Score 84/100
Automated Dependency CVE Triage & Semver Lockfile Upgrade Skill
Audit `package-lock.json`, `pnpm-lock.yaml`, and `Cargo.lock` for reachable CVEs, test minimal semver patches against the full test suite, and open verifie
⚡ 1-Click Agent & Developer Install
Zero Auth · Ready for Grok Bot, Claude Code & Cursornpx lightstate install skill-dependency-cve-patching
Copy-Paste System Prompt / Routine Blueprint:
Load the Automated Dependency CVE Triage & Semver Lockfile Upgrade Skill (skill-dependency-cve-patching) playbook. First inspect our current configuration and codebase for CVE Triage, npm / pnpm, Supply Chain Security, Automated PRs. Then propose a concrete, step-by-step implementation plan following the skill-dependency-cve-patching guardrails, run the non-destructive verification commands (npm audit --json), and summarize any findings, risks, or required environment variables before making production changes.
📘 Complete SKILL.md Playbook Specification
--- name: dependency-cve-patching description: Audit `package-lock.json`, `pnpm-lock.yaml`, and `Cargo.lock` for reachable CVEs, test minimal semver patches against the full test suite, and open verified PRs. Use when working with CVE Triage, npm / pnpm, Supply Chain Security, Automated PRs. triggers: - dependency cve patching - cve triage - npm / pnpm --- # Automated Dependency CVE Triage & Semver Lockfile Upgrade Skill ## 1. When to Use This Skill Load `skill-dependency-cve-patching` whenever an engineering or operations task involves **CVE Triage, npm / pnpm, Supply Chain Security, Automated PRs**. Specifically: - Audit `package-lock.json`, `pnpm-lock.yaml`, and `Cargo.lock` for reachable CVEs, test minimal semver patches against the full test suite, and open verified PRs. - Designing, reviewing, or debugging production configurations without guesswork or deprecated flags. - Running deterministic pre-flight and post-execution verification checks before reporting completion. ## 2. Prerequisites & Required Environment - **Target Stack:** CVE Triage, npm / pnpm, Supply Chain Security, Automated PRs - **Permissions:** Read-only inspection by default; ask for explicit confirmation before executing destructive mutations or production deployments. - **Reference Repository:** `https://docs.github.com/en/code-security/dependabot` ## 3. Step-by-Step Execution Playbook 1. **Context & Configuration Discovery:** Inspect existing project manifests (`package.json`, `wrangler.jsonc`, schema files, or environment declarations) before proposing changes. Never overwrite existing bindings or credentials blindly. 2. **Deterministic Implementation:** Apply the canonical patterns for **CVE Triage**: - Enforce strict schema/type validation at every external boundary. - Include explicit error handling, structured logging, and idempotency keys on all mutating calls. - Keep secrets in environment variables or secret stores—never hardcode tokens in source files. 3. **Verification & Regression Gate:** Run the verification commands below and inspect both exit codes and output payloads before marking the task complete. ## 4. Reference Commands & CLI Workflow ```bash npm audit --json npx npm-check-updates --target minor ``` ## 5. Edge Cases & Anti-Hallucination Guardrails - **Zero Unverified Claims:** Never claim a deployment, migration, or API call succeeded without inspecting the command output or HTTP status code. - **Rollback Readiness:** Always record the previous state or migration version so changes can be reverted cleanly if downstream health checks fail.
Synthesized Engineering Blueprint & Setup Guide
### Overview & Capability Scope
**Automated Dependency CVE Triage & Semver Lockfile Upgrade Skill** (`skill-dependency-cve-patching`) is a verified, portable `SKILL.md` playbook curated with **@kentcdodds** for Grok Bot (`x.ai/bot/`), Claude Code (`~/.claude/skills/`), and Cursor (`.cursor/skills/`).
Audit `package-lock.json`, `pnpm-lock.yaml`, and `Cargo.lock` for reachable CVEs, test minimal semver patches against the full test suite, and open verified PRs.
### Required Stack & Tooling
- **Primary Stack:** CVE Triage, npm / pnpm, Supply Chain Security, Automated PRs
- **Category:** `security-ops`
- **Source & Reference:** [https://docs.github.com/en/code-security/dependabot](https://docs.github.com/en/code-security/dependabot)
### Quickstart Installation
Install this `SKILL.md` playbook directly into your agent workspace:
```bash
npx lightstate install skill-dependency-cve-patching
```
Or copy the complete `SKILL.md` specification below into `.cursor/skills/skill-dependency-cve-patching/SKILL.md` or `~/.claude/skills/skill-dependency-cve-patching/SKILL.md`.
### Verification Commands
```bash
npm audit --json
npx npm-check-updates --target minor
```
Tags: #cve-triage#npm-/-pnpm#supply-chain-security#automated-prs#skill-md#security-ops
✓ CERTIFIED X BUILDER PORTFOLIO
More Capabilities Curated from @kentcdodds
Related Verified Capabilities
Explore Security & Infra → Agent Skill
⚡ 94
Agent Skill
⚡ 93
Wrangler CLI Deployment & Resource Management Playbook
Agent Skill
⚡ 92
Cloudflare D1 SQLite Schema & Zero-Downtime Migrations Skill
Agent Skill
⚡ 91
Cloudflare R2 Object Storage & Presigned URL Pipeline Skill
Agent Skill
⚡ 90
Cloudflare Durable Objects Stateful Coordination Playbook
Agent Skill
⚡ 89