speckit.product-forge.security-check

speckit.product-forge.security-check is a command for Claude Code from VaiYav/speckit-product-forge. It costs 73 tokens per session (2,826 once invoked), scanned A, original, MIT.

A feature-focused security review that checks the implemented code for attack risks relevant to the feature, such as login, payments, user input, or file handling. It uses the plan and product specification to decide which risks apply.

In plain words
What is it for?
Use it after implementation to review a feature before shipping. It helps check authentication, permissions, input handling, file operations, payments, and third-party API calls.
Why use it?
It avoids spending time on unrelated security checks and provides evidence for the issues it finds. The result is a prioritized list of fixes to address before release.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the speckit-product-forge plugin — 31 commands shipped together

Good fit Use it after implementation to review a feature before shipping. It helps check authentication, permissions, input handling, file operations, payments, and third-party API calls.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/vaiyav/speckit-product-forge/security-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/VaiYav/speckit-product-forge

Made for: Claude Code.

Or install speckit-product-forge, the plugin that ships this one along with the rest of its 31 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for speckit.product-forge.security-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/vaiyav/speckit-product-forge/security-check.svg)](https://agentmods.dev/commands/vaiyav/speckit-product-forge/security-check)
Your own site
<a href="https://agentmods.dev/commands/vaiyav/speckit-product-forge/security-check"><img src="https://agentmods.dev/badge/commands/vaiyav/speckit-product-forge/security-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,826 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.02826
Opus 5 $0.00036 $0.01413
Sonnet 5 $0.00015 $0.00565
Haiku 4.5 $0.00007 $0.00283

Measured 8d ago against content hash 6c36e48a81bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

speckit.product-forge.security-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/security-check.md · 350 lines

How it starts

The opening of the file, as written. The whole thing — 350 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Product Forge — Security Check

You are the Feature Security Auditor for Product Forge. Your goal: perform a targeted OWASP security audit scoped to exactly what this feature does — not a generic checklist, but a threat-model-driven review of the implementation.

User Input

$ARGUMENTS

Step 1: Validate Prerequisites

  1. Read .forge-status.ymlimplement must be completed
  2. Read plan.md to understand what the feature does
  3. Read product-spec/product-spec.md for feature scope

Step 2: Build Feature Threat Model

Before running any checks, read plan.md and spec.md to determine which attack surfaces are actually present. Only check what applies.

🔍 Building threat model for: {Feature Name}

Detect the following surfaces from the artifacts and code:

Surface Detected? Relevant OWASP Categories
User authentication / login {yes/no} A01, A07
Authorization / role checks {yes/no} A01, A05
User-supplied input (forms, query params) {yes/no} A03, A06
File upload / download {yes/no} A01, A03, A05
Payment processing {yes/no} A02, A03, A07
Third-party API calls {yes/no} A02, A08, A09
Database queries {yes/no} A03
Sensitive data storage {yes/no} A02
Admin / privileged operations {yes/no} A01, A05
Public endpoints (no auth) {yes/no} A05, A04
External webhooks received {yes/no} A03, A07
Cryptographic operations {yes/no} A02
New dependencies added this feature {yes/no} A06, A08

Only perform checks for surfaces marked yes.

The New dependencies surface is yes whenever the implement phase recorded phases.implement.dependencies.added > 0 on .forge-status.yml, or whenever traceability.yml carries a dependencies: block (the W5-C2 dep list produced by /speckit.product-forge.implement).


Step 3: Run Targeted Security Checks

For each detected surface, perform the following checks. Read the actual implementation files — do not guess.

Read the full file on GitHub · 350 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 350 lines · 73 tokens per session scan A 6c36e48a81bd

Subscribe to this mod's changes

speckit.product-forge.security-check is a command published in the GitHub repository VaiYav/speckit-product-forge (23 stars, last pushed 15d ago), licensed MIT. It adds 73 tokens to every session and 2,826 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.