Skip to main content

Agent skills for Flutter and Dart

Learn how to give AI agents new capabilities and expertise using agent skills.

This guide covers how to enhance your AI agents and coding assistants with domain-specific capabilities using agent skills.

Overview

#

AI agents can write Flutter and Dart code, but they sometimes are unaware of tools and best practices that professional developers use.

Agent skills help solve this problem by providing a standardized way to give your AI agent a set of task-oriented blueprints to follow. By giving the agent actual domain expertise and repeatable workflows, you drastically reduce mistakes and can enforce consistent patterns.

Skills use what we call "progressive disclosure," which is similar to deferred loading in Flutter. Instead of loading every single instruction into the context window up front, the agent only reads the metadata first. It pulls in the heavy, detailed instructions only when it actually needs them for the task at hand.

Official repositories

#

The Dart and Flutter teams maintain official repositories packed with skills tailored specifically for our frameworks.

  • dart-lang/skills: Provides skills for Dart development. Use these to generate unit tests, resolve package dependencies, and fix static analysis errors.
  • flutter/agent-plugins: Provides skills for Flutter development. These skills help the AI build responsive layouts, set up declarative routing, and implement JSON serialization.

Install agent skills

#

The recommended way to install skills for your project is by following the Get started with AI guide, which provides step-by-step instructions on how to install the official Flutter and Dart agent plugins for Claude Code, Codex, Antigravity, Cursor, and other tools. These plugins act as a complete package, bundling agent skills with the configuration for the Dart and Flutter MCP server.

Universal agent installation

#

By default, compatible AI agents discover agent skills within the .agents/skills directory of your project workspace.

To download and manage skills in that folder, you can use the skills CLI tool. It's distributed through npm, so you need Node.js installed to run it with npx.

To install the official Flutter skills:

bash
npx skills add flutter/agent-plugins --skill '*' --agent universal --yes

And to install the official Dart skills:

bash
npx skills add dart-lang/skills --skill '*' --agent universal --yes

Running these commands automatically creates the .agents/skills directory and downloads the requested skills into your project.

Manage and verify agent skills

#

For more details on available skills, updating, and contributing, see the Dart skills repository and the Flutter agent-plugins repository.