Xpersona
W

Write Adr

CLAWHUB · Unverified

Use when you want to generate Architecture Decision Records from this session. Triggers on "write ADRs", "document our decisions", "create decision records",... Skill: Write Adr Owner: anderskev Summary: Use when you want to generate Architecture Decision Records from this session. Triggers on "write ADRs", "document our decisions", "create decision records",... Tags: latest:1.1.3 Version history: v1.1.3 | 2026-06-25T05:40:39.702Z | auto **Added objective gates and clarified error handling to make the workflow more robust and auditable.** - Introduced explicit "Gates (object

62
Rank
84
Safety
986
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 986 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17b1fzefm8nj8j1sdkzrze7gn83pfrg:write-adr
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-anderskev-write-adr/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

32,037 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
description: "Use when you want to generate Architecture Decision Records from this session. Triggers on \"write ADRs\", \"document our decisions\", \"create decision records\", \"record the choices we made\". Also useful after design discussions where decisions were reached but not documented. Does NOT extract decisions alone (use adr-decision-extraction) or provide MADR template (use adr-writing). Orchestrates the full workflow: subagent extraction, user confirmation, parallel generation, and verification."
name: write-adr
disable-model-invocation: true
---

# Write ADR

Generate Architecture Decision Records (ADRs) from decisions made during the current session.

## Workflow Overview

1. **Context** - Gather repository context and existing ADRs
2. **Extract** - Analyze conversation for decisions using a subagent
3. **Confirm** - Present decisions to user for selection
4. **Write** - Generate ADRs in parallel using subagents
5. **Report** - Summarize created files and status
6. **Verify** - Validate generated ADRs against Definition of Done

### Gates (objective pass conditions)

Advance only when the **pass condition** holds. These are checkable without “I verified internally.”

| After | Pass condition |
|-------|----------------|
| Step 2 (extract) | The subagent response is **valid JSON** with a top-level `decisions` **array** (empty is OK). Each non-empty item has `id`, `title`, and at least one of `context`, `decision`, `alternatives`, or `rationale` present as a non-empty string or non-empty array. If parsing fails or the shape is wrong, **re-run extraction or fix the payload** before Step 3. |
| Step 4 (pre-allocate) | From repo root, `python plugins/beagle-analysis/skills/adr-writing/scripts/next_adr_number.py --count N` prints **exactly `N` lines** (one number per line). You have a **written mapping** (in the reply draft or notes) from each selected decision to one of those lines **before** launching any ADR writer unit. |
| Step 5 (report) | Every file path in the summary table is copied from a subagent completion output (not invented). Optionally **spot-check**: `test -f <path>` for each path before marking success. |
| Step 6 (verify) | For each ADR path, opening the file shows **line 1 is `---`**, frontmatter parses as YAML, `status` and `date` are present, and the body meets the Step 6 bullets below (alternatives count, Good/Bad consequences). |

## Step 1: Gather Context

```bash
# Get current branch and recent commits
git branch --show-current
git log --oneline -5

# Check for existing ADRs
ls docs/adrs/ 2>/dev/null || echo "No ADR directory found"

# Count existing ADRs for numbering
find docs/adrs -name "*.md" 2>/dev/null | wc -l
```

This context helps the ADR writer:
- Reference related commits in the ADR
- Avoid duplicate ADRs for already-documented decisions
- Determine correct sequence numbering

## Step 2: Extract Decisions

Analyze the current conversation for architectural decisions. **If the agent supports subage

_meta.json

{
  "ownerId": "kn79190nfmdb20hk6xjhzt2zv583844x",
  "slug": "write-adr",
  "version": "1.1.3",
  "publishedAt": 1782366039702
}

skill-card.md

## Description:

Generates Architecture Decision Records from decisions made during the current session by gathering repository context, extracting decisions, confirming user selections, writing ADR files, reporting results, and verifying output quality.

This skill is ready for commercial/non-commercial use.

## Publisher:

[anderskev](https://clawhub.ai/user/anderskev)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill after architecture discussions to turn confirmed decisions into MADR-style ADR documentation. It is intended for repository workflows where ADRs should be created, numbered, reviewed, and verified before commit.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Generated ADRs may misrepresent architectural decisions or omit important context.

Mitigation: The workflow requires presenting extracted decisions for user confirmation before files are written and recommends reviewing generated ADRs before committing them.

Risk: ADR numbering or file creation can fail if the expected repo-local numbering script or related ADR skills are unavailable.

Mitigation: Verify the required ADR helper skills and numbering script exist in the target repository before relying on the generated files.

Risk: Generated ADR files may not meet the expected frontmatter, alternatives, or consequences requirements.

Mitigation: Use the skill's verification step to check YAML frontmatter, status, date, documented alternatives, and Good/Bad consequences for every created ADR.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/anderskev/skills/write-adr)
- [Publisher profile](https://clawhub.ai/user/anderskev)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown ADR files, confirmation prompts, JSON decision extraction payloads, and shell command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Creates or adjusts Markdown files under docs/adrs/ after user confirmation and reports verification status.]

## Skill Version(s):

1.1.3 (source: release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Write Adr and adjacent AI workflows.