agentleFS
euginevdeuginevd/sdlc-template/.claude/skills/review-security/SKILL.md

review-security

Skill0 starsChanged 10 days agoMITView on GitHub

Security review of the branch's diff against this repo's threat model, standards and rules, before a PR or after each phase (AGENTS.md rule 10). Use when asked for a security review, or when the build reaches its review step. Reports findings; never edits code.

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-perf, review-bugbot and 9 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.
  • nielsmadanSkill

    review-perf

    Performance analysis for algorithmic complexity, memory leaks, N+1 queries, and render issues. Use when code feels slow, after adding loops/queries, or before scaling up.

    Also in 5 projects that use this

  • 0mlkrizzz655335vSkill

    review-bugbot

    缺陷导向代码审查。用 Bugbot 子代理找 bug。

    Also in 4 projects that use this

  • MrCipherSmithSkill

    review-performance

    Use when a performance review is requested, checking for N+1 queries, unnecessary re-renders, memory leaks, missing indexes, large bundle imports, and synchronous blocking in changed code. NOT for security, logic correctness, style, or architecture.

    Also in 5 projects that use this

  • Tsumugii24Skill

    split-to-prs

    Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.

    Also in 5 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 7 projects that use this

  • 0mlkrizzz655335vSkill

    rename-chat

    重命名当前聊天。按聊天内容改标题。"disable-model-invocation: true

    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 28 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:

    Access: every new endpoint checks authorisation on the server and denies by default (standards 10).

    line 28
  2. Distinctive:

    Secrets and data: no secret, key or token in code, Terraform, logs, error messages, URLs or test data.

    line 30
  3. Distinctive:

    Scope: every changed file is in the plan's Files that change.

    line 36
  4. Distinctive:

    Start with the depth you used and why.

    line 40

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

Review what this branch changes, against the repo's own standards. You report; the agent that wrote the code fixes as the pull-request skill 1 says, then runs this review again until nothing critical or high is left. Run in a fresh context, not the author's.

Scope

  1. The diff: git diff origin/main...HEAD, plus any uncommitted changes. Read each changed file around the change, not just the hunk.
  2. The standards, read first: docs/threat-model.md (its risks and controls), docs/standards.md 6 to 10 and 17 to 20, docs/spec.md's Rules, and AGENTS.md rules 14, 16 and 17. <!-- if:production -->
  3. The standards, read first: docs/standards.md 6 to 10 and 17 to 20, docs/spec.md's Rules, and AGENTS.md rules 14, 16 and 17. A prototype has no threat model: judge the risks from the change itself. <!-- if:!production -->
  4. The plan, if there is one (docs/plan-<name>.md): its Security risks section is what the change promised to control.
  5. The depth, by blast radius: the plan's Review level, or the highest that fits the diff.
    • High: auth, money, personal data, IAM, a public endpoint or a new outside service. Every check, every caller of the changed code, and each abuse case in the threat model traced through the code.
    • Medium: a new endpoint, data store, package or model call, or other app logic. Every check.
    • Low: docs, copy, styles, tests or a refactor that changes no behaviour. Checks 4, 6 and 10.

Check

A prototype with only the starter threat model and no plan skips 1 and 10, and the production-only parts of the standards.

  1. Threat model: each risk the change touches still has its control, and a new route, data store, outside service or model call has a risk row. A missing row is a finding.
  2. Access: every new endpoint checks authorisation on the server and denies by default (standards 10); nothing is open because only our code calls it.
  3. Input and output: input validated against a schema at the boundary, unknown fields rejected (9); each state-changing action emits an audit event (8); model output and uploads treated as untrusted and validated (18); limits and payments enforced in code, not a prompt (17).
  4. Secrets and data: no secret, key or token in code, Terraform, logs, error messages, URLs or test data; no real personal or financial data in a public repo (rule 17); logs redact at the source (8).
  5. Failure: security and payment checks fail closed (7); no swallowed error: a catch or except that ignores it, only logs it, or returns a default hides a failure unless it says why; model calls have an explicit model ID, timeout, token limit and retry cap (19).
  6. Supply chain: each new package is real, maintained, pinned and at least 7 days old (rule 16); new actions pinned by SHA, images by digest; no workflow checks out a PR's code under pull_request_target, or restores a dependency cache in a job with id-token: write.
  7. Infrastructure: IAM roles carry the project boundary, no wildcards beyond what the profile allows (AGENTS.md rule 4), nothing public that the spec doesn't make public.
  8. Tests: each risk the change touches has a test; production adds the abuse cases in the threat model (standards 11). Each test proves something: it asserts the result, would fail if the code broke, and doesn't mock the code under test; an empty, skipped or always-passing test is a finding.
  9. Lessons: the area's entries in docs/lessons.md aren't repeated.
  10. Scope: every changed file is in the plan's Files that change; anything else is a finding.

Report

Start with the depth you used and why. Then a list, most severe first; "No findings" if clean; at most five low findings, the ones most worth fixing. Each finding:

  • Severity: critical (exploitable now, or a secret exposed), high (a missing control on a real risk), medium (a weak control or missing test), low (hardening).
  • Where: path:line.
  • What and why: one line, citing the rule, standard or threat-model ID it breaks.
  • Fix: one line, at the cause.

End with the threat-model rows to add or change, if any, and anything you couldn't check and why.

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.