agentleFS
axomiyaindieaxomiyaindie/agent-skills-playbook/skills/security-pass/SKILL.md

security-pass

Skill0 starsChanged 5 days agoMITView on GitHub

Version: 0.1.0 Applies to: Coding agents Trigger: Load when the change touches authentication, authorization, user input, file handling, database queries, secrets, or external requests.

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use refactor-safely and write-tests.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • srclightSkill

    refactor-safely

    This skill should be used when the user asks to "refactor", "rename", "move", "change a function signature", "extract a method", "delete unused code", "clean up", or any modification that could break callers or dependents. Provides a pre-change safety checklist using srclight's graph tools to assess blast radius before touching code.

    Also in 3 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check each item below against the change:

    line 13
  2. Distinctive:

    Do not list items that do not apply just to look thorough.

    line 25
  3. Distinctive:

    Do not give generic advice like "validate input" without naming the field and the rule.

    line 26
  4. Distinctive:

    Do not mark Pass without checking the code.

    line 27

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “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 Pass

Version: 0.1.0 Applies to: Coding agents Trigger: Load when the change touches authentication, authorization, user input, file handling, database queries, secrets, or external requests.

Goal

Catch the common security failure classes before the change ships, with a short, concrete checklist rather than a generic warning.

Instructions

  1. Identify the trust boundary the change crosses: user input, network, file system, database, third-party API.
  2. Check each item below against the change:
    • Injection: SQL, command, template, header.
    • Auth: is the action authorized for this user, not just authenticated?
    • Secrets: any key, token, or password in code, logs, or errors?
    • Input validation: length, type, encoding, allowlist.
    • Output encoding: HTML, JSON, URL.
    • File handling: path traversal, upload type, size limits.
    • Dependencies: new package, pinned version, known vulnerability.
  3. Report only items that apply. Mark each as Pass, Fail, or Not Applicable.
  4. For each Fail, give the concrete fix.

Constraints

  • Do not list items that do not apply just to look thorough.
  • Do not give generic advice like "validate input" without naming the field and the rule.
  • Do not mark Pass without checking the code.

Expected Output

A short table: Check, Status (Pass/Fail/Not Applicable), Note. Followed by a Fixes section for every Fail.

Example

Input: A change that adds a file download endpoint with a user-supplied filename. Behavior: The agent flags file handling Fail (path traversal) and gives the fix: resolve the path and reject anything outside the allowed directory. Output: One Fail with a concrete fix, all other checks marked Pass or Not Applicable.

Notes

This skill does not replace a full security audit. It catches the common classes.

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.