Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Glob for docs/adr/ADR-*.md and parse existing numbers to determine the next sequential ID (ADR-001, ADR-002, etc.). Create docs/adr/ if it does not exist.use-postgresql-for-persistence).Write the file at docs/adr/ADR-NNN-<slug>.md using the standard template:# ADR-NNN: <Title>
- **Status**: proposed
- **Date**: <today's date YYYY-MM-DD>
- **Deciders**: <leave blank for author to fill>
- **Tags**: <leave blank>
## Context
<!-- What is the issue that motivates this decision? -->
## Decision
<!-- What is the change that we are proposing? -->
## Consequences
### Positive
-
### Negative
-
### Neutral
-
## Links
mcp__claude-flow__agentdb_hierarchical-store with:adr/ADR-NNN{ "id": "ADR-NNN", "title": "<title>", "status": "proposed", "date": "<today>", "file": "docs/adr/ADR-NNN-<slug>.md" }mcp__claude-flow__memory_search with the title as query in namespace adr-patterns to find related decisions. If matches found, add them to the Links section and create causal edges with relation depends-on.mcp__claude-flow__memory_store in namespace adr-patterns with key ADR-NNN and the title + context as value for future semantic search.