decision

A single command interface for recording, searching, and managing team decisions.

In plain words
What is it for?
It can capture a choice with its reason, search stored decisions, and handle tasks such as editing, undoing, dismissing, reviewing, enriching, and viewing history.
Why use it?
It helps distinguish a decision someone is making from a request to find an existing decision, while keeping both workflows in one place.

Skill for Claude CodeCodex

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 skills/zimalabs/code-decisions/decision
Any agent
npx skills add zimalabs/code-decisions --skill decision
Clone the repo
git clone --depth 1 https://github.com/zimalabs/code-decisions

Made for: Claude Code, Codex.

Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 904 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.00023 $0.00904
Opus 5 $0.00012 $0.00452
Sonnet 5 $0.00005 $0.00181
Haiku 4.5 $0.00002 $0.00090

Measured yesterday against content hash 68855066eb21, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

decision 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 yesterday.

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.

src/skills/decision/SKILL.md · 70 lines

How it starts

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

/decision

Parse $ARGUMENTS to determine intent and route to the appropriate action.

CLI Usage

The SessionStart hook injects a Decision CLI: ... line into conversation context with the correct PYTHONPATH prefix. Always use that exact prefix when running CLI commands. For brevity, this document writes python3 -m decision <command> — prepend the injected PYTHONPATH="..." when executing.

Intent Detection

Explicit subcommands take priority/decision search <query> and /decision capture <statement> bypass intent detection entirely.

Search (default): questions, keywords, lookups, --tags, --stats, --coverage, or anything ambiguous. Capture: declarative statement with both a choice and a reason ("chose X because Y", "going with X instead of Y"). Without a reason, prefer search — the user may be looking up an existing decision. Manage: admin verbs — edit, undo, dismiss, debug, review, enrich, tree, tour, history, help. No arguments: show brief status with python3 -m decision stats --json and suggest quick actions.

  1. Check pre-seeded results first — a hook runs FTS5 search automatically when /decision <keywords> is invoked. If results exist in conversation context, present them directly.
  2. If pre-seeded results are empty or insufficient: use Grep to search .claude/decisions/ files for keywords, then Read matching files to present results. This avoids permission prompts. Only fall back to python3 -m decision search <keywords> via CLI if native tools fail.
  3. Flags: --tagspython3 -m decision tags, --statspython3 -m decision stats, --coveragepython3 -m decision coverage

Capture

  1. Search existing decisions first — if one covers the same topic, edit it in place instead of creating a new file.
  2. Write directly to .claude/decisions/{slug}.md following the decision template (injected at session start). The content-validation hook will reject and guide you if anything is wrong.
  3. Confirm briefly:

Read the full file on GitHub · 70 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. yesterday First seen · 70 lines · 23 tokens per session scan A 68855066eb21

Subscribe to this mod's changes

decision is a skill published in the GitHub repository zimalabs/code-decisions (5 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 904 once invoked, about $0.0001 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.

Related

Other skills, from other repositories