Documentation-as-code bootstrap for AI agents
pip install adrlane==0.5.2 Copy PIP instructions
adrlane scaffolds a minimal docs/ layout and agent skills so AI tools know where to read and write project documentation. The agent decides when to update docs — there is no sync pipeline or enforcement.
Install adrlane once on your machine with uv:
uv tool install adrlane From a local checkout:
adrlane --help Development checkout Clone the repository and install dependencies:
git clone https://github.com/koradon/adrlane.git cd adrlane uv sync uv run adrlane --help Quick start Install the CLI globally (see Install). From your project repository root, scaffold docs and project-local skills: cd /path/to/your-project adrlane init Optional: install skills once for all projects on this machine: adrlane skills install --global Work with your agent as usual. When docs should change, the agent uses the installed skills (see Agent workflow). Multi-repo workspace (project root is not a single git repo):
adrlane init --workspace # adds .adrlane/workspace.yaml for doc routing # Then run `adrlane init` in each sub-repository for service-level docs. Preview without writing files:
adrlane init --dry-run Limit which agent adapters init installs:
adrlane init --agent cursor adrlane init --agent cursor --agent claude-code adrlane init --agent codex adrlane init --agent agy init and skills --local always use the current working directory — there is no --path flag.
init is additive: it never overwrites an existing file. After you upgrade the adrlane package, re-running init will not refresh stale docs/llm/* contracts or skills. Use upgrade for that.
# 1. Upgrade the installed CLI uv tool upgrade adrlane # 2. In each bootstrapped repository: refresh package-owned content cd /path/to/your-project adrlane upgrade # 3. If you use global skills, refresh those too adrlane skills upgrade --global adrlane upgrade overwrites:
It never touches user-owned content: docs/README.md, docs/ideas/README.md, docs/roadmap/README.md, the contents of docs/{specs,plans,adr,ideas,roadmap}, or .adrlane/workspace.yaml.
Preview: adrlane upgrade --dry-run. Details: ADR 0005.
adrlane does not detect documentation gaps, schedule updates, or write docs on its own. The agent decides when documentation needs updating during normal development.
Skills are thin adapters; the contract is docs/llm/AGENT_PROTOCOL.md and docs/llm/DECISION_RULES.md.
init scaffolds a minimal core that grows with the project:
Templates live in docs/llm/templates/. Documents use markdown sections (## Status, ## Related) — not YAML frontmatter.
When the project gains new documentation needs (runbooks, API reference, CLI docs), the agent adds new folders under docs/ and updates docs/README.md. init does not predict project type.
One exception grows outside that minimal core on request rather than by default: the adrlane-write-architecture-overview skill creates or refreshes a single docs/architecture.md — a whole-system overview with diagrams — when asked, or proactively after a change that alters module boundaries, execution flow, or requirements to run.
Release history stays in Git and release tooling — not in docs/.
By default, init installs seven skills for every supported agent:
Project-local (default via init): .cursor/skills/, .claude/skills/, .codex/skills/ and .agents/skills/ in the repository.
Global (optional via skills install --global): same skills in your home directory, shared across all projects.
Codex CLI scans both: /.codex/skills as a project-local skill root, and $CODEX_HOME/skills (default ~/.codex/skills) as the user-level one. The same .codex/skills prefix therefore serves both scopes.
Antigravity CLI (agy) scans /.agents/skills as its project-local skill root, but a different, unrelated global root: ~/.gemini/config/skills. Its adapter installs into .agents/skills for --local and .gemini/config/skills for --global — see ADR 0009.
Skills are thin adapters; the canonical contract lives in docs/llm/AGENT_PROTOCOL.md and docs/llm/DECISION_RULES.md.
Use this when the Cursor workspace root is not a single git repository — for example a folder that contains several independent repos plus shared project docs.
cd /path/to/project-root # Project-level docs + routing config + skills adrlane init --workspace # Service-level docs in each repository cd repository1 && adrlane init cd ../repository2 && adrlane init Open the project root in Cursor so routing applies. Optionally install skills globally once: adrlane skills install --global.
Flat — repositories are direct children of the project root. No repo_roots needed:
project/ docs/ ← cross-cutting ADRs, specs, roadmap repository1/docs/ ← service-specific docs repository2/docs/ Grouped — repositories live under category folders. Uncomment and edit repo_roots in .adrlane/workspace.yaml:
project/ docs/ services/order-service/docs/ frontends/checkout-fe/docs/ project_docs: docs repo_roots: - services - frontends How routing works The adrlane-workspace-routing skill (active when .adrlane/workspace.yaml exists) sends documentation to:
The other adrlane-write-* skills follow the resolved path automatically. Link project and service docs in ## Related.
uv run pre-commit install uv run pre-commit run --all-files Dependency management:
uv add # runtime dependency uv add --dev # dev dependency uv lock # refresh lockfile after manual pyproject edits License AGPL-3.0-or-later. See LICENSE.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.




