Workflow Overview
The ACT workflow is a structured pipeline where each stage produces artifacts that feed the next. Humans review between stages — AI does the work, you make the decisions.
The pipeline
Section titled “The pipeline”Spec → Refine Spec → Plan → Work → Compound1. Spec
Section titled “1. Spec”| Command | /act:workflow:spec |
| Input | A task description (text or file) |
| Output | A detailed specification in ai_specs/ |
The spec command transforms a vague idea into a precise document:
- Asks 2-4 clarifying questions to fill gaps
- Maps user flows (happy path, errors, edge cases)
- Produces numbered requirements
- Specifies validation criteria and test expectations
Human checkpoint: Review the spec. Is this what you want built?
2. Refine Spec
Section titled “2. Refine Spec”| Command | /act:workflow:refine-spec |
| Input | A spec file |
| Output | Findings organized by severity, with suggested fixes |
An adversarial review that catches problems before implementation:
- Gaps — missing requirements or underspecified behavior
- Wrong assumptions — things the spec assumes that don’t match your codebase
- UX incoherence — flows that don’t make sense from a user’s perspective
- Data model issues — models that don’t support the described UX
- Codebase misalignment — patterns that conflict with how your project actually works
Human checkpoint: Decide which findings to address before planning.
3. Plan
Section titled “3. Plan”| Command | /act:workflow:plan |
| Input | A spec file (or task description) |
| Output | A phased implementation plan in ai_specs/ |
The plan command analyzes your codebase and creates a concrete implementation strategy:
- Researches project structure, state management, and conventions
- Breaks work into phases with specific file paths and tasks
- Includes TDD test-first tasks where applicable
- Each phase has verification steps (
flutter analyze&&flutter test)
Use --use-subagents for deeper research with parallel background agents.
Human checkpoint: Review the plan. Does the approach make sense?
4. Work
Section titled “4. Work”| Command | /act:workflow:work |
| Input | A plan file |
| Output | Working code with commits and a pull request |
The work command executes the plan phase by phase:
- Loads Flutter knowledge (patterns, principles, breaking changes)
- Executes the plan phase by phase, with commits at logical checkpoints
- Runs
flutter analyzeandflutter testat each phase - Creates a pull request when all phases are complete
Human checkpoint: Run the app and smoke test. Request visual tweaks or fixes as needed.
5. Compound
Section titled “5. Compound”| Command | /act:workflow:compound |
| Input | Current session context (optionally: spec/plan path, hints) |
| Output | A reusable insight document in ai_docs/solutions/ |
The compound command captures what was learned during the session:
- Extracts key decisions and tradeoffs
- Documents patterns and pitfalls
- Saves reusable insights organized by category
- Future sessions can reference these insights
The key insight: artifacts flow forward
Section titled “The key insight: artifacts flow forward”Each command produces artifacts that the next command consumes:
| Stage | Reads | Produces |
|---|---|---|
| Spec | Task description | *-spec.md |
| Refine Spec | *-spec.md + codebase | Findings + updated spec |
| Plan | *-spec.md + codebase | *-plan.md |
| Work | *-plan.md + *-spec.md | Code + commits + PR |
| Compound | Session context | ai_docs/solutions/*.md |
This chain reduces ambiguity at each step. By the time code is written, the AI has a spec with clear requirements, a plan with concrete tasks, and knowledge of your codebase’s patterns.
When to skip stages
Section titled “When to skip stages”Not every task needs the full pipeline:
- Quick fix: Skip spec and plan — just describe the fix and use
/act:workflow:workwith a task description - Simple feature: Write a spec, skip refine-spec, go straight to plan
- Complex feature: Use the full pipeline including refine-spec and
--use-subagentsfor planning - Bug investigation: Start with spec to document what’s wrong, then plan the fix
Next steps
Section titled “Next steps”- Learn about AI Verification
- See the Command Map for a quick reference of all commands
- Read Git Workflow Strategies for branch vs worktree workflows