Skip to main content

flutter_agent_skills 0.1.1 copy "flutter_agent_skills: ^0.1.1" to clipboard
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.

pub package License: MIT Claude Code Codex Dart

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.dart files that break on the next build_runner
  • ❌ Your whole project reformatted in a 40-file diff
  • ❌ "Done! βœ…" β€” while flutter analyze shows 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
> add a settings screen

+ adds provider package
+ creates SettingsController
+ edits settings.g.dart by hand
+ reformats 38 files
"Done!"
> add a settings screen

βœ“ detected Riverpod + go_router
βœ“ mirrors features/profile/ layout
βœ“ AsyncNotifier + widget test
βœ“ runs build_runner, formats 4 files
βœ“ flutter analyze: no issues
βœ“ flutter test: 18 passed

⚑ 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 init to also get the stack profile in CLAUDE.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 analyze after 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

1
likes
0
points
176
downloads

Publisher

verified publishercreoai.in

Weekly Downloads

Flutter-aware skills and project rules for AI coding agents (Claude Code, Codex). One command installs tested guidelines tailored to your project's stack.

Repository (GitHub)
View/report issues

Topics

#ai #cli #claude #agents #productivity

License

unknown (license)

Dependencies

args, path, yaml

More

Packages that depend on flutter_agent_skills