Agent skill

Security Vuln Remediation

by stacklok in stacklok/toolhive-studio

Remediate security vulnerabilities found by Grype or pnpm audit.

Apache-2.0Auto-check: notesSecurity

Install Security Vuln Remediation

skills CLI
$ npx skills add stacklok/toolhive-studio --skill security-vuln-remediation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install stacklok/toolhive-studio security-vuln-remediation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/stacklok/toolhive-studio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/security-vuln-remediation .claude/skills/security-vuln-remediation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
security-vuln-remediation
GitHub stars
170
Token cost
~2.3k tokens
SKILL.md length
1,014 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
Apache-2.0

At a glance

Remediate security vulnerabilities found by Grype or pnpm audit.

  • Works in 6 steps: Identify Vulnerabilities → Trace the Dependency → Attempt an Upgrade → …
  • A security scan fails
  • SKILL.md covers Project Context, Remediation Workflow, Output and Important Constraints
  • Calls pnpm

What it does

Security Vuln Remediation is an agent skill from stacklok/toolhive-studio. Remediate security vulnerabilities found by Grype or pnpm audit. Use when a security scan fails, a CVE needs fixing, or you need to analyze, upgrade, override, or ignore a vulnerable dependency.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Security, covering Vulnerability scanning, Security review and MCP servers. It works with pnpm, Model Context Protocol and npm. The repository describes itself as: ToolHive is an application that allows you to install, manage and run MCP servers and connect them to AI agents. The licence is Apache-2.0.

When your agent uses it

  • A security scan fails
  • A CVE needs fixing
  • You need to analyze
  • Ignore a vulnerable dependency

Example prompts

  • “/security-vuln-remediation”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Identify Vulnerabilities
  2. Trace the Dependency
  3. Attempt an Upgrade
  4. Apply a pnpm Override
  5. Add a Grype Ignore (Last Resort)
  6. Impact Analysis

What it can do on your machine

Read from SKILL.md and the folder at commit 87f7a55. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Security Vuln Remediation loads about 2.3k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 1,014 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:211
    - Do NOT modify `.env` files

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from stacklok/toolhive-studio at commit 87f7a55, republished under its Apache-2.0 licence (© stacklok). 1,014 words, ~2,338 tokens.

