Record an architecture decision as an ADR in api/docs/arch/adr/.

MITAuto-check passedDevelopment

Install Adr

skills CLI
$ npx skills add linuxfoundation/insights --skill adr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install linuxfoundation/insights adr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/linuxfoundation/insights.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/adr .claude/skills/adr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
adr
GitHub stars
280
Token cost
~1k tokens
SKILL.md length
443 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Record an architecture decision as an ADR in api/docs/arch/adr/.

  • Works in 7 steps: Scan existing ADRs — Glob… → Assign next ID — next sequential 4-digit… → Gather context — ask the user for any… → …
  • Choosing between frameworks
  • SKILL.md covers When to record, ADR template, Workflow — recording a new ADR and Workflow — reading / querying…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Adr is an agent skill from linuxfoundation/insights. Record an architecture decision as an ADR in api/docs/arch/adr/. Use when choosing between frameworks, libraries, databases, or architectural patterns; stating a decision with reasoning ("we decided X instead of Y because..."); or querying past decisions ("why did we choose X?").

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Architecture decision records. The repository describes itself as: Insights into the world's most critical open source software. The licence is MIT.

When your agent uses it

  • Choosing between frameworks
  • Architectural patterns
  • Stating a decision with reasoning (we decided X instead of Y because...)
  • Querying past decisions (why did we choose X?)

Example prompts

  • “we decided X instead of Y because...”
  • “why did we choose X?”
  • “/adr”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep, AskUserQuestion

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Scan existing ADRs — Glob api/docs/arch/adr/[0-9]*.md to find the highest existing number.
  2. Assign next ID — next sequential 4-digit number (e.g., 0003).
  3. Gather context — ask the user for any missing details on the context, the decision, and the alternatives considered with why they were…
  4. Draft the ADR — cover the context, decision, and rejected alternatives, either as free-form prose or using the full template above.
  5. Present the draft — show it to the user for review before writing any file.
  6. Write the file — api/docs/arch/adr/NNNN-kebab-title.md (kebab-case title, all lowercase).
  7. Update the index — append a new row to the | ADR | Title | Status | Date | table in api/docs/arch/adr/README.md.

What it can do on your machine

Read from SKILL.md and the folder at commit 3df53b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Glob
    • Grep
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Adr loads about 1k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 443 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from linuxfoundation/insights at commit 3df53b5, republished under its MIT licence (© linuxfoundation). 443 words, ~1,048 tokens.

Download SKILL.mdSave it as .claude/skills/adr/SKILL.md (or your agent's skills folder).
name
adr
description
Record an architecture decision as an ADR in api/docs/arch/adr/. Use when choosing between frameworks, libraries, databases, or architectural patterns; stating a decision with reasoning ("we decided X instead of Y because..."); or querying past decisions ("why did we choose X?").
allowed-tools
Read, Write, Edit, Glob, Grep, AskUserQuestion

Architecture Decision Records

You are recording or retrieving an Architecture Decision Record (ADR) for this project. ADRs live in api/docs/arch/adr/ at the repo root.

When to record

Record these decisions:

  • Technology selections (frameworks, libraries, databases, cloud providers)
  • Architectural patterns (state management, caching strategy, API design)
  • Data modeling choices (schema design, indexing, query approach)
  • Infrastructure and deployment models
  • Security, authentication, or testing strategy changes
  • Any choice where the "why we didn't pick the alternative" will matter in 6 months

Skip: trivial choices (variable naming, formatting, minor refactors).

ADR template

Every ADR must have an H1 title stating the decision, and body prose covering the context, the decision itself, and the alternatives considered with why they were rejected. README.md and template.md are index/template files, not ADRs, and are exempt from this requirement.

The body may be short free-form prose covering those points, or the full template below (Date/Status/Deciders header block, Context, Decision, Alternatives Considered, Consequences). The full template is recommended for new ADRs but not required — the **Deciders**: line is always optional. If the decision, its context, or the rejected alternatives can't be stated, stop and ask the user for the missing information before writing the file.

markdown
# ADR-NNNN: [Decision Title]

**Date**: YYYY-MM-DD
**Status**: proposed | accepted | deprecated | superseded by ADR-NNNN
**Deciders**: [who was involved]

## Context

[2–5 sentences describing the situation, constraints, and forces at play]

## Decision

[1–3 sentences stating the change clearly and unambiguously]

## Alternatives Considered

### Alternative 1: [Name]

- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific rejection reason]

