agentleFS
cbeeswaxcbeeswax/code-review-skill/.agents/skills/review-security/SKILL.md

review-security

Skill0 starsChanged 9 days agoMITView on GitHub

Review code changes for exploitable security vulnerabilities, trust boundary violations, authentication, authorization, secrets, and unsafe input handling. Use for /review-security.

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 8 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

  • 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

  • dirkkok101Skill

    review-design

    Use before /plan, after /technical-design, when user says "review design", "check the design", or when design quality is uncertain.

    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

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

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 7

    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. Distinctive:

    Treat security as an independent review.

    line 11
  2. Distinctive:

    Every security finding needs an attack path, affected asset or boundary, and reproducible evidence or a traced exploit chain.

    line 16
  3. Distinctive:

    Only the first two levels support a defect finding.

    line 55
  4. Distinctive:

    Test or validation evidence, and whether its basis is independent or inherited.

    line 118
  5. Very specific:

    Start the final report with the count of verified findings.

    line 127
  6. Distinctive:

    Write inline comments for a business reader before a technical reader.

    line 135
  7. Distinctive:

    Avoid unexplained framework names, implementation trivia, or jargon in the first sentence.

    line 138
  8. Distinctive:

    Never post hypotheses, approve a pull request, merge, or modify code unless the user explicitly requests that separate action.

    line 165

“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

review-security

Focus

Treat security as an independent review. Trace untrusted input to sensitive sinks and verify authentication, authorization, tenancy, cryptography, secret handling, deserialization, command execution, file access, and network boundaries affected by the change.

Every security finding needs an attack path, affected asset or boundary, and reproducible evidence or a traced exploit chain. Do not dilute security findings with style feedback. Escalate missing trust-boundary evidence as an explicit review gap.

Error handling on a security check is a security decision. If a verification error lets the request continue (fail-open), that is an authorization choice of availability over verified access, not a resilience improvement — even when a test confirms it works as written. Report it as a decision for the owner unless an agreed requirement already settles it.

Evidence contract

Review the change's stated intent, affected boundary, and non-negotiable constraints before judging implementation details. Build an evidence ledger:

  1. Intent and constraints: What behavior is changing? What must remain true? What is explicitly out of scope? What promise does the change make to the user or the business?
  2. Load-bearing assumptions: The beliefs the change depends on to be safe, and the basis for each (see below).
  3. Evidence collected: Commands, tests, simulations, traces, benchmarks, screenshots, or repository contracts actually inspected or run.
  4. Result: What each source of evidence proves, disproves, or does not cover.
  5. Evidence gaps: Important behavior that cannot be verified from the available code, tests, tooling, or stated intent.
  6. Residual risk and rollback: What may still fail, how it will be detected, and how the change can be safely reversed.

Rank evidence in this order:

  1. Reproducible test, simulation, benchmark, screenshot, command output, or observed failing behavior.
  2. A traced code path tied to a documented contract, invariant, or established repository behavior.
  3. Inference from a diff, name, or pattern alone.

Only the first two levels support a defect finding. Treat level-three concerns as evidence gaps or questions, never as asserted bugs. A test or mock counts as evidence about the outside world only when its behavior comes from a source other than the implementation under review.

Challenge the shared assumption

The implementation, its tests, and a reviewer can all agree and still rest on the same wrong assumption. Three green lights can be one assumption repeated three times. Before concluding, name the assumptions the change depends on — for example, "a missing response means the action failed" — and for each ask:

What would show that this reasoning is wrong?

Then look for evidence that does not inherit the implementation's view:

  • An agreed business constraint or a separately specified expected outcome.
  • An external service contract, documentation, or integration test against the real behavior.
  • An observation, log, or trace that contradicts the current explanation.

Record each assumption's basis as independent (contract, documentation, observed behavior, owner decision) or inherited (the implementation, a mock written to make it pass, or the same incomplete requirements). An inherited basis is an evidence gap, however convincing the explanation sounds.

Agreement is not independence. Passing tests, a second review lens, another model, or another person add confidence only when they rely on different evidence. Several reviewers reading the same requirements, mocks, and code can reproduce the same mistake; do not count their agreement as corroboration.

Impact, confidence, and verification

Report these as three separate properties of every finding and gap; never blend them into one reassuring score:

  • Impact: what happens, and to whom, if the concern is real.
  • Confidence: how strongly the evidence supports the concern or its absence.
  • Verification: verified, partially verified, or unverified, and by which evidence.

A high-impact concern stays in the report while it is unverified; low confidence lowers how it is labelled, not whether the owner hears about it. A confident explanation resting on a weak or inherited test is still unverified.

Finding rules

Report only issues introduced or made reachable by the reviewed change. Mark pre-existing issues separately. Do not report style preferences, speculative problems, or cleanup unless they create a concrete correctness, security, privacy, reliability, or performance impact.

Each finding must include:

  • Severity (impact), confidence, and verification status, stated separately.
  • Business context first: the affected customer, operational outcome, revenue, compliance, trust, or delivery risk.
  • A concrete failure scenario in plain language.
  • Changed file and line evidence, then the technical cause in only the detail needed to make the remediation clear.
  • A specific remediation or verification step.
  • Introduced versus pre-existing classification.
  • Test or validation evidence, and whether its basis is independent or inherited.

Behavior can work exactly as written and still break the promise. When the change quietly decides something an owner should decide — availability over verified access, a destructive step before its replacement is confirmed, retrying an action whose outcome is unknown — report it as a decision for the owner, with the promise at stake, even if no line of code is wrong.

Start the final report with the count of verified findings. If there are none, say 0 verified findings plainly — and say what that covers. "No issues found" is not proof that no important issue exists: state what was checked, what supports the conclusion, and where confidence stops. Include evidence gaps, unverified high-impact concerns, and decisions for the owner separately.

Inline comment style

Write inline comments for a business reader before a technical reader. Lead with what could go wrong, for whom, and under what condition. Follow with the minimum code-level evidence needed to make the concern credible and actionable. Avoid unexplained framework names, implementation trivia, or jargon in the first sentence.

Use this shape:

[Severity] Business consequence

When <business scenario>, <customer, operational, financial, compliance, or
trust consequence> can occur. This change <plain-language explanation of why>.

Evidence: <file:line and concise technical cause>
Suggested next step: <specific fix or verification>

For example, write A customer could be charged twice after a payment timeout instead of Missing idempotency guard in retry path. Keep the technical cause in the evidence line. Do not post a comment if the business consequence cannot be explained from the available evidence.

Pull-request behavior

Produce a local report by default. Post GitHub comments only when the user explicitly asks and the available integration supports it. Post only high-confidence, evidence-backed, actionable findings inline and one concise business-impact summary. Keep broad process notes, evidence gaps, and low-confidence concerns in the local report rather than posting them inline. Never post hypotheses, approve a pull request, merge, or modify code unless the user explicitly requests that separate action.

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.