claude-ai-dangerous: Command for Claude Code

.claude/commands/ai/decide.md

AI: Decide is a command for Claude Code from hlop3z/claude-ai-dangerous. It costs 33 tokens per session (1,367 once invoked), scanned A, original, MIT.

A decision command for choosing whether to rent, adopt, extend, fork, or build a solution for each important technical concern. It records those choices as an ADR, a document explaining an architecture decision.

In plain words
What is it for?
Use it before implementation to research options, recommend an approach, and record the reasoning in the project’s decision documentation.
Why use it?
It helps prevent building something from scratch when a suitable existing tool or approach is available. The decisions remain useful whether or not OpenSpec is installed.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

This is hlop3z/claude-ai-dangerous's own configuration. It tells Claude Code how to work on claude-ai-dangerous 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 claude-ai-dangerous configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hlop3z/claude-ai-dangerous. 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/hlop3z/claude-ai-dangerous/main/.claude/commands/ai/decide.md
Clone the repo
git clone --depth 1 https://github.com/hlop3z/claude-ai-dangerous

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 AI: Decide

README.md
[![agentmods](https://agentmods.dev/badge/commands/hlop3z/claude-ai-dangerous/decide/github.svg)](https://agentmods.dev/commands/hlop3z/claude-ai-dangerous/decide)
Your own site
<a href="https://agentmods.dev/commands/hlop3z/claude-ai-dangerous/decide"><img src="https://agentmods.dev/badge/commands/hlop3z/claude-ai-dangerous/decide/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 AI: Decide

Your own site · 80×15
<a href="https://agentmods.dev/commands/hlop3z/claude-ai-dangerous/decide"><img src="https://agentmods.dev/badge/commands/hlop3z/claude-ai-dangerous/decide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,367 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.00033 $0.01367
Opus 5 $0.00016 $0.00683
Sonnet 5 $0.00007 $0.00273
Haiku 4.5 $0.00003 $0.00137

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

Security

Grade A, and why

AI: Decide 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 9d 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/commands/ai/decide.md · 109 lines

How it starts

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

Resolve the build-vs-adopt question for a piece of work before implementing it.

For each critical concern, walk the hierarchy Rent > Adopt > Extend > Fork > Build, research current options, recommend one, and record the decision as an ADR block. Choosing to build something a mature tool already does well is the failure this gate prevents.

This command is self-contained. It works inside the OpenSpec pipeline when OpenSpec is present, and equally well without it — the hierarchy and rubric below are the authority, not a pointer into openspec/. If .canon/guidelines.md exists it is the fuller reference and wins on any detail; if it doesn't, nothing here degrades.

Input: Optionally a scope name (e.g. /ai:decide add-auth) — an OpenSpec change name, a feature name, or nothing. If omitted, infer from context; if ambiguous, ask via AskUserQuestion. Announce: "Deciding for: ".

Steps

  1. Resolve where the decision gets recorded — take the first that applies:

    Condition Target
    openspec CLI available and an active change matches openspec status --change "<name>" --jsonartifactPaths.design.resolvedOutputPath
    openspec/changes/<scope>/design.md exists on disk that file
    PROJECT.md exists (post-/ai:migration) its ## Decisions (ADRs) section
    none of the above ask the user; default DECISIONS.md at the project root

    Read whatever context exists for the scope (proposal, specs, design, or the surrounding code) before deciding. If the CLI reports actionContext.mode: workspace-planning, STOP — not supported here.

  2. List the critical concerns — the correctness-, security-, or reliability-sensitive parts of this work. Take them from the proposal's flagged capabilities if present; otherwise scan the scope and propose a short list, then confirm with the user.

  3. For each concern, run the gate:

    • Infrastructure? → decision is Rent, no further evaluation.
    • On the never-hand-roll list? → the decision is which tool, never whether to build.
    • Otherwise research with WebSearch — find current, actively-maintained options. Do NOT rely on memory; tooling moves.
    • Score candidates against the maturity rubric. Apply hard rejects.
    • Present at most 3 options as pure-build vs adopt-a-tool, each a one-line trade-off, and always end with a clear recommendation (which, and why) plus its hierarchy tier.
    • Wait for the user's pick before treating any tool as settled. Each decision is draft until the user confirms, then approved. (No "rejected" state — an unpicked option is simply dropped.)
  4. Record it — append/update a ## Decisions section in the target, one block per concern:

    ### Decision: <concern> — <Rent|Adopt|Extend|Fork|Build> <tool-or-"hand-written">
    
    - **Status**: approved
    - **Why**: <one line>
    - **Considered**: <other 1–2 options, one line each>
    - **Isolation**: <the adapter/boundary the choice lives behind>
    

    Concrete tool names live here only — never push them into config.yaml or specs/, which stay abstract. If the target is PROJECT.md, match its existing ADR shape instead.

  5. Summary — each concern → decision → status. Note any left in draft.

Read the full file on GitHub · 109 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. 9d ago First seen · 109 lines · 33 tokens per session scan A 3d7405ea6353

Subscribe to this mod's changes

AI: Decide is a command published in the GitHub repository hlop3z/claude-ai-dangerous (2 stars, last pushed 23d ago), licensed MIT. It adds 33 tokens to every session and 1,367 once invoked, about $0.0002 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-31.