adr-decision-extraction

adr-decision-extraction is a skill for Claude Code from existential-birds/beagle. It costs 113 tokens per session (1,285 once invoked), scanned A, original, Apache-2.0.

A tool for finding architectural decisions in conversations and design discussions. An architectural decision is a significant technical choice, such as selecting a database, along with the problem and reasoning behind it.

In plain words
What is it for?
Use it to extract decisions, alternatives, trade-offs, and reasons before writing Architecture Decision Records (ADRs), which are documents that preserve key technical choices.
Why use it?
It prevents important decisions from being lost in chat or buried in meeting notes. It also records confidence when a decision is implied rather than stated directly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the beagle-analysis plugin — 14 skills shipped together

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/existential-birds/beagle/adr-decision-extraction
Any agent
npx skills add existential-birds/beagle --skill adr-decision-extraction
Clone the repo
git clone --depth 1 https://github.com/existential-birds/beagle

Made for: Claude Code.

Or install beagle-analysis, the plugin that ships this one along with the rest of its 14 skills.

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 adr-decision-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/existential-birds/beagle/adr-decision-extraction.svg)](https://agentmods.dev/skills/existential-birds/beagle/adr-decision-extraction)
Your own site
<a href="https://agentmods.dev/skills/existential-birds/beagle/adr-decision-extraction"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/adr-decision-extraction.svg" alt="Measured on agentmods" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,285 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.1 $0.00113 $0.01285
Opus 5 $0.00056 $0.00642
Sonnet 5 $0.00023 $0.00257
Haiku 4.5 $0.00011 $0.00128

Measured 6d ago against content hash 794f37c52db0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

adr-decision-extraction 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 6d 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.

plugins/beagle-analysis/skills/adr-decision-extraction/SKILL.md · 163 lines

How it starts

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

ADR Decision Extraction

Extract architectural decisions from conversation context for ADR generation.

Detection Signals

Signal Type Examples
Explicit markers [ADR], "decided:", "the decision is"
Choice patterns "let's go with X", "we'll use Y", "choosing Z"
Trade-off discussions "X vs Y", "pros/cons", "considering alternatives"
Problem-solution pairs "the problem is... so we'll..."

Extraction Rules

Explicit Tags (Guaranteed Inclusion)

Text marked with [ADR] is always extracted:

[ADR] Using PostgreSQL for user data storage due to ACID requirements

These receive confidence: "high" automatically.

AI-Detected Decisions

Patterns detected without explicit tags require confidence assessment:

Confidence Criteria
high Clear statement of choice with rationale
medium Implied decision from action taken
low Contextual inference, may need verification

Output Format

{
  "decisions": [
    {
      "title": "Use PostgreSQL for user data",
      "problem": "Need ACID transactions for financial records",
      "chosen_option": "PostgreSQL",
      "alternatives_discussed": ["MongoDB", "SQLite"],
      "drivers": ["ACID compliance", "team familiarity"],
      "confidence": "high",
      "source_context": "Discussion about database selection in planning phase"
    }
  ]
}

Field Definitions

Field Required Description
title Yes Concise decision summary
problem Yes Problem or context driving the decision
chosen_option Yes The selected solution or approach
alternatives_discussed No Other options mentioned (empty array if none)
drivers No Factors influencing the decision
confidence Yes high, medium, or low
source_context No Brief description of where decision appeared

Extraction Workflow

  1. Scan for explicit markers - Find all [ADR] tagged content
  2. Identify choice patterns - Look for decision language
  3. Extract trade-off discussions - Capture alternatives and reasoning
  4. Assess confidence - Rate each non-explicit decision
  5. Capture context - Note surrounding discussion for ADR writer

Read the full file on GitHub · 163 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. 6d ago First seen · 163 lines · 113 tokens per session scan A 794f37c52db0

Subscribe to this mod's changes

adr-decision-extraction is a skill published in the GitHub repository existential-birds/beagle (80 stars, last pushed 27d ago), licensed Apache-2.0. It adds 113 tokens to every session and 1,285 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories