From secondbrain
Creates numbered Architecture Decision Records (ADRs) with category organization (infrastructure, feature, process), status workflow, MD templates, and YAML shard updates for Secondbrain projects.
How this skill is triggered — by the user, by Claude, or both
Slash command
/secondbrain:secondbrain-adrThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create numbered ADRs with category-based organization and status workflow.
Create numbered ADRs with category-based organization and status workflow.
Verify ADR entity is enabled in the secondbrain project:
.claude/data/adrs/meta.yaml (sharded) or .claude/data/adrs/records.yaml (legacy)secondbrain-init with ADRs enabledEntityTable component on docs/adrs/index.md, which reads from .claude/data/adrs/ shard files. No sidebar modification is needed.Collect from user or conversation context:
Category (determines number range):
infrastructure (0001-0999) — Architecture & infrastructurefeature (2000-2999) — Feature implementationprocess (3000-3999) — Process & workflowTitle — Brief decision title (will be slugified for filename)
Context — What problem prompted this decision?
.claude/data/adrs/meta.yaml (read last_number — tiny file, ~50 tokens)ADR-XXXX (zero-padded)Number Ranges:
infrastructure: 0001 - 0999
feature: 2000 - 2999
process: 3000 - 3999
Use template from ${CLAUDE_PLUGIN_ROOT}/templates/entities/adr/TEMPLATE.md:
Filename: docs/adrs/ADR-XXXX-<title-slug>.md
Frontmatter:
---
id: ADR-XXXX
status: draft
date_created: YYYY-MM-DD
date_updated: YYYY-MM-DD
author: <author>
category: <category>
---
Add entry to the current month's shard .claude/data/adrs/YYYY-MM.yaml:
- number: XXXX
title: "<title>"
status: draft
category: <category>
created: YYYY-MM-DD
file: docs/adrs/ADR-XXXX-<slug>.md
author: <author>
Update last_number in .claude/data/adrs/meta.yaml and ensure the current month is in the shards list.
DO NOT manually add ADRs to VitePress sidebar.
ADRs are automatically listed via the EntityTable component on docs/adrs/index.md, which reads from .claude/data/adrs/ shard files. No sidebar modification needed.
## ADR Created
**ID:** ADR-0012
**Title:** Kubernetes Migration Strategy
**Category:** infrastructure
**Status:** draft
**File:** docs/adrs/ADR-0012-kubernetes-migration-strategy.md
### Next Steps
1. Edit the ADR to add context, options, and decision
2. Change status to 'proposed' when ready for review
3. Use /secondbrain-adr-status to update status
### Status Workflow
draft → proposed → admitted → applied → implemented → tested
Draft → Proposed → Admitted → Applied → Implemented → Tested
↘ Rejected
↘ Canceled
| Status | Description |
|---|---|
| draft | Initial creation, under development |
| proposed | Ready for review |
| admitted | Approved, pending implementation |
| applied | Implementation started |
| implemented | Implementation complete |
| tested | Verified in production |
| rejected | Not approved |
| canceled | Abandoned |
references/adr-template.md — Full ADR templatenpx claudepluginhub sergio-bershadsky/ai --plugin secondbrainAuthors, indexes, and lints Architecture Decision Records (ADRs) to preserve the rationale behind system decisions. Scaffolds new ADRs, enforces format, manages supersession, and maintains an index.
Creates new Architecture Decision Records (ADRs) for architectural changes using repo conventions for naming, numbering, and storage. Use when documenting decisions, rationale, and trade-offs.