Migration Guide: Zuraffa v4 → v5
Zuraffa v5 simplifies the public generation contract around one canonical workflow:
zfa entity createzfa makezfa build
The biggest conceptual change is that zfa make is now the primary generator. zfa feature scaffold remains available, but it should be treated as a wrapper over the feature preset rather than the main public workflow.
Quick checklist
- Update your docs, scripts, and prompts to use
zfa make. - Use
zfa entity createfor entities. - Use
zfa buildinstead of teachingbuild_runnerdirectly. - Assume a fixed domain root:
lib/src/domain. - Assume entities live under
lib/src/domain/entities. - Assume public v5 docs are Zorphy-first.
- Adopt
.zfa.jsonfor defaults and the canonical.zfa/memory model.
Command mapping
| Before | After |
|---|---|
| one-shot architecture generation | zfa make <Name> ... |
| feature-first public docs | zfa make as primary, zfa feature scaffold as wrapper |
| direct build runner guidance | zfa build |
| hand-created entities in docs | zfa entity create |
Canonical v5 example
zfa entity create -n Product \
--field id:String \
--field name:String \
--field price:double
zfa make Product \
--preset=crud \
--methods=get,getList,create,update,delete \
--with=vpc \
--state \
--di \
--test
zfa build
Fixed layout rules
Zuraffa v5 public docs assume:
lib/src/domain/entities/{entity_snake}/{entity_snake}.dart
Example:
lib/src/domain/entities/product/product.dart
Do not document alternate domain roots for v5.
.zfa.json and .zfa/
Use these concepts when migrating teams and AI prompts:
.zfa.json= project defaults.zfa/= canonical project memory for plans, runs, decisions, blueprints, manifests, and context
.zfa/
├── plans/
├── runs/
├── blueprints/
├── decisions/
├── manifests/
└── context.json
During the migration period, some internals may still reference older storage paths. Public docs should still point forward to .zfa/.
Agent guidance
When updating prompts, AGENTS guidance, or skills, normalize to this sentence:
In v5, create the entity first, generate architecture with
zfa make, and finish withzfa build.zfa featureis only a wrapper over the feature preset.