[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75Q30C3JB0CQGHQPMZSQVVT":3,"skill-same:01M75Q30C3JB0CQGHQPMZSQVVT":48},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M75Q30C3JB0CQGHQPMZSQVVT","dart-collect-coverage",null,"Collect coverage using the coverage packge and create an LCOV report","mictlanix\u002Fmbe-ui","mictlanix","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F703184?v=4","01M75Q1XD9477GXRKPM6JVVC11","Mictlanix","01M75Q1XDXKYX3VS9T3CS2XEFR",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdart-collect-coverage\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: dart-collect-coverage\ndescription: Collect coverage using the coverage packge and create an LCOV report\nmetadata:\n  model: models\u002Fgemini-3.1-pro-preview\n  last_modified: Fri, 24 Apr 2026 15:14:32 GMT\n---\n# Implementing Dart and Flutter Test Coverage\n\n## Contents\n- [Testing Fundamentals](#testing-fundamentals)\n- [Coverage Directives](#coverage-directives)\n- [Workflow: Configuring and Generating Coverage Reports](#workflow-configuring-and-generating-coverage-reports)\n- [Workflow: Advanced Manual Coverage Collection](#workflow-advanced-manual-coverage-collection)\n- [Examples](#examples)\n\n## Testing Fundamentals\n\nStructure your test suites using the standard Dart testing paradigms. Use `package:test` for Dart projects and `flutter_test` for Flutter projects.\n\n- **Unit Tests:** Verify individual functions, methods, or classes.\n- **Component\u002FWidget Tests:** Verify component behavior, layout, and interaction using mock objects (`package:mockito`).\n- **Integration Tests:** Verify entire app flows on simulated or real devices.\n\n## Coverage Directives\n\nExclude specific lines, blocks, or entire files from coverage metrics using inline comments. Pass the `--check-ignore` flag during formatting to enforce these directives.\n\n- Ignore a single line: `\u002F\u002F coverage:ignore-line`\n- Ignore a block of code: `\u002F\u002F coverage:ignore-start` and `\u002F\u002F coverage:ignore-end`\n- Ignore an entire file: `\u002F\u002F coverage:ignore-file`\n\n## Workflow: Configuring and Generating Coverage Reports\n\nFollow this sequential workflow to add the coverage package, execute tests, and generate an LCOV report.\n\n**Task Progress Checklist:**\n- [ ] 1. Add `coverage` as a `dev_dependency`.\n- [ ] 2. Execute the automated coverage script.\n- [ ] 3. Validate the LCOV output.\n\n### 1. Add Dependencies\nAdd the `coverage` package as a `dev_dependency` to your project. Do not add it to standard dependencies.\n\nIf working in a standard Dart project:\n```bash\ndart pub add dev:coverage\n```\n\nIf working in a Flutter project:\n```bash\nflutter pub add dev:coverage\n```\n\n### 2. Collect Coverage and Generate LCOV\nUse the bundled `test_with_coverage` script. This script automatically runs all tests, collects the JSON coverage data from the Dart VM, and formats it into an LCOV report.\n\n```bash\ndart run coverage:test_with_coverage\n```\n*Note: If working within a Dart workspace (monorepo), specify the test directories explicitly (e.g., `dart run coverage:test_with_coverage -- pkgs\u002Ffoo\u002Ftest pkgs\u002Fbar\u002Ftest`).*\n\n### 3. Feedback Loop: Validate Output\n**Run validator -> review errors -> fix:**\n1. Verify that the `coverage\u002F` directory was created in the project root.\n2. Ensure `coverage\u002Fcoverage.json` (raw data) and `coverage\u002Flcov.info` (formatted report) exist.\n3. If coverage is missing for specific files, ensure they are imported and executed by your test files, or add `\u002F\u002F coverage:ignore-file` if they are intentionally excluded.\n\n## Workflow: Advanced Manual Coverage Collection\n\nIf you require granular control over the VM service, isolate pausing, or need branch\u002Ffunction-level coverage, use the manual collection workflow.\n\n**Task Progress Checklist:**\n- [ ] 1. Run tests with VM service enabled.\n- [ ] 2. Collect raw JSON coverage.\n- [ ] 3. Format JSON to LCOV.\n\n### 1. Run Tests with VM Service\nExecute tests while pausing isolates on exit and exposing the VM service on a specific port (e.g., 8181).\n\n```bash\ndart run --pause-isolates-on-exit --disable-service-auth-codes --enable-vm-service=8181 test &\n```\n\n### 2. Collect Raw Coverage\nExtract the coverage data from the running VM service and output it to a JSON file.\n\n```bash\ndart run coverage:collect_coverage --wait-paused --uri=http:\u002F\u002F127.0.0.1:8181\u002F -o coverage\u002Fcoverage.json --resume-isolates\n```\n*Optional: Append `--function-coverage` and `--branch-coverage` to gather deeper metrics (requires Dart VM 2.17.0+).*\n\n### 3. Format to LCOV\nConvert the raw JSON data into the standard LCOV format.\n\n```bash\ndart run coverage:format_coverage --packages=.dart_tool\u002Fpackage_config.json --lcov -i coverage\u002Fcoverage.json -o coverage\u002Flcov.info --check-ignore\n```\n\n## Examples\n\n### Example: `pubspec.yaml` Configuration\nEnsure your `pubspec.yaml` reflects the `coverage` package strictly under `dev_dependencies`.\n\n```yaml\nname: my_dart_app\nenvironment:\n  sdk: ^3.0.0\n\ndependencies:\n  path: ^1.8.0\n\ndev_dependencies:\n  test: ^1.24.0\n  coverage: ^1.15.0\n```\n\n### Example: Applying Ignore Directives\nUse ignore directives to prevent generated code or untestable edge cases from lowering coverage scores.\n\n```dart\n\u002F\u002F coverage:ignore-file\nimport 'package:meta\u002Fmeta.dart';\n\nclass SystemConfig {\n  final String env;\n\n  SystemConfig(this.env);\n\n  \u002F\u002F coverage:ignore-start\n  void legacyInit() {\n    print('Deprecated initialization');\n  }\n  \u002F\u002F coverage:ignore-end\n\n  bool isProduction() {\n    if (env == 'prod') return true;\n    return false; \u002F\u002F coverage:ignore-line\n  }\n}\n```\n","# Implementing Dart and Flutter Test Coverage\n\n## Contents\n- [Testing Fundamentals](#testing-fundamentals)\n- [Coverage Directives](#coverage-directives)\n- [Workflow: Configuring and Generating Coverage Reports](#workflow-configuring-and-generating-coverage-reports)\n- [Workflow: Advanced Manual Coverage Collection](#workflow-advanced-manual-coverage-collection)\n- [Examples](#examples)\n\n## Testing Fundamentals\n\nStructure your test suites using the standard Dart testing paradigms. Use `package:test` for Dart projects and `flutter_test` for Flutter projects.\n\n- **Unit Tests:** Verify individual functions, methods, or classes.\n- **Component\u002FWidget Tests:** Verify component behavior, layout, and interaction using mock objects (`package:mockito`).\n- **Integration Tests:** Verify entire app flows on simulated or real devices.\n\n## Coverage Directives\n\nExclude specific lines, blocks, or entire files from coverage metrics using inline comments. Pass the `--check-ignore` flag during formatting to enforce these directives.\n\n- Ignore a single line: `\u002F\u002F coverage:ignore-line`\n- Ignore a block of code: `\u002F\u002F coverage:ignore-start` and `\u002F\u002F coverage:ignore-end`\n- Ignore an entire file: `\u002F\u002F coverage:ignore-file`\n\n## Workflow: Configuring and Generating Coverage Reports\n\nFollow this sequential workflow to add the coverage package, execute tests, and generate an LCOV report.\n\n**Task Progress Checklist:**\n- [ ] 1. Add `coverage` as a `dev_dependency`.\n- [ ] 2. Execute the automated coverage script.\n- [ ] 3. Validate the LCOV output.\n\n### 1. Add Dependencies\nAdd the `coverage` package as a `dev_dependency` to your project. Do not add it to standard dependencies.\n\nIf working in a standard Dart project:\n```bash\ndart pub add dev:coverage\n```\n\nIf working in a Flutter project:\n```bash\nflutter pub add dev:coverage\n```\n\n### 2. Collect Coverage and Generate LCOV\nUse the bundled `test_with_coverage` script. This script automatically runs all tests, collects the JSON coverage data from the Dart VM, and formats it into an LCOV report.\n\n```bash\ndart run coverage:test_with_coverage\n```\n*Note: If working within a Dart workspace (monorepo), specify the test directories explicitly (e.g., `dart run coverage:test_with_coverage -- pkgs\u002Ffoo\u002Ftest pkgs\u002Fbar\u002Ftest`).*\n\n### 3. Feedback Loop: Validate Output\n**Run validator -> review errors -> fix:**\n1. Verify that the `coverage\u002F` directory was created in the project root.\n2. Ensure `coverage\u002Fcoverage.json` (raw data) and `coverage\u002Flcov.info` (formatted report) exist.\n3. If coverage is missing for specific files, ensure they are imported and executed by your test files, or add `\u002F\u002F coverage:ignore-file` if they are intentionally excluded.\n\n## Workflow: Advanced Manual Coverage Collection\n\nIf you require granular control over the VM service, isolate pausing, or need branch\u002Ffunction-level coverage, use the manual collection workflow.\n\n**Task Progress Checklist:**\n- [ ] 1. Run tests with VM service enabled.\n- [ ] 2. Collect raw JSON coverage.\n- [ ] 3. Format JSON to LCOV.\n\n### 1. Run Tests with VM Service\nExecute tests while pausing isolates on exit and exposing the VM service on a specific port (e.g., 8181).\n\n```bash\ndart run --pause-isolates-on-exit --disable-service-auth-codes --enable-vm-service=8181 test &\n```\n\n### 2. Collect Raw Coverage\nExtract the coverage data from the running VM service and output it to a JSON file.\n\n```bash\ndart run coverage:collect_coverage --wait-paused --uri=http:\u002F\u002F127.0.0.1:8181\u002F -o coverage\u002Fcoverage.json --resume-isolates\n```\n*Optional: Append `--function-coverage` and `--branch-coverage` to gather deeper metrics (requires Dart VM 2.17.0+).*\n\n### 3. Format to LCOV\nConvert the raw JSON data into the standard LCOV format.\n\n```bash\ndart run coverage:format_coverage --packages=.dart_tool\u002Fpackage_config.json --lcov -i coverage\u002Fcoverage.json -o coverage\u002Flcov.info --check-ignore\n```\n\n## Examples\n\n### Example: `pubspec.yaml` Configuration\nEnsure your `pubspec.yaml` reflects the `coverage` package strictly under `dev_dependencies`.\n\n```yaml\nname: my_dart_app\nenvironment:\n  sdk: ^3.0.0\n\ndependencies:\n  path: ^1.8.0\n\ndev_dependencies:\n  test: ^1.24.0\n  coverage: ^1.15.0\n```\n\n### Example: Applying Ignore Directives\nUse ignore directives to prevent generated code or untestable edge cases from lowering coverage scores.\n\n```dart\n\u002F\u002F coverage:ignore-file\nimport 'package:meta\u002Fmeta.dart';\n\nclass SystemConfig {\n  final String env;\n\n  SystemConfig(this.env);\n\n  \u002F\u002F coverage:ignore-start\n  void legacyInit() {\n    print('Deprecated initialization');\n  }\n  \u002F\u002F coverage:ignore-end\n\n  bool isProduction() {\n    if (env == 'prod') return true;\n    return false; \u002F\u002F coverage:ignore-line\n  }\n}\n```\n",{"name":5,"metadata":24,"description":7},{"model":25,"last_modified":26},"models\u002Fgemini-3.1-pro-preview","Fri, 24 Apr 2026 15:14:32 GMT","main","228e23386ed058f8a2456399cd68f63999d63adf",".claude\u002Fskills\u002Fdart-collect-coverage","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui","https:\u002F\u002Fgithub.com\u002Fmictlanix","https:\u002F\u002Fmictlanix.com","2026-11-15 04:02:27",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add mictlanix\u002Fmbe-ui --skill dart-collect-coverage",{"tool":40,"command":41},"bunx","bunx skills add mictlanix\u002Fmbe-ui --skill dart-collect-coverage",{"tool":43,"command":44},"pnpm","pnpm dlx skills add mictlanix\u002Fmbe-ui --skill dart-collect-coverage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdart-collect-coverage\u002FSKILL.md",true,[],[49,56,61,68,75,82],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M75QCZHHB42Q7KJTZHQZXZ77","speckit-wireframes-draft","Draw low-fi wireframes for every screen and state the spec describes","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fwireframes\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-wireframes-draft\u002FSKILL.md",[],[],{"skillNo":57,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M75QCXRSD7HM7AFZH4HA9E6S","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-wireframes-draft\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M75QCVS17DXXBTQ8DE2SSXVR","speckit-taskstoissues","Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-taskstoissues\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M75QCS3M02XD4PW58EXS6458","speckit-tasks","Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-tasks\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M75QCP9NASXGDNYZF6XYJZBD","speckit-specify","Create or update the feature specification from a natural language feature description.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-specify\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M75QCKBPS4K60R4YPRQ8HBJ9","speckit-plan","Execute the implementation planning workflow using the plan template to generate design artifacts.","https:\u002F\u002Fgithub.com\u002Fmictlanix\u002Fmbe-ui\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fspeckit-plan\u002FSKILL.md",[],[]]