remediate
Skill22 starsChanged 6 months agoMITView on GitHub
Generates specific, implementable fixes for every finding in findings.json. Produces code patches (unified diff), configuration changes, dependency updates, and IaC fixes — not generic advice but actual before/after code.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- inkwell-finance/claude-skillstheir own version, first seen Aug 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- muon-m2/magento2-tools★ 4same name
- inkwell-finance/claude-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository353 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bb-hugeSkill
- 2fa-multi-factor-bypassSkill
- 401-403-bypass-techniquesSkill
- Access Control — Complete Deep DiveSkill
- active-directory-acl-abuseSkill
- active-directory-asreproastingSkill
- active-directory-certificate-servicesSkill
- active-directory-dcsync-attackSkill
- active-directory-full-attack-chainSkill
- active-directory-golden-ticketSkill
- active-directory-kerberoastingSkill
- active-directory-kerberos-attacksSkill
- ad-asreproast-attackSkill
- ad-assessmentSkill
- ad-cs-esc1-abuseSkill
- ad-dcsync-attackSkill
- ad-pass-the-hashSkill
- advanced-sql-injection-sqliSkill
- ai-agent-tool-abuse-and-privilege-escalationSkill
- ai-data-extraction-via-ssrfSkill
- ai-data-poisoning-model-skewingSkill
- ai-data-poisoningSkill
- ai-jailbreak-obfuscation-ciphersSkill
- ai-jailbreak-prompt-injectionSkill
- ai-jailbreak-system-promptsSkill
- aikido-triageSkill
- ai-ml-securitySkill
- ai-pair-hunting-with-claudeSkill
- ai-prompt-leakingSkill
- ai-redteamSkill
- ai-report-writing-guardrailsSkill
- amend-skillSkill
- amsi-bypassSkill
- analyze-cveSkill
- android-apk-reverse-engineeringSkill
- android-pentesting-tricksSkill
- anti-debugging-techniquesSkill
- api-auth-and-jwt-abuseSkill
- api-authentication-bypassSkill
- api-authorization-and-bolaSkill
- api-enumeration-fuzzing-discoverySkill
- api-mass-assignment-exploitationSkill
- api-rate-limit-bypass-techniquesSkill
- api-recon-and-docsSkill
- api-secSkill
- api-securitySkill
- API Testing — Deep DiveSkill
- arbitrary-write-to-rceSkill
- authbypass-authentication-flawsSkill
- auth-bypassSkill
- Authentication — Complete Deep DiveSkill
- auth-secSkill
- authz-bypassSkill
- av-edr-evasion-techniquesSkill
- aws-cloud-penetration-testingSkill
- aws-cognito-abuseSkill
- aws-iam-privilege-escalationSkill
- aws-imdsv2-ssrf-bypassSkill
- aws-metadata-ssrf-exploitationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 9 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Read this before executing any workflow phase.
- Very specific: line 31
Logging: Before invoking any skill above, call session(action="set_skill", …
- Very specific: line 89
Call session(action="start", options={...}) with depth and limits
- Very specific: line 90
Call report(action="note", data={...}) — record whether /codebase ran (source code context available?)
- Very specific: line 133
If /codebase ran and you have the actual source code context (file, line, code), read the vulnerable code and produce a unified diff …
- Distinctive: line 135
If you only have black-box findings (no source code), produce the fix as a pattern — show the vulnerable pattern and the secure replacement …
- Very specific: line 139
If the finding has a reproduction field, use that command as the verification:
- Distinctive: line 142
If there's no reproduction command, describe what the developer should test:
- Distinctive: line 147
Update the finding with the remediation object via the API.
- Very specific: line 165
Call session(action="complete", options={...}) with summary.
- Distinctive: line 194
Don't build custom auth — use the framework's auth system:
- Distinctive: line 196
Ensure the default is "deny" — explicitly mark public routes, not protected ones
- Distinctive: line 197
Use bcrypt/argon2 for password hashing with appropriate cost factors
- Distinctive: line 201
Add a security middleware that sets all headers at once — don't add them individually per route:
- Very specific: line 210
Update all references to use os.environ / process.env / framework config
- Very specific: line 211
Add the variable name to .env.example for documentation
- Distinctive: line 216
Check if the update is a major version (potential breaking changes)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vulnerability Remediation
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
CHAIN COMMITMENTS — DECLARE BEFORE STARTING
Read this before executing any workflow phase. Commit to MANDATORY chains before your first tool call.
| Trigger | Chain | Mandatory? | Claude Code | opencode |
| After all findings remediated | /gh-export | OPTIONAL — user request only | Skill(skill="gh-export") | cat ~/.config/opencode/commands/gh-export.md |
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.
Tools Available
| 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 |
Reading findings
http(action="request", url="http://localhost:7777/api/findings", method="GET")Updating a finding with remediation
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 Presets
| 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 |
Workflow
Phase 0 — Setup
- Call
session(action="start", options={...})with depth and limits - Call
report(action="note", data={...})— record whether/codebaseran (source code context available?)
Phase 1 — Read Findings
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)
Phase 2 — Generate Remediation
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.
Phase 3 — Remediation Summary
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.
Remediation Patterns by Vulnerability Class
These are patterns to guide your thinking — adapt to the actual framework and code you're remediating.
Injection → Parameterization
The fix for any injection is to separate code from data. The specific mechanism depends on the injection type:
- SQL: use parameterized queries / prepared statements / ORM methods — never string concatenation
- OS command: use subprocess with list arguments (not shell=True) — or avoid shell execution entirely
- Template: never pass user input as template source — pass it as template variables
- LDAP: use parameterized LDAP filters
- XPath: use parameterized XPath queries
XSS → Context-Aware Output Encoding
The fix depends on the output context:
- HTML body: HTML entity encoding (framework auto-escaping)
- HTML attribute: attribute encoding + always quote attributes
- JavaScript: JavaScript encoding (never inject into
<script>blocks) - URL: URL encoding
- CSS: CSS encoding The key principle: use the framework's built-in escaping and avoid raw/safe/html_safe overrides unless the content is truly trusted.
Authentication → Framework Auth Middleware
Don't build custom auth — use the framework's auth system:
- Apply auth middleware/decorators to every route that needs protection
- Ensure the default is "deny" — explicitly mark public routes, not protected ones
- Use bcrypt/argon2 for password hashing with appropriate cost factors
Missing Headers → Security Middleware
Add a security middleware that sets all headers at once — don't add them individually per route:
- Content-Security-Policy, X-Content-Type-Options, X-Frame-Options
- Strict-Transport-Security (only on HTTPS)
- Referrer-Policy, Permissions-Policy
Secrets → Environment Variables
Move every hardcoded secret to environment variables or a secrets manager:
- Generate a new secret (the old one is compromised)
- Update all references to use
os.environ/process.env/ framework config - Add the variable name to
.env.examplefor documentation
Dependencies → Update Command
Provide the exact update command and the safe version:
- Check if the update is a major version (potential breaking changes)
- Note if other dependencies need updating together
- Suggest running the test suite after update
Chaining Other Skills
| 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 |
Rules
- Generate specific fixes, not generic advice — "use parameterized queries" is not enough; show the actual code change
- If source code is available, produce a unified diff — developers can apply it directly
- If no source code, show the pattern — vulnerable pattern → secure pattern for the identified framework
- Always include a verification step — how to confirm the fix worked
- Use the reproduction command as the regression test — "run the original PoC after fix — it should fail"
- Mark breaking changes — if the fix changes API behavior, request/response format, or requires database migration
- Estimate effort honestly — low (< 1 hour, single file), medium (1-4 hours, multiple files), high (> 4 hours, architectural change)
- Reference OWASP cheat sheets — link to the relevant prevention cheat sheet for each vulnerability class
- Process critical/high first — developers need to know what to fix first
- Never fabricate fixes — if you're not sure of the correct fix for a specific framework, say so and provide the general pattern
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

