security-cleanup
Skill20 starsChanged 4 months agoMITView on GitHub
Applies fixes for security findings produced by /security-review. Use when the
In this repository52 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- authentication-failuresSkill
- broken-access-controlSkill
- concurrency-correctnessSkill
- contract-reviewSkill
- cryptographic-failuresSkill
- crypto-library-misuseSkill
- csrfSkill
- exceptional-conditionsSkill
- excessive-agencySkill
- file-uploadSkill
- graphql-securitySkill
- hardcoded-secretsSkill
- header-injectionSkill
- hotspotsSkill
- injectionSkill
- insecure-designSkill
- insecure-local-storageSkill
- insecure-output-handlingSkill
- insecure-plugin-designSkill
- integrity-failuresSkill
- ipc-securitySkill
- llm-supply-chainSkill
- logging-failuresSkill
- mass-assignmentSkill
- mcp-securitySkill
- memory-api-misuseSkill
- model-dosSkill
- model-theftSkill
- multi-agent-trustSkill
- nosql-injectionSkill
- numeric-trust-boundarySkill
- oauth-implementationSkill
- open-redirectSkill
- overrelianceSkill
- path-traversalSkill
- privilege-handlingSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- pr-reviewSkill
- race-conditionSkill
- rag-securitySkill
- redosSkill
- security-misconfigurationSkill
- security-reviewSkill
- sensitive-disclosureSkill
- ssrfSkill
- supply-chainSkill
- threat-modelSkill
- token-smugglingSkill
- training-data-poisoningSkill
- unsafe-api-consumptionSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Read the cited file at the cited line
- Very specific: line 27
Read .claude/skills/<skill>/SKILL.md for the correct fix pattern
- Very specific: line 29
Use the language's idiomatic safe API (Go html/template, Python Environment(autoescape=True), Java PreparedStatement, etc.)
- Distinctive: line 32
After all findings are processed, summarize what was fixed.
- Distinctive: line 35
Never change observable behavior beyond removing the vulnerability
- Distinctive: line 36
If unsure about the correct fix, say so and skip that finding
≈ “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
Security Cleanup (A01:2025–A10:2025 + LLM01:2025–LLM10:2025)
What this checks
Applies fixes for security findings. Pair with /security-review to
detect issues, then /security-cleanup to fix them.
Vulnerable patterns
This skill remediates, not detects. Run /security-review first.
Procedure
- Get the findings: from the user's message, a recent
/security-reviewoutput, or — if none are available — run/security-reviewfirst to produce them. - For each finding (highest severity first):
- Read the cited file at the cited line
- Read
.claude/skills/<skill>/SKILL.mdfor the correct fix pattern - Apply the fix using the Edit tool
- Use the language's idiomatic safe API (Go
html/template, PythonEnvironment(autoescape=True), JavaPreparedStatement, etc.)
- After all findings are processed, summarize what was fixed.
Rules:
- Never change observable behavior beyond removing the vulnerability
- If unsure about the correct fix, say so and skip that finding
- One Edit per finding — don't refactor surrounding code
Verification
- Each fix addresses the specific finding cited
- No fix introduces new vulnerabilities or changes business logic
- Summary lists all findings and their disposition
References
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.

