Index of every page on this site: llms.txt
All skills
Run it yourself

Finds the existing ADRs that govern a question or a file, so recorded decisions are read before code changes. Use when the user asks "Which ADRs cover this?", "Is there a decision about [topic]?", "What decisions apply to [file]?", "Did we already decide [X]?", or before changing code in an area that may carry a recorded decision. Do NOT use for counts or documentation health (use architecture-status), writing a new ADR (use create-adr), or reviews (use architecture-review or specialist-review).

  • 1 file
  • 2.9 KB
  • Updated 3 days ago
  • GitHub
Use this Skill: https://skilld.dev/gh/codenamev/ai-software-architect/find-adrs

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈128 tokens for metadata: the name and description. ≈589 when used: this file.

Description uses 6.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈512 characters, or 6.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Find Relevant ADRs

Ranks the project's ADRs against a question and/or a file path. Tier-1 parity with the MCP find_relevant_adrs tool (ADR-015): both call tools/lib/adr-index.js, so the same inputs give the same ranking.

Process

1. Check Framework Setup

If .architecture/decisions/adrs/ doesn't exist, say so and suggest "Setup ai-software-architect". Stop.

2. Locate the CLI

TOOLS_CLI=""
if [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && [ -f "$CLAUDE_PLUGIN_ROOT/tools/cli.js" ]; then
  TOOLS_CLI="$CLAUDE_PLUGIN_ROOT/tools/cli.js"
else
  TOOLS_CLI=$(find ~/.claude/plugins -type f -name cli.js -path '*ai-software-architect/tools/*' 2>/dev/null | head -1)
fi

3. Run the Search

Pass the user's question as --query and, when they named a file or you are about to edit one, its project-relative path as --file:

node "$TOOLS_CLI" find-adrs --project . --query "<question>" --file "<path>" --json

At least one of --query or --file is required. --limit (1-20, default 5) caps the results.

Matching is plain, with no embeddings: keywords against ADR titles and bodies (rarer terms weigh more, title hits weigh triple), plus optional affects: globs in ADR frontmatter matched against --file.

No CLI found (manual install without the plugin): fall back to reading. List .architecture/decisions/adrs/, read titles and statuses, and pick the ADRs whose title or body covers the question. Say in the report that the ranking is by hand.

4. Report

For each result, in rank order:

  • ADR-XXX: <title>: status, and why it matched (matched)
  • If current is false: say it is superseded and name supersededBy. Read the successor, and never present the superseded ADR as the decision in force.

Then read the top one or two ADRs in full before answering the user's question or editing the file. The ranking points; the ADR text decides.

If nothing matched, relay the note: no recorded decision covers this, so a new choice may warrant an ADR ("Create ADR for [topic]").

Related Skills

  • "Create ADR for [topic]" - Record a decision when none covers the change
  • "What's our architecture status?" - Counts and documentation health
  • "Ask [specialist] to review [ADR]" - Expert read on a matched decision

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at df30528. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 3 days ago
What it can do
Reads files Runs commands
All 3 allowed tools
ReadBash(node:*)Bash(find:*)

README badge

README badge for codenamev/ai-software-architect/find-adrs