Skip to content
Back to skills

Risks

ASecurity

Brainstorm failure modes and risks with specialist thinker subagents

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
ai-agentsgobashsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add danielrmay/claudity --skill risks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Risks?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Risks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danielrmay-risks/badge)](https://www.skillsdirectory.com/skills/danielrmay-risks)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: risks
description: "Brainstorm failure modes and risks with specialist thinker subagents"
disable-model-invocation: true
---
<!-- Vendored from microsoft/clarity-agent@6b32c43 processes/failure-brainstorming.md — modified per PORTING.md rules R9, R11, R16, R17: upstream's ai_actions CLI blocks become the same-named MCP tools from the plugin's clarity-agent server; recommend_deeper_analysis / read_thinker_guide become parallel thinker subagents; the suggestions output path reflects the real mailbox location (upstream's guide says suggestion-box/) -->

This pipeline requires a protocol directory with at least a real problem statement — if that's missing, say so and route through Claudity's `start` skill (problem clarification) first. If the brainstorming mailbox already has pending items, offer failure-analysis instead (the status script's Process Availability section shows which phase is recommended). If the user named a focus area when invoking this skill, honor it; follow the guide below from the beginning.
# Failure Brainstorming

This process generates raw failure modes through direct analysis, specialist thinker subagents, and human contributions. Raw failures accumulate in a pool until they're ready for analysis and grouping.

## Overview

The goal of failure brainstorming is breadth: come up with as many things as possible that could go wrong. This is the creative, divergent phase — don't filter, don't group, don't worry about duplicates. That's what failure analysis is for.

Brainstorming can happen over time. Multiple runs can contribute, humans can add their own insights, and the pool grows until someone decides it's ready for analysis. This process can be run multiple times, each run adding to the same pool.

## Tools Available

You have MCP tools (from the `clarity-agent` server) for recording your findings. **Always use these** — do not write files directly. The tools own placement, naming, and format; hand-written files end up in the wrong location and are invisible to the pipeline.

### record_failure

Record a failure mode to the brainstorming mailbox: call the `record_failure` tool with `title` ("Short title of what goes wrong") and `description` ("1-3 sentences: what fails, how, who is harmed").

Optional fields: `additional_context`, `pre_existing` (boolean).

### record_suggestion

Record a suggestion to improve a project document: call the `record_suggestion` tool with `title`, `target_document` (e.g. `goal/stakeholders.md`), and `suggestion` ("What to add or change").

## Specialist Thinkers

Six specialist thinkers are available as subagents, each with its own methodology:

| Thinker | Lens | Prerequisites (required) |
| ------- | ---- | ------------------------ |
| `general-thinker` | Broad first pass: technical, human, social, misuse, cascading | problem |
| `security-thinker` | AuthN/Z, data protection, injection, cryptography, supply chain | problem, stakeholders |
| `human-factors-thinker` | User/operator error, cognitive biases, information loss | problem, solution |
| `adversarial-analysis-thinker` | Who would attack, why, and how | problem |
| `codebase-scanner-thinker` | Scans the actual repository: routes, configs, auth, secrets | problem (and a codebase) |
| `security-catalog-thinker` | Maps OWASP LLM/Agentic Top 10 + STRIDE catalog to components | problem, stakeholders |

To launch thinkers (Step 4):

1. Resolve the plugin root once: `echo "${CLAUDE_PLUGIN_ROOT}"` via Bash. Env vars are **not** expanded inside subagent prompts, so paste the resolved absolute paths literally.
2. Launch each selected thinker via the Agent tool, using the thinker's name as the agent type — **in parallel (one message, multiple Agent calls) when running more than one**. Each prompt must state:
   - the project directory (absolute path) and protocol directory name (`.clarity-protocol/` or `Clarity Protocol/`)
   - the analysis mode: **quick** or **deep**
   - the absolute path to `<plugin-root>/skills/start/processes/failure-reasoning-guidelines.md`
   - for `security-catalog-thinker` only: the absolute path to `<plugin-root>/skills/risks/security-catalog.csv`
3. Each thinker returns structured `## Failures` / `## Suggestions` / `## Specialist recommendations` blocks. Persist its findings with the recording tools: one `record_failure` call per failure block and one `record_suggestion` call per suggestion block, passing `source: <thinker-name>` on each so provenance survives into the mailbox items. Confirm the number of tool calls matches the thinker's `## Failures` blocks. Do not write mailbox files by hand and do not index them in `failures.md`.
4. Consider any specialist recommendations for the next round.

Check prerequisites before launching: a thinker whose required documents are empty or missing will produce generic output — skip it and tell the user why.

## When to Use This Process

Run this process when:

- Starting failure analysis for the first time (need raw material to analyze)
- The solution or architecture has changed significantly (new failure modes may exist)
- A domain expert wants to contribute failure ideas
- You want a specific analytical perspective (e.g., just security, or just UX)
- Someone thought of a new "what could go wrong" that should be captured

## Inputs Needed

Before starting, you should have at least:

- `.clarity-protocol/goal/problem.md` — To understand what you're trying to achieve
- `.clarity-protocol/goal/stakeholders.md` — To know who could be affected (especially adversarial and indirect stakeholders)

Ideally you also have:

- `.clarity-protocol/solution/solution.md` — What you're building
- `.clarity-protocol/solution/architecture.md` — How it's built

If the solution isn't fleshed out yet, that's okay. Brainstorming on the problem alone can surface important failure modes early. But the more context you have, the more specific the failures will be.

## Process Steps

### Step 1: Read Project Context

Read the available project documents to understand what you're analyzing:

1. Read `.clarity-protocol/goal/problem.md`
2. Read `.clarity-protocol/goal/stakeholders.md`
3. Read `.clarity-protocol/solution/solution.md` (if it exists)
4. Read `.clarity-protocol/solution/architecture.md` (if it exists)
5. Read `failure-reasoning-guidelines.md` (alongside this guide)

Don't skip this step. You need real context to generate meaningful failures. If key documents are missing, note this and work with what's available.

### Step 2: Broad Analysis

Apply the failure reasoning methodology to analyze the system broadly. Think through:

- **System-in-use thinking** — How will real people actually use this? What happens when they're tired, rushed, confused, or malicious?
- **Component interconnects** — Where do components talk to each other? What happens when one fails, is slow, or returns unexpected data?
- **Stakeholder-by-stakeholder review** — For each stakeholder (including adversarial ones), what could go wrong from their perspective?
- **Human and AI fallibility** — Where do humans make mistakes? Where does AI produce wrong or harmful output?
- **Misuse scenarios** — How could this be deliberately abused or weaponized?
- **Cascading failures** — What small problems could snowball into large ones?

As you identify failure modes, **record each one immediately** using `record_failure`. Don't batch them up — record as you go. Each failure should:

- End in actual harm (not just a principle violation)
- Have a clear title that describes what goes wrong
- Include enough description to understand the failure without reading the full chain
- Optionally include a failure chain showing the step-by-step progression

When your analysis reveals gaps or ambiguities in project documents, use `record_suggestion` to note them.

### Step 3: Recommend Specialist Analysis

Review your findings and recommend deeper analysis where specialist methodology would add value. Present your recommendations to the user:

> "I've identified [N] potential failure modes in my broad analysis. I recommend deeper analysis in these areas:
>
> - **[Specialist Name]**: [rationale — what this specialist's lens would catch that broad analysis might miss]
>
> Would you like me to apply any of these specialist perspectives? Or would you prefer to explore a specific area first?"

Be selective — only recommend specialists whose domain expertise is clearly relevant to this particular system, and whose prerequisites are met. Quick mode is the default; suggest deep mode when the area is central to the project's risk profile.

### Step 4: Deepen on Request

When the user asks for deeper analysis in specific areas, launch the selected thinker subagents as described under **Specialist Thinkers** — in parallel when running several. While they run, you can continue talking with the user. When each returns, persist its findings with the recording tools and give the user a one-line summary per thinker.

You can also deepen without a specialist — if the user asks you to explore a particular area (e.g., "what about data privacy?"), do so using your own analytical reasoning and the failure reasoning methodology, recording findings with `record_failure`.

### Step 5: Invite Human Contributions

After your analysis, ask the user:

> "I've identified [N] potential failure modes so far. Based on your experience or domain knowledge, are there others we should consider? Things that might go wrong that automated analysis might miss?"

Human domain experts often know failure modes that general analysis can't discover — organizational dynamics, historical incidents, regulatory subtleties, cultural factors.

If the user contributes failures, help them formulate each one and record it using `record_failure` with source "human" (or the contributor's name/role if they specify).

### Step 6: Communicate Results and Hand Off

Summarize what was found:

> "I've brainstormed [N] potential failure modes:
>
> **Broad analysis**: [N] failures (e.g., [1-2 highlights])
> **[Specialist area]**: [N] additional failures (e.g., [1-2 highlights])
> [etc.]
>
> These are in the brainstorming pool, ready for analysis. Would you like to:
> - Add any failure modes from your own experience?
> - Explore a specific area more deeply?
> - Move on to failure analysis (grouping and chain development)?
> - Work on something else?"

**Whatever the user chooses, keep the conversation going.** This process doesn't end in silence — it ends by handing off to the next thing:

- If the user wants to add failures -> stay in this process, capture them, and ask again
- If the user wants deeper analysis -> apply the specialist lens and return to this step
- If the user wants failure analysis -> load and follow the **failure-analysis** process guide
- If the user wants to do something else, or isn't sure -> re-enter the Claudity router (`start` skill) main loop

After any process completes, the user should never be left wondering what happens next.

## Outputs and Updates

This process creates/updates:

- `.clarity-protocol/mailboxes/failure-brainstorm/*.md` — Individual raw failure mode files
- `.clarity-protocol/mailboxes/failure-brainstorm/_config.json` — Mailbox configuration and status
- `.clarity-protocol/mailboxes/suggestions/*.md` — Document improvement suggestions (if any)

## Success Indicators

You've completed brainstorming successfully when:

- Multiple perspectives have examined the system (broad + specialist where relevant)
- Each raw failure mode ends in actual harm (not just a principle violation)
- The pool contains enough raw material for meaningful grouping
- The user has had the opportunity to contribute their domain knowledge

## Common Pitfalls

**Pitfall: Filtering too aggressively**

During brainstorming, the goal is breadth. Don't dismiss a potential failure because it seems unlikely — unlikely + severe is still important. Save filtering for analysis.

**Pitfall: Writing too much per failure**

A raw failure mode should be quick to write and quick to read. If you're spending more than a minute on one, you're doing analysis, not brainstorming. Capture the idea and move on.

**Pitfall: Too narrow a perspective**

Make sure you're thinking beyond just technical failures. Consider human factors, social dynamics, misuse, organizational issues, and cascading effects.

**Pitfall: Skipping human input**

Automated analysis works from general domain knowledge. Humans know the specific organizational, cultural, and historical context. Always ask.

**Pitfall: Not recording as you go**

Use `record_failure` as you identify each failure — don't try to batch them. This ensures nothing is lost and the user can see progress in real time.

**Pitfall: Launching thinkers serially**

When the user selects several specialists, launch them in one message so they run concurrently. Serial launches multiply the wait for no benefit.

## Next Steps

After brainstorming, run **failure-analysis** to group raw failures into coherent failure modes with full chains and intervention points.

If the pool isn't ready yet (more brainstorming needed), run this process again later with additional perspectives or human input.

Files in this skill

  • SKILL.md13 KB
  • security-catalog.csv19.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.