core
Skill2 starsChanged 9 months agoMITView on GitHub
Generate core infrastructure for Flutter apps. Creates theme system (AppColors, AppTheme), router (GoRouter), services (SecureStorage, SharedPrefs, Supabase), error handling (Failures), and providers. Run after /init, before /auth.
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Before adding any features or /auth
- Very specific: line 34
Use AskUserQuestion to confirm settings from /init:
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Core - Infrastructure Generation
Generates the core infrastructure that all features depend on.
When to Use This Skill
- After
/initcompletes - 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.routerlib/core/theme/- AppColors, AppTypography, AppThemelib/core/router/- GoRouter configurationlib/core/services/- SecureStorage, SharedPrefs, Supabase, iOS network permissionlib/core/errors/- Typed failures and exceptionslib/core/constants/- App constants, legal URLs, storage keys, debug flagslib/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:
- Primary Color (hex, from /init or ask)
- Theme Mode (light/dark/both)
- Use Supabase? (from /init)
- Use Custom API? (from /init)
- Bottom Navigation? (yes/no - determines shell creation)
- Privacy Policy URL? (can be placeholder, required before release)
- 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/featuresPhase 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 |
Note: ios_network_permission_service.dart triggers the iOS permission dialog early to prevent first API call failures.
Phase 10: Generate App Widget
Copy reference/app.dart and customize with theme/router.
Phase 11: Update main.dart
Replace placeholder with actual App():
import 'app.dart';
runApp(const ProviderScope(child: App()));Phase 12: Verify
dart run build_runner build --delete-conflicting-outputs
flutter analyzeReference Files
| Directory | Content |
reference/theme/ | AppColors, AppTypography, AppTheme |
reference/router/ | GoRouter setup |
reference/navigation/ | StatefulShellRoute scaffold |
reference/services/ | Storage, Supabase, iOS permission services |
reference/network/ | Dio client with interceptors |
reference/errors/ | Failure types, exceptions |
reference/constants/ | App constants, legal URLs, storage keys, debug flags |
reference/utils/ | Legal URL utilities |
reference/ | app.dart, providers.dart |
Guides
This skill is code-heavy with all templates in reference/. No separate guides needed.
Related guidance from other skills:
| Topic | See |
| Architecture patterns | .claude/skills/plan/architecture.md |
| Color usage (contrast, dark mode) | /design → visual-guide.md |
| Typography sizes & hierarchy | /design → visual-guide.md |
| Color contrast requirements | /a11y → semantics-guide.md |
| Text scaling accessibility | /a11y → testing-guide.md |
Quick Reference
AppColors.primary; AppTheme.light(); // Theme
context.go('/dashboard'); context.push('/profile'); // Router
ref.watch(secureStorageProvider).write('key', 'value'); // Secure storage
ref.watch(sharedPrefsProvider).setBool('onboarded', true); // Shared prefs
triggerIOSNetworkPermission(); // iOS permission (call in main.dart)Next Steps
After /core:
/auth- Add authentication feature/feature-init dashboard- Initialize dashboard scaffold/i18n- Add localization
Checklist
lib/app.dartcreated with MaterialApp.routerlib/core/theme/has AppColors, AppTypography, AppThemelib/core/router/app_router.dartconfiguredlib/core/services/has required serviceslib/core/services/ios_network_permission_service.dartcreatedlib/core/errors/failures.darthas typed failureslib/core/constants/has storage keys, legal URLs, and debug flagslib/core/utils/legal_utils.dartcreatedlib/core/providers.dartexports all providersmain.dartupdated to use App()main.dartcallstriggerIOSNetworkPermission()earlybuild_runnerexecuted successfullyflutter analyzepasses
Related Skills
/init- Run before core (project setup)/auth- Run after core (authentication)/feature-init- Initialize feature scaffolds after core/design- UI patterns reference
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- vercel-labs/agent-browser★ 45ksame name
- vercel-labs/json-render★ 19ksame name
- microsoft/data-formulator★ 17ksame name
- microsoft/RD-Agent★ 15ksame name
- vercel-labs/native★ 7.8ksame name
- vercel-labs/zero-native★ 7.8ksame name
- vercel-labs/issue-graph★ 128same name
- vercel-labs/xref★ 128same name
- rejot-dev/fragno★ 63same name
- fishzjp/qa-skills★ 57same name
17 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11ySkill
- account-deletionSkill
- analyticsSkill
- authSkill
- ci-cdSkill
- dataSkill
- deep-linkingSkill
- designSkill
- domainSkill
- feature-initSkill
- flavorsSkill
- force-updateSkill
- i18nSkill
- in-app-purchasesSkill
- initSkill
- local-authSkill
- network-connectivitySkill
- offlineSkill
- phone-authSkill
- planSkill
- presentationSkill
- push-notificationsSkill
- releaseSkill
- skill-createSkill
- social-loginSkill
- testingSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

