/ai-software-architect:create-adrfrom ai-software-architect
Creates a new Architectural Decision Record (ADR) documenting technology choices, patterns, or architectural approaches. Generates sequential ADR numbers, sanitizes input, and checks project principles.
Ships in ai-software-architect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Creates structured ADRs following the framework's template.
Ask if needed:
ADR-NNN)?Then read .architecture/principles.md if it exists. The decision is written against it in step 6.
# Find highest ADR number
ls .architecture/decisions/adrs/ | grep -E "^ADR-[0-9]+" | sed 's/ADR-//' | sed 's/-.*//' | sort -n | tail -1
New ADR = next sequential number (e.g., if highest is 003, create 004)
Security: Sanitize user input to prevent path traversal and injection:
.., /, \, null bytes, control charactersFormat: ADR-XXX-kebab-case-title.md
Examples:
ADR-001-use-react-for-frontend.mdADR-002-choose-postgresql-database.mdValid input: "Use React for Frontend" → use-react-for-frontend
Invalid blocked: "../etc/passwd" → sanitized or rejected
.architecture/config.yml to check if pragmatic_mode is enabledUse the template from .architecture/templates/adr-template.md:
Core sections:
Principles check (when .architecture/principles.md exists): name each recorded principle the decision upholds under Decision Drivers, and each one it conflicts with under Consequences → Negative. A decision that conflicts with a principle is still recordable; an unacknowledged conflict is not. If the point of the decision is to change or retire a principle, say so in the first sentence of Context and edit .architecture/principles.md in the same change, citing the ADR number next to the edited principle. The two files move together or not at all.
If pragmatic_mode is enabled: Add Pragmatic Enforcer Analysis section:
If deferrals enabled: Track deferred decisions in .architecture/deferrals.md
If this ADR supersedes another: confirm the old file exists in .architecture/decisions/adrs/ before writing anything. If it doesn't, stop and ask; don't create a dangling link. Add supersedes: ADR-NNN to the new ADR's frontmatter.
Write to: .architecture/decisions/adrs/ADR-XXX-title.md
If this ADR supersedes another, edit the old ADR in the same change:
status: supersededsuperseded-by: ADR-XXX (the new number)## Status section, change it to Superseded and link the new ADR so it matches the frontmatterLeave the rest of the old ADR alone. It's the record of what was decided then. validate-adr checks that both sides of the link agree, so a half-written pair fails validation.
Created ADR-XXX: [Title]
Location: .architecture/decisions/adrs/ADR-XXX-title.md
Status: [Status]
Supersedes: [ADR-NNN, now marked superseded | none]
Key Points:
- Decision: [Summary]
- Main benefit: [Key benefit]
- Main trade-off: [Key trade-off]
Next Steps:
- [Immediate action 1]
- [Immediate action 2]
Do create for:
Don't create for:
supersedes: field (step 7), never by hand aloneBefore Creating ADR:
After Creating ADR:
Workflow Examples:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub codenamev/ai-software-architect --plugin ai-software-architect8 skills in this plugin
/architecture-reviewConducts a comprehensive multi-perspective architecture review using ALL architecture team members. Use when the user requests "Start architecture review", "Full architecture review", "Review architecture for version X.Y.Z", "Conduct comprehensive review", or when they want assessment from multiple perspectives. Do NOT use for single-specialist reviews (use specialist-review instead) or for status checks (use architecture-status instead)./architecture-statusReports on the health and state of architecture documentation (counts of ADRs, reviews, activity levels, documentation gaps). Use when the user asks "What's our architecture status?", "Show architecture documentation", "How many ADRs do we have?", "What decisions are documented?", "Architecture health check", or wants an overview/summary of documentation state. Do NOT use for listing team members (use list-members), finding which ADRs cover a topic or file (use find-adrs), creating new documents (use create-adr), or conducting reviews (use architecture-review or specialist-review)./find-adrsFinds the existing ADRs that govern a question or a file, so recorded decisions are read before code changes. Use when the user asks "Which ADRs cover this?", "Is there a decision about [topic]?", "What decisions apply to [file]?", "Did we already decide [X]?", or before changing code in an area that may carry a recorded decision. Do NOT use for counts or documentation health (use architecture-status), writing a new ADR (use create-adr), or reviews (use architecture-review or specialist-review)./list-membersDisplays the roster of architecture team members with their specialties and expertise areas. Use when the user asks "Who's on the architecture team?", "List architecture members", "Show me the architects", "What specialists are available?", "Who can I ask for reviews?", or wants to discover available experts. Do NOT use for requesting reviews (use specialist-review or architecture-review) or checking documentation status (use architecture-status)./pragmatic-guardEnables and configures Pragmatic Guard Mode (YAGNI Enforcement) to prevent over-engineering. Use when the user requests "Enable pragmatic mode", "Turn on YAGNI enforcement", "Activate simplicity guard", "Challenge complexity", or similar phrases./setup-architectSets up and installs the AI Software Architect framework in a NEW project for the FIRST time. Use when the user requests "Setup .architecture", "Setup ai-software-architect", "Initialize architecture framework", "Install software architect", or similar setup/installation phrases. Do NOT use for checking status (use architecture-status), creating documents (use create-adr or reviews), or when framework is already set up.Other plugins' skills for the same job