risk-find

risk-find is a command for Claude Code from fockus/skill-memory-bank. It costs 26 tokens per session (368 once invoked), scanned A, original, MIT.

A risk-finding step that examines a planned or proposed code change and lists concrete ways it could fail. For a defect, it can also write the smallest test that reproduces the failure.

In plain words
What is it for?
Use it before merging a change or while investigating a bug to record each risk, its likelihood and impact, possible mitigation, and optionally a failing reproduction test.
Why use it?
It helps find problems involving errors, data loss, concurrency, compatibility, trust boundaries, or missing tests before a change is merged. Each listed risk must have supporting evidence rather than being speculation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it before merging a change or while investigating a bug to record each risk, its likelihood and impact, possible mitigation, and optionally a failing reproduction test.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fockus/skill-memory-bank/risk-find
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/fockus/skill-memory-bank

Made for: Claude Code.

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 risk-find

README.md
[![agentmods](https://agentmods.dev/badge/commands/fockus/skill-memory-bank/risk-find/github.svg)](https://agentmods.dev/commands/fockus/skill-memory-bank/risk-find)
Your own site
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/risk-find"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/risk-find/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for risk-find

Your own site · 80×15
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/risk-find"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/risk-find.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 368 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.00026 $0.00368
Opus 5.5 $0.00010 $0.00147
Sonnet 5.5 $0.00005 $0.00074
Haiku 4.5 $0.00003 $0.00037

Measured 10d ago against content hash 3cf68925f21d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

risk-find 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 10d 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/risk-find.md · 35 lines

What it actually says

/mb risk-find

Find what can go wrong with a change before it ships, as a dynamic-flow step (the bugfix route uses it to author the failing repro test). It does not duplicate mb-qa or mb-reviewer: it names risks and, on request, turns one into a test.

Input

  • <target> — plan, spec, diff scope, or a bug description.
  • .memory-bank/goal.md — acceptance criteria and constraints.
  • Optional --repro — also write a failing test for the top defect.

Output

.memory-bank/reports/<run>/risks.md with a table of risks, each row: id, risk, likelihood (low|med|high), impact (low|med|high), evidence (file:line or command output), mitigation. Sorted by likelihood x impact. With --repro, the path of the new test and the command output showing it fails for the stated reason.

Steps

  1. Read the target and the touched code (graph first: mb-graph.sh impact <Symbol>).
  2. Check the usual sources: trust boundaries, data loss, concurrency, error paths, migrations, backward compatibility, missing tests.
  3. Keep only risks with evidence; drop speculation.
  4. With --repro: write the smallest test that fails for the right reason and run it; paste the failing output. Do not fix the defect here.
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. 10d ago First seen · 35 lines · 26 tokens per session scan A 3cf68925f21d

Subscribe to this mod's changes

risk-find is a command published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 4d ago), licensed MIT. It adds 26 tokens to every session and 368 once invoked, about $0.0001 per session on Opus 5.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-11-20.

Related

risk-find compared with commands from other repositories

risk-find next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
risk-findfockus/skill-memory-bankCommand334d agoMITA26Claude Code
auditToRvaLDz/trailheadCommand37yesterdayMITA28Claude Code
rosetta-conflictstjboudreaux/rosettaCommand54mo agoMITA68Claude Code
unity-doctorXeldarAlz/everything-claude-unityCommand257mo agoMITA26Claude Code
unity-ralphXeldarAlz/everything-claude-unityCommand257mo agoMITA35Claude Code
unity-auditXeldarAlz/everything-claude-unityCommand257mo agoMITA28Claude Code
unity-optimizeXeldarAlz/everything-claude-unityCommand257mo agoMITA30Claude Code