A Claude Code skill is a set of instructions Claude loads when the task calls for it. Anthropic’s definition: “Create a SKILL.md file with instructions, and Claude adds it to its toolkit. Claude uses skills when relevant, or you can invoke one directly with /skill-name.”
For Flutter, skills are where you put the knowledge a model gets wrong by default: your architecture, your state management, your release steps. This post lists the skills that pay off most on a Flutter project and shows how to write them so they load at the right time.
For how skills sit next to subagents and hooks, start with Claude Code skills and subagents for mobile.
Why skills, not one big CLAUDE.md
CLAUDE.md loads into every session. Anthropic says “Unlike CLAUDE.md content, a skill’s body loads only when it’s used, so long reference material costs almost nothing until you need it.” Only the name and description sit in context until then.
That gives a simple rule: short, always-true facts (build command, folder layout) go in CLAUDE.md. Procedures you run sometimes (release, localization, a migration) go in skills. See CLAUDE.md for Flutter for the first half.
1. Architecture and conventions skill
The most useful Flutter skill describes how your app is organized, so Claude stops inventing a new pattern per feature:
- folder structure (for example feature-first:
lib/features/<name>/data|domain|presentation), - state management rules (Riverpod providers, where they live, how they are named),
- error handling (a Result type or exceptions, and where they are caught),
- theming (colors and spacing only from tokens).
Anthropic’s cost guide makes the same point: “a ‘codebase-overview’ skill could describe your project’s architecture, key directories, and naming conventions,” so Claude “gets this context immediately instead of spending tokens reading multiple files.” Our posts on feature-first architecture and Riverpod with Claude Code cover what to put in it.
2. Analyze and fix skill
Dart’s analyzer is your best free reviewer. The Dart docs say “Static analysis allows you to find problems before executing a single line of code,” and flutter analyze runs it. A skill that tells Claude to run it after every change, and how to treat each class of issue, saves many round trips:
---
name: analyze-fix
description: Run flutter analyze and fix every error and warning. Use after editing Dart files or when the build fails.
---
1. Run `flutter analyze`.
2. Fix errors first, then warnings, then infos.
3. Never silence a lint with an ignore comment unless the rule is wrong for this line; explain why in the comment.
4. Re-run until the output is clean.
Pair it with stricter analysis in analysis_options.yaml. The Dart docs describe strict-casts, strict-inference and strict-raw-types, all false by default. Turning them on catches the loose dynamic code models sometimes write. For build failures beyond the analyzer, see fixing Flutter build errors with Claude Code.
3. Testing skill
Flutter’s testing overview defines three layers (unit, widget and integration) and recommends “many unit and widget tests, tracked by code coverage, plus enough integration tests to cover all the important use cases.” A testing skill should say which layer to use for what, where test files go, how to fake repositories, and the exact commands. It should also forbid deleting or skipping a failing test to get a green run. The full loop is in testing a Flutter app with Claude Code.
4. Localization skill
Adding a string in Flutter touches several files: the ARB file for each language, generated code, and the widget. A skill that lists those steps in order means you never ship a hard-coded English string again. See Flutter localization with Claude Code.
5. Release checklist skill
Releases are rare, which is exactly why they go wrong. A release skill holds the version bump, build commands, store metadata checks and the manual steps you must do yourself. Mark it so only you can start it:
---
name: release
description: Prepare an iOS and Android release build and checklist.
disable-model-invocation: true
---
Anthropic says disable-model-invocation: true is for “workflows you want to trigger manually with /name.” You do not want Claude deciding on its own that now is a good time to release.
6. Design and UI skill
Models drift toward generic layouts. A design skill with your tokens, component rules and a short list of banned patterns keeps screens consistent. We cover this in a Claude Code design skill for mobile app UI.
Plugins worth a look
Some useful skills come packaged as plugins. Anthropic’s official marketplace, claude-plugins-official, includes plugins Anthropic maintains “such as commit-commands, code-review, feature-dev, and the language server plugins.” Browse it with /plugin and check the Context cost estimate before you install anything.
Writing skills that load at the right time
A few rules from Anthropic’s skills docs make the difference between a skill Claude uses and one it ignores:
- Lead with the use case. The description is how Claude decides. Anthropic says to “Put the key use case first”, and the combined description is “truncated at 1,536 characters in the skill listing.”
- Keep SKILL.md short. “Keep
SKILL.mdunder 500 lines. Move detailed reference material to separate files.” Put long references in files next to it, which load only when needed. - Scope by path when you can. The
pathsfield takes “Glob patterns for the files that activate this skill”, so a skill aboutlib/features/**does not show up for unrelated work. - Edit live. Claude Code “watches skill directories for file changes”, so you can refine a skill mid-session. If one does not appear, run
/reload-skills.
If you are new to writing them, how to write a Claude Code skill walks through a first one.
Start small
Begin with the architecture skill and the analyze-fix skill. Add a new one only when you notice yourself typing the same instructions a third time. MobileKit ships a set of Flutter skills built this way, from spec to store launch.
Sources read on the day this post was written: Claude Code: Skills, Claude Code: Manage costs, Claude Code: Anthropic’s marketplaces, Claude Code: Plugins overview, Dart: Customizing static analysis and Flutter: Testing overview.