Security review spec

From warpdotdev/oz-for-oss · View interactive version

Security review spec is an AI agent skill from the GitHub repository warpdotdev/oz-for-oss. Audit a product or tech spec pull request diff for high-level security concerns (threat surface, authentication and authorization model, trust boundaries, sensitive data handling, secrets and key management, dependency posture, and abuse or misuse cases) and fold findings into the same review.json p

How to use this skill

Skill file

Security Review Spec Skill

Audit the current spec pull request for security concerns at the design-doc level and fold any findings into the same review.json produced by the base review-spec skill.

Goal

Provide a focused security pass on top of the general spec review. This is a supplement to review-spec, not a separate output. Findings must be merged into the single combined review.json so reviewers receive one cohesive review.

The focus here is high-level design concerns that a security-minded reader would raise on a product or tech spec, not line-by-line code issues. Flag gaps, ambiguities, or design choices that would plausibly lead to an insecure implementation if built as described.

Inputs

When to apply this skill

Security concerns to audit

Evaluate the changed spec content against the following concerns. Treat the list as a checklist, not a ceiling โ€” flag other clearly security-relevant design issues when they appear. Stay at the design-doc level: worry about what the spec does or does not commit to, not how it will be coded.

Threat surface and trust boundaries

Authentication and authorization model

Sensitive data handling and privacy

Secrets and key management

Abuse, misuse, and denial of service

Dependencies and supply chain

Configuration and defaults

Observability and incident response

Process

  1. Read pr_description.md and pr_diff.txt to understand the scope and intent of the spec change.
  2. For each changed section, ask: if this were implemented as written, which of the concerns above would a security-minded reviewer raise?
  3. Distinguish between "the spec is silent on X" (usually flag) and "the spec explicitly accepts risk X" (usually acceptable if the reasoning is sound).
  4. Prefer evidence-based findings tied to specific changed lines or sections. If a concern only applies to untouched spec content, describe it in the review summary instead of as an inline comment.
  5. Do not flag purely editorial or non-security issues here โ€” those belong in the base review-spec pass.
  6. Do not repeat findings already covered by the base review; if the base pass would naturally catch it, leave it there.
  7. Do not treat a spec as insecure just because it does not exhaustively enumerate every threat. Focus on concerns that would plausibly lead to an insecure implementation or a missed mitigation.

Outputs

Severity mapping

Inline comment requirements

Boundaries

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.