fix-vulnerability

fix-vulnerability is a command for Claude Code from latestaiagents/agent-skills. It costs 11 tokens per session (296 once invoked), scanned A, original, MIT.

A guide to securing REST and GraphQL APIs, which let software exchange data and actions over a network.

In plain words
What is it for?
Use it when designing or reviewing API authentication, authorization, rate limits, webhooks, and secure data responses.
Why use it?
It helps protect endpoints against unauthorized access, invalid input, excessive requests, unsafe data transfer, and accidental data exposure.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the security-guardian plugin — 10 skills, 2 commands shipped together

Good fit Use it when designing or reviewing API authentication, authorization, rate limits, webhooks, and secure data responses.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/latestaiagents/agent-skills/fix-vulnerability
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/latestaiagents/agent-skills

Made for: Claude Code.

Or install security-guardian, the plugin that ships this one along with the rest of its 10 skills, 2 commands.

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 fix-vulnerability

README.md
[![agentmods](https://agentmods.dev/badge/commands/latestaiagents/agent-skills/fix-vulnerability.svg)](https://agentmods.dev/commands/latestaiagents/agent-skills/fix-vulnerability)
Your own site
<a href="https://agentmods.dev/commands/latestaiagents/agent-skills/fix-vulnerability"><img src="https://agentmods.dev/badge/commands/latestaiagents/agent-skills/fix-vulnerability.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 296 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.
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.00011 $0.00296
Opus 5 $0.00005 $0.00148
Sonnet 5 $0.00002 $0.00059
Haiku 4.5 $0.00001 $0.00030

Measured 4d ago against content hash c4df9540789a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

fix-vulnerability 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 4d 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.

plugins/security-guardian/commands/fix-vulnerability.md · 63 lines

What it actually says

/fix-vulnerability

Get detailed guidance to fix a specific security issue.

What I Need

Tell me:

  • What vulnerability did you find?
  • What language/framework are you using?
  • Share the vulnerable code snippet

How It Works

Step 1: Analyze

I'll examine the vulnerability:

  • Attack vectors
  • Potential impact
  • Exploitation difficulty

Step 2: Explain

I'll clarify:

  • Why this is dangerous
  • How attackers exploit it
  • Real-world examples

Step 3: Fix

I'll provide:

  • Secure code replacement
  • Step-by-step instructions
  • Testing approach

Step 4: Verify

I'll suggest:

  • How to test the fix
  • Automated checks to add
  • Prevention for similar issues

Common Fixes

Vulnerability Quick Fix
SQL Injection Use parameterized queries
XSS Escape output, use CSP
CSRF Add CSRF tokens
Hardcoded Secrets Use environment variables
Broken Auth Implement proper session management
Insecure Dependencies Update to patched versions

Example

You: /fix-vulnerability

I found SQL injection in this code:
db.query("SELECT * FROM users WHERE id = " + req.params.id)

Claude: [Provides secure parameterized version with explanation]
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. 4d ago First seen · 63 lines · 11 tokens per session scan A c4df9540789a

Subscribe to this mod's changes

fix-vulnerability is a command published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 11 tokens to every session and 296 once invoked, about $0.0001 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-09-03.