agentleFS
KoshuxKoshux/agentic-sdlc-scaffold/.claude/skills/security-review/SKILL.md

security-review

Skill0 starsChanged 4 months agoMITView on GitHub

Threat-oriented review of a feature, workflow, or subsystem — auth, permissions, data exposure, unsafe defaults, and trust boundaries. Use when the user explicitly asks for a security review, or when a change touches authentication, authorization, sensitive data, or a client→server trust boundary.

187 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use kotlin-testing, configure-ecc and 10 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.
  • tpavanipradeepSkill

    kotlin-testing

    Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.

    Also in 6 projects that use this

  • saxon-ySkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 12 projects that use this

  • InfopibeSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 12 projects that use this

  • InfopibeSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 10 projects that use this

  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 9 projects that use this

  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 3

    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:

    Run a threat-oriented review of the requested scope.

    line 10
  2. Distinctive:

    Check both directions: a guard that is missing, and a guard that quietly admits a broader role set than intended.

    line 19
  3. Distinctive:

    Prefer concrete exploit or failure scenarios over vague warnings: name the request an attacker sends and the state it produces.

    line 42
  4. Distinctive:

    Call out missing verification — a guard with no test asserting the rejected case is a finding, not a pass.

    line 44

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

Run a threat-oriented review of the requested scope. This is the same lens spec-review applies to designs at Stage 2.5 — here it runs against live code or a diff, at any depth the scope warrants.

Focus areas

  1. Authentication and session handling — token issuance/expiry, cookie flags, session fixation, password/reset flows.
  2. Authorization and permission boundaries — is every endpoint gated by the right tier? Check both directions: a guard that is missing, and a guard that quietly admits a broader role set than intended. Object-level checks matter as much as route-level ones (can member A read member B's task by guessing an id?).
  3. Sensitive data exposure — PII in list/search endpoints, over-broad selects, secrets or tokens in logs, error bodies that leak internals.
  4. Unsafe defaults and overly broad trust — permissive CORS, debug flags reachable in prod, endpoints that default to allow, service-to-service calls with no auth.
  5. Trust boundaries: client-supplied values the server must recompute. Any total, price, quota, role, owner id, or status sent by the client is an attack surface. The server must recompute or ignore it — e.g. an order total must be derived from server-side prices, never accepted from the request body. Flag every write path that persists a client-supplied aggregate or privilege field.
  6. Validation gaps and injection risk — unvalidated params reaching queries, raw SQL with interpolation, file-path or upload handling.
  7. Environment and container assumptions — dev/staging/prod isolation for external integrations, ports exposed beyond the gateway, credentials baked into images or compose files.
  8. Logging, audit, and secret handling — mutations that skip the audit trail (audit.service.ts), secrets in committed config, tokens echoed in responses.

Response rules

  • Findings first. Order by severity (HIGH / MEDIUM / LOW).
  • Prefer concrete exploit or failure scenarios over vague warnings: name the request an attacker sends and the state it produces.
  • Call out missing verification — a guard with no test asserting the rejected case is a finding, not a pass.
  • Where a fix exists, state it in one or two sentences; where the issue needs design work, say so and recommend an iteration spec.

Output format

# Security Findings — <scope>

## HIGH
### N. <one-line title>
[file.ts](path#Lline)
<Exploit scenario: request/state an attacker uses → what they gain. The fix.>

## MEDIUM / ## LOW
...

## Verification gaps
| Guard | Rejected-case test exists? |

Review scope:

$ARGUMENTS

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.