toolhive-studio: Skill for Claude Code

.claude/skills/security-vuln-remediation/SKILL.md

security-vuln-remediation is a skill for Claude Code from stacklok/toolhive-studio. It costs 50 tokens per session (2,302 once invoked), scanned A, original, Apache-2.0.

A guide for fixing security problems reported in a Node.js or Electron project's dependencies. A dependency is an external package that the project uses.

In plain words
What is it for?
Use it after Grype or pnpm audit reports a vulnerability, including when a CVE—a public identifier for a security flaw—needs investigation or remediation.
Why use it?
It helps identify the affected package, find a fixed version, and choose whether to upgrade, pin, or otherwise handle the problem.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Cursor.

This is stacklok/toolhive-studio's own configuration. It tells Claude Code how to work on toolhive-studio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything toolhive-studio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to stacklok/toolhive-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/stacklok/toolhive-studio/main/.claude/skills/security-vuln-remediation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/stacklok/toolhive-studio

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-vuln-remediation

README.md
[![agentmods](https://agentmods.dev/badge/skills/stacklok/toolhive-studio/security-vuln-remediation.svg)](https://agentmods.dev/skills/stacklok/toolhive-studio/security-vuln-remediation)
Your own site
<a href="https://agentmods.dev/skills/stacklok/toolhive-studio/security-vuln-remediation"><img src="https://agentmods.dev/badge/skills/stacklok/toolhive-studio/security-vuln-remediation.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,302 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.02302
Opus 5 $0.00025 $0.01151
Sonnet 5 $0.00010 $0.00460
Haiku 4.5 $0.00005 $0.00230

Measured 8d ago against content hash 042669eb96e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

security-vuln-remediation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/security-vuln-remediation/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

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:

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:

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

Read the full file on GitHub · 215 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 215 lines · 50 tokens per session scan A 042669eb96e4

Subscribe to this mod's changes

security-vuln-remediation is a skill published in the GitHub repository stacklok/toolhive-studio (163 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 2,302 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.