/wasp-nest-core:adr-writing-stingerfrom wasp-nest-core
Writes and governs Architecture Decision Records (ADRs) using Nygard, MADR, and Y-statement formats. Handles supersession, tooling setup (Log4brains, adr-tools), and ADR log audits.
Ships in wasp-nest-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Architecture Decision Records (ADRs) are the smallest useful unit of institutional memory. This Stinger encodes everything needed to author, govern, and maintain an ADR corpus: the Nygard canonical format, the MADR and Y-statement variants, the supersession lifecycle, lightweight tooling (Log4brains, adr-tools), and the "decisions, not docs" discipline that keeps ADR logs scannable and trustworthy across years of codebase evolution.
Activate when the user:
Do NOT activate for:
library-wasp-dronewiki-wasp-dronesecurity-wasp-drone (hand off after authoring)| Task | Guide |
|---|---|
| Choose the right ADR format | guides/00-principles.md |
| Write a Nygard-style ADR | guides/01-nygard-format.md |
| Write a MADR-style ADR | guides/02-madr-format.md |
| Write a Y-statement ADR | guides/03-y-statements.md |
| Supersede or deprecate an ADR | guides/04-supersession-workflow.md |
| Set up adr-tools or Log4brains | guides/05-tooling-integration.md |
| Use the ADR log for onboarding | guides/06-adr-as-onboarding-tool.md |
For a worked end-to-end example, see examples/nygard-from-pr.md.
For blank templates, see templates/nygard.md, templates/madr.md, and templates/y-statement.md.
An ADR captures a closed, consequential decision, one that is hard or expensive to reverse and that future engineers will want to understand. It is NOT:
The test: "If I delete this ADR, does the team lose understanding of why the codebase is the way it is?" If yes, write it. If no, do not.
Every ADR must answer:
ADR numbers are forever. They appear in commit messages (ADR-0012), code comments, PR descriptions, and onboarding docs. Never reuse, never renumber, never skip. A "deleted" ADR becomes Status: Deprecated with an explanation.
When ADR-0025 supersedes ADR-0012:
Supersedes: ADR-0012 in its headerStatus: Superseded by ADR-0025Both links must be present. One-directional supersession breaks the audit trail.
Proposed → Accepted → Superseded (by ADR-NNNN)
→ Deprecated (rationale required)
→ Rejected (rationale required)
A Proposed ADR is in-flight. Never reference a Proposed ADR from code or other ADRs until it reaches Accepted. Never write Proposed ADRs for decisions already made.
| Criterion | Nygard | MADR | Y-statement |
|---|---|---|---|
| Length | 1 to 2 pages | 2 to 4 pages | 1 to 5 sentences |
| Sections | Context, Decision, Consequences | Title, Status, Context, Decision, Consequences, Pros, Cons, Alternatives | Single sentence with embedded structure |
| Best for | Most team decisions | Decisions needing explicit trade-off tables | Quick records, ADR log summaries |
| Tooling | adr-tools (native) | MADR template repo | Any markdown |
| Recommended default | Yes | When alternatives are complex | As supplement to Nygard/MADR |
Recommendation: use Nygard as the default. Switch to MADR when the team needs explicit pros/cons tables (common in multi-stakeholder decisions). Use Y-statements as a one-liner summary inside Nygard/MADR, not as a standalone format.
The original CLI. Creates Nygard-format ADRs, handles supersession linking, generates a table of contents.
adr init docs/decisions # initialize ADR log
adr new "Append-only version-bump for embeddings" # creates docs/decisions/0001-append-only-version-bump.md
adr new -s 1 "In-place UPDATE for embeddings" # creates 0002, supersedes 0001
adr generate toc # regenerates table of contents
Static-site generator for ADR logs. Renders a searchable HTML knowledge base from a markdown ADR corpus. Now at v1.1.0 (December 2024). Supports mono-repo and multi-package layouts.
npx log4brains init # interactive setup, generates .log4brains.yml
npx log4brains preview # live preview at localhost:4004
npx log4brains build # output to .log4brains/out/
npx log4brains adr new "..." # create ADR and open editor
For tooling setup details, see guides/05-tooling-integration.md.
The research folder was populated by scripture-historian at normal depth (15 files, 12 external source notes). Key sources (source-repository research, not shipped with the plugin):
research/external/01-nygard-original.md (source-repository research, not shipped with the plugin)research/external/02-specsource-2026.md, research/external/03-docsio-2026.md, research/external/04-archyl-2026.md (source-repository research, not shipped with the plugin)research/external/07-arxiv-2026-adr-comparison.md (source-repository research, not shipped with the plugin)research/external/09-log4brains-github.md (source-repository research, not shipped with the plugin)research/external/11-google-cloud-adrs.md (source-repository research, not shipped with the plugin)research/index.md (source-repository research, not shipped with the plugin)The shipped executive summary is research/research-summary.md.
Part of The Wasp Nest, curated by Mario Aldayuz a.k.a @thenotoriousllama.
examples/nygard-from-pr.md (opens in a new tab)examples/supersession-walkthrough.md (opens in a new tab)guides/00-principles.md (opens in a new tab)guides/01-nygard-format.md (opens in a new tab)guides/02-madr-format.md (opens in a new tab)guides/03-y-statements.md (opens in a new tab)guides/04-supersession-workflow.md (opens in a new tab)guides/05-tooling-integration.md (opens in a new tab)guides/06-adr-as-onboarding-tool.md (opens in a new tab)reports/README.md (opens in a new tab)research/research-summary.md (opens in a new tab)templates/madr.md (opens in a new tab)templates/nygard.md (opens in a new tab)templates/y-statement.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub legioncodeinc/vibe-coding-tools --plugin wasp-nest-core27 skills in this plugin
/branching-strategy-stingerChoose a Git branching model and release flow. Use for trunk vs GitFlow, hotfixes, merge vs rebase, or feature flags. Read README.md for the guide map./code-review-pr-stingerImprove PR descriptions and review practice. Use for checklists, PR size, comment quality, or rubber-stamp diagnosis. Read README.md for the guide map./contract-writing-stingerFind and write stable shared contracts before parallel PRDs. Use for cross-PRD APIs, events, data shapes, permissions, or state transitions, and for contract drift./dependency-audit-stingerAudit dependencies for the target repository's ecosystem: lockfiles, vulnerability triage, SBOM and provenance. Use for supply-chain or publish safety; Hivemind is a worked npm example./get-started-stingerOnboard home instructions and initialize new or existing repos with Library, CI, and knowledge docs. Use for first-session setup or a repo missing wasp-nest.lock./github-repo-health-stingerAudit GitHub repository hygiene. Use for branch protection, CI checks, CODEOWNERS, templates, README coverage, or commit history. Read README.md for the guide map.Other plugins' skills for the same job