[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DBBD4PE42819XZC8DH5RZH":3,"skill-same:01M7DBBD4PE42819XZC8DH5RZH":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M7DBBD4PE42819XZC8DH5RZH","gen-test-dart",null,"Generate Flutter\u002FDart tests following the project's testing patterns","andrelupe\u002Fsub-tracker","andrelupe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8937762?v=4","01M7DBB5W3F7WB7EX1WWKYAG2E","André Pereira","01M7DBB5WSEQ57845RARSFGT8V",2,"MIT","https:\u002F\u002Fgithub.com\u002Fandrelupe\u002Fsub-tracker\u002Fblob\u002Fdevelop\u002F.claude\u002Fskills\u002Fgen-test-dart\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gen-test-dart\ndescription: Generate Flutter\u002FDart tests following the project's testing patterns\nuser-invocable: true\ndisable-model-invocation: false\n---\n\n# Generate Dart Tests\n\nGenerate tests for Flutter\u002FDart source files following this project's conventions.\n\n## Arguments\n\nThe user specifies source files or features to test.\n\n## Steps\n\n1. Read the source file(s) to understand the code\n2. Read 1-2 existing test files of the same type (model, provider, widget, service) to match patterns\n3. Generate the test file\n4. Run `flutter test \u003Cnew_test_file>` to verify it passes\n\n## Test File Location\n\nMirror `lib\u002F` structure under `test\u002F`, append `_test.dart`:\n- `lib\u002Ffeatures\u002Fsubscriptions\u002Fmodels\u002Fsubscription.dart` → `test\u002Ffeatures\u002Fsubscriptions\u002Fmodels\u002Fsubscription_test.dart`\n\n## Conventions\n\n### Structure\n\n```dart\nimport 'package:flutter_test\u002Fflutter_test.dart';\n\nvoid main() {\n  group('ClassName', () {\n    test('descriptive behavior name', () {\n      \u002F\u002F Arrange → Act → Assert\n    });\n  });\n}\n```\n\n### Naming\n\n- Descriptive English: `'returns empty list when no matches'`\n- Nested `group()` for logical grouping by method\u002Fbehavior\n\n### Model Tests\n\n- Direct instantiation, no dependencies\n- `closeTo(value, tolerance)` for floats\n- Common matchers: `equals()`, `isTrue`, `isFalse`, `isEmpty`, `contains()`, `hasLength()`\n\n### Provider Tests\n\n- `ProviderContainer` with `overrides`, `dispose()` in `tearDown`\n- Fake async notifiers extending the real class, overriding `build()`:\n\n```dart\nclass _FakeSubscriptionsNotifier extends SubscriptionsNotifier {\n  _FakeSubscriptionsNotifier(this._subscriptions);\n  final List\u003CSubscription> _subscriptions;\n  @override\n  Future\u003CList\u003CSubscription>> build() async => _subscriptions;\n}\n```\n\n- Override: `provider.overrideWith(() => _FakeNotifier(data))`\n- Await async: `await container.read(provider.future)`\n\n### Widget Tests\n\n```dart\ntestWidgets('description', (WidgetTester tester) async {\n  await tester.pumpWidget(\n    ProviderScope(\n      overrides: [\u002F* overrides *\u002F],\n      child: const MaterialApp(home: Scaffold(body: YourWidget())),\n    ),\n  );\n  expect(find.text('Expected'), findsOneWidget);\n});\n```\n\n- State checks: `ProviderScope.containerOf(tester.element(find.byType(Widget)))`\n\n### Service Tests\n\n- `MockClient` from `package:http\u002Ftesting.dart`, injected into service constructor\n\n### Rules\n\n- Do NOT use Mockito — manual fakes and `MockClient` only\n- Each test file is self-contained (no shared utility files)\n- AAA pattern: Arrange → Act → Assert\n- `flutter_test` matchers only\n","# Generate Dart Tests\n\nGenerate tests for Flutter\u002FDart source files following this project's conventions.\n\n## Arguments\n\nThe user specifies source files or features to test.\n\n## Steps\n\n1. Read the source file(s) to understand the code\n2. Read 1-2 existing test files of the same type (model, provider, widget, service) to match patterns\n3. Generate the test file\n4. Run `flutter test \u003Cnew_test_file>` to verify it passes\n\n## Test File Location\n\nMirror `lib\u002F` structure under `test\u002F`, append `_test.dart`:\n- `lib\u002Ffeatures\u002Fsubscriptions\u002Fmodels\u002Fsubscription.dart` → `test\u002Ffeatures\u002Fsubscriptions\u002Fmodels\u002Fsubscription_test.dart`\n\n## Conventions\n\n### Structure\n\n```dart\nimport 'package:flutter_test\u002Fflutter_test.dart';\n\nvoid main() {\n  group('ClassName', () {\n    test('descriptive behavior name', () {\n      \u002F\u002F Arrange → Act → Assert\n    });\n  });\n}\n```\n\n### Naming\n\n- Descriptive English: `'returns empty list when no matches'`\n- Nested `group()` for logical grouping by method\u002Fbehavior\n\n### Model Tests\n\n- Direct instantiation, no dependencies\n- `closeTo(value, tolerance)` for floats\n- Common matchers: `equals()`, `isTrue`, `isFalse`, `isEmpty`, `contains()`, `hasLength()`\n\n### Provider Tests\n\n- `ProviderContainer` with `overrides`, `dispose()` in `tearDown`\n- Fake async notifiers extending the real class, overriding `build()`:\n\n```dart\nclass _FakeSubscriptionsNotifier extends SubscriptionsNotifier {\n  _FakeSubscriptionsNotifier(this._subscriptions);\n  final List\u003CSubscription> _subscriptions;\n  @override\n  Future\u003CList\u003CSubscription>> build() async => _subscriptions;\n}\n```\n\n- Override: `provider.overrideWith(() => _FakeNotifier(data))`\n- Await async: `await container.read(provider.future)`\n\n### Widget Tests\n\n```dart\ntestWidgets('description', (WidgetTester tester) async {\n  await tester.pumpWidget(\n    ProviderScope(\n      overrides: [\u002F* overrides *\u002F],\n      child: const MaterialApp(home: Scaffold(body: YourWidget())),\n    ),\n  );\n  expect(find.text('Expected'), findsOneWidget);\n});\n```\n\n- State checks: `ProviderScope.containerOf(tester.element(find.byType(Widget)))`\n\n### Service Tests\n\n- `MockClient` from `package:http\u002Ftesting.dart`, injected into service constructor\n\n### Rules\n\n- Do NOT use Mockito — manual fakes and `MockClient` only\n- Each test file is self-contained (no shared utility files)\n- AAA pattern: Arrange → Act → Assert\n- `flutter_test` matchers only\n",{"name":5,"description":7,"user-invocable":24,"disable-model-invocation":20},true,"develop","6d2322f972ececeff2e664f78f96f9ff206f861f",".claude\u002Fskills\u002Fgen-test-dart",0,"https:\u002F\u002Fgithub.com\u002Fandrelupe\u002Fsub-tracker","https:\u002F\u002Fgithub.com\u002Fandrelupe","2026-04-15 20:57:38",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add andrelupe\u002Fsub-tracker --skill gen-test-dart",{"tool":38,"command":39},"bunx","bunx skills add andrelupe\u002Fsub-tracker --skill gen-test-dart",{"tool":41,"command":42},"pnpm","pnpm dlx skills add andrelupe\u002Fsub-tracker --skill gen-test-dart","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fandrelupe\u002Fsub-tracker\u002Fblob\u002Fdevelop\u002F.claude\u002Fskills\u002Fgen-test-dart\u002FSKILL.md",[],[46,53],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7DBBB20WZS8MF586NAYMYBR","gen-test-csharp","Generate .NET\u002FC# xUnit tests following the project's testing patterns","https:\u002F\u002Fgithub.com\u002Fandrelupe\u002Fsub-tracker\u002Fblob\u002Fdevelop\u002F.claude\u002Fskills\u002Fgen-test-csharp\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7DBB7KPQS24R6AXFJBGDMZB","commit","Commit all current changes following conventional commit style","https:\u002F\u002Fgithub.com\u002Fandrelupe\u002Fsub-tracker\u002Fblob\u002Fdevelop\u002F.claude\u002Fskills\u002Fcommit\u002FSKILL.md",[],[]]