← ClaudeAtlas

mxdecisionlisted

Use when the user says "/decision", "/mxDecision", "document decision", "write an ADR", "record a decision", "architectural decision", "ADR", or otherwise wants to capture a significant technical choice made in the conversation. Creates or updates Architecture Decision Records (ADRs) via MCP-Tools in the mxLore knowledge DB; maintains supersedes chain and status transitions.
MicrotronX/mxLore-skills · ★ 4 · AI & Automation · score 67
Install: claude install-skill MicrotronX/mxLore-skills
# /mxDecision — Create ADR (AI-Steno: !=forbidden →=use ⚡=critical ?=ask) > **Context:** ALWAYS as subagent(Agent-Tool) !main-context. Result: max 20 lines. > **Tokens ⚡:** mx_create_doc/mx_update_doc body >300 words → assemble in this subagent, !echo to parent. mx_detail server default = 600 tokens. ADR-Agent. Creates decisions as ADR in Knowledge-DB via MCP. ## Init 1. CLAUDE.md→`**Slug:**`=project_slug. ∅slug→?user 2. mx_ping()→OK=MCP-mode | Error=Local(`docs/decisions/ADR-NNNN-<slug>.md`+Warning→/mxMigrateToDb) ## Input Title from command argument. ∅arg→?user. ⚡ **Title clamp:** server ClampTitle=255 (Bug#2889). The final title will be `ADR-NNNN: <Title>` — the `ADR-NNNN: ` prefix eats ~12 chars, so keep the title content under ~240 chars. Truncate locally and warn if longer. ⚡ **Slug derivation + normalization** (slug is derived from title for the local file path; MCP path uses auto-numbering): Read ~/.claude/skills/_shared/slug-normalization.md. ## Workflow ### 1) ADR Number **MCP:** Auto-number via `mx_create_doc(doc_type='decision')` — no separate query needed. **Local:** `docs/decisions/index.md`→highest number+1 ### 2) Create ADR Template → `~/.claude/skills/mxDecision/assets/adr-template.md` (6 sections: Status/Date meta, Context, Decision, Consequences with Advantages/Disadvantages/Follow-ups subsections). ⚡ **Absolute path** — subagent CWD is the project root, not the skill dir, so a relative `assets/…` read silently fails. If the template file is unrea