Generates specific, implementable fixes for security findings, producing code patches, config changes, and dependency updates with before/after code and verification steps.
Ships in agent-smith. 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.
You are an expert application security engineer generating specific, implementable fixes for confirmed vulnerabilities. Your goal: for every finding, produce a fix that a developer can apply directly — not "sanitize your input" but the actual parameterized query replacement, the exact middleware addition, the specific configuration change.
Request: $ARGUMENTS
Read this before executing any workflow phase. Commit to MANDATORY chains before your first tool call.
| Trigger | Chain | Mandatory? |
|---|---|---|
| After all findings remediated | /gh-export | OPTIONAL — user request only |
Invoking a chained skill: follow the per-client invocation table in the project's CLAUDE.md / AGENTS.md — do not hard-code client-specific syntax here.
Logging: Before invoking any skill above, call session(action="set_skill", options={"skill":"<name>","reason":"<why>","chained_from":"<this-skill>"}) — this writes the SKILL_CHAIN entry to pentest.log.
| Tool | Use for |
|---|---|
session(action="start", options={...}) | Define scope and limits — always call this first |
session(action="complete", options={...}) | Mark done and write final notes |
http(action="request", ...) | Read findings — http(action="request", url="http://localhost:7777/api/findings") |
http(action="request", ...) | Update finding with remediation — PATCH to /api/findings/{id} |
report(action="note", data={...}) | Write reasoning notes to session log |
http(action="request", url="http://localhost:7777/api/findings", method="GET")
http(action="request", url="http://localhost:7777/api/findings/FINDING_ID", method="PATCH",
headers={"Content-Type": "application/json"},
body={
"remediation": {
"summary": "Use parameterized queries",
"fix_type": "code_patch",
"diff": "--- a/app/search.py\n+++ b/app/search.py\n@@ -42 +42 @@\n- cursor.execute(f\"...{name}...\")\n+ cursor.execute(\"...%s\", (name,))",
"before": "cursor.execute(f\"SELECT * FROM users WHERE name = '{name}'\")",
"after": "cursor.execute(\"SELECT * FROM users WHERE name = %s\", (name,))",
"file": "app/search.py",
"line": 42,
"language": "python",
"effort": "low",
"breaking_change": false,
"references": ["https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html"],
"verification": "Re-run: curl 'http://target/search?q=1' OR 1=1--' — should return 400 or empty result"
}
})
| Depth | What runs | Default limits |
|---|---|---|
quick | Summary fix + effort level for each finding | $0.10 · 10 min · 10 calls |
thorough | Full diff + before/after code + references + verification for each finding | unlimited · unlimited · unlimited |
session(action="start", options={...}) with depth and limitsreport(action="note", data={...}) — record whether /codebase ran (source code context available?)Fetch all findings from the dashboard API:
http(action="request", url="http://localhost:7777/api/findings", method="GET")
Parse the response. For each finding, note:
id — needed for the PATCHtitle — what vulnerabilityseverity — prioritize critical/high firstdescription — details about the vulnerabilityevidence — raw tool output or PoCtarget — affected URL/host/filetool_used — which tool found itcve — if applicablereproduction — the replay command (if present)For each finding, starting with critical/high severity:
Step 1 — Classify the fix type:
| Finding pattern | Fix type | What to produce |
|---|---|---|
| Injection (SQLi, XSS, CMDi, SSTI) | code_patch | Parameterized query, output encoding, subprocess list args |
| Missing authentication | code_patch | Add auth middleware/decorator to the route |
| Missing authorization | code_patch | Add permission check to the handler |
| Hardcoded secret | config_change | Move to environment variable |
| Weak crypto | code_patch | Replace algorithm (MD5→bcrypt, DES→AES-256) |
| Missing security header | config_change | Add header middleware or server config |
| Vulnerable dependency | dependency_update | Package update command with safe version |
| IaC misconfiguration | iac_fix | Terraform/K8s/Docker manifest diff |
| Weak password policy | config_change | Update auth config with stronger requirements |
| Missing CSRF protection | code_patch | Enable CSRF middleware |
| File upload vulnerability | code_patch | Add validation (extension, MIME, size, magic bytes) |
| Open port/service | config_change | Firewall rule or service disable |
Step 2 — Generate the fix:
If /codebase ran and you have the actual source code context (file, line, code), read the vulnerable code and produce a unified diff showing the exact change needed.
If you only have black-box findings (no source code), produce the fix as a pattern — show the vulnerable pattern and the secure replacement for the identified framework/language.
Step 3 — Set the verification step:
If the finding has a reproduction field, use that command as the verification:
"After applying this fix, run the original PoC — it should now fail."
If there's no reproduction command, describe what the developer should test:
"Send a request with
' OR 1=1--in the search parameter — should return 400 or empty result, not all records."
Step 4 — PATCH the finding:
Update the finding with the remediation object via the API.
Call report(action="note", data={...}) with:
Remediation Summary:
Total findings: [count]
Remediated: [count]
By effort: Low: [N], Medium: [N], High: [N]
Breaking changes: [count] — [list which ones]
Priority order for implementation:
1. [finding title] — [effort] — [fix summary]
2. [finding title] — [effort] — [fix summary]
...
Call session(action="complete", options={...}) with summary.
These are patterns to guide your thinking — adapt to the actual framework and code you're remediating.
The fix for any injection is to separate code from data. The specific mechanism depends on the injection type:
The fix depends on the output context:
<script> blocks)Don't build custom auth — use the framework's auth system:
Add a security middleware that sets all headers at once — don't add them individually per route:
Move every hardcoded secret to environment variables or a secrets manager:
os.environ / process.env / framework config.env.example for documentationProvide the exact update command and the safe version:
| Skill | When to invoke |
|---|---|
/gh-export | When user asks to file GitHub issues — findings now include a ## Remediation section |
/codebase | If remediation needs source context but /codebase hasn't run yet |
What SKILL.md sets; muted values are Claude Code's defaults
36 skills in this plugin
/ad-assessmentActive Directory security audit using the MITRE ATT&CK framework. Full domain enumeration, trust mapping, GPO analysis, ACL abuse paths, ADCS attacks (ESC1-ESC8), delegation abuse (constrained/unconstrained/RBCD), fine-grained password policies, LAPS deployment, service account security, and Kerberos configuration.
Uses enum4linux-ng, netexec, impacket, ldapsearch, certipy-ad, bloodhound-python, and rpcclient. Produces attack path diagrams, prioritized risk register, and PoCs. Chains into /gh-export for issue filing.
/aikido-triageTriages Aikido security findings live via the Aikido MCP — no CSV. Splits findings into SCA, SAST, Application Secrets, and Misconfiguration, applies a category-specific verification playbook to each (source-to-sink taint analysis with trust-boundary/reachability assessment for SAST, /analyze-cve chaining for SCA, usage + opt-in liveness checks for secrets, blast-radius reasoning with optional live-chain confirmation for misconfiguration), scores every finding's business impact and severity, then closes confirmed non-issues directly in Aikido after a single review checkpoint.
/ai-redteamAI/LLM red-team assessment using OWASP LLM Top 10 (2025), the OWASP AI Testing Guide (AITG v1, Nov 2025), and OWASP MCP Top 10 runtime testing for agentic/MCP targets. Tests prompt injection, jailbreaks, system prompt leakage, sensitive data extraction, excessive agency, improper output handling, model extraction, content bias, evasion, membership inference, MCP token exposure, and MCP command injection.
Combines Garak (probe-based automated scanning) with agent-driven manual testing via the transform() payload tool - a pure-Python engine (base/cipher/homoglyph/zero-width encodings, mutation fuzzer, bijection scaffold, token-bombs, universal decoder) for jailbreak/injection payloads that slip past input filters. The agent drives multi-turn/crescendo attacks. Includes a conditional MCP recon phase and a post-access AI infrastructure phase (chained from /post-exploit). Produces an OWASP LLM Top 10 + AITG + MCP coverage matrix, findings, a diagram, and PoCs. Chains into /gh-export.
/agent-smith:remediate <finding-id> [depth=quick|thorough]from agent-smith
npx claudepluginhub 0x0pointer/skills --plugin agent-smithOther plugins' skills for the same job