agentleFS
GoodnessmbakaraGoodnessmbakara/codex-skills/skills/review-security/SKILL.md

review-security

Skill1 starsChanged 3 months agoMITView on GitHub

Review code changes with Security Review subagent.

22 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use origin and review-perf.

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.
  • 0mlkrizzz655335vSkill

    origin

    origin CLI 管理。安装、登录、更新、修复 origin.cursor.com 的 CLI。"disabled-environments:

    Also in 3 projects that use this

  • 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 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when the user asks to run /review-security.

    line 7
  2. Distinctive:

    Check whether the target branch is already the currently checked out local branch.

    line 22
  3. Distinctive:

    If a different branch is currently checked out, try to switch to the target branch.

    line 23
  4. Distinctive:

    If Git refuses to switch because local files would be overwritten, conflicts need resolution, or another checkout blocker occurs, explain …

    line 24
  5. Distinctive:

    Only stash after the user confirms.

    line 25
  6. Distinctive:

    Use this exact prompt shape:

    line 28
  7. Very specific:

    Default to branch changes, which reviews branch changes against the merge-base with the default/base branch, including committed, staged, …

    line 37
  8. Distinctive:

    If the review subagent fails before producing findings, inspect the failure text.

    line 39
  9. Very specific:

    If the failure is caused by calling the subagent incorrectly, such as a missing Full Repository Path, missing Diff, wrong prompt shape, or …

    line 41
  10. Distinctive:

    If the same failure persists after the retry, stop.

    line 43
  11. Distinctive:

    After the subagent finishes, summarize the result:

    line 45
  12. Distinctive:

    If it reports that no diff was found or the diff is empty, tell the user in one sentence that there was no diff to review.

    line 47
  13. Distinctive:

    If it found no issues, give a one-line status such as "Security review found 2 findings / Security review found no issues".

    line 48
  14. Very specific:

    If it found issues, print a compact markdown table with one row per finding, sorted by severity (highest first), using exactly these …

    line 49
  15. Distinctive:

    Do not fix findings or rerun review unless the user explicitly asks for that next step.

    line 51

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

Use this skill when the user asks to run /review-security.

Launch exactly one security-review subagent with:

  • run_in_background: false unless explicitly asked to run in background
  • description: "Security Review"
  • subagent_type: "security-review"

The review subagent computes the local diff from the repository path, so do not compute the diff yourself before launching it. The repository path should be the active workspace or repository root for the code the user wants reviewed.

By default, the review subagent infers the repository's actual base branch, such as main, when computing branch changes. In most cases, do not provide Base Branch. Only provide it if you know the current branch or PR should be compared against a specific branch other than the repository's default base branch, such as when you created the current branch from another branch.

Special case: if the user explicitly asks to review a specific PR or branch, make sure that target is checked out before launching the subagent:

  • Examples include github.com/... /review, review {link}, or review {branch-name}.
  • Resolve the provided PR link, PR number, or branch name to the PR head branch or named branch.
  • Check whether the target branch is already the currently checked out local branch. If it is, continue.
  • If a different branch is currently checked out, try to switch to the target branch.
  • If Git refuses to switch because local files would be overwritten, conflicts need resolution, or another checkout blocker occurs, explain the blocker and ask whether the user wants to stash local changes before retrying.
  • Only stash after the user confirms. If the stash succeeds, retry switching to the target branch.
  • Launch the review subagent only after the target branch is checked out locally.

Use this exact prompt shape:

Full Repository Path: <absolute repository path>
Diff: <one of: "branch changes", "uncommitted changes">
Base Branch: <only include this line when reviewing branch changes against a known specific base branch>
Custom Instructions: <only include this line when the user gave specific review instructions>

Default to branch changes, which reviews branch changes against the merge-base with the default/base branch, including committed, staged, and unstaged changes. If the user asks to review only uncommitted, local working tree, dirty, or not-yet-committed changes, use uncommitted changes.

If the review subagent fails before producing findings, inspect the failure text.

  • If the failure is caused by calling the subagent incorrectly, such as a missing Full Repository Path, missing Diff, wrong prompt shape, or wrong subagent type, correct the invocation and retry it once immediately.
  • For any other subagent failure, retry once with the same prompt shape.
  • If the same failure persists after the retry, stop. Briefly tell the user that the review subagent could not complete and include the short error or blocker. Do not keep retrying.

After the subagent finishes, summarize the result:

  • If it reports that no diff was found or the diff is empty, tell the user in one sentence that there was no diff to review.
  • If it found no issues, give a one-line status such as "Security review found 2 findings / Security review found no issues".
  • If it found issues, print a compact markdown table with one row per finding, sorted by severity (highest first), using exactly these columns: Severity, Location (file:line), Finding. Put the file and line in the location column as file:line.

Do not fix findings or rerun review unless the user explicitly asks for that next step.

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.