flutter-patterns

flutter-patterns is a skill for Claude Code from softspark/ai-toolkit. It costs 44 tokens per session (1,215 once invoked), scanned A, original, Apache-2.0.

A guide to building Flutter apps in Dart, including widgets, screen navigation, and ways to manage app state with Riverpod or BLoC.

In plain words
What is it for?
Use it when creating or reviewing Flutter mobile interfaces, setting up navigation, or choosing how application state should be handled.
Why use it?
It gives the codebase a clear structure and consistent patterns for organizing screens, data, and shared components.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it when creating or reviewing Flutter mobile interfaces, setting up navigation, or choosing how application state should be handled.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/softspark/ai-toolkit/flutter-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add softspark/ai-toolkit --skill flutter-patterns
Clone the repo
git clone --depth 1 https://github.com/softspark/ai-toolkit

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/softspark/ai-toolkit/flutter-patterns/github.svg)](https://agentmods.dev/skills/softspark/ai-toolkit/flutter-patterns)
Your own site
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/flutter-patterns"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/flutter-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/flutter-patterns"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/flutter-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01215
Opus 5.5 $0.00018 $0.00486
Sonnet 5.5 $0.00009 $0.00243
Haiku 4.5 $0.00004 $0.00121

Measured 2mo ago against content hash 1bb37ffb0847, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

app/skills/flutter-patterns/SKILL.md · 256 lines

How it starts

The opening of the file, as written. The whole thing — 256 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flutter Patterns Skill

Project Structure

lib/
├── main.dart
├── app.dart
├── core/
│   ├── constants/
│   ├── errors/
│   ├── network/
│   └── utils/
├── features/
│   └── feature_name/
│       ├── data/
│       │   ├── models/
│       │   ├── repositories/
│       │   └── sources/
│       ├── domain/
│       │   ├── entities/
│       │   └── usecases/
│       └── presentation/
│           ├── bloc/
│           ├── pages/
│           └── widgets/
└── shared/
    ├── widgets/
    └── theme/

State Management

BLoC Pattern

// Event
abstract class AuthEvent {}
class LoginRequested extends AuthEvent {
  final String email;
  final String password;
  LoginRequested(this.email, this.password);
}

// State
abstract class AuthState {}
class AuthInitial extends AuthState {}
class AuthLoading extends AuthState {}
class AuthSuccess extends AuthState {
  final User user;
  AuthSuccess(this.user);
}
class AuthFailure extends AuthState {
  final String message;
  AuthFailure(this.message);
}

// BLoC
class AuthBloc extends Bloc<AuthEvent, AuthState> {
  AuthBloc() : super(AuthInitial()) {
    on<LoginRequested>(_onLoginRequested);
  }

  Future<void> _onLoginRequested(
    LoginRequested event,
    Emitter<AuthState> emit,
  ) async {
    emit(AuthLoading());
    try {
      final user = await authRepository.login(event.email, event.password);
      emit(AuthSuccess(user));
    } catch (e) {
      emit(AuthFailure(e.toString()));
    }
  }
}

Riverpod

final userProvider = FutureProvider<User>((ref) async {
  final repository = ref.watch(userRepositoryProvider);
  return repository.getUser();
});

// Usage
Consumer(
  builder: (context, ref, child) {
    final userAsync = ref.watch(userProvider);
    return userAsync.when(
      data: (user) => Text(user.name),
      loading: () => CircularProgressIndicator(),
      error: (e, s) => Text('Error: $e'),
    );
  },
)

final router = GoRouter(
  routes: [
    GoRoute(
      path: '/',
      builder: (context, state) => HomeScreen(),
      routes: [
        GoRoute(
          path: 'details/:id',
          builder: (context, state) => DetailsScreen(
            id: state.pathParameters['id']!,
          ),
        ),
      ],
    ),
  ],
);

// Navigation
context.go('/details/123');
context.push('/details/123');
context.pop();

Read the full file on GitHub · 256 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 256 lines · 44 tokens per session scan A 1bb37ffb0847

Subscribe to this mod's changes

flutter-patterns is a skill published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 14d ago), licensed Apache-2.0. It adds 44 tokens to every session and 1,215 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

flutter-patterns compared with skills from other repositories

flutter-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-patternssoftspark/ai-toolkitSkill18014d agoApache-2.0A44Claude Code
android-kotlin-advisorkhalilbenaz/claude-skills-collectionSkill273mo agoMITA100Claude Code, Codex
cline-fix-volatile-msgOnlyTerp/prompt-cache-skillsSkill1183mo agononeA50Claude Code, Codex
continue-gemini-explicitOnlyTerp/prompt-cache-skillsSkill1183mo agononeA31Claude Code, Codex
aider-1h-ttlOnlyTerp/prompt-cache-skillsSkill1183mo agononeA38Claude Code, Codex
cline-openai-cache-keyOnlyTerp/prompt-cache-skillsSkill1183mo agononeA31Claude Code, Codex
continue-enable-defaultsOnlyTerp/prompt-cache-skillsSkill1183mo agononeA27Claude Code, Codex