--- name: gathering-architecture description: The drum sounds. Eagle, Swan, and Elephant gather for system architecture. Use when designing major systems from vision to implementation. --- # Gathering Architecture πŸŒ²πŸ¦… The drum echoes high in the canopy. The Eagle soars above, seeing the forest's patterns. The Swan glides across the lake, elegant designs taking form. The Elephant moves below, building what was envisioned. Together they transform a clearing into a cathedral of codeβ€”systems that stand for seasons. ## When to Summon - Designing new systems or services - Major architectural decisions - Refactoring core infrastructure - Creating platforms that other features build upon - When vision, design, and implementation must align --- ## The Gathering ``` SUMMON β†’ ORGANIZE β†’ EXECUTE β†’ VALIDATE β†’ COMPLETE ↓ ↲ ↲ ↲ ↓ Receive Dispatch Animals Verify Architecture Request Animals Work Design Defined ``` ### Animals Mobilized 1. **πŸ¦… Eagle** β€” Design system architecture from 10,000 feet 2. **🦒 Swan** β€” Write detailed technical specifications 3. **🐘 Elephant** β€” Implement the architectural foundation --- ### Phase 1: SUMMON *The drum sounds. The canopy rustles...* Receive and parse the request: **Clarify the System:** - What problem does this solve? - What are the scale requirements? - What are the constraints? - What's the growth trajectory? **Nature Metaphor:** > "Every architecture needs a nature metaphor. What does this system resemble? > - Heartwood (core that holds everything) > - Wisp (gentle guiding light) > - Porch (place to gather and talk) > - Something else?" **Confirm:** > "I'll mobilize an architecture gathering for: **[system description]** > > This will involve: > - πŸ¦… Eagle designing the high-level architecture > - 🦒 Swan writing the detailed specification > - 🐘 Elephant implementing the foundation > > Proceed with the gathering?" --- ### Phase 2: ORGANIZE *The birds circle. The elephant waits below...* Dispatch in sequence: **Dispatch Order:** ``` Eagle ──→ Swan ──→ Elephant β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Design Write Build System Spec Foundation ``` **Dependencies:** - Eagle must complete before Swan (needs architecture vision) - Swan must complete before Elephant (needs detailed spec) --- ### Phase 3: EXECUTE *The architecture takes form from sky to earth...* Execute each phase: **πŸ¦… EAGLE β€” DESIGN** ``` "Soaring above to see the whole system..." Output: - System boundaries defined - Component interactions mapped - Technology choices documented - Scale and constraints identified - Nature metaphor chosen Artifacts: - Architecture overview document - System diagrams - ADR (Architecture Decision Records) ``` **🦒 SWAN β€” SPECIFY** ``` "Gliding across to craft the specification..." Output: - Detailed technical specification - API contracts defined - Database schema designed - Flow diagrams created - ASCII art header - Implementation checklist Artifacts: - tech-spec.md with all required sections - Interface definitions - Migration plan (if applicable) ``` **🐘 ELEPHANT β€” BUILD** ``` "Building the foundation with unstoppable momentum..." Output: - Core infrastructure implemented - Base classes/modules created - API skeleton established - Database migrations written - Essential tests included Artifacts: - Working codebase - Foundation tests - Setup documentation ``` --- ### Phase 4: VALIDATE *The structure stands. Each animal verifies their work...* **Validation Checklist:** - [ ] Eagle: Architecture addresses all requirements - [ ] Swan: Specification is complete and implementable - [ ] Elephant: Foundation is solid and tested **Review Points:** ``` After Eagle: β†’ Review architecture with stakeholders β†’ Confirm boundaries and trade-offs β†’ Approve before Swan begins After Swan: β†’ Review spec for completeness β†’ Verify all sections present β†’ Confirm implementation ready After Elephant: β†’ Test foundation thoroughly β†’ Verify patterns established β†’ Confirm next features can build upon it ``` --- ### Phase 5: COMPLETE *The gathering ends. Architecture stands ready...* **Completion Report:** ```markdown ## 🌲 GATHERING ARCHITECTURE COMPLETE ### System: [Name] ### Animals Mobilized πŸ¦… Eagle β†’ 🦒 Swan β†’ 🐘 Elephant ### Architecture Decisions - **Pattern:** [e.g., Event-driven microservices] - **Scale Target:** [e.g., 10k concurrent users] - **Key Trade-offs:** [summary] ### Artifacts Created - Architecture Overview (`docs/architecture/[system].md`) - Technical Specification (`docs/specs/[system]-spec.md`) - ADRs ([list]) - Foundation Code ([location]) - Base Tests ([location]) ### Ready for - Feature development on this foundation - Team onboarding using the spec - Future architecture reviews ### Time Elapsed [Duration] *The forest has a new landmark.* 🌲 ``` --- ## Example Gathering **User:** "/gathering-architecture Design the notification system" **Gathering execution:** 1. 🌲 **SUMMON** β€” "Mobilizing for: Notification system. Send email, push, SMS to users. Scale: millions of notifications/day." 2. 🌲 **ORGANIZE** β€” "Sequence: Eagle (architecture) β†’ Swan (spec) β†’ Elephant (foundation)" 3. 🌲 **EXECUTE** β€” - πŸ¦… Eagle: "Event-driven: App emits events β†’ Queue β†’ Workers β†’ Providers. Scales horizontally." - 🦒 Swan: "Complete spec with flow diagrams, API contracts, provider adapter interface" - 🐘 Elephant: "Event bus, queue infrastructure, base notification service, database schema" 4. 🌲 **VALIDATE** β€” "Architecture handles scale, spec complete, foundation tested" 5. 🌲 **COMPLETE** β€” "Notification platform ready for feature development" --- *From vision to foundation, the forest grows.* 🌲