RodriOliveira.AdrGuard
1.5.0
dotnet tool install --global RodriOliveira.AdrGuard --version 1.5.0
dotnet new tool-manifest
dotnet tool install --local RodriOliveira.AdrGuard --version 1.5.0
#tool dotnet:?package=RodriOliveira.AdrGuard&version=1.5.0
nuke :add-package RodriOliveira.AdrGuard --version 1.5.0
ADR Guard
Português (Brasil) · Documentation portal · Markdown documentation · Changelog
Understand architectural decisions. Record the reasoning. Keep the history trustworthy.
ADR Guard is a lightweight .NET command-line tool for creating, validating, reviewing, and indexing Architecture Decision Records (ADRs). It keeps decision documentation consistent in local development and CI without making architectural decisions for your team.
What is an ADR?
An ADR is a short document that explains one consequential software decision: the context that required it, the option selected, and the benefits and costs that follow. ADRs help future contributors understand why a system was shaped a certain way—not only what the code does.
New to the practice? Follow the progressive guide:
What ADR Guard does
- creates offline
ProposedADRs from Minimal, Extended, or constrained Custom templates; - validates canonical structure, filenames, statuses, required sections, links, IDs, and supersession relationships;
- supports separate, opt-in MADR 4.0 validation;
- generates a deterministic Markdown index only after validation succeeds;
- supports Git-aware incremental checks, diagnostic baselines, and JSON/SARIF reports;
- offers opt-in, advisory architecture impact analysis from explicit ADR-to-code mappings;
- offers opt-in, human-reviewed AI drafting and technical review with explicit providers and context;
- integrates with GitHub Actions, VS Code, and versioned container images.
Validation confirms deterministic documentation rules. It does not approve technical merit, authorize a decision, or turn AI output into an accepted architecture.
Install
Install the published .NET Tool from NuGet.org:
dotnet tool install --global RodriOliveira.AdrGuard
adr-guard --version
Update an existing installation with dotnet tool update --global RodriOliveira.AdrGuard. GitHub Packages is also available as an authenticated secondary registry. See GitHub Releases or the NuGet badge for the current published version.
Quick start
From the root of an existing repository:
adr-guard init . --adr-directory docs/adr --template minimal
adr-guard new docs/adr --title "Use PostgreSQL as the order system of record"
Edit the generated Proposed ADR to replace its guidance with your real context, decision, and balanced consequences. Review it with the people affected by the choice, then run:
adr-guard check docs/adr
adr-guard index docs/adr
check validates the ADR set. index validates again and creates or updates docs/adr/README.md; new does not update the index automatically. Read the first ADR tutorial for the complete workflow.
Choose the right structure
| Option | Use it when | Product boundary |
|---|---|---|
| Minimal | Core context, choice, rationale, and consequences are enough | Generated by new/draft; canonical validation |
| Extended | Options, drivers, risks, or cross-team impact need explicit treatment | Generated by new/draft; canonical validation; not MADR |
| Custom | A team needs additional canonical prompts or sections | One strict local file via --template-file; not arbitrary Markdown |
| MADR 4.0 | The team deliberately uses MADR's external structure | Separately authored; opt-in --adr-format madr-4; no built-in new generator |
See the selection matrix, complete examples, custom template contract, and MADR compatibility guide.
Integrations
| Integration | Use | Guide |
|---|---|---|
| GitHub Action | Validate, index, or explicitly run AI review/architecture impact analysis on supported Linux runners | Consumer guide |
| VS Code | Commands, Problems diagnostics, and ADR Explorer through a compatible installed CLI | Extension guide |
| Containers | Run the same versioned CLI from GHCR or Docker Hub | Container and supply-chain guide |
| CI reports | Produce text, JSON, or SARIF validation output | Check reports |
The GitHub Marketplace Action and Visual Studio Marketplace extension are published. The moving @v1 tag is published and supports check, index, and opt-in review since v1.1.6; new and draft remain CLI/direct-container workflows. The extension does not bundle the CLI.
Agent Skills (P0 + P1)
Eleven portable Agent Skills cover ADR setup, creation, validation, technical review, lifecycle management, CI setup, when to write ADRs, trade-off analysis, supersession, audits, and team adoption. The skills guide agents in using ADR Guard; they do not install the CLI or make architectural approvals.
npx skills add rodri-oliveira-dev/adr-guard --list
npx skills add rodri-oliveira-dev/adr-guard --skill adr-guard-create --agent codex
Skills are currently under development on a feature branch; the default-branch discovery command will work after merge. See installation, safeguards, and scope.
Documentation
- Learn: fundamentals, decision categories, lifecycle, and anti-patterns.
- Use: first ADR tutorial, team adoption, and offline creation.
- Reference: CLI and configuration, compatibility matrix, validation and governance, and full technical index.
- AI boundaries: CLI review has been published since v1.1.2 and runs explicitly as
adr-guard review; deterministic policy enforcement may return exit code4. See the AI review guide, draft privacy, and review security. - Project architecture: ADR Guard's own generated ADR index.
English is the default documentation language. Brazilian Portuguese pages use .pt-BR.md and are linked from each translated page.
Build and contribute
The project targets .NET 10. To build and test from source:
dotnet restore AdrGuard.slnx
dotnet build AdrGuard.slnx --no-restore
dotnet test AdrGuard.slnx --no-build
Issues and focused pull requests are welcome. Use the issue tracker for proposals and reproducible bugs, SUPPORT.md for support, and SECURITY.md for private vulnerability reporting.
Releases and license
Published artifacts and exact version notes are available in GitHub Releases. Repository release notes remain under docs/releases.
ADR Guard is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0 | 0 | 10/11/2026 |
| 1.3.0 | 131 | 10/8/2026 |
| 1.2.0 | 87 | 10/8/2026 |
| 1.1.7 | 291 | 9/28/2026 |
| 1.1.6 | 141 | 9/27/2026 |
| 1.1.5 | 95 | 9/27/2026 |
| 1.1.4 | 95 | 9/27/2026 |
| 1.1.3 | 98 | 9/27/2026 |
| 1.1.2 | 92 | 9/27/2026 |
| 1.1.1 | 100 | 9/24/2026 |
| 1.1.0 | 95 | 9/22/2026 |
| 1.0.1 | 95 | 9/21/2026 |
| 1.0.0 | 97 | 9/21/2026 |
| 0.1.12 | 108 | 9/21/2026 |
| 0.1.11 | 269 | 9/18/2026 |
| 0.1.10 | 104 | 9/14/2026 |
| 0.1.9 | 144 | 9/12/2026 |
| 0.1.8 | 150 | 9/8/2026 |
| 0.1.7 | 112 | 9/4/2026 |
| 0.1.6 | 108 | 9/4/2026 |
Opt-in architecture impact analysis from strict, explicit ADR-to-code mappings.
Bounded Git change inventory with rename/delete evidence and advisory JSON/text reports.
Secure opt-in GitHub Action impact summaries with read-only, secretless execution.
Preserves canonical defaults and existing check/review JSON, SARIF, CLI, and exit contracts.
Full release notes: https://github.com/rodri-oliveira-dev/adr-guard/releases/tag/v1.5.0