risk

A command that reviews a feature or plan across five areas of risk and identifies missing hypotheses. A hypothesis is a testable statement about what may happen.

In plain words
What is it for?
Use it to review a feature slug, plan, or pasted product requirements document before development.
Why use it?
It exposes unexamined risks and, depending on the project's settings, drafts follow-up questions and first tests for them.

Command for Claude Code

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.

agentmods
npx agentmods add commands/phuryn/pm-brain/risk
Clone the repo
git clone --depth 1 https://github.com/phuryn/pm-brain

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00678
Opus 5 $0.00000 $0.00339
Sonnet 5 $0.00000 $0.00136
Haiku 4.5 $0.00000 $0.00068

Measured 2d ago against content hash 67c1956d5df0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

risk 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 2d 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.

.claude/skills/pm-brain/scaffold/.claude/commands/risk.md · 47 lines

How it starts

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

/risk

Run the 5-area risk scan on a feature or plan. Surface which risks have no hypothesis, draft stubs for the gaps.

Input

A feature slug (/risk weekly-digest), a plan name, or a draft PRD pasted into the call.

Loads

  • knowledge/product/features/<slug>.md if the feature exists
  • All hypotheses/<slug>.md files linked to it
  • knowledge/users/insights.md (value and usability evidence)
  • knowledge/strategy.md § Non-goals (does this violate one?)
  • decisions/ filtered to ones that constrain this feature
  • rules/discovery.md for any risk-area discovery rules

Updates

/risk is not read-only. For any of the 5 risk areas with no hypothesis, it drafts a stub (status: candidate) with the open question and the suggested first test. Behavior depends on autonomy mode (CLAUDE.md § Operating preferences § Autonomy mode):

  • Act and tell (default). Stubs are saved to hypotheses/<slug>.md and the feature file's ## Linked § Hypotheses is updated to reference them. The operator triages on next /review or earlier.
  • Propose and wait. Stubs are presented as drafts. Nothing saved until the operator confirms.

Risks with active hypotheses and fresh evidence are not touched.

Hard constraints when drafting stubs:

  • Every Evidence-row in a new stub must carry a provenance tag from the enum in hypotheses/_SCHEMA.md. If the stub is opening a risk area with no concrete artifact yet, tag the row honestly: (intuition, PM, <YYYY-MM-DD>) or (industry-knowledge). If you are citing a strategy clause, the row must include a working path-typed link like [knowledge/strategy.md] — not a bare paraphrase. Untagged rows fail the no_orphan_evidence audit.
  • New stubs are status candidate (or active with confidence low) — never promoted or partially-validated at creation.
  • Update hypotheses/INDEX.md in the SAME turn for every new stub. A new hypothesis file without an INDEX row is half-saved.

Surfaces

The five risk areas, each with status and the top item:

Read the full file on GitHub · 47 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. 2d ago First seen · 47 lines · 0 tokens per session scan A 67c1956d5df0

Subscribe to this mod's changes

risk is a command published in the GitHub repository phuryn/pm-brain (537 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 678 tokens. 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.