agentleFS
thejefflarsonthejefflarson/soundcheck/.claude/skills/security-cleanup/SKILL.md

security-cleanup

Skill20 starsChanged 4 months agoMITView on GitHub

Applies fixes for security findings produced by /security-review. Use when the

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
  1. Distinctive:

    Read the cited file at the cited line

    line 26
  2. Very specific:

    Read .claude/skills/<skill>/SKILL.md for the correct fix pattern

    line 27
  3. Very specific:

    Use the language's idiomatic safe API (Go html/template, Python Environment(autoescape=True), Java PreparedStatement, etc.)

    line 29
  4. Distinctive:

    After all findings are processed, summarize what was fixed.

    line 32
  5. Distinctive:

    Never change observable behavior beyond removing the vulnerability

    line 35
  6. Distinctive:

    If unsure about the correct fix, say so and skip that finding

    line 36

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Get the findings: from the user's message, a recent /security-review output, or — if none are available — run /security-review first to produce them.
  2. For each finding (highest severity first):
    • Read the cited file at the cited line
    • Read .claude/skills/<skill>/SKILL.md for the correct fix pattern
    • Apply the fix using the Edit tool
    • Use the language's idiomatic safe API (Go html/template, Python Environment(autoescape=True), Java PreparedStatement, etc.)
  3. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.