### Alternative 2: [Name]

- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific rejection reason]

## Consequences

### Positive

- [benefit 1]

### Negative

- [trade-off 1]

### Risks

- [risk and mitigation]

Workflow — recording a new ADR

  1. Scan existing ADRs — Glob api/docs/arch/adr/[0-9]*.md to find the highest existing number.
  2. Assign next ID — next sequential 4-digit number (e.g., 0003).
  3. Gather context — ask the user for any missing details on the context, the decision, and the alternatives considered with why they were rejected. Only ask about deciders and consequences if the user opts into the full template.
  4. Draft the ADR — cover the context, decision, and rejected alternatives, either as free-form prose or using the full template above.
  5. Present the draft — show it to the user for review before writing any file.
  6. Write the file — api/docs/arch/adr/NNNN-kebab-title.md (kebab-case title, all lowercase).
  7. Update the index — append a new row to the | ADR | Title | Status | Date | table in api/docs/arch/adr/README.md.
Show full SKILL.md (121 more words)Show less

Workflow — reading / querying ADRs

  1. Check if api/docs/arch/adr/README.md exists. If not, offer to start the ADR directory.
  2. Read the README index table and find entries relevant to the user's question.
  3. Read the matching ADR file and summarise the Context and Decision sections.
  4. If no ADR matches, suggest recording one now.

Quality standards

  • Each ADR should be readable in under 2 minutes.
  • Every rejected alternative must include a Why not reason — "we didn't pick X" without a reason is useless.
  • When a decision is superseded, update the old ADR's Status field to superseded by ADR-NNNN and create the new ADR with a back-reference in its Context.
  • Keep one decision per ADR — split if two separate choices are getting conflated.

© linuxfoundation, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/adr of linuxfoundation/insights.

Open the folder on GitHubat commit 3df53b5

Compare with similar skills

Adr next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Adr compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Adr this skilllinuxfoundation/insights280—~1kAutomated safety check: PassMIT
PR Design DocOpenHands/OpenHands90k—~2.4kAutomated safety check: PassMIT
Cto AdvisorIbrahim-3d/orchestrator-supaconductor3804 repos~2.4kAutomated safety check: PassMIT
Improve Codebase Architectureywwynm/EverythingDone14415 repos~1.3kAutomated safety check: PassGPL-3.0
Domain Modelingbrim-borium/spotify_sdk1665 repos~806Automated safety check: PassApache-2.0
Design Doc MermaidSpillwaveSolutions/design-doc-mermaid1751 repos~5.6kAutomated safety check: PassNone

Similar skills

  • PR Design Doc

    OpenHands/OpenHands

    For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…

    90k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Cto Advisor

    Ibrahim-3d/orchestrator-supaconductor

    Technical leadership guidance for engineering teams, architecture decisions, and technology strategy.

    380 GitHub starsUsed in 4 repos~2.4k tokens
    DevelopmentAuto-check passed
  • Improve Codebase Architecture

    ywwynm/EverythingDone

    Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/.

    144 GitHub starsUsed in 15 repos~1.3k tokens
    DevelopmentAuto-check passed
  • Domain Modeling

    brim-borium/spotify_sdk

    Build and sharpen a project's domain model. An agent skill from brim-borium/spotify_sdk.

    166 GitHub starsUsed in 5 repos~806 tokens
    DevelopmentAuto-check passed
  • Design Doc Mermaid

    SpillwaveSolutions/design-doc-mermaid

    Create Mermaid diagrams (flowchart, sequence, class, ER, state, C4, architecture) from text or source code.

    175 GitHub starsUsed in 1 repo~5.6k tokens
    DevelopmentAuto-check passed
  • Learning Opportunities

    DrCatHicks/learning-opportunities

    Facilitates deliberate skill development during AI-assisted coding.

    2.5k GitHub stars~2.5k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from linuxfoundation/insights

