write-adr
Generate ADRs from decisions made in the current session. Extracts decisions, confirms with user, writes MADR-formatted documents.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anderskev/write-adrWhat This Skill Does
The write-adr skill is an essential productivity and documentation automation tool for OpenClaw agents. It serves as an architectural memory layer, designed to capture significant technical decisions made during complex interactive sessions. Rather than requiring developers to switch contexts or pause coding to write documentation, this skill acts as a proactive scribe. It analyzes the dialogue, identifies critical architectural pivots, and leverages subagents to draft structured Architecture Decision Records (ADRs) in the MADR format. By integrating repository context such as commit history and existing document directories, it ensures that generated records follow established project standards, include accurate numbering, and maintain consistent formatting.
Installation
To integrate this skill into your workflow, execute the following command in your terminal:
clawhub install openclaw/skills/skills/anderskev/write-adr
Use Cases
- Project Onboarding: Automatically capture and document design decisions when bringing new team members up to speed.
- Technical Audits: Maintain a clear, immutable record of trade-offs and architectural rationale for compliance or long-term maintenance.
- Sprint Retrospectives: Use the extracted decisions as a baseline for reviewing architectural progress at the end of a development cycle.
- Refactoring Documentation: Ensure that when migrating from legacy systems to new paradigms, the 'why' and 'how' of the move is preserved permanently.
Example Prompts
- "We just wrapped up our design session for the auth service; please trigger write-adr to document the choices we made regarding JWT implementation and OAuth integration."
- "Review the current conversation and generate ADRs for all architectural trade-offs discussed in the last hour."
- "Check for any pending architectural decisions in this session and write them to the docs/adrs directory using the MADR format."
Tips & Limitations
- Context is King: The skill performs best when you explicitly state, "Let's make a decision on this," during your workflow.
- Human-in-the-loop: Always verify the generated ADR before committing; while the AI is highly accurate, it may lack the broader project nuance that only a lead architect can confirm.
- Formatting: Ensure your project already has a
docs/adrsdirectory, as the skill expects this structure to maintain sequence counts and organizational standard.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anderskev-write-adr": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
tutorial-docs
Tutorial patterns for documentation - learning-oriented guides that teach through guided doing
fetch-pr-feedback
Fetch review comments from a PR and evaluate with receive-feedback skill
swift-testing-code-review
Reviews Swift Testing code for proper use of
rust-testing-code-review
Reviews Rust test code for unit test patterns, integration test structure, async testing, mocking approaches, and property-based testing. Covers Rust 2024 edition changes including async fn in traits for mocks,
explanation-docs
Explanation documentation patterns for understanding-oriented content - conceptual guides that explain why things work the way they do