Turn a Done Decision Into Durable Context with the create-adr Skill
Teams often remember what they chose and forget why. Six months later, a new engineer sees PostgreSQL, Kafka, or a particular deployment boundary and has to reconstruct the original constraints from chat history and old pull requests.
An Architecture Decision Record (ADR) is the compact historical record that closes that gap. The create-adr skill from Tech Leads Club Agent Skills helps an AI coding agent capture a decision after it has been made, with enough context and trade-off analysis for someone who joins the team later.
This tutorial shows how to install the skill, invoke it explicitly, and verify the resulting ADR without confusing an accepted decision with a proposal.
What makes create-adr useful?
The skill is not a generic "write some documentation" prompt. Its workflow has a clear boundary:
- Use it when the team has made, or is finalizing, a significant architectural decision.
- Do not use it when the team is still asking what to choose. That is an RFC problem.
- Do not use it for implementation planning, meeting notes, or trivial configuration choices.
It checks for mandatory information such as the title, date, status, context, decision, and consequences. It defaults to MADR when the situation calls for a structured comparison, scans common ADR directories for the next sequential number, and suggests a file path instead of silently saving a document. It also treats ADRs as immutable history: a changed decision should be recorded by superseding the old ADR, not by rewriting it.
Those boundaries are the practical value. A generic prompt can produce a polished document that records a conclusion but omits the forces behind it, the rejected options, or the cost of the chosen path.
Install the CLI and the skill
The official Tech Leads Club installation page for Codex documents project and global installation. To install only this skill in a Codex project, run:
npx @tech-leads-club/agent-skills install --skill create-adr --agent codex
For every project on the machine, use the global variant:
npx @tech-leads-club/agent-skills install --skill create-adr --agent codex --global
The project location is .codex/skills, while the global location is ~/.codex/skills. The CLI also provides list, remove, update, cache, and audit commands. As a quick sanity check, npx @tech-leads-club/agent-skills@latest --help should show the install command before you install anything.
If you use Cursor, follow its official Tech Leads Club installation page and change the agent target:
npx @tech-leads-club/agent-skills install --skill create-adr --agent cursor
Cursor stores project skills in .cursor/skills. In Agent chat, type /, search for create-adr, and select it. Selection attaches the skill to that message; typing the name in ordinary prose alone does not guarantee that Cursor selected it. Cursor documents this behavior in its Agent Skills guide.
A realistic scenario
Imagine that the Orders team already decided to use PostgreSQL as its primary database. The decision is accepted, but the reasoning is scattered across a design review:
- The service needs relational constraints and transactional writes.
- The team already operates PostgreSQL.
- JSONB is useful for a small set of evolving order metadata.
- DynamoDB would reduce schema rigidity but introduce a new access-pattern and operations model.
- MySQL would fit the relational model but offers less alignment with the team's existing tooling.
The decision is made. The remaining job is to preserve the decision and its trade-offs.
In Codex, use the exact skill name and identify its origin in the prompt:
Use the $create-adr skill from Tech Leads Club Agent Skills to record a decision we have already made: use PostgreSQL as the primary database for the Orders service. The status is Accepted and the decision date is 2026-11-27. Use MADR. Deciders are the platform and orders teams. We considered MySQL, DynamoDB, and keeping the current SQLite prototype. Explain the trade-offs and ask for any mandatory field that is missing. Inspect docs/adr/ for the next sequential number, but do not save until I confirm the proposed path.
This prompt gives the agent a decision rather than asking it to invent one. It also asks for a dry review of the proposed path, which keeps the file placement under human control.
What should the agent produce?
The following is an illustrative output shape, not a claim that every repository will receive this exact number or wording:
# ADR-007: Use PostgreSQL for Orders Primary Storage
- **Date**: 2026-11-27
- **Status**: Accepted
- **Deciders**: Platform and Orders teams
## Context and Problem Statement
The Orders service needs transactional writes, relational constraints, and a durable store for evolving order metadata. The team already operates PostgreSQL, while the SQLite database is only a prototype.
## Decision Drivers
- Transactional integrity and relational constraints
- Existing operational knowledge and tooling
- Support for selected JSONB metadata
## Considered Options
- PostgreSQL
- MySQL
- DynamoDB
- Keep the SQLite prototype
## Decision Outcome
We will use PostgreSQL as the primary database because it satisfies the transactional requirements while fitting the team's existing operational model.
### Positive Consequences
- The team can reuse its migration, backup, and monitoring practices.
- Relational constraints protect order integrity.
### Negative Consequences
- The service takes on schema migration and relational scaling responsibilities.
- A separate database service is required outside local prototypes.
The real output should also contain the repository's chosen template sections, relevant links, and an honest comparison of alternatives. If docs/adr/ already contains 001 through 006, the skill should propose the next sequential number and a kebab-case filename such as 007-use-postgresql-for-orders-primary-storage.md.
Verify before saving
Treat the result as an architectural artifact, not just generated prose. Before confirming the save, check:
- The title states a decision, not a question.
- The date and status match the actual decision.
- The context explains the forces and constraints, not only the selected technology.
- At least two alternatives were genuinely considered.
- Positive and negative consequences are both present.
- The number is sequential in the repository's ADR directory.
- The filename uses the expected zero-padded number and kebab-case.
- Related RFCs, tickets, ADRs, or design documents are linked when they exist.
Useful follow-ups are specific to the skill's workflow:
Review the proposed ADR against the create-adr quality checklist. Point out missing context or unsubstantiated trade-offs, but do not save it yet.
The decision has changed since ADR-007. Draft a new superseding ADR, link both records, and leave ADR-007 unchanged.
That second prompt preserves historical context. Editing the old record would erase what was known when the original decision was accepted.
Limits and when to choose another skill
create-adr is an instruction workflow for durable decision records. It does not prove that PostgreSQL is the right choice, benchmark the database, or replace a design review. It should not turn an unresolved question into an accepted decision.
If the team needs stakeholder feedback before choosing, use the related create-rfc skill. If the decision is already accepted but the team needs an implementation plan, use a technical design workflow. The ADR should remain the short record of context, choice, and consequences, with deeper material linked rather than copied into it.
Closing thought
The best ADR is not the one with the most sections. It is the one that lets a future engineer answer three questions without reopening an old debate: what did we decide, why did we decide it, and what did we knowingly give up?
Have you got a recent architectural decision whose rationale is still trapped in a chat thread?
Sources
- Tech Leads Club
create-adrskill - Tech Leads Club skill catalog
- Codex installation instructions
- Cursor installation instructions
- OpenAI guide to skills in plugins
- Cursor Agent Skills documentation
AI assistance disclosure: This tutorial was researched and drafted with AI assistance. The linked Tech Leads Club and vendor documentation are the sources for installation, invocation, and workflow claims.
Top comments (0)