# Documentation and adrs

> Documentation and adrs is an open-source agent skill for developer tools. Guides agents to record architecture decisions and catch docs that drifted from code. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/addyosmani/agent-skills/tree/main/skills/documentation-and-adrs
- **Repository:** https://github.com/addyosmani/agent-skills
- **GitHub stars:** 122,545
- **License:** MIT
- **Skill name:** documentation-and-adrs
- **Collection:** https://github.com/addyosmani/agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill teaches an agent to write architecture decision records that capture the context, constraints and rejected alternatives behind a choice, and to follow an existing ADR convention in a repository before falling back to a default layout. It also covers inline comments that explain intent, API documentation with types and OpenAPI, README structure, and changelog entries that are appended rather than rewritten.

For documentation drift, the skill gives a git-based procedure that compares the last commit touching a doc with the last commit touching the code it describes. It tells the agent to answer "can't tell" when history is unordered, renamed, or cut off by a shallow clone, instead of reporting the doc as current. A prose review step asks the agent to keep technical details and qualifiers intact while tightening wording.

The skill ships as a single SKILL.md with no scripts. It expects a git repository with history, and the drift check is written for a bash shell.

## When your agent uses it

> Records decisions and documentation, and detects when documentation has drifted from the code it describes. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, when docs may be stale or out of sync with the code they describe, when working out which module docs are still accurate, or when setting up a check so docs cannot silently go out of date again.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/addyosmani/agent-skills/tree/HEAD/skills/documentation-and-adrs)
- [License: MIT](https://github.com/addyosmani/agent-skills/tree/HEAD/skills/documentation-and-adrs)

## Features

- **Architecture decision records:** Templates and lifecycle rules for recording why a significant technical choice was made.
- **Existing convention matching:** Guidance to follow a repository's ADR location, numbering and heading style before defaults.
- **Documentation drift detection:** A git commit-ordering check that flags docs older than the code they describe.
- **Intent-focused comments:** Rules for commenting why code does something and avoiding restated or commented-out code.
- **API and README docs:** Patterns for typed function docs, OpenAPI entries and project README sections.
- **Append-only changelogs:** Instructions to add dated change log entries that explain why a doc changed.

## Good for

- Write an ADR for choosing a database or authentication approach
- Check whether a module's docs still match its current code
- Document a public API function with parameter and return types
- Review a README to confirm it explains setup and commands
- Add a dated changelog entry when correcting an outdated doc

## Install

### Claude Code

This skill ships in the `agent-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add chrisalehman/bionic
/plugin install agent-skills@bionic
```

Or copy only this skill to `~/.claude/skills/documentation-and-adrs`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/documentation-and-adrs &&
cp -R "$tmp/skills/documentation-and-adrs" ~/.claude/skills/documentation-and-adrs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/documentation-and-adrs` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/documentation-and-adrs` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/documentation-and-adrs &&
cp -R "$tmp/skills/documentation-and-adrs" ~/.agents/skills/documentation-and-adrs &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/documentation-and-adrs` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/documentation-and-adrs` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/documentation-and-adrs &&
cp -R "$tmp/skills/documentation-and-adrs" ~/.cursor/skills/documentation-and-adrs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/documentation-and-adrs` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/addyosmani/agent-skills.git --path skills/documentation-and-adrs
```

Or copy the folder to `~/.gemini/skills/documentation-and-adrs` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/documentation-and-adrs`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/documentation-and-adrs &&
cp -R "$tmp/skills/documentation-and-adrs" ~/.copilot/skills/documentation-and-adrs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/documentation-and-adrs` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/addyosmani/agent-skills.git
```

Then copy `agent-skills/skills/documentation-and-adrs` into your agent's skills folder as `documentation-and-adrs`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Documentation and adrs need any scripts or extra tools?

No scripts are bundled. The drift check uses git commands run in a bash shell against a repository with history.

### Where does Documentation and adrs store ADRs?

By default in docs/decisions/ with sequential numbering, but an existing ADR location or naming convention in the repository takes precedence.

### What happens with a shallow clone?

The skill says the drift check can be unreliable on a shallow clone, so the agent should fetch full history first when the answer matters.

### Can Documentation and adrs rewrite an existing changelog?

No. The skill instructs the agent to append a dated entry and never rewrite or collapse earlier entries.

### How do I install Documentation and adrs in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/documentation-and-adrs to use it in all your projects, or to .claude/skills/documentation-and-adrs in one project. Or install the agent-skills plugin, which includes it: /plugin marketplace add chrisalehman/bionic, then /plugin install agent-skills@bionic.

### Does Documentation and adrs run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Documentation and adrs?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Documentation and adrs?

The closest alternatives to Documentation and adrs are Documentation and adrs, Architecture decision records, Docs adr, Decision backfill and Kmg adr guide.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Documentation and adrs](https://ai-powered.com/skills/documentation-and-adrs-ajyadav013-2): Documentation and adrs is an open-source agent skill for developer tools.
- [Architecture decision records](https://ai-powered.com/skills/architecture-decision-records): Architecture decision records is an open-source agent skill for developer tools.
- [Docs adr](https://ai-powered.com/skills/docs-adr): Docs adr is an open-source agent skill for developer tools.
- [Decision backfill](https://ai-powered.com/skills/decision-backfill): Decision backfill is an open-source agent skill for developer tools.
- [Kmg adr guide](https://ai-powered.com/skills/kmg-adr-guide): Kmg adr guide is an open-source agent skill for developer tools.
- [System design edho ferdian](https://ai-powered.com/skills/system-design-edho-ferdian): System design edho ferdian is an open-source agent skill for developer tools.
- [Decision log](https://ai-powered.com/skills/decision-log-berkcangumusisik): Decision log is an open-source agent skill for developer tools.
- [Vibe decision journal](https://ai-powered.com/skills/vibe-decision-journal): Vibe decision journal is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/documentation-and-adrs
