thinkhaven: Command for Claude Code

.claude/commands/BMad/tasks/risk-profile.md

risk-profile is a command for Claude Code from hollandkevint/thinkhaven. It costs 0 tokens per session (2,101 once invoked), scanned A, original, Apache-2.0.

A command that creates a risk assessment matrix for implementing a software story. It ranks risks by how likely they are and how much harm they could cause, across areas such as security, performance, data, and operations.

In plain words
What is it for?
Use it to assess a story's technical, security, business, data, performance, or operational risks and define related mitigation and testing priorities.
Why use it?
It helps identify important problems before development and focuses mitigation and testing effort where the consequences could be greatest.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is hollandkevint/thinkhaven's own configuration. It tells Claude Code how to work on thinkhaven itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything thinkhaven configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hollandkevint/thinkhaven. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hollandkevint/thinkhaven/main/.claude/commands/BMad/tasks/risk-profile.md
Clone the repo
git clone --depth 1 https://github.com/hollandkevint/thinkhaven

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-profile

README.md
[![agentmods](https://agentmods.dev/badge/commands/hollandkevint/thinkhaven/risk-profile.svg)](https://agentmods.dev/commands/hollandkevint/thinkhaven/risk-profile)
Your own site
<a href="https://agentmods.dev/commands/hollandkevint/thinkhaven/risk-profile"><img src="https://agentmods.dev/badge/commands/hollandkevint/thinkhaven/risk-profile.svg" alt="Measured on agentmods" height="20"></a>
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 2,101 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.00000 $0.02101
Opus 5 $0.00000 $0.01051
Sonnet 5 $0.00000 $0.00420
Haiku 4.5 $0.00000 $0.00210

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

Security

Grade A, and why

risk-profile 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.claude/commands/BMad/tasks/risk-profile.md · 360 lines

How it starts

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

/risk-profile Task

When this command is used, execute the following task:

risk-profile

Generate a comprehensive risk assessment matrix for a story implementation using probability × impact analysis.

Inputs

required:
  - story_id: '{epic}.{story}' # e.g., "1.3"
  - story_path: 'docs/stories/{epic}.{story}.*.md'
  - story_title: '{title}' # If missing, derive from story file H1
  - story_slug: '{slug}' # If missing, derive from title (lowercase, hyphenated)

Purpose

Identify, assess, and prioritize risks in the story implementation. Provide risk mitigation strategies and testing focus areas based on risk levels.

Risk Assessment Framework

Risk Categories

Category Prefixes:

  • TECH: Technical Risks
  • SEC: Security Risks
  • PERF: Performance Risks
  • DATA: Data Risks
  • BUS: Business Risks
  • OPS: Operational Risks
  1. Technical Risks (TECH)

    • Architecture complexity
    • Integration challenges
    • Technical debt
    • Scalability concerns
    • System dependencies
  2. Security Risks (SEC)

    • Authentication/authorization flaws
    • Data exposure vulnerabilities
    • Injection attacks
    • Session management issues
    • Cryptographic weaknesses
  3. Performance Risks (PERF)

    • Response time degradation
    • Throughput bottlenecks
    • Resource exhaustion
    • Database query optimization
    • Caching failures
  4. Data Risks (DATA)

    • Data loss potential
    • Data corruption
    • Privacy violations
    • Compliance issues
    • Backup/recovery gaps
  5. Business Risks (BUS)

    • Feature doesn't meet user needs
    • Revenue impact
    • Reputation damage
    • Regulatory non-compliance
    • Market timing
  6. Operational Risks (OPS)

    • Deployment failures
    • Monitoring gaps
    • Incident response readiness
    • Documentation inadequacy
    • Knowledge transfer issues

Risk Analysis Process

1. Risk Identification

For each category, identify specific risks:

risk:
  id: 'SEC-001' # Use prefixes: SEC, PERF, DATA, BUS, OPS, TECH
  category: security
  title: 'Insufficient input validation on user forms'
  description: 'Form inputs not properly sanitized could lead to XSS attacks'
  affected_components:
    - 'UserRegistrationForm'
    - 'ProfileUpdateForm'
  detection_method: 'Code review revealed missing validation'

Read the full file on GitHub · 360 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 · 360 lines · 0 tokens per session scan A 10631b470ff6

Subscribe to this mod's changes

risk-profile is a command published in the GitHub repository hollandkevint/thinkhaven (5 stars, last pushed 9d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,101 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-31.