flutter_agent_skills 0.1.1
flutter_agent_skills: ^0.1.1 copied to clipboard
Flutter-aware skills and project rules for AI coding agents (Claude Code, Codex). One command installs tested guidelines tailored to your project's stack.
π§ flutter_agent_skills #
Make AI coding agents write Flutter code the way your project does. #
One command teaches Claude Code and Codex your stack, your architecture,
and your rules β so they stop guessing and start shipping clean, verified code.
dart pub global activate flutter_agent_skills && fas init
π© The problem #
You ask an AI agent to "add a settings screen" and you get:
- β A new state-management library in your Riverpod app
- β Hand-edited
*.g.dartfiles that break on the nextbuild_runner - β Your whole project reformatted in a 40-file diff
- β "Done! β
" β while
flutter analyzeshows 12 errors
β¨ The fix #
flutter_agent_skills reads your pubspec.yaml, detects your stack, and installs Flutter-specific skills and rules your agent follows on every task.
| π€ Without | π With flutter_agent_skills |
|---|---|
|
|
β‘ Quick start #
# 1. Install the CLI
dart pub global activate flutter_agent_skills
# 2. Run it inside your Flutter project
cd my_flutter_app
fas init
created .claude/skills/flutter-feature/SKILL.md
created .claude/skills/flutter-guidelines/SKILL.md
created .claude/skills/flutter-verify/SKILL.md
updated CLAUDE.md
created AGENTS.md
Done.
That's it. Open Claude Code or Codex and start building. π
Options #
| Command | What it does |
|---|---|
fas init |
Set up Claude Code and Codex |
fas init -t claude |
Claude Code only |
fas init -t codex |
Codex only (AGENTS.md) |
fas init --dry-run |
Preview changes, write nothing |
fas init -d path/to/app |
Run on another directory |
fas list |
List bundled skills |
π§© Skills #
| Skill | What your agent learns | |
|---|---|---|
| π§ | flutter-guidelines |
Think before coding Β· Simplicity first Β· Surgical changes Β· Goal-driven execution β tuned for Flutter: no surprise dependencies, never hand-edit generated files, format only what changed. |
| ποΈ | flutter-feature |
Builds screens and features that look like your team wrote them: model β data β state β UI β route β tests, using your existing Riverpod / Bloc / Provider / GetX patterns. |
| β | flutter-verify |
A real verification loop β build_runner β dart format β flutter analyze β flutter test β fix, repeat, and report honest results. |
π Stack detection #
fas init writes a project profile your agent reads before every task:
### 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
| Category | Detected |
|---|---|
| π State management | Riverpod Β· Bloc Β· Provider Β· GetX Β· MobX Β· Signals |
| π§ Routing | go_router Β· auto_route Β· beamer |
| βοΈ Code generation | build_runner Β· freezed Β· json_serializable Β· riverpod_generator Β· injectable |
| π¦ Others | Firebase Β· dio Β· http Β· drift Β· isar Β· hive Β· get_it Β· mocktail Β· mockito Β· flutter_hooks |
π What it writes #
| File | Used by |
|---|---|
.claude/skills/*/SKILL.md |
π Claude Code skills |
CLAUDE.md |
π Claude Code project rules + stack profile |
AGENTS.md |
π£ Codex and other AGENTS.md-aware agents |
Tip
Safe to rerun. Rules live inside a managed block (<!-- flutter_agent_skills:start/end -->). Your own CLAUDE.md / AGENTS.md content is never touched, and running fas init again only refreshes that block.
π Claude Code plugin #
Prefer plugins? Install the skills straight from GitHub:
/plugin marketplace add Sujay-Dynamisch/Flutter-Agent-Skills
/plugin install flutter-agent-skills@flutter-agent-skills
The plugin installs the skills only. Use
fas initto also get the stack profile inCLAUDE.md/AGENTS.md.
πΊοΈ Roadmap #
- β
Claude Code skills +
CLAUDE.md - β
Codex via
AGENTS.md - β Claude Code plugin marketplace
- β Cursor rules & GitHub Copilot instructions
- β Hooks: auto
dart format+flutter analyzeafter edits - β Skills: golden tests, performance audit, accessibility audit
- β Skills: Flutter version migrations, pub.dev release prep
- β Eval suite: every skill tested against sample apps
Have an idea? Open an issue π‘
π€ Contributing #
Skills live in skills/ and the rules template in templates/.
dart run tool/bundle.dart # rebuild the bundled content
dart test # make sure everything passes
PRs for new skills are very welcome β keep them short, Flutter-specific, and verifiable.
π Credits #
flutter-guidelines is adapted from the excellent Karpathy guidelines (MIT), inspired by Andrej Karpathy's observations on LLM coding pitfalls.
If this saves you from one bad AI diff, give it a β β it helps other Flutter devs find it.
MIT Β© flutter_agent_skills contributors