kb-adr

kb-adr is a command for coding agents from stilero/claude-plugins. It costs 18 tokens per session (279 once invoked), scanned A, original, MIT.

A command for writing an Architecture Decision Record, or ADR: a document that records an important technical choice and why it was made. It stores the record in a knowledge bank and updates its indexes.

In plain words
What is it for?
Use it to create numbered ADRs with their status, context, decision, consequences, alternatives, and tags.
Why use it?
It preserves the reasoning behind technical decisions so future contributors can understand and review them.

Command

Part of the obsidian-knowledge-bank plugin — 1 skill, 4 commands 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 commands/stilero/claude-plugins/kb-adr
Clone the repo
git clone --depth 1 https://github.com/stilero/claude-plugins

Or install obsidian-knowledge-bank, the plugin that ships this one along with the rest of its 1 skill, 4 commands.

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 kb-adr

README.md
[![agentmods](https://agentmods.dev/badge/commands/stilero/claude-plugins/kb-adr.svg)](https://agentmods.dev/commands/stilero/claude-plugins/kb-adr)
Your own site
<a href="https://agentmods.dev/commands/stilero/claude-plugins/kb-adr"><img src="https://agentmods.dev/badge/commands/stilero/claude-plugins/kb-adr.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 279 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.00018 $0.00279
Opus 5 $0.00009 $0.00139
Sonnet 5 $0.00004 $0.00056
Haiku 4.5 $0.00002 $0.00028

Measured 3d ago against content hash 596d235ee235, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

kb-adr 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 3d 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/obsidian-knowledge-bank/commands/kb-adr.md · 29 lines

What it actually says

KB ADR

Create a formal Architecture Decision Record.

FIRST: Load the knowledge-bank:knowledge-bank skill using the Skill tool, then execute Step 2c (ADR) from the skill.

If $ARGUMENTS is provided:

  • Use as the ADR title. The skill will gather the remaining fields.

If $ARGUMENTS is empty:

  • The skill will ask for the decision title and walk through the ADR fields.

The skill will:

  1. Auto-number the ADR (ADR-0001, ADR-0002, …)
  2. Gather: status, context, decision, consequences, options considered, tags
  3. Write to .knowledge-bank/adr/ADR-<NNNN>-<slug>.md
  4. Update the master index and ADR category index

ADR statuses: Proposed | Accepted | Deprecated | Superseded by ADR-NNNN

For lighter-weight technical decisions that don't need the full ADR format, use /kb-store decisions instead.

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. 3d ago First seen · 29 lines · 18 tokens per session scan A 596d235ee235

Subscribe to this mod's changes

kb-adr is a command published in the GitHub repository stilero/claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 279 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.