core

A setup generator for the shared infrastructure of Flutter apps, including themes, navigation, services, error types, constants, and state providers. Flutter is a toolkit for building apps from one codebase.

In plain words
What is it for?
Creating a Flutter app's theme and router, connecting storage or Supabase, setting up network access, defining errors, and configuring bottom navigation.
Why use it?
It prepares the app-wide foundations that individual features depend on, before authentication or other features are added.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/launch52-ai/flutter-template/core
Any agent
npx skills add launch52-ai/flutter-template --skill core
Clone the repo
git clone --depth 1 https://github.com/launch52-ai/flutter-template

Made for: Claude Code, Codex.

Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,378 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00052 $0.01378
Opus 5 $0.00026 $0.00689
Sonnet 5 $0.00010 $0.00276
Haiku 4.5 $0.00005 $0.00138

Measured yesterday against content hash e7b3d778b365, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

core 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 yesterday.

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.

.claude/skills/core/SKILL.md · 159 lines

How it starts

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

Core - Infrastructure Generation

Generates the core infrastructure that all features depend on.

When to Use This Skill

  • After /init completes
  • Before adding any features or /auth
  • Setting up app-wide infrastructure
  • User asks to "generate core", "create infrastructure", or "setup theme/router"

What This Skill Creates

  • lib/app.dart - Root app widget with MaterialApp.router
  • lib/core/theme/ - AppColors, AppTypography, AppTheme
  • lib/core/router/ - GoRouter configuration
  • lib/core/services/ - SecureStorage, SharedPrefs, Supabase, iOS network permission
  • lib/core/errors/ - Typed failures and exceptions
  • lib/core/constants/ - App constants, legal URLs, storage keys, debug flags
  • lib/core/network/ - Dio client (if custom API)
  • lib/core/navigation/ - StatefulShellRoute (if bottom nav)
  • lib/core/providers.dart - Core Riverpod providers

Workflow

Phase 1: Gather Requirements

Use AskUserQuestion to confirm settings from /init:

  1. Primary Color (hex, from /init or ask)
  2. Theme Mode (light/dark/both)
  3. Use Supabase? (from /init)
  4. Use Custom API? (from /init)
  5. Bottom Navigation? (yes/no - determines shell creation)
  6. Privacy Policy URL? (can be placeholder, required before release)
  7. Terms of Service URL? (can be placeholder, required before release)

Phase 2: Create Directory Structure

mkdir -p lib/core/{constants,errors,network,router,navigation,services,theme,utils,widgets}
mkdir -p lib/features

Phase 3: Generate Files

Copy from reference/ directories and customize:

Category Files Notes
theme/ app_colors, app_typography, app_theme Customize primary color
services/ secure_storage, shared_prefs, ios_network_permission Always
services/ supabase_service If Supabase = yes
network/ dio_client If Custom API = yes
router/ app_router Customize routes
navigation/ main_shell If bottom nav = yes
errors/ failures, exceptions Always
constants/ app_constants, legal_constants, storage_keys, debug_constants Always
utils/ legal_utils Always
root providers.dart Customize based on services

Read the full file on GitHub · 159 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. yesterday First seen · 159 lines · 52 tokens per session scan A e7b3d778b365

Subscribe to this mod's changes

core is a skill published in the GitHub repository launch52-ai/flutter-template (2 stars, last pushed 6mo ago), licensed MIT. It adds 52 tokens to every session and 1,378 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

merge-seed

Merge upstream React Starter Kit updates (the seed remote) into main, preserving this project's identity, scope, and behavior. Use when asked to sync, pull, or merge the seed / starter kit / upstream template.

kriasoft/react-starter-kit · 49 tokens

django-celery-expert

Expert Django Celery guidance for asynchronous task processing. Use when designing background tasks, configuring Celery workers, handling task retries and errors, optimizing Celery performance, implementing periodic tasks with Celery Beat, or setting up production monitoring for Celery. Do not use for general Django…

wilfredinni/django-starter-template · 115 tokens

django-expert

Expert Django backend development guidance. Use when creating Django models, views, serializers, or APIs; debugging ORM queries or migrations; optimizing database performance; implementing authentication; writing tests; or working with Django REST Framework. Follows Django best practices and modern patterns.

wilfredinni/django-starter-template · 55 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

kriasoft/react-starter-kit · 94 tokens

setup

Interactive project setup from the ai-project-template — replaces the static SETUPGUIDE.md with a guided, multi-step workflow.

TheSmuks/ai-project-template · 26 tokens

template-guide

Navigate template conventions, audit compliance, and guide upgrades for ai-project-template repos.

TheSmuks/ai-project-template · 18 tokens