FlutterAdvanced 3 min read

Flutter AI skills and agents: structure a development workflow

Separate persistent project rules, task-specific skills, live tools and focused agent roles.

On this page

A useful assistant workflow has a clear task, the information needed to do it and evidence that the result works. Adding more prompts without these boundaries can make a project harder to review.

Give each component one job

Use project rules for persistent conventions such as the architecture and test command. Use a skill for a repeatable procedure such as adding an accessible form field. Use MCP for live diagnostics and tooling. A specialized agent can focus on a bounded review, such as accessibility, when your client supports it.

The Flutter tooling architecture also describes package-provided skills and the Developer Knowledge MCP server for documentation lookup. These complement local tooling; documentation search and inspection of your running app answer different questions.

Begin with a small project instruction

Write conventions in the instruction file your development client actually reads. Keep them specific enough to verify:

Use the existing repository interface for data access.
Keep loading, empty and error states explicit.
When changing an interaction, run its focused widget test.
Report the command and result; do not claim an unrun check passed.
Do not add a dependency without explaining why existing code is insufficient.

These instructions are an example for your project. They are not a universal client configuration format. Avoid copying a large rule collection that contradicts your existing code.

Install skills deliberately

The official repositories include flutter/agent-plugins and dart-lang/skills. Choose the supported installation path for your client, inspect the scope and review downloaded skill instructions before enabling them. A skill describes a procedure; it does not grant unrestricted access or prove its instructions fit your app.

When a dependency publishes skills, use the package skill workflow supported by your SDK/tooling. Keep the package version and the skill’s assumptions aligned. Do not assume a random package tutorial describes the API version in your lockfile.

Define a bounded agent task

A focused accessibility task could be: “Inspect only the login screen, identify unlabeled actions and keyboard focus problems, propose a small diff and run the login widget test.” Give the role a completion condition and a limited file set. Parallel work helps only when changes do not fight over the same files.

After the change, read the diff yourself. Confirm labels describe actions, not icon filenames. Verify that the test checks observable behavior instead of only asserting that a particular widget class exists.

Turn the workflow into a checklist

  1. State the behavior that must change.
  2. Inspect existing code and diagnostics.
  3. Choose the smallest relevant procedure.
  4. Make a reviewable edit.
  5. Run a focused check and record the result.

Exercise

Apply the checklist to a text field with no label and a submit button that remains enabled during a request. Compare the assistant’s patch with keyboard and screen-reader behavior. Keep the prompt, diff and test evidence together so a teammate can understand the result without reading an entire chat history.

How this topic connects

Understand first

Apply it next

Lesson progressMark complete after checking the example and exercise.

VGV’s AI toolkit | Observable Flutter #92 · Flutter · official channel

Preview image only. YouTube loads when you press Play.

A longer discussion of VGV’s agent tooling and workflow. This is different from the Flutter AI Toolkit chat widget package. Watch on YouTube

Find your next idea

Search lessons, code examples and projects.

Type a few words to start exploring.