# Adr workflow

> Adr workflow is an open-source agent skill for developer tools. Scaffolds, accepts, supersedes and indexes Architectural Decision Records. It is available on Codex.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Codex
- **Website:** https://github.com/ramboz/jig/tree/main/hosts/codex/plugins/jig/skills/adr-workflow
- **Repository:** https://github.com/ramboz/jig
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** adr-workflow
- **Collection:** https://github.com/ramboz/jig
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill manages the lifecycle of Architectural Decision Records in a project. A bundled Python helper handles the file operations deterministically: numbering and scaffolding new ADRs, stamping acceptance and supersession status in frontmatter and prose, regenerating the index in the decisions README, and auditing that index for stale entries or duplicate numbers. The agent is left to write the substance of each record, such as context, options and consequences.

The skill is built around project conventions. It checks that the repository already has a jig scaffold before creating anything and routes the user to setup or migration commands otherwise. New ADRs are reserved on origin/main by default, with a branch and pull request fallback when pushes are refused, and the helper works from feature branches and linked worktrees as well.

It expects a git repository with a docs/decisions directory, Python 3 available to run the helper script, and optionally a refinement-todo file for linking resolved deferred decisions. The skill is MIT licensed and ships with the jig plugin for Codex.

## When your agent uses it

> Scaffold, accept, index, and link Architectural Decision Records (ADRs). Use when the user says "write an ADR", "record this decision", "resolve [deferred item] with an ADR", "supersede ADR-NNNN", or otherwise wants to capture a hard-to-reverse decision in `docs/decisions/`. Also use when a refinement-todo entry needs to be marked RESOLVED with a link back to the ADR. Do NOT use for ad-hoc design discussion that hasn't crystallized into a decision yet — wait until the choice is firm.

## What it can access

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

- [Runs Python scripts](https://github.com/ramboz/jig/tree/HEAD/hosts/codex/plugins/jig/skills/adr-workflow)
- [Network calls found in its scripts](https://github.com/ramboz/jig/tree/HEAD/hosts/codex/plugins/jig/skills/adr-workflow)
- [License: MIT](https://github.com/ramboz/jig/tree/HEAD/hosts/codex/plugins/jig/skills/adr-workflow)

## Features

- **Scaffold new ADRs:** Creates a numbered ADR file from the template with a slug collision check.
- **Accept and supersede records:** Updates status fields atomically and links replaced decisions to their successors.
- **Regenerate the index:** Rebuilds the decisions README index from the ADR files present.
- **Audit index consistency:** Read-only check for stale index entries and duplicate ADR numbers.
- **Resolve deferred todos:** Strikes through a matching refinement-todo heading and links it to the ADR.
- **Reserve numbers on trunk:** Reserves the next ADR number on origin/main, falling back to a pull request.

## Good for

- Write an ADR recording a hard-to-reverse architecture choice
- Supersede an accepted ADR with a new decision
- Regenerate the decisions index after editing records
- Check the ADR index for duplicate numbers before merging
- Mark a deferred refinement item resolved by a new ADR

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/adr-workflow` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ramboz/jig.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/adr-workflow &&
cp -R "$tmp/hosts/codex/plugins/jig/skills/adr-workflow" ~/.claude/skills/adr-workflow &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ramboz/jig.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/adr-workflow &&
cp -R "$tmp/hosts/codex/plugins/jig/skills/adr-workflow" ~/.agents/skills/adr-workflow &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ramboz/jig.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/adr-workflow &&
cp -R "$tmp/hosts/codex/plugins/jig/skills/adr-workflow" ~/.cursor/skills/adr-workflow &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/adr-workflow` 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/ramboz/jig.git --path hosts/codex/plugins/jig/skills/adr-workflow
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ramboz/jig.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/adr-workflow &&
cp -R "$tmp/hosts/codex/plugins/jig/skills/adr-workflow" ~/.copilot/skills/adr-workflow &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ramboz/jig.git
```

Then copy `jig/hosts/codex/plugins/jig/skills/adr-workflow` into your agent's skills folder as `adr-workflow`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before creating an ADR?

It first confirms the project has a jig scaffold with scaffold.json. Greenfield projects are routed to the scaffold-init command and existing spec layouts to the migrate command.

### Does Adr workflow edit accepted ADRs?

No. Accepted ADRs are treated as immutable, and the only allowed change is the pair of supersession lines written by the supersede subcommand.

### What language is the helper script in?

The mechanics live in a Python script, adr.py, which the agent runs from the command line.

### When should the skill not trigger?

It is meant to be skipped for ad-hoc design discussion that has not yet become a firm decision.

### How do I install Adr workflow in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/adr-workflow to use it in all your projects, or to .claude/skills/adr-workflow in one project.

### Does Adr workflow run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. 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 Adr workflow?

Codex. 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 Adr workflow?

The closest alternatives to Adr workflow are Architecture decision records, Docs adr, Create architectural decision record, Decision log 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.
- [Docs adr](https://ai-powered.com/skills/docs-adr): Docs adr 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.
- [Decision log](https://ai-powered.com/skills/decision-log-berkcangumusisik): Decision log 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.
- [Reframe](https://ai-powered.com/skills/reframe-ramboz): Reframe 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.
- [Prd v06 architecture design](https://ai-powered.com/skills/prd-v06-architecture-design): Prd v06 architecture design is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/adr-workflow-ramboz
