validate-adr

validate-adr is a command for Claude Code from exchanet/method_enterprise_builder_planning. It costs 0 tokens per session (287 once invoked), scanned A, original, MIT.

A command that checks architecture decision records, or ADRs—short documents explaining important technical decisions—against enterprise rules.

In plain words
What is it for?
Use it to validate one ADR or a directory of ADRs and confirm that decisions include context, alternatives, consequences, compliance information, and valid metadata.
Why use it?
It catches missing sections, alternatives, dates, statuses, compliance details, and other requirements before an ADR is accepted.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node packs/enterprise-architecture-pack/validators/adr-validator/src/index.ts \.

Good fit Use it to validate one ADR or a directory of ADRs and confirm that decisions include context, alternatives, consequences, compliance information, and valid metadata.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/exchanet/method_enterprise_builder_planning
agentmods
npx agentmods add commands/exchanet/method_enterprise_builder_planning/validate-adr

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/exchanet/method_enterprise_builder_planning/validate-adr/github.svg)](https://agentmods.dev/commands/exchanet/method_enterprise_builder_planning/validate-adr)
Your own site
<a href="https://agentmods.dev/commands/exchanet/method_enterprise_builder_planning/validate-adr"><img src="https://agentmods.dev/badge/commands/exchanet/method_enterprise_builder_planning/validate-adr/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 validate-adr

Your own site · 80×15
<a href="https://agentmods.dev/commands/exchanet/method_enterprise_builder_planning/validate-adr"><img src="https://agentmods.dev/badge/commands/exchanet/method_enterprise_builder_planning/validate-adr.svg" alt="Reviewed on agentmods" width="80" 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 287 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.00000 $0.00287
Opus 5.5 $0.00000 $0.00115
Sonnet 5.5 $0.00000 $0.00057
Haiku 4.5 $0.00000 $0.00029

Measured 3mo ago against content hash f7c084553450, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

validate-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 3mo 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.

agents/claude-code/.claude/commands/validate-adr.md · 44 lines

What it actually says

Command: /validate-adr

Runs the enterprise ADR Validator against one or more ADR files.

Usage

/validate-adr [path]

Examples

# Validate all ADRs in the standard directory
/validate-adr docs/adr/

# Validate a specific ADR
/validate-adr docs/adr/ADR-001-isolation.md

What it runs

node packs/enterprise-architecture-pack/validators/adr-validator/src/index.ts \
  --format=console [path]

Rules checked

  • ADR-STR-001: Required sections (Context, Decision) present
  • ADR-STR-002: ADR has a title
  • ADR-ENT-001: ≥2 alternatives documented
  • ADR-ENT-002: Alternatives include rejection reasons
  • ADR-ENT-003: Compliance Impact section present
  • ADR-ENT-004: Valid status (Proposed/Accepted/Deprecated/Superseded)
  • ADR-ENT-005: ISO 8601 date format (YYYY-MM-DD)
  • ADR-COMP-001: Security ADRs reference a compliance standard
  • ADR-COMP-002: Consequences section present
  • ADR-COMP-003: Regulated ADRs name their deciders

Gate rule

An ADR that fails any error-severity rule cannot be marked as Accepted.

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. 3mo ago First seen · 44 lines · 0 tokens per session scan A f7c084553450

Subscribe to this mod's changes

validate-adr is a command published in the GitHub repository exchanet/method_enterprise_builder_planning (2 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 287 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-08-31.

Related

validate-adr compared with commands from other repositories

validate-adr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
validate-adrexchanet/method_enterprise_builder_planningCommand29mo agoMITA0Claude Code
explore-problemjabrena/plinthCommand470yesterdayApache-2.0A12Claude Code, Cursor
create-acceptance-criteriajabrena/plinthCommand470yesterdayApache-2.0A14Claude Code, Cursor
benchmarkjabrena/plinthCommand470yesterdayApache-2.0A10Claude Code, Cursor
close-specjabrena/plinthCommand470yesterdayApache-2.0A9Claude Code, Cursor
profilejabrena/plinthCommand470yesterdayApache-2.0A10Claude Code, Cursor
update-issuejabrena/plinthCommand470yesterdayApache-2.0A11Claude Code, Cursor