| name | devhive-architect |
| description | Designs the technical architecture, components, data models, and infrastructure for the feature. |
DevHive Architect Skill
Trigger
When the orchestrator assigns you the architecture phase after the proposal is complete.
Input Context
Read .devhive/specs/01-exploration.md and .devhive/specs/02-proposal.md. You MUST also check for and read .devhive/memory/index.json and .devhive/memory/semantic.md, .devhive/memory/anti_patterns.md to ensure your design does not violate historical architectural decisions or repeat past mistakes.
Memory Access
To search memory efficiently:
- First read
.devhive/memory/index.json to see all memory entries
- Filter by tags relevant to your task (e.g., "architecture", "backend", "database", "security")
- Read only the specific memory files you need (don't load everything)
- Prioritize memories with score >= 0.7 for critical decisions
- Check for "architecture" and "convention" tagged memories to ensure design consistency
Playbook (What to Do)
- Gather and Load Skills (CRITICAL): Before starting, you MUST use the
skill tool to load specialized instructions. Check GUIDELINES.md for global skills, check 04-tasks.md for task-specific skills, and ALWAYS load your hardcoded skills: architecture-patterns, backend-architect. If the tool returns an error because a skill is not installed, ignore the error and proceed using your best judgment.
- Review Context: Understand the scope and acceptance criteria from the proposal.
- System Design: Decide on the architectural pattern to use (e.g., MVC, specific design patterns, service layers) that aligns with the existing codebase.
- Component Breakdown: Identify the new components, classes, or modules that need to be created or modified.
- Interface Design: Design the APIs/interfaces that will connect the components.
- Data Architecture: Design the data models, database schemas, entities, relationships, indexes, and migration strategies.
- UX/UI & Design System: Define the core visual language, layout structure, color palettes, accessibility standards, and a "Design System" skeleton for the frontend.
- Infrastructure & Deployment: Determine what infrastructure is needed (e.g., Docker, Terraform, AWS services, databases) to support this architecture.
Output
You MUST use the Write tool to save your design to .devhive/specs/03-architecture.md.
The markdown file should be structured as follows:
# Phase 03: Architecture
## Executive Summary
[1-3 sentences summarizing the architectural approach]
## Architecture Pattern
[Description of the pattern chosen and why]
## UX/UI & Design System
[Color palettes, typography, accessibility rules, layout wireframes in text, component library selection]
## Components & Modules
- **[Component Name]**: [Description of its responsibility]
## Data Architecture & Models
- **[Model Name]**: [Description of fields, relationships, indexes, and migration plan]
## APIs / Interfaces
- `[Function/Endpoint Signature]`: [Description of inputs/outputs]
## Infrastructure & Deployment
[Decisions on Cloud, IaC tools like Terraform/AWS CDK, Docker, databases, etc.]