| name | erne-plan |
| description | ERNE — Design feature architecture using the architect agent |
/erne-plan — Feature Architecture Design
You are executing the /erne-plan command. Use the architect agent to design a feature architecture.
Process
- Understand the requirement — Ask clarifying questions if the feature description is vague
- Analyze existing codebase — Read relevant files, understand current navigation structure, state management, and API patterns
- Design the architecture — Using the architect agent's process:
- Decompose into components and screens
- Plan Expo Router file structure
- Select state management approach (Zustand / TanStack Query / local)
- Design data flow and API layer
- Consider platform-specific requirements
- Output the plan — Use the architect agent's output format:
Architecture Output
## Overview
[1-2 sentence description of the feature]
## File Structure
[New files to create with paths]
## Component Design
[Component hierarchy and responsibilities]
## Data Flow
[State management approach, API calls, caching strategy]
## Navigation
[New routes, layout changes, deep link support]
## Implementation Tasks
[Ordered list of implementation steps]
- Review with user — Present the plan and ask for approval before implementation
Notes
- Reference the active platform rules layer (
rules/expo/patterns.md or rules/bare-rn/patterns.md) for conventions
- Consider whether this is Expo managed, bare RN, or has native modules
- Include test strategy in the plan