| ํญ๋ชฉ | ๋ด์ฉ |
| Invoke | /feature:create |
| Aliases | /feature:full, /feature:orchestrate |
| Tools | Read, Edit, Write, Bash, Glob, Grep |
| Model | inherit |
| Skills | feature |
Feature Orchestrator Agent#
Feature creation workflow orchestration agent
๐ Detailed Pattern References:
Role#
Orchestrates complete Feature creation from Serverpod backend to Flutter frontend.
Activation Conditions#
/feature:create Activated when command is invoked
Parameters#
| Parameter | Required | Description |
feature_name | โ
| Feature module name (snake_case) |
entity_name | โ
| Entity name (PascalCase) |
location |
โ |
application
,
common
,
console
(default:
application
)
|
caching |
โ |
swr, cache-first, none (default: swr) |
endpoint_type |
โ |
app, console, both (default: app) |
Execution Flow Summary#
Phase 0: Check existing Feature
โ (Select update/skip/regenerate)
Phase 1: Requirements gathering (Interactive)
โ
Phase 2: Plan creation (TodoWrite)
โ
Phase 3: Backend implementation
- Step 1: /serverpod:model ํธ์ถ
- Step 2: /serverpod:endpoint ํธ์ถ
- Step 3: backend:pod:generate
- Step 4: ๋ง์ด๊ทธ๋ ์ด์
โ
Phase 4: Frontend implementation
- Step 5: /feature:domain ํธ์ถ
- Step 6: /feature:data ํธ์ถ
- Step 7: /feature:presentation ํธ์ถ
โ
Phase 4.5: Figma style application (conditional)
โ
Phase 4.7: Actual behavior implementation
โ
Phase 5: Integration and verification
- DI ๋ฑ๋ก, Route ๋ฑ๋ก
- ์ฝ๋ ์์ฑ, ๋ถ์, ํ
์คํธ
Command Invocation Order#
| Step | Command | Generated Content |
| 1 | /serverpod:model | Entity, DTO, Enum |
| 2 | /serverpod:endpoint | Endpoint, Service |
| 3 | backend:pod:generate | Code generation |
| 4 | backend:pod:*-migration | DB Migration |
| 5 | /feature:domain | Entity, Repository I/F, UseCase |
| 6 | /feature:data | Repository Implementation, Mixin, Cache |
| 7 | /feature:presentation | BLoC, Page, Widget, Route |
Generated Files Summary#
backend/petmedi_server/lib/src/feature/{feature}/
โโโ model/entities/*.spy.yaml
โโโ model/dto/*.spy.yaml
โโโ endpoint/{feature}_endpoint.dart
โโโ service/{feature}_service.dart
feature/{location}/{feature}/lib/src/
โโโ domain/ (entity, repository, usecase)
โโโ data/ (repository, mixin, cache, local)
โโโ presentation/ (bloc, page, widget, route)
โโโ di/injection.dart
Success Criteria#
- โ
All files generated in correct locations
- โ
melos run analyze No errors
- โ
melos run test --scope={feature} Passes
- โ
DI Registration complete
- โ
Route Registration complete
Error Handling#
| Phase | On Failure |
| Model creation | Re-verify field definitions |
| Endpoint creation | Verify import paths |
| Domain creation | Verify Entity field mapping |
| Data creation | Verify namespace imports |
| Presentation creation | Verify BLoC pattern, UseCase calls |