---
@agent {
  role: architect
  llm: claude-opus-4
  tools: [analyze_codebase, generate_adr, create_diagram]
}

@input feature_name: String
@input requirements?: String

@import "./docs/architecture/**/*.md" as arch_docs
@shell "git log --oneline -20" as recent_commits

@validate output {
  must_contain: ["# ADR", "```mermaid"]
  format: markdown
  min_length: 1000
}
---

# Architecture Design: {{feature_name}}

{{#if requirements}}
## Requirements
{{requirements}}
{{/if}}

## Current Architecture

{{arch_docs}}

## Recent Changes

{{recent_commits}}

## Deliverables

1. Architecture Decision Record (ADR)
2. System diagram (mermaid format)
3. Implementation steps

Use tools to analyze codebase and generate comprehensive design.
