agentleFS
AlizHarbAlizHarb/agent-skills/skills/review-security/SKILL.md

review-security

Skill1 starsChanged 5 months agoMITView on GitHub

Use when reviewing Laravel code for authorization, validation, data exposure, authentication, secrets, file uploads, queues, events, and unsafe input handling.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-perf, create-rule and 3 more.

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.
  • chrisallenlaneSkill

    review-perf

    Performance review. Detects project type and dispatches compute and/or web performance reviewers. Advisory only — no changes made.

    Also in 4 projects that use this

  • 32103210Skill

    create-rule

    Create Cursor rules for persistent AI guidance. Use when you want to create a rule, add coding standards, set up project conventions, configure file-specific patterns, create RULE.md files, or asks about .cursor/rules/ or AGENTS.md.

    Also in 3 projects that use this

  • andrewvaughanSkill

    review-code

    Run a comprehensive multi-perspective code review on current changes. Activates the Review Council (security, quality, documentation, domain review) and runs automated security scanning. Use before creating a pull request or when you want a thorough review of your work.

    Also in 5 projects that use this

  • JetBrainsSkill

    review-plan

    Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.

    Also in 3 projects that use this

  • ElasticSkill

    create-skill

    Interactively create a new Claude Code skill and add it to the elastic-docs-skills catalog. Use when the user wants to generate a new skill, scaffold a slash command, or build automation for docs tasks.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 9

    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:

    Use this skill for security-focused review or when code touches protected data, authentication, authorization, files, external calls, …

    line 13
  2. Distinctive:

    Check authentication and authorization.

    line 22
  3. Distinctive:

    Check validation and mass assignment.

    line 23
  4. Distinctive:

    Check output exposure and serialization.

    line 24
  5. Distinctive:

    Check raw queries, file uploads, redirects, SSRF, secrets, logs, queues, and events.

    line 25
  6. Distinctive:

    Check rate limits and abuse paths.

    line 26
  7. Distinctive:

    Verify tests cover denial and malicious input paths.

    line 27
  8. Distinctive:

    Test denied users, invalid input, private field exposure, unsafe state transitions, and abuse controls.

    line 44
  9. Distinctive:

    Use safe queries and file handling.

    line 52

“Common” is measured: kept by at least 6 in 10 of the 12 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

Review Security

When To Use

Use this skill for security-focused review or when code touches protected data, authentication, authorization, files, external calls, queues, or APIs.

Inputs Needed

  • Threat model, changed files, actors, assets, trust boundaries, routes, jobs, events, and tests.

Workflow

  1. Identify actors, assets, and trust boundaries.
  2. Check authentication and authorization.
  3. Check validation and mass assignment.
  4. Check output exposure and serialization.
  5. Check raw queries, file uploads, redirects, SSRF, secrets, logs, queues, and events.
  6. Check rate limits and abuse paths.
  7. Verify tests cover denial and malicious input paths.

Files That May Be Created

  • Security tests if fixing issues is requested.

Files That May Be Modified

  • Policies, requests, Actions, Resources, controllers, routes, jobs, events, config, and tests if fixing issues is requested.

Architecture Rules

  • Security checks should be enforced server-side in reusable layers.
  • Views may communicate authorization but must not be the only enforcement.

Testing Requirements

  • Test denied users, invalid input, private field exposure, unsafe state transitions, and abuse controls.

Security Requirements

  • Default deny.
  • Validate all boundary input.
  • Avoid logging secrets.
  • Escape output.
  • Use safe queries and file handling.

Review Checklist

  • Authorization, validation, mass assignment, serialization, rate limiting, CSRF, escaping, raw SQL, uploads, secrets, logs, queues, events, and external calls.

Common Mistakes

  • Checking only happy-path authorization.
  • Returning raw models from APIs.
  • Trusting delayed job payloads indefinitely.

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.