AGENT SKILL

security-review

MUST invoke for a security-focused review of code changes. Identifies evidence-backed vulnerabilities involving secret exposure, authentication, authorization, data access, dependencies, configuration, injection, cryptography, and external requests. Use for 'security review', 'security check', 'check for vulnerabilities', 'OWASP review', 'security audit', 'check for secrets', or 'is this secure'. Do not use for functional correctness, design adherence, or test coverage reviews.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
security-review
description
MUST invoke for a security-focused review of code changes. Identifies evidence-backed vulnerabilities involving secret exposure, authentication, authorization, data access, dependencies, configuration, injection, cryptography, and external requests. Use for 'security review', 'security check', 'check for vulnerabilities', 'OWASP review', 'security audit', 'check for secrets', or 'is this secure'. Do not use for functional correctness, design adherence, or test coverage reviews.

02 资源文件 2

03 SKILL.md 正文

Security Review

Review a change for observable, security-relevant regressions. This is a standalone review lens: it does not require requirements documents, a context repository, or ticketing side effects.

Inputs

Collect or infer:

  1. Review target — staged or unstaged changes, a commit/range, branch diff, or pull request.
  2. Repository and runtime context — language, framework, deployment configuration, and dependency tooling when relevant.
  3. Threat-relevant surfaces — user input, endpoints, authentication, authorization, data stores, file handling, external requests, cryptography, secrets, configuration, and dependencies.

Workflow

1. Scope the change

  • Summarize changed files by routes, services, data access, configuration, dependencies, tests, and infrastructure.
  • Identify trust boundaries and changed user-controlled inputs.
  • Note applicable checklist sections in the local security checklist; do not force unrelated checks.

2. Screen high-risk patterns

Use the checklist's dangerous-pattern table as a targeted first pass. Inspect the surrounding code for each match; a pattern match alone is not a finding.

3. Review applicable controls

Evaluate changed code for injection, authentication, authorization, data exposure, input validation, insecure configuration, cryptographic failures, unsafe deserialization, SSRF, mass assignment, race conditions, and dependency risk.

For authentication and authorization changes, verify endpoint protection, object-level access checks, privilege boundaries, tenant or account isolation, and CORS policy. For data-access changes, verify parameterization, validation before writes, migration safety, and concurrent update handling.

4. Inspect secrets and sensitive data safely

  • Check changed source, configuration, fixtures, and generated files for credentials, private keys, or sensitive values.
  • Check logs, errors, and API responses for unnecessary secret or personal-data exposure.
  • Never print, copy, or persist a suspected secret in the review report. Identify its file and line, describe only its type, and recommend rotation or removal through an approved secret store.

5. Verify before reporting

  • Report only findings supported by the changed code and surrounding mitigations.
  • Read middleware, shared libraries, and configuration as needed to rule out existing protections.
  • Label an unconfirmed concern as a question or limitation, not a vulnerability.
  • Do not report theoretical issues that depend on unsupported threat-model assumptions.

Output Format

Present the review in chat or save it to a user-requested repository-local location:

# Security Review: <feature, branch, or PR name>

**Date:** YYYY-MM-DD
**Review target:** <target>
**Repository:** <repository and branch, if known>
**Files reviewed:** <count>
**Verification run:** <command or "not run">

## Findings

1. [path/to/file.ext:line] Severity: CRITICAL | HIGH | MEDIUM | LOW
   Category: <checklist category>
   <Concise evidence, impact, and actionable remediation.>

<Write "No evidence-backed findings." when none exist.>

## Secrets and Sensitive Data

| Area | Result | Notes |
|------|--------|-------|
| `<path or area>` | PASS / FINDING / NOT APPLICABLE | <Do not include secret values.> |

## Authentication and Access Control

| Endpoint or Function | Control Reviewed | Result | Notes |
|----------------------|------------------|--------|-------|
| `<path or route>` | <auth, permission, or isolation check> | PASS / FINDING / NOT APPLICABLE | <concise evidence> |

## Scope and Limitations

- <Unchecked area, unavailable tooling, or threat-model assumption>

## Summary

<Findings by severity, principal risks, and residual limitations.>

**Review status:** PASS / NEEDS ATTENTION

Severity and Status

  • Critical — actively exploitable exposure or control failure with severe impact.
  • High — a credible exploit path or sensitive-data exposure needing prompt remediation.
  • Medium — a meaningful weakness with constrained impact or prerequisites.
  • Low — limited-impact hardening issue.

Use PASS when no critical or high findings remain in the reviewed scope. Use NEEDS ATTENTION when critical or high findings require remediation. Medium and low findings should remain visible without implying unreviewed areas are safe.

Boundaries

  • This skill reviews security risks only; use the appropriate review lens for functional correctness, design, or test coverage.
  • Do not install scanning tools or make network calls solely for this review. Run an existing, safe repository command only when it is available and materially reduces uncertainty.
  • Do not create tickets, post comments, change workflow status, or save artifacts unless the user explicitly requests that action.

Related Skills

  • orchestrated-review — combines this lens with other available review lenses.
  • test-coverage-review — checks whether tests exercise changed behavior.
  • design-principles-review — checks maintainability and design risks.

04 同仓库更多 Skills

JanMichaelSE
JanMichaelSE/agentic-marketplace

ui-ux-pro-max

UI/UX design intelligence for web and mobile. Local database with 79 searchable styles (88 catalog entries), 192 color palettes, 74 font pairings, 192 product types, 119 UX guidelines, 105 curated icon entries, 17 GSAP motion presets, and 25 chart types across 22 stacks (React, Next.js, Vue, Nuxt, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Jetpack Compose, Angular, Laravel, JavaFX, WPF, WinUI, Avalonia, Uno Platform, UWP, Three.js, and HTML/CSS). Use when designing, building, or reviewing UI: pages, components, color schemes, typography, layout, accessibility, animation, or data visualization.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

figma-mcp

Implement or compare UI against Figma designs using an available Figma MCP integration. Use for Figma-backed implementation, design-token extraction, or visual-parity gap analysis; Figma MCP access is optional and must already be configured by the user.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

improve-codebase-architecture

Find evidence-based, active-change architecture improvements using shared design and domain-modeling guidance. Use when a user wants to reduce architectural friction, deepen a module, or make a current change safer, more testable, and easier to navigate.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

domain-modeling

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing GLOSSARY.md or CONTEXT.md, or recording or editing an ADR.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

codebase-design

Provide the shared vocabulary and discipline for designing deep modules with clear interfaces and seams. Use when a user wants to design or improve a module, find deepening opportunities, choose a seam, or make code more testable and AI-navigable.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

test-coverage-review

MUST invoke to review whether added or updated tests cover code changes in a diff. Checks new logic, branches, error paths, and regression risk, producing a change-to-test matrix. Use requirements-to-tests-traceability for acceptance-criteria mapping and orchestrated-review for bundled reviews.

★ 1