agentleFS
0mlkrizzz655335v0mlkrizzz655335v/claude-skills-zh/skills/code-review/review-security/SKILL.md

review-security

Skill2 starsChanged 5 months agoMITView on GitHub

安全代码审查。用安全审查子代理找漏洞。

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    If the host exposes the dedicated security-review reviewer, use its current tool schema and dedicated invocation reference.

    line 13
  2. Distinctive:

    Use branch changes by default.

    line 21

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

Review the requested code changes for exploitable security issues, affected trust boundaries, data flows, authorization, and attacker-controlled inputs. Establish the repository, target revision, and comparison base from the request and live Git state.

Reviewer selection

If the host exposes the dedicated security-review reviewer, use its current tool schema and dedicated invocation reference. Do not pass Task-specific arguments to a different tool interface.

If that reviewer is unavailable, a normal review can use the current collaboration tools or direct inspection. Say that the dedicated service is unavailable and identify the fallback accurately; never label a general review as a Bugbot or dedicated Security Review result. If the user requires that specific service, complete useful target preparation and report the missing capability without claiming the requested service ran.

Target and review scope

For a named PR or branch, verify its exact head and base. Use an isolated worktree or read the target diff directly when switching branches would disturb user work. Do not stash, reset, or discard local changes merely to enable a read-only review.

Use branch changes by default; use uncommitted changes when requested. Preserve staged and unstaged scope accurately. An empty diff is a result to report, not a reason to invent findings.

For each finding, provide the failure scenario or exploit prerequisites, consequence, evidence, severity, and a tight file/line reference. Separate confirmed findings from unresolved questions. Use only the checks needed to assess the change; do not claim execution that did not happen.

Report findings in a concise form appropriate to their number, highest severity first. Review alone does not authorize code fixes or posting an external review. If the user also requested fixes, continue with the authorized fixes and appropriate validation.

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.

Reviews can't be read right now.

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.