A development workflow for Codex and Claude Code that keeps architecture decisions, implementation, and proof of completion connected.
Start with a domain and a problem. A dedicated domain architect investigates the repository and proposes a solution in an Architecture Decision Record (ADR). You approve the decision before a separate implementation agent starts work. The architect then runs the checks independently and records whether the result meets every acceptance criterion.
The deliverable is working code together with a traceable explanation of what was decided, why it was approved, which version was checked, and what the checks demonstrated.
Agent-driven projects can lose the reasoning behind their code as conversations grow or sessions change. A solution can drift during implementation, acceptance criteria can move, and a claim of completion can become difficult to reproduce.
This workflow puts those decisions in the repository:
- Record the problem, solution, rationale, and acceptance criteria before implementation.
- Require explicit approval before turning a proposal into work.
- Preserve approved solutions and criteria. Changing either requires a new ADR.
- Separate implementation from independent verification.
- Keep every decision and evidence document, including rejected proposals, superseded decisions, and failed checks.
ADRs are the project's decision history. Evidence connects that history to a specific version of the implementation and reproducible verification results.
| Role | Responsibility |
|---|---|
| User | Select the domain, explain the problem, approve ADRs, resolve conflicts, and authorize correction cycles |
| Coordinator | Run the initial conflict check, manage the conversation, and pass documents and constraints between agents |
| Domain architect | Investigate the problem, propose decisions, maintain their relationships, independently run checks, and complete verified ADRs |
| Independent reviewer | Review the proposal read-only before approval; report concrete findings and an Approve, Request changes or Blocked verdict |
| Implementer | Implement approved ADRs within their scope and prepare reproducible evidence |
One architect stays focused on the selected domain for the session. The domain can describe business behavior or a technical concern. For example, it can be payments, document processing, storage, or orchestration.
Documents are never deleted. New decisions can depend on, extend, or replace previous ADRs. Evidence documents explain either why a proposal was rejected, why a decision was superseded, or how its implementation was verified.
For example:
ADR-0001defines an approach to retrying document processing. Its verification evidence records the checked version and results.- A new requirement exposes a conflict with that decision. The architect asks you how to resolve it before preparing a replacement.
- You approve
ADR-0002. It links toADR-0001throughreplaces, and the old ADR becomessupersededwith a linked replacement rationale. - The old implementation's evidence remains available. The new ADR stays open until its own implementation passes independent verification.
Approving a replacement does not mean the replacement is already implemented. Completing an ADR requires evidence of its own.
Use this workflow when the reasoning behind a change matters: architecture changes, domain behavior, cross-component work, and decisions that later contributors need to understand.
It adds documentation and approval steps. Account for that overhead when choosing it for small, routine changes. The approval rules are part of the workflow even when the implementation looks straightforward.
- Run the bundled conflict checker before any other workflow step.
- Ask for the architect's focus domain. The domain can be business-oriented, such as payments, or technical, such as storage or orchestration.
- Create a separate architect for that domain for the entire session. The architect asks which problem to solve.
- Investigate the code, existing ADRs, evidence, and constraints before drafting a decision.
- Generate an ADR with the researched problem, solution, alternatives, consequences, triggers and measurable acceptance criteria.
- Have a separate read-only reviewer inspect the proposal and failure scenarios. Record the current revision's approving review.
- Request explicit user approval for that ADR or an enumerated set of reviewed ADRs.
- Have a separate implementation agent implement the approved decision after every dependency is completed.
- Have the architect independently execute checks and record every attempt, including failures.
- Complete the ADR only from its latest passing attempt after every dependency is completed.
The main agent coordinates the conversation and handoffs. The architect owns decisions and independent verification. The implementer owns implementation and its supporting evidence.
Requires Python 3.9 or newer, access to the project files, and an agent environment that supports separate agents and command execution. Git is needed for the installation commands below. The Python conflict checker uses only the standard library.
Clone the repository:
git clone https://github.com/7architect/adr-development-skill.git
cd adr-development-skillCopy the skill into one of these locations. Run the commands from the cloned repository. Use a fresh destination when installing; review an existing installation before replacing it.
For your user account:
mkdir -p "$HOME/.agents/skills"
cp -R develop-with-adr "$HOME/.agents/skills/develop-with-adr"For a single project, copy develop-with-adr into that project's .agents/skills/ directory.
Invoke with:
$develop-with-adr
For your user account:
mkdir -p "$HOME/.claude/skills"
cp -R develop-with-adr "$HOME/.claude/skills/develop-with-adr"For a single project, copy develop-with-adr into that project's .claude/skills/ directory.
Invoke with:
/develop-with-adr
See the official Codex skills documentation and Claude Code skills documentation for environment-specific discovery rules. The same skill files are used in both environments. Verify that separate agents and verification tools are available in your installation.
Use develop-with-adr.
Domain: document processing and orchestration.
Problem: interrupted document runs can repeat external writes.
Investigate the repository and existing ADRs, then propose a decision for discussion.
Providing the domain and problem in the initial request avoids redundant questions. It does not approve an implementation.
| Status | Meaning | Who authorizes the transition |
|---|---|---|
accepted-for-discussion |
Investigated proposal ready for discussion | Architect |
accepted-for-work |
Specific ADR explicitly approved for implementation | User |
completed |
Every criterion independently verified, with linked evidence | Architect |
rejected |
Never-approved proposal declined in favor of a newly approved ADR, with linked rationale | User approval of the replacement |
superseded |
Previously approved decision replaced by a newly approved ADR, with linked rationale | User approval of the replacement |
An approved batch does not bypass dependencies. An ADR cannot enter implementation until all ADRs it depends on are completed.
After approval, the solution description and acceptance criteria are immutable. Changes require a new ADR and new approval. Current status and relationship links may be updated while appending history.
When a replacement is approved for work, a previously approved ADR immediately becomes superseded, including one that was completed. A never-approved proposal becomes rejected instead. Preserve its previous completion, version, and evidence. Record that the replacement may still be awaiting implementation.
Do not reject or supersede a decision without a new approved one. Preserve legacy rejection entries and interpret them through their history instead of silently rewriting them. If a proposed decision conflicts with a current ADR, ask the user to resolve the conflict before preparing the new ADR.
Every ADR includes explicit alternatives with reasons for not selecting them, positive and negative consequences, and observable reconsideration triggers. Do not invent alternatives or neutral consequences to fill a template.
Acceptance criteria establish whether the implementation works now. Reconsideration triggers describe when a previously suitable decision needs another look. Record an observation or threshold and its evidence source. Reaching it starts investigation and user discussion, not an automatic replacement.
For neural-model decisions, also record the approach and alternatives, coupling to prompts/schemas/evaluations/infrastructure, operating cost and unacceptable volume, and actual switching cost. Label estimates and unknown measurements. Omit this section for unrelated decisions.
See the worked ADR example. Its facts and figures are hypothetical and do not claim successful implementation or verification.
Implementation evidence must include:
- Results for every acceptance criterion.
- Commands and instructions for reproducing the checks.
- The verified commit or exact code version. For uncommitted changes, include a saved diff and file hashes.
- Checks actually executed by the architect, with their results and log references.
If implementation fails verification while the ADR remains valid, request user permission before fixing it. After permission, the implementer applies corrections and the architect verifies again. Another failed verification requires permission for the next correction cycle.
If implementation requires changing the decision or criteria, stop affected work and return the issue to the architect. Independent approved work may continue.
Write project documents in:
| Path | Contents |
|---|---|
docs/adr/ADR-0001-short-slug.md |
Problem, solution, rationale, acceptance criteria, approval, relationships, and history |
docs/evidence/EVID-0001-short-slug.md |
Implementation verification or rejection rationale |
Never delete ADRs or evidence documents, reuse their IDs, or overwrite previous verification results. Append history and retain both successful and failed attempts.
Maintain explicit relative links and their reverse relationships:
| Relationship | Reverse relationship |
|---|---|
replaces |
replaced_by |
depends_on |
required_by |
extends |
extended_by |
evidence |
proves |
The registry records the graph; generated Markdown provides the human-readable history, and DOT/GraphML provide viewer files. No separate graph database is required. Templates are in references/templates.md.
Agents supply researched JSON to a fixed Python renderer instead of writing ADR Markdown or graph syntax themselves. Requires Python 3.9 or newer with no third-party Python packages.
python3 /path/to/skill/scripts/adr.py --project /path/to/project create --input decision.json --author actual-architect-id
python3 /path/to/skill/scripts/adr.py --project /path/to/project checkUse the input example for structure, not factual content. The command reference describes all arguments and receipt formats.
| Capability | Behavior |
|---|---|
Read-only check |
Validates documents, links, cycles, evidence, receipts, index and graphs without creating or repairing files |
| Git baseline check | check --base-ref COMMIT rejects deleted records/relationships and rewritten approved content, history, receipts or imported-source descriptors, even when current checksums were recomputed |
| Transaction recovery | A durable journal precedes writes; recovery finishes an interrupted operation without repeating the requested mutation |
| Decision index | Shows current approved scope separately from verified implementation, blockers and unimplemented replacements |
| Legacy import | Preserves original bytes and reported history; creates an unapproved wrapper without inventing past approval or completed tests |
| Design review | A separate reviewer must approve the current content, author, revision and links before user approval |
| Verification attempts | Every valid attempt is a separate immutable receipt, including failed and blocked checks |
Run review with the actual separate reviewer's structured report and Markdown evidence. Verdicts are Approve, Request changes, and Blocked. Draft revisions, authorship changes or changed outgoing links invalidate earlier review approval. The user must still explicitly approve the reviewed decision through approve.
After implementation, the architect actually executes checks, then records them:
python3 /path/to/skill/scripts/adr.py --project /path/to/project verify --id ADR-0001 --verification actual-checks.json --evidence docs/evidence/EVID-0003-checks.md
python3 /path/to/skill/scripts/adr.py --project /path/to/project complete --id ADR-0001 --attempt ATTEMPT-ADR-0001-0001A successful verify command means the attempt was recorded, not that tests passed. The latest attempt must pass every criterion before completion. Failed or blocked attempts remain immutable. Obtain actual user permission and record it through authorize-fix before the next correction cycle. Use new evidence documents instead of rewriting attached ones.
python3 /path/to/skill/scripts/adr.py --project /path/to/project import --id ADR-0007 --source docs/adr/ADR-0007-old.md --reported-status completed --note "Mapping basis; historical approval not established" --input mapped.json --author current-architect-idThe historical file stays untouched. The normalized wrapper starts as accepted-for-discussion; reported historical completion does not become verified completion. Source checksums and baseline checks protect the retained history. Unmanaged root-level ADR-*.md files must be explicitly imported before normal mutations continue.
Keep a generator copy in the consuming repository, then install its workflow:
python3 /path/to/skill/scripts/adr.py --project /path/to/project install-ci --script-path .agents/skills/develop-with-adr/scripts/adr.pyCommit the project-local script, generated .github/workflows/adr-check.yml, registry and projections. The workflow fetches Git history and compares with the PR base or previous push. It cannot use a generator installed only in your home directory. An existing different workflow is not overwritten.
This repository's own CI runs the generator regression tests and a read-only integrity check. Branch protection remains a repository setting.
| File | Purpose |
|---|---|
docs/adr/registry.json |
Canonical records, fingerprints, receipts, history and typed edges |
docs/adr/ADR-0001-short-slug.md |
Generated ADR |
docs/adr/imported/ADR-0007-short-slug.md |
Imported wrapper; original source retained |
docs/adr/INDEX.md |
Current authority, verification state and blockers |
docs/adr/graph.dot |
Graphviz DOT with document links |
docs/adr/graph.graphml |
GraphML interchange graph with yEd labels |
docs/evidence/REVIEW-ADR-0001-0001.json |
Immutable architecture-review receipt |
docs/evidence/ATTEMPT-ADR-0001-0001.json |
Immutable verification attempt |
Every mutation refreshes the index and graphs, including inactive ADRs, reviews, attempts and attached evidence. sync intentionally rebuilds projections without appending history; use check for validation. Open DOT in a Graphviz-compatible viewer or GraphML in a compatible editor such as yEd. SVG conversion remains separate:
dot -Tsvg docs/adr/graph.dot -o docs/adr/graph.svgA transaction journal stores before/after checksums and the intended state before files are published; the registry commits last. This is crash-recoverable publication, not a filesystem-wide atomic snapshot. Run recover to finish a pending operation. A normal mutation also recovers first and returns without applying a second mutation, so a retry does not create duplicate ADRs. Read-only check reports pending work without repairing it.
Recovery refuses intervening manual changes instead of overwriting them. Advisory locks release automatically on process exit. sync --recover is a separate explicit repair of projections from an inspected registry.
The generator validates structured receipts, not authenticated user consent, actual agent identity or test execution. Those remain workflow responsibilities. CI baseline checks add cross-commit immutability checks; they do not make repository owners or workflow edits untrusted-proof.
Run regression tests from the skill directory:
python3 -m unittest discover -s tests -vThe workflow excludes grill-me and spec-first, including naming variants such as Grill Me and spec_first.
Its mandatory first step runs:
python3 /path/to/develop-with-adr/scripts/check_conflicting_skills.py \
--project /path/to/projectThe coordinating agent supplies every available session skill name using repeated --available-skill arguments. This also covers cloud-only skills. Add nonstandard skill directories or nested symlink targets with --root.
python3 /path/to/develop-with-adr/scripts/check_conflicting_skills.py \
--project /path/to/project \
--available-skill 'plugin:grill-me' \
--available-skill 'spec-first' \
--root /path/to/additional/skills| Exit code | Meaning |
|---|---|
0 |
No conflicts found in the inspected scope |
1 |
Conflicts found |
2 |
Scan incomplete; inspect the reported errors |
The checker returns JSON and does not change skill files or global settings. The coordinator disables conflicting skills for the current workflow, warns the user before continuing, and passes the exclusions to both agents. Global installation remains unchanged.
Discovery covers local skill directories and supplied catalog names. Nested directory symlinks are not traversed automatically. An incomplete scan must be reported as incomplete.
| File | Purpose |
|---|---|
| SKILL.md | Workflow instructions and approval rules |
| templates.md | ADR and evidence templates |
| example-adr.md | Worked hypothetical ADR with alternatives, consequences, model choice and triggers |
| portability.md | Agent handoffs and environment requirements |
| adr.py | Deterministic ADR generator and graph updater |
| generator.md | CLI commands and input contract |
| check_conflicting_skills.py | Read-only conflict discovery |
| openai.yaml | Codex interface metadata |
| icon.svg | Skill icon |
The skill follows the Agent Skills format. Its approval gates and role boundaries are agent instructions, not an external permission-enforcement system. Separate agents are required for the intended workflow; one agent switching roles does not satisfy independent verification.
The conflict checker, workflow scenarios and generator regression tests have been checked. A complete end-to-end run in both Codex and Claude Code has not yet been verified.
This project uses the custom ADR Development Skill No-Resale License.
- You may use and modify the skill for free, including in commercial work.
- You may redistribute the skill and modified copies free of charge, with the license and existing copyright notices.
- You may not sell the skill or copies of it, or charge for access to the skill itself.
- You may charge for products and services created with the skill. Using it does not impose this license on your code, ADRs, or other output.
Because it restricts resale, this is a source-available license, not an OSI-approved open-source license. The full license is also included in the installable skill folder.