[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7194TGN0QPZA97FHNBP1D33":3,"skill-same:01M7194TGN0QPZA97FHNBP1D33":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":27,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M7194TGN0QPZA97FHNBP1D33","flutter-architecting-apps",null,"Architects scalable Flutter applications using layered separation of concerns. Use when structuring a new app or refactoring existing code into maintainable layers.","openplaybooks-dev\u002Fconverge","openplaybooks-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F270560357?v=4","01M7191G17AHW5SXN63HJ0BEZV","01M7191G29922BDNWN8CFVG4PD",3,"MIT","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fexamples\u002Fflutter-app\u002F.converge\u002Fskills\u002Fflutter-architecting-apps\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"flutter architecting apps","apps","flutter","app","separation of concerns","new","when","code","refactoring","Scalable","separation","layers","applications","use","Existing","layered","2026-11-10 10:12:30",false,"---\nname: flutter-architecting-apps\ndescription: Architects scalable Flutter applications using layered separation of concerns. Use when structuring a new app or refactoring existing code into maintainable layers.\n---\n# Architecting Flutter Applications\n\n## Contents\n- [Core Principles](#core-principles)\n- [Architectural Layers](#architectural-layers)\n- [Workflow: Implementing a Feature](#workflow-implementing-a-feature)\n- [Examples](#examples)\n\n## Core Principles\n\n1. **Separation of Concerns:** Decouple UI rendering from business logic and data fetching by organizing code into distinct layers separated by feature.\n2. **Single Source of Truth (SSOT):** Centralize application state and data in the Data layer. Only the SSOT component can modify its respective data.\n3. **Unidirectional Data Flow (UDF):** State flows *down* from Data to UI. Events flow *up* from UI to Data.\n4. **UI as State Function:** Widgets rebuild reactively when immutable state objects change: `UI = f(state)`.\n\n## Architectural Layers\n\n### UI Layer (Presentation)\n- **Views:** Lean widgets focused on presentation. Minimal logic — only routing, animations, or simple UI conditionals.\n- **ViewModels \u002F Providers:** Manage UI state. Transform domain models into presentation-friendly formats. Trigger rebuilds when data changes.\n\n### Logic Layer (Domain) — Optional\n- **Use Cases \u002F Interactors:** Orchestrate complex business logic involving multiple repositories.\n- Omit for standard CRUD applications — connect Views directly to Repositories via Providers.\n\n### Data Layer (Model)\n- **Services:** Stateless API wrappers. Handle HTTP requests, platform APIs, system resources.\n- **Repositories:** The SSOT. Handle caching, data transformation, and synchronization. The only layer allowed to mutate application data.\n\n## File Organization\n\n```\nlib\u002F\n├── models\u002F          # Domain models (Freezed data classes)\n│   ├── novel.dart\n│   └── models.dart  # Barrel export\n├── data\u002F            # Services, repositories, mock data\n│   ├── mock_data.dart\n│   └── novel_service.dart\n├── providers\u002F       # Riverpod providers (state management)\n│   ├── novels_provider.dart\n│   └── providers.dart  # Barrel export\n├── screens\u002F         # Screen widgets (one folder per screen)\n│   ├── home_feed\u002F\n│   │   ├── home_feed_screen.dart\n│   │   └── _widgets\u002F\n│   └── novel_detail\u002F\n│       └── novel_detail_screen.dart\n├── widgets\u002F         # Shared reusable widgets\n├── router\u002F          # GoRouter configuration\n│   └── app_router.dart\n├── theme\u002F           # ThemeData and design tokens\n│   └── app_theme.dart\n├── app.dart         # MaterialApp.router setup\n└── main.dart        # Entry point with ProviderScope\n```\n\n## Workflow: Implementing a Feature\n\nFollow this sequential process:\n\n1. **Define Domain Models** — Create Freezed data classes with all fields, types, and relationships.\n2. **Implement Services** — Create stateless API\u002Fdata source wrappers.\n3. **Implement Repositories** — Create SSOT classes that cache, transform, and expose data.\n4. **Implement Providers** — Create Riverpod providers that wrap repositories and expose state to the UI.\n5. **Implement Views** — Create screen widgets that consume providers via `ConsumerWidget` and `ref.watch()`.\n6. **Validate** — Run `dart analyze`, widget tests, and integration tests.\n\n## Examples\n\n### Service (Data Layer)\n\n```dart\nclass NovelApiService {\n  final http.Client _client;\n  NovelApiService({required http.Client client}) : _client = client;\n\n  Future\u003CList\u003CNovel>> fetchNovels() async {\n    final uri = Uri.https('api.example.com', '\u002Fnovels');\n    final response = await _client.get(uri);\n    if (response.statusCode == 200) {\n      final list = jsonDecode(response.body) as List;\n      return list.map((json) => Novel.fromJson(json)).toList();\n    }\n    throw Exception('Failed to load novels');\n  }\n}\n```\n\n### Repository (SSOT)\n\n```dart\nclass NovelRepository {\n  final NovelApiService _service;\n  List\u003CNovel>? _cache;\n\n  NovelRepository({required NovelApiService service}) : _service = service;\n\n  Future\u003CList\u003CNovel>> getNovels({bool forceRefresh = false}) async {\n    if (_cache != null && !forceRefresh) return _cache!;\n    _cache = await _service.fetchNovels();\n    return _cache!;\n  }\n}\n```\n\n### Provider (Logic Layer)\n\n```dart\n@riverpod\nclass NovelsNotifier extends _$NovelsNotifier {\n  @override\n  Future\u003CList\u003CNovel>> build() async {\n    return ref.read(novelRepositoryProvider).getNovels();\n  }\n\n  Future\u003Cvoid> refresh() async {\n    state = const AsyncLoading();\n    state = AsyncData(\n      await ref.read(novelRepositoryProvider).getNovels(forceRefresh: true),\n    );\n  }\n}\n```\n\n### View (UI Layer)\n\n```dart\nclass HomeFeedScreen extends ConsumerWidget {\n  const HomeFeedScreen({super.key});\n\n  @override\n  Widget build(BuildContext context, WidgetRef ref) {\n    final novelsAsync = ref.watch(novelsNotifierProvider);\n    return Scaffold(\n      appBar: AppBar(title: const Text('Home')),\n      body: novelsAsync.when(\n        data: (novels) => ListView.builder(\n          itemCount: novels.length,\n          itemBuilder: (_, i) => NovelCard(novel: novels[i]),\n        ),\n        loading: () => const Center(child: CircularProgressIndicator()),\n        error: (e, _) => Center(child: Text('Error: $e')),\n      ),\n    );\n  }\n}\n```\n","# Architecting Flutter Applications\n\n## Contents\n- [Core Principles](#core-principles)\n- [Architectural Layers](#architectural-layers)\n- [Workflow: Implementing a Feature](#workflow-implementing-a-feature)\n- [Examples](#examples)\n\n## Core Principles\n\n1. **Separation of Concerns:** Decouple UI rendering from business logic and data fetching by organizing code into distinct layers separated by feature.\n2. **Single Source of Truth (SSOT):** Centralize application state and data in the Data layer. Only the SSOT component can modify its respective data.\n3. **Unidirectional Data Flow (UDF):** State flows *down* from Data to UI. Events flow *up* from UI to Data.\n4. **UI as State Function:** Widgets rebuild reactively when immutable state objects change: `UI = f(state)`.\n\n## Architectural Layers\n\n### UI Layer (Presentation)\n- **Views:** Lean widgets focused on presentation. Minimal logic — only routing, animations, or simple UI conditionals.\n- **ViewModels \u002F Providers:** Manage UI state. Transform domain models into presentation-friendly formats. Trigger rebuilds when data changes.\n\n### Logic Layer (Domain) — Optional\n- **Use Cases \u002F Interactors:** Orchestrate complex business logic involving multiple repositories.\n- Omit for standard CRUD applications — connect Views directly to Repositories via Providers.\n\n### Data Layer (Model)\n- **Services:** Stateless API wrappers. Handle HTTP requests, platform APIs, system resources.\n- **Repositories:** The SSOT. Handle caching, data transformation, and synchronization. The only layer allowed to mutate application data.\n\n## File Organization\n\n```\nlib\u002F\n├── models\u002F          # Domain models (Freezed data classes)\n│   ├── novel.dart\n│   └── models.dart  # Barrel export\n├── data\u002F            # Services, repositories, mock data\n│   ├── mock_data.dart\n│   └── novel_service.dart\n├── providers\u002F       # Riverpod providers (state management)\n│   ├── novels_provider.dart\n│   └── providers.dart  # Barrel export\n├── screens\u002F         # Screen widgets (one folder per screen)\n│   ├── home_feed\u002F\n│   │   ├── home_feed_screen.dart\n│   │   └── _widgets\u002F\n│   └── novel_detail\u002F\n│       └── novel_detail_screen.dart\n├── widgets\u002F         # Shared reusable widgets\n├── router\u002F          # GoRouter configuration\n│   └── app_router.dart\n├── theme\u002F           # ThemeData and design tokens\n│   └── app_theme.dart\n├── app.dart         # MaterialApp.router setup\n└── main.dart        # Entry point with ProviderScope\n```\n\n## Workflow: Implementing a Feature\n\nFollow this sequential process:\n\n1. **Define Domain Models** — Create Freezed data classes with all fields, types, and relationships.\n2. **Implement Services** — Create stateless API\u002Fdata source wrappers.\n3. **Implement Repositories** — Create SSOT classes that cache, transform, and expose data.\n4. **Implement Providers** — Create Riverpod providers that wrap repositories and expose state to the UI.\n5. **Implement Views** — Create screen widgets that consume providers via `ConsumerWidget` and `ref.watch()`.\n6. **Validate** — Run `dart analyze`, widget tests, and integration tests.\n\n## Examples\n\n### Service (Data Layer)\n\n```dart\nclass NovelApiService {\n  final http.Client _client;\n  NovelApiService({required http.Client client}) : _client = client;\n\n  Future\u003CList\u003CNovel>> fetchNovels() async {\n    final uri = Uri.https('api.example.com', '\u002Fnovels');\n    final response = await _client.get(uri);\n    if (response.statusCode == 200) {\n      final list = jsonDecode(response.body) as List;\n      return list.map((json) => Novel.fromJson(json)).toList();\n    }\n    throw Exception('Failed to load novels');\n  }\n}\n```\n\n### Repository (SSOT)\n\n```dart\nclass NovelRepository {\n  final NovelApiService _service;\n  List\u003CNovel>? _cache;\n\n  NovelRepository({required NovelApiService service}) : _service = service;\n\n  Future\u003CList\u003CNovel>> getNovels({bool forceRefresh = false}) async {\n    if (_cache != null && !forceRefresh) return _cache!;\n    _cache = await _service.fetchNovels();\n    return _cache!;\n  }\n}\n```\n\n### Provider (Logic Layer)\n\n```dart\n@riverpod\nclass NovelsNotifier extends _$NovelsNotifier {\n  @override\n  Future\u003CList\u003CNovel>> build() async {\n    return ref.read(novelRepositoryProvider).getNovels();\n  }\n\n  Future\u003Cvoid> refresh() async {\n    state = const AsyncLoading();\n    state = AsyncData(\n      await ref.read(novelRepositoryProvider).getNovels(forceRefresh: true),\n    );\n  }\n}\n```\n\n### View (UI Layer)\n\n```dart\nclass HomeFeedScreen extends ConsumerWidget {\n  const HomeFeedScreen({super.key});\n\n  @override\n  Widget build(BuildContext context, WidgetRef ref) {\n    final novelsAsync = ref.watch(novelsNotifierProvider);\n    return Scaffold(\n      appBar: AppBar(title: const Text('Home')),\n      body: novelsAsync.when(\n        data: (novels) => ListView.builder(\n          itemCount: novels.length,\n          itemBuilder: (_, i) => NovelCard(novel: novels[i]),\n        ),\n        loading: () => const Center(child: CircularProgressIndicator()),\n        error: (e, _) => Center(child: Text('Error: $e')),\n      ),\n    );\n  }\n}\n```\n",{"name":5,"description":7},"main","7d618d8bc059f1a0974706d1d15ec25f73cf1e1d","examples\u002Fflutter-app\u002F.converge\u002Fskills\u002Fflutter-architecting-apps",1,"https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge","https:\u002F\u002Fplaybooks.to","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev","2026-06-13 10:11:21",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add openplaybooks-dev\u002Fconverge --skill flutter-architecting-apps",{"tool":63,"command":64},"bunx","bunx skills add openplaybooks-dev\u002Fconverge --skill flutter-architecting-apps",{"tool":66,"command":67},"pnpm","pnpm dlx skills add openplaybooks-dev\u002Fconverge --skill flutter-architecting-apps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fexamples\u002Fflutter-app\u002F.converge\u002Fskills\u002Fflutter-architecting-apps\u002FSKILL.md",true,[],[72,94,103,125,149,173],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":79,"publishedAt":44},"01M71989MQF3GPZ7P5TX6S93PD","hello-checker","Use this skill when asked to \"verify\", \"check\", or \"validate\" a file's existence and content. It provides a reliable workflow for confirming files meet their spec.","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Ftests\u002Ftest-codex-real\u002F.converge\u002Fskills\u002Fhello-checker\u002FSKILL.md",[78],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[80,81,82,83,41,84,85,86,87,88,89,90,34,91,92,93],"checker","hello checker","hello","it","content","validate","spec","verify","check","file","workflow","Meet","files","for",{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":100,"publishedAt":44},"01M7198823W79B3S15TPV97TCB","ask-skill","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Ftests\u002Ftest-ask-autonomous\u002F.converge\u002Fplaybooks\u002Fdefault\u002Fskills\u002Fask-skill\u002FSKILL.md",[99],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[101,102],"ask skill","ask",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":113,"publishedAt":44},"01M71986EJ6VCM8YKGEM2YEDQV","html-review-artifact","Framework-wide guidance for crafting polished human-review artifacts as markdown or HTML","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fskills\u002Fhtml-review-artifact\u002FSKILL.md",[109,112],{"categoryNo":110,"categoryName":111,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[114,115,116,117,118,93,119,120,121,122,123,124],"html","artifact","review","html review artifact","as","framework","wide","guidance","markdown","human","artifacts",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":132,"publishedAt":44},"01M719833M2XWXG1VPBW30GW7J","converge-planning","Design a Converge playbook end-to-end. Use when the user says \"plan a project\", \"design a playbook\", \"decompose into tasks\", \"scaffold a Converge workflow\", \"onboard to Converge\", or asks how to write TASK.md \u002F playbook.yml. Two entry points: plan a new playbook or update an existing one. Hand off to `\u002Fconverge-control` after producing the playbook structure.","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fskills\u002Fconverge-planning\u002FSKILL.md",[131],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[133,134,135,136,90,137,41,138,139,140,141,142,143,144,33,145,146,147,148,34],"converge","converge planning","planning","structure","tasks","decompose","hand","write","plan","how","update","playbook","design","how to","end","project",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":157,"publishedAt":44},"01M7197XZT1T9GDYAJGVGX1J60","converge-control","Operate a Converge playbook end-to-end — start runs, monitor progress, narrow failures with `--select`, inspect runtime state, validate definitions, surgically reset subtrees, and stop stuck or orphaned runs. Use this skill whenever the user says \"run my playbook\", \"execute this\", \"monitor the run\", \"converge failed\", \"the run is stuck\", \"retry failures\", \"babysit this playbook\", \"what's the status?\", \"show me the gantt\", or asks how to use `converge run` \u002F `--select` \u002F `inspect` \u002F `doctor` \u002F `clean` \u002F `stop`. Also use it for `HTTP 401` \u002F `Invalid API key` failures on the first task — those are environment-not-playbook problems — and for any post-run cleanup work. Hand off to `converge-planning` if the user wants to design or restructure the playbook itself.","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fskills\u002Fconverge-control\u002FSKILL.md",[155,156],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[158,159,133,160,161,162,163,164,165,166,139,167,168,145,146,169,147,170,171,172],"converge control","control","operate","invalid","show","api","me","work","reset","show me","cleanup","clean","inspect","select","retry",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":180,"publishedAt":44},"01M7197SCVN0QTD3CM4M83WYJH","repair-taskts","Fix task.ts definition issues — Seed syntax, missing .build(), empty checks, import errors, TypeScript errors","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fnavigator\u002Frepair\u002Fskill-templates\u002Frepair-taskts\u002FSKILL.md",[179],{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[181,182,183,184,140,185,186,187,188,35,189,190,191,192,193,147,194,133,195,196],"repair taskts","repair","Bash","edit","read","line","at","spawn","analysis","number","errors","issues","fix","chain","definition","never"]