All 9 skills in this repo
  • Event Tracking

    linuxfoundation/insights

    Add event tracking calls to Vue/Nuxt components in the Insights app using the useTrackEvent composable.

    280 GitHub stars~1.9k tokensUpdated 7 days ago
    Auto-check passed
  • Review PR

    linuxfoundation/insights

    Review a pull request against Insights architecture standards — fetches PR diff, verifies previous comments are addressed, validates PR metadata (title, branch, JIRA, size), runs a code-standards…

    280 GitHub stars~2.7k tokensUpdated 7 days ago
    Auto-check: notes
  • Dco

    linuxfoundation/insights

    Recover from missing DCO sign-off on commits. An agent skill from linuxfoundation/insights.

    280 GitHub stars~696 tokensUpdated 7 days ago
    Auto-check: notes
  • Fix Vulns

    linuxfoundation/insights

    Automated triage and fixing of Dependabot security vulnerabilities (IN-1189).

    280 GitHub stars~3.8k tokensUpdated 7 days ago
    Auto-check: notes
  • Setup

    linuxfoundation/insights

    Full development environment setup from scratch — prerequisites, dependencies, .env file, optional local PostgreSQL database (for auth/collections/chat work), and dev server.

    280 GitHub stars~1.9k tokensUpdated 7 days ago
    Auto-check: notes
  • Setup Docs

    linuxfoundation/insights

    Run the docs site, blog, or Storybook locally. An agent skill from linuxfoundation/insights.

    280 GitHub stars~383 tokensUpdated 7 days ago
    Auto-check: notes

Categories

Questions about Adr

What does Adr do?

Record an architecture decision as an ADR in api/docs/arch/adr/. Adr is an agent skill from linuxfoundation/insights. Record an architecture decision as an ADR in api/docs/arch/adr/.

When should I use Adr?

Adr fits situations like: choosing between frameworks; architectural patterns; stating a decision with reasoning (we decided X instead of Y because...); querying past decisions (why did we choose X?).

How do I install Adr in Claude Code?

Run `npx skills add linuxfoundation/insights --skill adr -a claude-code`. Or copy the skill folder (.claude/skills/adr in linuxfoundation/insights) into .claude/skills/adr in your project. Claude Code loads it when a task matches its description.

How do I install Adr in Codex?

Run `npx skills add linuxfoundation/insights --skill adr -a codex`. Or copy the skill folder (.claude/skills/adr in linuxfoundation/insights) into .agents/skills/adr in your project. Codex loads it when a task matches its description.

Can I use Adr in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add linuxfoundation/insights --skill adr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/adr, .gemini/skills/adr, .github/skills/adr and .opencode/skills/adr in your project.

What does Adr need to run?

SKILL.md names no scripts, command-line tools or credentials: Adr is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, AskUserQuestion.

Does Adr access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Adr safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Adr use?

Adr is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Adr use?

About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Adr?

Skills that share tags, products or a category with Adr: PR Design Doc (OpenHands/OpenHands, 90k stars), Cto Advisor (Ibrahim-3d/orchestrator-supaconductor, 380 stars), Improve Codebase Architecture (ywwynm/EverythingDone, 144 stars) and Domain Modeling (brim-borium/spotify_sdk, 166 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Adr?

linuxfoundation (a GitHub organization) maintains it in linuxfoundation/insights, which has 280 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 1, 2026.

Source: linuxfoundation/insights on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.