Spec-Driven AI Workflows for Flutter
You're already using AI to write Flutter code. Now make it write code you trust. ACT is a structured workflow from spec to PR — where problems are caught early, not in the code review.
AI coding tools are fast. But fast at what, exactly?
AI agents are great at following patterns and writing lots of code — when you give them the right structure. Without it, they infer missing requirements, make product decisions, and guess at your conventions, often going off-track. AI is a multiplier — of whatever process you give it. The speed is real. The confidence isn't.
"My codebase started consistent. Six weeks later, it feels like a house of cards."
AI follows local context. When conventions and decisions are not documented, patterns drift as features pile up.
"I spend more time reviewing AI code than writing it myself."
The AI produces something, but you can't trust it without reading every line. That's not faster — it's just different work.
"Great news: 100% passing tests. Small detail: half of them are disabled."
AI agents optimize for completion. They will chase green checks with brittle, shallow, or disabled tests that fail to protect real behavior.
"I gave it a vague prompt and got exactly what I deserved."
Without a proper spec, the AI fills in the blanks with guesses. And you don't discover the wrong assumptions until the PR review.
"The code works, but it doesn't look like Flutter."
AI agents write code that compiles. They don't write code that follows Flutter conventions — widget composition, proper state management, theme extensions, idiomatic patterns. You end up fighting the agents or rewriting by hand.
"Every session starts from zero."
You solved this exact problem last week. But the context is gone and the AI has no memory of what worked. Without a way to capture and reuse insights, every session reinvents the wheel.
Now imagine a different workflow
You describe what you want to build. The AI asks questions (rather than guessing) and writes a detailed specification, then a second pass tears it apart — finding gaps and wrong assumptions before a single line of code is written.
Then it builds phase by phase, committing as it goes. Tests lock in behavior and keep future runs aligned. And when you're done, you capture the insights so the next session starts smarter.
What if your AI agent actually worked this way?
Introducing the
Agentic Coding Toolkit
Agentic Coding Toolkit (ACT) is a collection of commands, agents, skills, and a Flutter knowledge base that structures your AI-assisted development workflow — built to make spec-driven development practical, not theoretical.
ACT is fully open-source readable (markdown commands, skills, and knowledge files). It installs in two commands and works with any Flutter or Dart project — no modifications to your project structure.
Works with Claude Code and OpenCode — the two leading AI coding CLIs. You'll need one of these installed, along with your preferred LLM subscription or API key.
See it in Action
Watch ACT take a feature request through spec, plan, and execution, with each step committed along the way.
Five commands. One predictable workflow
From spec to PR with guardrails at every step
Spec
You describe the feature. The AI asks clarifying questions and helps you iterate until all user flows, edge cases, and error scenarios are covered.
Refine
Optional but recommendedA second pass roasts the spec — looking for gaps, wrong assumptions, and misalignment with your existing codebase.
Plan
Turn the spec into a detailed multi-phase plan with actionable checklists, ready for implementation. Optional research agents gather Flutter patterns and inspect your codebase conventions.
Work
The AI executes the plan phase by phase — making commits as it goes, running tests continuously, and creating a PR when done.
Compound
Optional but recommendedCapture reusable insights and decision patterns from the session. Next time, the knowledge is already there.
Everything your AI agent needs to write code you trust
Six pillars that transform AI-assisted Flutter development from chaotic to predictable
Spec-Driven Development
AI works from detailed specs, not vague prompts. Each spec includes user flows, edge cases, and error scenarios — then gets adversarially reviewed for gaps before planning begins.
Structured Workflows
A repeatable cycle where each stage produces artifacts that feed the next. Spec to plan to implementation to knowledge capture — with guardrails at every step.
Test-Backed Delivery
Tests are baked into implementation so behavior stays explicit and future agent runs stay on track. TDD-style guidance when it helps — without turning every task into ceremony.
Robot Testing
Encode user journeys as robot-driven widget tests with stable selectors and deterministic test seams. Real user flows, not isolated unit checks.
Flutter Knowledge Base
10 principles. 15+ patterns. Breaking changes docs. Setup recipes. All loaded into every planning and implementation step — not as an afterthought, but as the foundation.
Git Workflow
Conventional commits, automatic PR creation with smart descriptions, and full git worktree support for isolated parallel feature development.
The complete toolkit at a glance
Everything that ships with the Agentic Coding Toolkit
| Command | What it does |
|---|---|
/act:workflow:spec | Create detailed specifications with user flows, edge cases, and error scenarios |
/act:workflow:refine-spec | Adversarially review specs for gaps, wrong assumptions, and codebase misalignment |
/act:workflow:plan | Turn specs into phased implementation plans with codebase-aware context and TDD guidance |
/act:workflow:work | Execute plans phase-by-phase with auto commits, testing, and PR creation |
/act:workflow:compound | Capture reusable insights and decision patterns |
- ✓ 10 principles (API key storage, avoiding global state, reactive state management, YAGNI/KISS, and more)
- ✓ 15+ patterns (theme extensions, enhanced enums, switch expressions, folder structure, and more)
- ✓ Breaking changes docs for Dart, Flutter, and Riverpod
- ✓ 7 setup recipes (Riverpod, Sentry, environment variables, flavors, and more)
Built for Flutter developers who use AI agents
You're past tab-autocomplete. You've used Claude Code or OpenCode to build real features — and you've seen what happens when the AI works without guardrails. Architecture drifts. Tests pass for the wrong reasons. Every session starts from scratch.
You don't want to stop using AI. You want it to work your way — following your patterns, writing proper specs, and producing code you'd actually approve in a PR review.
Whether you're working solo or on a team, ACT gives you that structure.
This isn't for vibe coders. It's for engineers who care about what they ship.
Build With AI Workflows You Can Trust
Built for Flutter developers who want a structured, human-in-the-loop workflow with Claude Code or OpenCode. Early access pricing.
Yearly
Best for AI coding on real projects that require testable and maintainable code.
Includes full toolkit access and updates while your subscription is active:
- All workflow commands (spec, refine-spec, plan, work, compound)
- Full git integration including worktree management
- All Flutter/Dart skills
- Background research agents
- Flutter knowledge base (10 principles, 15+ patterns)
- Weekly updates
Lifetime
Best value if you want long-term updates with no renewals. One purchase, lifetime access.
Includes lifetime access to the full ACT toolkit and all future updates:
- All workflow commands (spec, refine-spec, plan, work, compound)
- Full git integration including worktree management
- All Flutter/Dart skills
- Background research agents
- Flutter knowledge base (10 principles, 15+ patterns)
- Weekly updates
I've put a lot of care into making this toolkit genuinely useful and I'm confident you'll find it valuable.
But the only way to know if it's right for you is to try it. Get the toolkit, run the workflow on a real feature, and see the difference for yourself.
If you're not happy with it, for any reason, email contact@codewithandrea.com within 30 days and I'll issue a full refund within 24 hours.
About the Author
Hello, I'm Andrea
I'm a Flutter GDE and I've been writing code professionally for over 15 years. With my Flutter tutorials and courses, I've helped thousands of developers become better at building Flutter apps over at Code with Andrea.
The Agentic Coding Toolkit is the system I use daily to build Flutter apps with AI assistance — and now it's available to you.
Frequently asked questions
Do I need Claude Code or OpenCode to use this?
Why OpenCode?
What about Codex?
What if I use Cursor or VSCode?
Is this a VS Code extension?
Does it work with my existing Flutter project?
Can I use ACT for non-Flutter projects?
What Flutter patterns and packages does it support?
How is this different from free Claude Code plugins?
How is this different from just writing a good CLAUDE.md?
What does the workflow actually produce?
Will this slow down my AI agent?
Does it work with team-based workflows?
Can I use this for Dart CLI projects too?
How do I update it?
What about code reviews?
Is the source code included?
Stop reviewing AI code line by line
Give your AI agent the guardrails, Flutter expertise, and structured workflow it needs to produce code you trust.