Code Guidelines
getsentry/sentry-dart
Enforce Sentry Dart/Flutter SDK code guidelines for implementation, refactoring, and review.
A skill your agent uses when writing switch statements, refactoring if-else chains, creating data classes, choosing records vs classes, destructuring values, or modernizing pre-Dart-3 code.
$ npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install evanca/flutter-ai-rules dart-3-updates --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dart-3-updates .claude/skills/dart-3-updates && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "dart-3-updates" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/dart-3-updates into .claude/skills/dart-3-updates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dart-3-updates", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/evanca/flutter-ai-rules/tree/main/skills/dart-3-updatesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install evanca/flutter-ai-rules dart-3-updates --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/dart-3-updates .agents/skills/dart-3-updates && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dart-3-updates" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/dart-3-updates into .agents/skills/dart-3-updates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dart-3-updates", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install evanca/flutter-ai-rules dart-3-updates --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/dart-3-updates .cursor/skills/dart-3-updates && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "dart-3-updates" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/dart-3-updates into .cursor/skills/dart-3-updates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dart-3-updates", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/evanca/flutter-ai-rules.git --path skills/dart-3-updates--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install evanca/flutter-ai-rules dart-3-updates --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/dart-3-updates .gemini/skills/dart-3-updates && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "dart-3-updates" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/dart-3-updates into .gemini/skills/dart-3-updates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dart-3-updates", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install evanca/flutter-ai-rules dart-3-updatesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/dart-3-updates .github/skills/dart-3-updates && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "dart-3-updates" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/dart-3-updates into .github/skills/dart-3-updates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dart-3-updates", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install evanca/flutter-ai-rules dart-3-updates --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/evanca/flutter-ai-rules.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/dart-3-updates .opencode/skills/dart-3-updates && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "dart-3-updates" agent skill from https://github.com/evanca/flutter-ai-rules/tree/main/skills/dart-3-updates into .opencode/skills/dart-3-updates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dart-3-updates", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
dart-3-updatesA skill your agent uses when writing switch statements, refactoring if-else chains, creating data classes, choosing records vs classes, destructuring values, or modernizing pre-Dart-3 code.
Dart 3 Updates is an agent skill from evanca/flutter-ai-rules. Use when writing switch statements, refactoring if-else chains, creating data classes, choosing records vs classes, destructuring values, or modernizing pre-Dart-3 code.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Cross-platform mobile apps and Refactoring. It works with Dart. The repository describes itself as: Flutter AI Skills and Rules for Claude, Codex, Cursor, and Other AI-Powered IDEs. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 30f908d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dartFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dart 3 Updates loads about 2k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 726 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from evanca/flutter-ai-rules at commit 30f908d, republished under its MIT licence (© evanca). 726 words, ~2,019 tokens.
.claude/skills/dart-3-updates/SKILL.md (or your agent's skills folder).Apply Dart 3 language features — branches, patterns, pattern types, and records — correctly and idiomatically.
Use this skill when:
switch statements or if-else chains.// Standard if
if (score >= 90) {
grade = 'A';
} else if (score >= 80) {
grade = 'B';
} else {
grade = 'C';
}
// if-case: match and destructure against a single pattern
if (pair case [int x, int y]) {
print('$x, $y');
}if conditions must evaluate to a bool.if-case, variables declared in the pattern are scoped to the matching branch.else branch (if present).switch (command) {
case 'quit':
quit();
case 'start' || 'begin': // logical-or pattern
startGame();
default:
print('Unknown command');
}case body executes and jumps to the end — break is not required.continue, throw, or return.default or _ to handle unmatched values.break to prevent fallthrough in an empty case.continue with a label for non-sequential fallthrough.case a || b) to share a body between cases.final color = switch (shape) {
Circle() => 'red',
Square() => 'blue',
_ => 'unknown',
};case; use => for bodies; separate cases with commas._ (not default).switch statements and expressions at compile time.default/_, enums, or sealed types to satisfy exhaustiveness.sealed class Shape {}
class Circle extends Shape {}
class Square extends Shape {}
// Dart knows all subtypes — no default needed:
String describe(Shape s) => switch (s) {
Circle() => 'circle',
Square() => 'square',
};switch (point) {
case (int x, int y) when x == y:
print('Diagonal: $x');
case (int x, int y):
print('$x, $y');
}when condition after a pattern to further constrain matching.if-case, switch statements, and switch expressions.false, execution proceeds to the next case.Patterns represent the shape of a value for matching and destructuring.
// Variable declaration
var (a, [b, c]) = ('str', [1, 2]);
// Variable assignment (swap)
(b, a) = (a, b);
// for-in loop destructuring
for (final MapEntry(:key, :value) in map.entries) { ... }
// switch / if-case (see Branches section)_ ignores parts of a matched value....) in list patterns ignore remaining elements.var Foo(:one, :two) = myFoo;if (data case {'user': [String name, int age]}) {
print('$name, $age');
}| Pattern | Syntax | Description |
|---|---|---|
| Logical-or | p1 || p2 | Matches if any branch matches. All branches must bind the same variables. |
| Logical-and | p1 && p2 | Matches if both match. Variable names must not overlap. |
| Relational | == c, < c, >= c | Compares value to a constant. Combine with && for ranges. |
| Cast | subpattern as Type | Asserts type, then matches inner pattern. Throws if type mismatch. |
| Null-check | subpattern? | Matches non-null; binds non-nullable type. |
| Null-assert | subpattern! | Matches non-null or throws. Use in declarations to eliminate nulls. |
| Constant | 42, 'str', const Foo() | Matches if value equals the constant. |
| Variable | var name, final Type name | Binds matched value to a new variable. Typed form only matches the declared type. |
| Wildcard | _, Type _ | Matches any value without binding. |
| Parenthesized | (subpattern) | Controls precedence. |
| List | [p1, p2] | Matches lists by position. Length must match unless a rest element is used. |
| Rest element | ..., ...rest | Matches arbitrary-length tails or collects remaining elements. |
| Map | {'key': subpattern} | Matches maps by key. Missing keys throw StateError. |
| Record | (p1, p2), (x: p1, y: p2) | Matches records by shape; field names can be omitted if inferred. |
| Object | ClassName(field: p) | Matches by type and destructures via getters. Extra fields ignored. |
// Create
var record = ('first', a: 2, b: true, 'last');
// Type annotation
({int a, bool b}) namedRecord;
// Access
print(record.$1); // positional: 'first'
print(record.a); // named: 2$1, $2, .name); no setters.hashCode and == are automatically defined.(String name, int age) userInfo(Map<String, dynamic> json) {
return (json['name'] as String, json['age'] as int);
}
var (name, age) = userInfo(json);
// Named fields:
final (:name, :age) = userInfo(json);Use a record when:
Use a class when:
copyWith.typedef for record types to improve readability and maintainability.When modernizing pre-Dart-3 code, follow these steps:
// Before (pre-Dart 3)
String label;
if (status == Status.loading) {
label = 'Loading...';
} else if (status == Status.success) {
label = 'Done';
} else {
label = 'Error';
}
// After (Dart 3)
final label = switch (status) {
Status.loading => 'Loading...',
Status.success => 'Done',
Status.error => 'Error',
};// Before
abstract class Result {}
class Success extends Result { final String data; Success(this.data); }
class Failure extends Result { final String error; Failure(this.error); }
// After — enables exhaustive switch
sealed class Result {}
final class Success extends Result { const Success(this.data); final String data; }
final class Failure extends Result { const Failure(this.error); final String error; }Replace wrapper classes used solely for returning multiple values with records.
Run dart analyze to confirm exhaustiveness and type safety after each change.
© evanca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/dart-3-updates of evanca/flutter-ai-rules.
Open the folder on GitHubat commit 30f908d
Dart 3 Updates next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dart 3 Updates this skillevanca/flutter-ai-rules | 651 | — | ~2k | Automated safety check: Pass | MIT | |
| Code Guidelinesgetsentry/sentry-dart | 873 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Squadron Workerd-markey/squadron | 138 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Dart Multiline Stringskevmoo/dash_skills | 147 | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Liquid Glass Widgetssdegenaar/liquid_glass_widgets | 730 | — | ~4.1k | Automated safety check: Pass | MIT | |
| Test Guidelinesgetsentry/sentry-dart | 873 | — | ~3.1k | Automated safety check: Pass | MIT |
getsentry/sentry-dart
Enforce Sentry Dart/Flutter SDK code guidelines for implementation, refactoring, and review.
d-markey/squadron
A skill your agent uses when building, writing, or refactoring Squadron workers, worker pools, worker services, or using squadronbuilder annotations (@SquadronService, @SquadronMethod) for…
kevmoo/dash_skills
Guidelines and best practices for refactoring consecutive prints, single-line string concatenations, and complex output blocks into triple-quoted multi-line string literals (''' or """) in Dart.
sdegenaar/liquid_glass_widgets
Mastery guide and architectural rules for liquidglasswidgets.
getsentry/sentry-dart
Enforce Sentry Dart/Flutter SDK test conventions for naming, structure, and fixtures.
getsentry/sentry-react-native
Enforce Sentry React Native SDK code guidelines for implementation, refactoring, and review.
evanca/flutter-ai-rules
A skill your agent uses when asked to review a PR, MR, branch, or diff, audit changed files, or check code quality.
evanca/flutter-ai-rules
A skill your agent uses when building AI agents in Dart, implementing Genkit flows or tools, integrating LLMs into Dart or Flutter applications, or using Genkit Dart plugins.
evanca/flutter-ai-rules
A skill your agent uses when generating or editing images from Flutter/Dart with Firebase AI Logic and a Gemini image model (Nano Banana), making the first call work, choosing Gemini Developer API…
evanca/flutter-ai-rules
A skill your agent uses when building any Flutter screen or component to choose responsive Row, Column, Expanded, Flexible, and Spacer layouts before fixed-size or coordinate-based alternatives.
evanca/flutter-ai-rules
A skill your agent uses when creating a feature, designing folder structure, adding repositories/services/view models, wiring dependency injection, or deciding which layer owns logic.
evanca/flutter-ai-rules
A skill your agent uses when creating a Cubit or Bloc, modeling state with sealed classes or status enums, wiring BlocBuilder/BlocListener/BlocProvider, writing bloc tests, or choosing between Cubit…
Works with
Categories
A skill your agent uses when writing switch statements, refactoring if-else chains, creating data classes, choosing records vs classes, destructuring values, or modernizing pre-Dart-3 code. Dart 3 Updates is an agent skill from evanca/flutter-ai-rules. Use when writing switch statements, refactoring if-else chains, creating data classes, choosing records vs classes, destructuring values, or modernizing pre-Dart-3 code.
Dart 3 Updates fits situations like: writing switch statements; refactoring if-else chains; creating data classes; choosing records vs classes.
Run `npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a claude-code`. Or copy the skill folder (skills/dart-3-updates in evanca/flutter-ai-rules) into .claude/skills/dart-3-updates in your project. Claude Code loads it when a task matches its description.
Run `npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a codex`. Or copy the skill folder (skills/dart-3-updates in evanca/flutter-ai-rules) into .agents/skills/dart-3-updates in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add evanca/flutter-ai-rules --skill dart-3-updates -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dart-3-updates, .gemini/skills/dart-3-updates, .github/skills/dart-3-updates and .opencode/skills/dart-3-updates in your project.
Going by SKILL.md and its folder, Dart 3 Updates needs the command-line tools its instructions call (dart).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Dart 3 Updates is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 8.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Dart 3 Updates: Code Guidelines (getsentry/sentry-dart, 873 stars), Squadron Worker (d-markey/squadron, 138 stars), Dart Multiline Strings (kevmoo/dash_skills, 147 stars) and Liquid Glass Widgets (sdegenaar/liquid_glass_widgets, 730 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
evanca (a GitHub user) maintains it in evanca/flutter-ai-rules, which has 651 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 10, 2026.
Source: evanca/flutter-ai-rules on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.