Download SKILL.mdSave it as .claude/skills/security-vuln-remediation/SKILL.md (or your agent's skills folder).
name
security-vuln-remediation
description
Remediate security vulnerabilities found by Grype or pnpm audit. Use when a security scan fails, a CVE needs fixing, or you need to analyze, upgrade, override, or ignore a vulnerable dependency.

Security Vulnerability Remediation

Playbook for analyzing and remediating security vulnerabilities in this Electron/Node.js project. Applies to both CI (Cursor agent in GitHub Actions) and local development.

Project Context

  • Package manager: pnpm 11 (lockfile: pnpm-lock.yaml)
  • Scanner: Grype with config at .grype.yaml (only reports vulnerabilities with a fix available)
  • Audit: pnpm audit --prod --audit-level=moderate
  • Existing overrides: overrides block in pnpm-workspace.yaml — used to pin transitive dependencies to patched versions (pnpm 11 no longer reads the pnpm field from package.json)
  • Production deps: listed under dependencies in package.json
  • Dev-only deps: listed under devDependencies in package.json — not shipped to users

Remediation Workflow

Follow these steps in order. Stop at the first step that resolves the vulnerability.

Step 1 — Identify Vulnerabilities

Run both scanners and capture the output:

bash
grype . --config .grype.yaml
pnpm audit --prod --audit-level=moderate

For each finding, record:

  • CVE ID (e.g. CVE-2024-12345)
  • Affected package and installed version
  • Fixed version (if available)
  • Severity (critical / high / medium)
  • Whether the package is a direct or transitive dependency
Step 2 — Trace the Dependency

For each vulnerable package, understand who pulls it in:

bash
pnpm why <package-name>

Record:

  • Which direct dependency depends on it
  • How many versions of the package are installed
  • Whether it appears under dependencies (production) or devDependencies (dev-only)
Step 3 — Attempt an Upgrade

Check if a patch/minor upgrade of the direct dependency resolves the CVE:

bash
pnpm update <direct-dependency>

Or, if the vulnerable package is a direct dependency itself, update its version range in package.json.

After the change:

  1. Run pnpm install to regenerate the lockfile
  2. Re-run grype . --config .grype.yaml to verify the vulnerability is gone

If the upgrade resolves it, this step is complete. Move to the next vulnerability.

Step 4 — Apply a pnpm Override

If no non-breaking upgrade is available, or the fix requires a major version bump of a transitive dependency that is safe to force:

Add or update an entry in the overrides block inside pnpm-workspace.yaml. You MUST follow the existing override style used in the project. Current overrides look like this:

yaml
overrides:
  fast-xml-parser: '>=5.5.9'
  lodash-es: '>=4.17.23'
  tar: '>=7.5.7'

Rules for overrides (follow strictly):

  1. Always use the >= prefix for values — this allows future patches. Example: '>=1.2.3'.

  2. BEFORE writing any override, check pnpm why <package> for multiple major versions. This is mandatory. If the tree contains more than one major line, an unscoped override would force ALL consumers onto the overridden version, breaking packages that expect a different major.

  3. Use a simple top-level override ONLY when one major line exists — if every installation of the package is on the same major, a single package: '>=fixed' entry is safe:

    yaml
    some-package: '>=1.2.3'
  4. Use parent-scoped overrides when multiple majors coexist — scope the override to the dependency path that pulls in the vulnerable version using 'parent>package' syntax:

    yaml
    'parent-pkg>vulnerable-pkg': '>=2.0.1'

    This only overrides vulnerable-pkg when required by parent-pkg, leaving other consumers on their compatible major. Pick the nearest direct parent that exclusively uses the vulnerable major line.

    WRONG — never use an unscoped override when multiple majors exist:

    yaml
    vulnerable-pkg: '>=2.0.1'

    This would force every consumer onto v2, breaking those that depend on v1.

  5. Only override actually vulnerable versions — if pnpm why shows multiple major lines but only one is in the advisory's vulnerable range, override only that version's path. Do not add overrides for versions that are not vulnerable.

  6. Three valid override-key forms — pick the most surgical one that resolves the advisory:

    1. package: '>=fixed' — top-level, only when a single major line exists in the tree (see Rule 3).

    2. 'parent>package': '>=fixed' — parent-scoped, when multiple majors coexist and a specific parent pulls in the vulnerable major (see Rule 4).

    3. 'package@versionRange': fixedVersion — version-range-keyed, when multiple vulnerable major lines coexist and each needs its own targeted bump regardless of importer. The range lives in the key; the value is a fixed target version (no >= prefix). Example from this repo (pnpm-workspace.yaml):

      yaml
      'brace-expansion@>=4.0.0 <5.0.5': 5.0.5
      'brace-expansion@>=2.0.0 <2.0.3': 2.0.3
      'brace-expansion@<1.1.13': 1.1.14

      Prefer this form over many parent-scoped entries when the advisory spans multiple majors. Avoid it when a single-major top-level (form 1) or one parent>package (form 2) would do — those are easier to read.

After the change:

  1. Run pnpm install to regenerate the lockfile
  2. Re-run grype . --config .grype.yaml to verify the vulnerability is gone
Show full SKILL.md (343 more words)Show less
Step 5 — Add a Grype Ignore (Last Resort)

Only if ALL of the following are true:

  • The upgrade/override did not resolve the issue or would break functionality
  • The vulnerable package is not a production dependency (only in devDependencies tree)
  • The vulnerability's attack vector does not apply to a desktop Electron app

Add an ignore entry to .grype.yaml:

yaml
ignore:
  - vulnerability: CVE-XXXX-XXXXX
    package:
      name: <package-name>
      type: npm
    reason: >-
      <package-name> is a dev-only dependency (used by <parent-package> for <purpose>).
      <CVE-ID> requires <attack-vector> which does not apply to this Electron desktop app.
      Fix requires a breaking major upgrade of <parent> that cannot be safely applied.

Every ignore MUST include a reason explaining why it is safe to suppress.

Step 6 — Impact Analysis

For each vulnerability processed, write a summary containing:

FieldDescription
CVE IDThe vulnerability identifier
PackageAffected package name and version
SeverityCritical / High / Medium
CVSS ScoreNumeric score if available
Attack VectorNetwork / Local / Adjacent / Physical
Production ImpactYes (in dependencies tree) or No (dev-only)
Action TakenUpgraded / Overridden / Ignored
VerificationWhether grype/audit passes after the fix

Output

When running in plan mode (Phase 1): write all findings and proposed actions to remediation-plan.md in the repository root. Do not modify project files.

When running in implementation mode (Phase 2): read remediation-plan.md, apply the changes to pnpm-workspace.yaml (overrides / audit ignores), package.json (direct dep upgrades), pnpm-lock.yaml, and .grype.yaml as needed, then verify with grype. Update remediation-plan.md with verification results.

Also write a concise pr-body.md for the pull request description using this exact structure:

markdown
## Summary

<1-2 sentence description of what was fixed and why>

## Changes

| CVE | Package | Severity | Production | Action | Verified  |
| --- | ------- | -------- | ---------- | ------ | --------- |
| ... | ...     | ...      | Yes/No     | ...    | Pass/Fail |

## Files Modified

- `pnpm-workspace.yaml`: <what changed, e.g. added override / ignoreGhsas entry>
- `package.json`: <what changed, e.g. bumped direct dep>
- `.grype.yaml`: <what changed, if applicable>

## Verification

- `pnpm audit --prod`: <Pass/Fail>
- `grype . --config .grype.yaml`: <Pass/Fail>

Keep the PR body short and scannable. The full analysis stays in remediation-plan.md for reference but is not used in the PR.

Also write a single-line conventional-commit-style title to remediation-title.txt summarizing the specific changes, for example:

  • fix(security): upgrade tar to 7.5.7, override lodash (CVE-2025-1234, CVE-2025-5678)
  • fix(security): add grype ignore for tmp (dev-only, CVE-2025-9999)
  • fix(security): override fast-xml-parser >=5.5.9 (CVE-2025-4321)

Keep it under 72 characters. Mention the key packages and CVEs, not a generic description.

Important Constraints

  • Do NOT run git commands — git operations are handled by the CI workflow
  • Do NOT run gh commands — PR creation is handled by the CI workflow
  • Do NOT modify .env files
  • Always run pnpm install after modifying package.json or pnpm-workspace.yaml to regenerate the lockfile
  • Always re-run grype . --config .grype.yaml after each remediation to verify
  • Prefer the least invasive fix: upgrade > override > ignore

© stacklok, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/security-vuln-remediation of stacklok/toolhive-studio.

Open the folder on GitHubat commit 87f7a55

Compare with similar skills

Security Vuln Remediation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Security Vuln Remediation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Security Vuln Remediation this skillstacklok/toolhive-studio170—~2.3kAutomated safety check: NotesApache-2.0
MCP Security Auditgithub/awesome-copilot40k—~3.1kAutomated safety check: PassMIT
Security Reviewbobmatnyc/claude-mpm155—~1.1kAutomated safety check: PassCustom licence
ReleaseWebMCP-org/npm-packages103—~1.6kAutomated safety check: NotesMIT
Node Modules Inspectorantfu/node-modules-inspector3k—~2.2kAutomated safety check: PassMIT
Golang Pkg Go Devcontext-labs/whip1.1k2 repos~3kAutomated safety check: PassMIT

Similar skills

  • MCP Security Audit

    github/awesome-copilot

    Official

    Audit MCP (Model Context Protocol) server configurations for security issues.

    40k GitHub stars~3.1k tokensUpdated today
    SecurityAuto-check passed
  • Security Review

    bobmatnyc/claude-mpm

    Security review gate for MCP server installations. An agent skill from bobmatnyc/claude-mpm.

    155 GitHub stars~1.1k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Release

    WebMCP-org/npm-packages

    Release the @mcp-b monorepo with Changesets and pnpm, using npm trusted publishing in GitHub Actions.

    103 GitHub stars~1.6k tokensUpdated 3 days ago
    DevelopmentAuto-check: notes
  • Node Modules Inspector

    antfu/node-modules-inspector

    Inspects a project's installed nodemodules and produces three reports: duplicated packages (installed in multiple versions), packages sorted by install size, and maintenance actions (dep-upgrade…

    3k GitHub stars~2.2k tokensUpdated 20 days ago
    Auto-check passed
  • Golang Pkg Go Dev

    context-labs/whip

    Golang package/module docs via godig, a pkg.go.dev API client (CLI + MCP) — APIs, symbols, versions, importers, licenses, vulnerabilities.

    1.1k GitHub starsUsed in 2 repos~3k tokens
    SecurityAuto-check passed
  • Forensify

    alexgreensh/repo-forensics

    Cross-agent self-inspection of your AI-agent stack. An agent skill from alexgreensh/repo-forensics.

    187 GitHub stars~2.5k tokensUpdated 10 days ago
    SecurityAuto-check: notes

More from stacklok/toolhive-studio

All 9 skills in this repo
  • Deep Links

    stacklok/toolhive-studio

    Deep links in ToolHive Studio. An agent skill from stacklok/toolhive-studio.

    170 GitHub stars~1.6k tokensUpdated today
    Auto-check: notes
  • Bug Fix TDD

    stacklok/toolhive-studio

    Reproduce and fix bugs using TDD. An agent skill from stacklok/toolhive-studio.

    170 GitHub stars~1.7k tokensUpdated today
    Auto-check: notes
  • Devcontainer Dev

    stacklok/toolhive-studio

    Spin up and interact with ToolHive Studio's containerized dev environment (Xvfb + noVNC + DinD).

    170 GitHub stars~3.8k tokensUpdated today
    Auto-check: notes
  • Skill Creator

    stacklok/toolhive-studio

    Create new AI agent skills for Claude Code, Codex, and Cursor.

    170 GitHub stars~677 tokensUpdated today
    Auto-check passed
  • Testing API Assertions

    stacklok/toolhive-studio

    Verify API requests in tests. An agent skill from stacklok/toolhive-studio.

    170 GitHub stars~993 tokensUpdated today
    Auto-check passed
  • Testing API Overrides

    stacklok/toolhive-studio

    Test that components send correct query parameters or request arguments.

    170 GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Categories

Questions about Security Vuln Remediation

What does Security Vuln Remediation do?

Remediate security vulnerabilities found by Grype or pnpm audit. Security Vuln Remediation is an agent skill from stacklok/toolhive-studio. Remediate security vulnerabilities found by Grype or pnpm audit.

When should I use Security Vuln Remediation?

Security Vuln Remediation fits situations like: A security scan fails; A CVE needs fixing; you need to analyze; ignore a vulnerable dependency.

How do I install Security Vuln Remediation in Claude Code?

Run `npx skills add stacklok/toolhive-studio --skill security-vuln-remediation -a claude-code`. Or copy the skill folder (.codex/skills/security-vuln-remediation in stacklok/toolhive-studio) into .claude/skills/security-vuln-remediation in your project. Claude Code loads it when a task matches its description.

How do I install Security Vuln Remediation in Codex?

Run `npx skills add stacklok/toolhive-studio --skill security-vuln-remediation -a codex`. Or copy the skill folder (.codex/skills/security-vuln-remediation in stacklok/toolhive-studio) into .agents/skills/security-vuln-remediation in your project. Codex loads it when a task matches its description.

Can I use Security Vuln Remediation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add stacklok/toolhive-studio --skill security-vuln-remediation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/security-vuln-remediation, .gemini/skills/security-vuln-remediation, .github/skills/security-vuln-remediation and .opencode/skills/security-vuln-remediation in your project.

What does Security Vuln Remediation need to run?

Going by SKILL.md and its folder, Security Vuln Remediation needs the command-line tools its instructions call (pnpm). Our summary lists: Node.js.

Does Security Vuln Remediation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Security Vuln Remediation safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Security Vuln Remediation use?

Security Vuln Remediation is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Security Vuln Remediation use?

About 2.3k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Security Vuln Remediation?

Skills that share tags, products or a category with Security Vuln Remediation: MCP Security Audit (github/awesome-copilot, 40k stars), Security Review (bobmatnyc/claude-mpm, 155 stars), Release (WebMCP-org/npm-packages, 103 stars) and Node Modules Inspector (antfu/node-modules-inspector, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Security Vuln Remediation?

stacklok (a GitHub organization) maintains it in stacklok/toolhive-studio, which has 170 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 7, 2026.

Source: stacklok/toolhive-studio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.