Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Frontmatter-driven ADR (Architecture Decision Record) tooling. Validates ADR
metadata, enforces relationship consistency (supersedes, depends_on,
refines, ...), extracts effective sets, regenerates index files, renders
Mermaid views, and verifies code-level assumptions.
Originally extracted from the kompiro/karasu monorepo.
Status: pre-1.0, API may change.
Published to the public npm registry:
pnpm add -D @kompiro/adr-tools
# or
npm install --save-dev @kompiro/adr-tools
No registry configuration or authentication is required.
For environments without a Node toolchain (other projects, Go/other-language devcontainers, etc.), install the self-contained executable published to GitHub Releases:
curl -fsSL https://raw.githubusercontent.com/kompiro/adr-tools/main/install.sh | sh
The script detects your OS/arch, downloads the matching binary, verifies its
SHA256, and installs it to ~/.local/bin/adr. Override with ADR_VERSION
(release tag) or INSTALL_DIR.
While this repository is private, downloading requires authentication: install
the GitHub CLI and run gh auth login (preferred),
or set GITHUB_TOKEN (the curl fallback also needs jq). In a devcontainer,
add the one-liner above as a RUN step in your Dockerfile.
The binary embeds everything it needs, so
adr initworks with no companion files. The generated config's$schemapoints at the npm package path, so JSON Schema autocompletion in editors only resolves when the package is also installed via npm.
This repo is also a Claude Code plugin. Its
adr-search skill (/adr-tools:adr-search) finds the ADRs that apply to a task
and says which of them are still in force: it runs adr search and adr refs
(see below), checks
every newer ADR that points at a candidate, and never reads the generated
effective.md / graph.md. The plugin is listed in the kompiro-hane
marketplace:
/plugin marketplace add kompiro/hane
/plugin install adr-tools@kompiro-hane
If you added kompiro-hane before adr-tools was listed, run
/plugin marketplace update kompiro-hane first, or the install cannot find the
plugin.
The skill needs adr-tools v0.0.14 or later for search / refs, and falls back
to reading frontmatter with grep on an older CLI. The npm package and the
binaries do not include it.
After installing, the adr binary is on your project's PATH:
# Generate a starter config in CWD
npx adr init
# Edit adr.config.json to define your topics and concerns
# Validate ADRs under docs/adr/
npx adr validate
# Regenerate effective.md, graph.md, graph/<topic>.md
npx adr regenerate
adr <subcommand> [options]
Subcommands:
init generate a starter adr.config.json in CWD
validate schema and cross-reference validation of ADRs
regenerate rewrite effective.md, graph.md, and graph/<topic>.md
extract query the ADR set (effective | slice | closure)
search find ADRs by words, with their status and successor
refs show what points at an ADR and whether it is still in force
visualize render Markdown / Mermaid views of the ADR set
check-assumptions verify file: / symbol: / grep: assumptions in ADRs
check-permalinks verify permalink: sources exist and deep anchors resolve
search, refs)Before reading the generated indexes in full, ask the two questions directly:
$ npx adr search -n 2 cache redis
1 ADR-31 accepted 2026-07-18 Move the page cache to Redis [cache*(6) redis*(7)]
2 ADR-12 superseded→ADR-31 2026-03-02 Cache rendered pages in memory [cache*(9) redis(2)]
$ npx adr refs ADR-12
ADR-12 superseded 2026-03-02 Cache rendered pages in memory
file: docs/adr/12-in-memory-page-cache.md
superseded by: ADR-31 (accepted)
relations: depends_on ADR-4
referenced by:
ADR-31 accepted 2026-07-18 supersedes ← NEWER Move the page cache to Redis
ADR-20 accepted 2026-05-09 related_to ← NEWER Expire cached pages on deploy
mentioned only in body:
ADR-40 accepted 2026-09-01 ← NEWER Serve stale pages while the cache refills
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
adr-tools@kompiro-hane is listed by kompiro/hane — review the source before installing
npx claudepluginhub kompiro/hane --plugin adr-toolsPlugins from other owners that cover similar ground