# Docs adr

> Docs adr is an open-source agent skill for developer tools. Records architecturally significant decisions as ADRs, persisted to memory and an audit. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/JasGujral/mokata-oss/tree/main/src/mokata/skills/docs-adr
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** docs-adr
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent to recognise when a change makes a structural decision, such as a technology choice, a boundary or a trade-off that constrains later work, and to capture it as an Architecture Decision Record. Each record is expected to carry the context that forced the choice, the decision itself and its consequences, following the Nygard-style structure the skill references.

When a later decision reverses an earlier one, the agent is directed to write a new record and mark the old one as superseded rather than editing history. The skill also asks the agent to decide the record's significance before writing it, so routine local changes are not logged as decisions.

The decision is meant to be stored through the host project's governed memory and audit ledger, with each durable write passing a secret scan and human approval. The skill ships with a reference file for the ADR structure and lifecycle, and it relies on the mokata pipeline for those gates and records.

## When your agent uses it

> mokata · Documentation & ADRs — an architecture decision is persisted to memory + the ledger, not lost.

## What it can access

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

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/docs-adr)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/docs-adr)

## Features

- **Significance filter:** Guidance for telling architecturally significant decisions apart from reversible, local choices that need no record.
- **ADR structure:** Expects each record to include context, decision and consequences, not only the outcome.
- **Superseding records:** Directs changes of course into a new record that marks the earlier one as superseded.
- **Governed persistence:** Stores the decision in project memory and an audit ledger through a human-approved write gate.
- **Docs reconciliation link:** Points to a companion skill that checks whether surrounding docs still match the code.

## Good for

- Record why the team chose one database over another
- Write an ADR for a new service boundary
- Document a trade-off that constrains future API design
- Supersede an old architecture decision with a new record
- Check whether a change needs a decision record before merging

## Install

### Claude Code

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

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

Or copy only this skill to `~/.claude/skills/docs-adr`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/docs-adr &&
cp -R "$tmp/src/mokata/skills/docs-adr" ~/.claude/skills/docs-adr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/docs-adr` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/docs-adr` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/docs-adr &&
cp -R "$tmp/src/mokata/skills/docs-adr" ~/.agents/skills/docs-adr &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/docs-adr` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/docs-adr` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/docs-adr &&
cp -R "$tmp/src/mokata/skills/docs-adr" ~/.cursor/skills/docs-adr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/docs-adr` 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/JasGujral/mokata-oss.git --path src/mokata/skills/docs-adr
```

Or copy the folder to `~/.gemini/skills/docs-adr` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/docs-adr &&
cp -R "$tmp/src/mokata/skills/docs-adr" ~/.copilot/skills/docs-adr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/docs-adr` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

Then copy `mokata-oss/src/mokata/skills/docs-adr` into your agent's skills folder as `docs-adr`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Docs adr trigger?

It engages when an approach makes an architecturally significant decision, when work touches an ADR, decision record or changelog, or when a future reader would ask why something was built a certain way. It is not meant for routine in-file changes or prose-only documentation.

### Does Docs adr write ADR files automatically?

The skill tells the agent to capture the decision as an ADR and to persist its essence to memory and the audit ledger. Those writes pass through a secret scan and human approval before they are stored.

### How are changed decisions handled?

The skill says past ADRs should not be edited. A new record is written and the old one is marked superseded, linking the two.

### Does Docs adr run any scripts?

No scripts are included in the skill folder.

### How do I install Docs adr in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/docs-adr to use it in all your projects, or to .claude/skills/docs-adr in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

### Does Docs adr 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 Docs adr?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Docs adr?

The closest alternatives to Docs adr are Architecture decision records, Decision log, Create architectural decision record, Adr workflow and Solution design.

## Where this comes from

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

## Alternatives

- [Architecture decision records](https://ai-powered.com/skills/architecture-decision-records): Architecture decision records 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.
- [Create architectural decision record](https://ai-powered.com/skills/create-architectural-decision-record): Create architectural decision record is an open-source agent skill for developer tools.
- [Adr workflow](https://ai-powered.com/skills/adr-workflow-ramboz): Adr workflow is an open-source agent skill for developer tools.
- [Solution design](https://ai-powered.com/skills/solution-design): Solution design is an open-source agent skill for developer tools.
- [Domain modeling](https://ai-powered.com/skills/domain-modeling): Domain modeling is an open-source agent skill for developer tools.
- [Repository governance lifecycle](https://ai-powered.com/skills/repository-governance-lifecycle): Repository governance lifecycle is an open-source agent skill for developer tools.
- [Architecture reasoning](https://ai-powered.com/skills/architecture-reasoning): Architecture reasoning is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/docs-adr
