flutter_agent_skills — make AI coding agents write Flutter code the way your project does

pub package pub points CI License: MIT

Get started  ·  Skills  ·  How it works  ·  Plugin  ·  Roadmap


AI coding agents are fast, but they don't know your Flutter codebase. They add a second state-management library, hand-edit generated files, reformat files the task didn't touch, and report "done" before the analyzer passes.

flutter_agent_skills fixes that with one command. It reads your pubspec.yaml, detects your stack, and installs skills and project rules for Claude Code and Codex.

Follows your architecture

Reuses your state management, routing and folder layout instead of inventing new ones.

Keeps diffs small

No unrequested dependencies, no edits to generated files, and no reformatting of files the task didn't touch.

Checks its work

A task isn't done until flutter analyze is clean and the relevant tests pass.

Get started

dart pub add dev:flutter_agent_skills
dart run flutter_agent_skills init

That's the whole setup. Open the project in Claude Code or Codex and start building.

Tip

Safe to re-run at any time. Your own content in CLAUDE.md and AGENTS.md is never touched.

Global install
dart pub global activate flutter_agent_skills
fas init

The fas shortcut needs the pub cache bin folder on your PATH (Windows: %LOCALAPPDATA%\Pub\Cache\bin). Without it, run dart pub global run flutter_agent_skills init.

CLI options
Option Description
-t, --target Agents to configure: claude, codex (default: both)
-d, --dir Project directory (default: current directory)
--dry-run Preview changes without writing files
list Print the bundled skills
--version Print the installed version

Skills

Skill What it does
01 flutter-guidelines Core working rules: think before coding, simplicity first, surgical changes, goal-driven execution, tuned for Flutter.
02 flutter-feature Builds features in your existing structure: model, data, state, UI, route and tests. Supports Riverpod, Bloc, Provider, GetX and setState.
03 flutter-verify Runs code generation, formatting, analysis and tests in a loop until clean, then reports the real results.

How it works

1. Detect. init reads pubspec.yaml and builds a profile of your stack.

### Project profile (detected from pubspec.yaml)
- Package: `my_app` (Flutter app/package)
- State management: Riverpod
- Routing: go_router
- Code generation: build_runner, freezed, riverpod_generator
- Other key packages: Firebase, dio, mocktail

2. Install. It writes the skills and the profile where each agent looks for them.

File Read by
.claude/skills/*/SKILL.md Claude Code
CLAUDE.md Claude Code
AGENTS.md Codex and other AGENTS.md-compatible agents

3. Build. Your agent reads the profile and rules before every task, then follows the matching skill.

Supported packages
Category Packages
State management Riverpod, Bloc, Provider, GetX, MobX, Signals
Routing go_router, auto_route, beamer
Code generation build_runner, freezed, json_serializable, riverpod_generator, injectable
Other Firebase, dio, http, drift, isar, hive, get_it, mocktail, mockito, flutter_hooks

Claude Code plugin

Prefer plugins? Install the skills directly in Claude Code:

/plugin marketplace add Sujay-Dynamisch/Flutter-Agent-Skills
/plugin install flutter-agent-skills@flutter-agent-skills

Note

The plugin installs skills only. Run init to also add the project profile to CLAUDE.md and AGENTS.md.

Programmatic use

import 'dart:io';

import 'package:flutter_agent_skills/flutter_agent_skills.dart';

void main() {
  final profile = ProjectProfile.fromPubspec(File('pubspec.yaml').readAsStringSync());
  print(profile.stateManagement); // [Riverpod]

  Installer(Directory.current, dryRun: true)
      .install({AgentTarget.claude})
      .forEach(print);
}

Roadmap

  • x Claude Code skills and CLAUDE.md
  • x Codex support via AGENTS.md
  • x Claude Code plugin marketplace
  • Cursor rules and GitHub Copilot instructions
  • Hooks for automatic formatting and analysis after edits
  • Skills for golden tests, performance and accessibility audits
  • Skills for Flutter version migrations and pub.dev releases
  • Evaluation suite running each skill against sample apps

Have an idea? Open an issue.

Contributing

Skills live in skills/ and the rules template in templates/. After editing them:

dart run tool/bundle.dart   # regenerate bundled content
dart test

New skills should be concise, Flutter-specific and verifiable.

Acknowledgements

flutter-guidelines is adapted from the Karpathy guidelines (MIT), based on Andrej Karpathy's observations on common LLM coding pitfalls.


MIT License · Built for the Flutter community

Libraries

flutter_agent_skills
Flutter-aware skills and project rules for AI coding agents.