/adr-kit:context [topic or task description; e.g. "mqtt discovery"]from adr-kit
Finds ADRs relevant to a task before implementation, surfacing governing decisions and architecture constraints. Read-only, safe for parallel subagents.
Ships in adr-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reply in the language the user writes in; default to English. Keep command output, identifiers, paths, and ADR file content unchanged.
Use $ARGUMENTS as the task topic. If empty, use the current user request or
ask for one short topic when the request does not identify one.
You are running /adr-kit:context. Purpose: surface the ADRs that constrain the
task at hand before writing code, so you implement within existing decisions
instead of rediscovering or contradicting them. This is read-only — it never
edits ADRs or code, so it is safe to call from parallel subagents.
Take the topic from the argument. If none was given, ask the user for a short topic or task description (one phrase is enough).
Treat schema-v2 docs/adr/ADR-INDEX.json as the generated local query
database. Never treat it as the decision authority or edit it by hand; source
Markdown remains authoritative. Run the shared deterministic query engine
from the project root and keep the default limit of 5:
python <adr-kit-plugin-path>/bin/adr-context --format json --limit 5 "<topic>"
--adr-dir <path> if the project keeps ADRs somewhere other than
docs/adr/.--min-score <0-1> to tighten or loosen the relevance cutoff
(default 0.1).--paths, --components, --symbols, or --topics.
Filter with --status or --authority; use --history only when the
task needs Rejected, Superseded, or Deprecated rationale.python bin/adr-index docs/adr as the repair command. Use
--strict-index when fallback would be unsafe.If the result is an empty list ([]): tell the user plainly —
"No ADRs match ''; all existing ADRs may apply, or none constrain
this work." Do not invent relevance. Stop here.
Otherwise, for each returned ADR, Read the file and present it as
readable context, not just a filename:
ADR-NNN — <title> (relevance: <score>)Read that source ADR before stating a binding constraint.Order by relevance (highest first), most relevant ADR last in your message so it stays closest to the work that follows.
Briefly state the net constraint: in one or two sentences, what these decisions require or forbid for the task. Then proceed with (or hand back to) the implementation.
--min-score rather than
assuming no ADR exists./adr-kit:judge or
/adr-kit:adr to resolve it.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rvdbreemen/adr-kit --plugin adr-kit17 skills in this plugin
/adrCreate or review Architecture Decision Records. Use for ADRs, architecture decisions, durable trade-offs, new dependencies, contracts, or patterns./auditAre we still on course? Lint the decisions and judge the code in one run. Use for ADR audit, architecture drift, a whole-codebase compliance check, or a governance report. Read-only./grillInteractively complete, reconstruct, or revalidate Architecture Decision Records from repository facts, pull requests, git ranges, chat logs, or documents. Use when an ADR is Proposed, rationale or alternatives are uncertain, shipped code needs a decision record, or an Accepted decision may need supersession or retirement./guardianCheck ADR health, drift, stale decisions, and lint. Use for ADR guardian, health sweep, stale ADRs, or an [adr-guardian] DUE notice./initInitialize ADR Kit in a project. Use for adr-kit init, first-time ADR setup, architecture audit, managed guidance, and the pre-commit gate./install-hooksInstall or remove ADR Kit's deterministic pre-commit gate. Use for ADR hooks, pre-commit enforcement, or uninstalling the owned git hook.Other plugins' skills for the same job