ワンクリックで
adr-create
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | adr-create |
| description | Create a new Architecture Decision Record with sequential numbering and AgentDB registration |
| argument-hint | <title> |
| allowed-tools | mcp__ruflo__agentdb_hierarchical-store mcp__ruflo__agentdb_hierarchical-query mcp__ruflo__agentdb_causal-edge mcp__ruflo__memory_store mcp__ruflo__memory_search Bash Read Write Edit Grep Glob |
Create a new Architecture Decision Record with the next sequential number, register it in the AgentDB graph, and link it to related ADRs.
When a significant architectural decision needs to be recorded -- new technology adoption, API design choices, data model changes, infrastructure decisions, or any cross-cutting concern that affects multiple components.
ADRs follow canonical MADR 4.x (https://adr.github.io/madr/) with one extension: a tags: frontmatter field for cross-cutting categorisation.
docs/adr/ADR-NNNN-<slug>.md — ADR- prefix, 4-digit zero-padded number, lowercase kebab-case slug derived from the title. The ADR- prefix is REQUIRED: the canonical agentdb index glob is ADR-*.md and refuses (EXIT 1) any ADR file without it.# <Title> — title only, NO ADR-NNNN: prefix. The number lives in the filename.proposed | accepted | rejected | deprecated | superseded. Lowercase exactly as listed.completed: false for new ADRs (default). Set completed: true only when the ADR's scope is fully closed — nothing more to do under this ADR's name. Independent of status: an ADR can be accepted but still in-flight (completed: false). Per ADR-0262.## Context and Problem Statement, ## Considered Options (bullet list), ## Decision Outcome containing ### Consequences (flat bullets) and ### Confirmation.## Decision Drivers, ## Pros and Cons of the Options (with ### {Option} per option), ## More Information.Find next number -- Glob for docs/adr/ADR-*.md and parse the 4-digit number following the ADR- prefix in each filename to determine the next sequential ID (e.g. 0042). Filter out non-ADR files (README.md, INDEX.md, _template.md). Create docs/adr/ if it does not exist.
Slugify title -- Convert the title argument to a lowercase, hyphen-separated slug (e.g., "Use PostgreSQL for persistence" becomes use-postgresql-for-persistence). Drop punctuation; collapse runs of hyphens.
Create ADR file -- Write the file at docs/adr/ADR-NNNN-<slug>.md using the canonical MADR template:
---
status: proposed
completed: false
date: <today's date YYYY-MM-DD>
tags: []
supersedes: []
depends-on: []
implements: []
---
# <Title>
## Context and Problem Statement
<!-- What is the issue that motivates this decision? Describe the situation and the question. -->
## Decision Drivers
<!-- Optional. Forces shaping the decision: constraints, qualities, stakeholder concerns. Bullet list. -->
* <driver 1>
* <driver 2>
## Considered Options
<!-- Bullet list of alternatives evaluated. One option per line. -->
* <Option A> — <brief description>
* <Option B> — <brief description>
## Decision Outcome
Chosen option: "<Option A>", because <justification — why this option meets the decision drivers, satisfies the K.O. criteria, or comes out best>.
### Consequences
<!-- Flat bullet list. Use canonical phrasing: "* Good, because …" / "* Bad, because …" / "* Neutral, because …" -->
* Good, because <positive consequence>
* Bad, because <negative consequence>
* Neutral, because <neutral consequence>
### Confirmation
<!-- Optional. How compliance with this decision is verified (review, ArchUnit test, lint rule, etc.). -->
## Pros and Cons of the Options
<!-- Optional. Per-option deliberation detail. H3 per option. -->
### <Option A>
* Good, because <argument>
* Bad, because <argument>
### <Option B>
* Good, because <argument>
* Bad, because <argument>
## More Information
<!-- Optional. Links, related ADRs, supporting evidence. -->
Store in AgentDB -- Call mcp__ruflo__agentdb_hierarchical-store with (the live schema's required fields are key + value; optional tier):
adr/ADR-NNNN{ "id": "ADR-NNNN", "title": "<title>", "status": "proposed", "completed": false, "date": "<today>", "tags": [], "supersedes": [], "depends-on": [], "implements": [], "file": "docs/adr/ADR-NNNN-<slug>.md" }Find related ADRs -- Call mcp__ruflo__memory_search with the title as query in namespace adr-patterns to find related decisions. If matches found, add them to the ## More Information section and create causal edges with relation depends-on.
Store pattern -- Call mcp__ruflo__memory_store in namespace adr-patterns with key ADR-NNNN and the title + context as value for future semantic search.
Report -- Output the created file path, ADR number, and any related ADRs found.
tags frontmatter field is a project extension to canonical MADR for cross-cutting categorisation (e.g. tags: [security, infrastructure]). Optional — leave as [] if unused.status: superseded on the prior ADR. The successor ADR lists the prior in its supersedes: slot; the inverse (superseded-by) is derived at index time and must NOT be authored in frontmatter (ADR-0262, single source of truth). Reference the prior ADR in the successor's ## More Information.### Confirmation section is optional in canonical MADR but recommended — it answers "how do we know this decision is being followed?"## Considered Options and explain in ## Decision Outcome why no alternatives were considered.Build or rebuild the ADR index + dependency graph in AgentDB by running the in-process `agentdb index` command (one cold-start, all surfaces in one pass — no per-record npx round-trips). Handles v3-style and plugin-style ADR formats.
Hive Mind orchestration patterns — queen-led multi-agent coordination with Byzantine/Raft/Gossip/CRDT consensus, typed collective memory, dialectic council, and session checkpoint/resume. Use for decision-bearing work; use swarm-advanced for parallel execution without consensus.
Analyze git diffs for risk scoring, reviewer recommendations, and change classification
Detect missing test coverage and generate test suggestions
Hive Mind orchestration patterns — queen-led multi-agent coordination with Byzantine/Raft/Gossip/CRDT consensus, typed collective memory, dialectic council, and session checkpoint/resume. Use for decision-bearing work; use swarm-advanced for parallel execution without consensus.
Transfer learned patterns from another project on disk into this one -- the project-to-project pattern transfer that hooks_transfer performs