-
Notifications
You must be signed in to change notification settings - Fork 0
Generator and Manifests
emrecanozturk edited this page Jul 7, 2026
·
1 revision
IntentFlow includes a small CLI generator. It creates a starting point, not a finished product.
swift run intentflow feature Profile --mode core --ui none --output ./Sources/Featuresswift run intentflow feature Checkout --mode ai --ui swiftui --output ./Sources/FeaturesCheckout/
CheckoutContract.swift
CheckoutFlow.swift
CheckoutEffects.swift
CheckoutProjection.swift
CheckoutFlowTests.swift
Checkout.intentflow.yaml
The manifest is generated only in AI mode.
schemaVersion: "0.1"
feature: "Checkout"
mode: "ai"
summary: "Collect payment and complete an order."
states:
- idle
- validatingCart
- authorizingPayment
- failed(message)
- completed(orderID)
intents:
- start
- retry
- cancel
events:
- cartValid
- paymentAuthorized(orderID)
- failed(message)
effects:
- validateCart
- authorizePayment
routes:
- paymentSheet
outputs:
- orderCompleted(orderID)
invariants:
- "Payment authorization can only start after cart validation succeeds."
acceptanceTraces:
- "idle + start -> validatingCart + validateCart effect"swift run intentflow validate .intentflow/login.intentflow.yamlValidation checks required manifest structure and AI-mode expectations.
swift run intentflow ai-context .intentflow/login.intentflow.yaml --tool codex
swift run intentflow ai-context .intentflow/login.intentflow.yaml --tool claude
swift run intentflow ai-context .intentflow/login.intentflow.yaml --tool gemini
swift run intentflow ai-context .intentflow/login.intentflow.yaml --tool copilotThe output is a compact handoff for coding agents. It includes:
- feature summary
- states, intents, events, effects, routes, outputs
- invariants
- acceptance traces
- provider-specific files to read
- verification commands
The generator should:
- create the architectural skeleton
- make behavior visible
- include tests
- include cancellation IDs where useful
- include a manifest in AI mode
- keep output understandable
The generator should not:
- invent business decisions silently
- hide side effects in UI
- generate huge modules
- replace human review
Update the manifest when you add, remove, or rename:
- state
- intent
- event
- effect
- route
- output
- invariant
- acceptance trace
AI-generated changes should update manifest and tests together.
IntentFlow for iOS is a workflow-first, AI-ready architecture proposal. Start from behavior, keep reducers pure, keep effects explicit, and let UI adapt to the workflow.