adr

adr is a command for Gemini CLI from d-o-hub/github-template-ai-agents. It costs 0 tokens per session (156 once invoked), scanned A, original, MIT.

A command that records an architecture decision before detailed task planning. An Architecture Decision Record (ADR) is a short document explaining a technical choice and its consequences; TRIZ is a method for resolving design conflicts.

In plain words
What is it for?
It is for analysing a proposed system, writing an ADR in the plans folder, and asking for confirmation before planning the work.
Why use it?
It helps expose unclear requirements and architectural trade-offs before implementation begins.

Command for Gemini CLI

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/d-o-hub/github-template-ai-agents/adr
Clone the repo
git clone --depth 1 https://github.com/d-o-hub/github-template-ai-agents

Made for: Gemini CLI.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/d-o-hub/github-template-ai-agents/adr.svg)](https://agentmods.dev/commands/d-o-hub/github-template-ai-agents/adr)
Your own site
<a href="https://agentmods.dev/commands/d-o-hub/github-template-ai-agents/adr"><img src="https://agentmods.dev/badge/commands/d-o-hub/github-template-ai-agents/adr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 156 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.00000 $0.00156
Opus 5 $0.00000 $0.00078
Sonnet 5 $0.00000 $0.00031
Haiku 4.5 $0.00000 $0.00016

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

Security

Grade A, and why

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

.gemini/commands/adr.toml · 10 lines

What it actually says

description = "Start ADR-driven development — perform TRIZ analysis and write an Architecture Decision Record (ADR) before planning tasks via GOAP" prompt = """ Invoke the adr-driven-development approach. Begin by understanding what the user wants to build. Execute Phase 1 (ANALYZE & STRATEGIZE):

  1. Ask clarifying questions about the objective, constraints, and architecture.
  2. Use TRIZ concepts (triz-analysis/triz-solver) to evaluate the problem and resolve architectural contradictions.
  3. Draft an Architecture Decision Record (ADR) detailing the Context, Decision, and Consequences. Save the ADR in the plans/ directory and confirm with the user before proceeding to Phase 2 (DECOMPOSE & PLAN) via the goap-agent. """
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 · 10 lines · 0 tokens per session scan A 85ed49b4a109

Subscribe to this mod's changes

adr is a command published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 156 tokens. 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-09-03.