[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M698Z5MG65YJ810070967902":3,"skill-same:01M698Z5MG65YJ810070967902":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M698Z5MG65YJ810070967902","skia-add-test","Skia 测试用例添加","Add a new test to the Skia repository. Use this skill when you need to create a new unit or integration test in the tests\u002F directory and ensure it's part of the build system.","向 Skia 仓库添加新测试。当需要在 tests\u002F 目录下创建新的单元测试或集成测试，并确保其被纳入构建系统时使用本技能。","google\u002Fskia","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698Z251PDBWCXQ35SASSY22",11032,"BSD-3-Clause",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskia\u002Fblob\u002Fmain\u002F_agents\u002Fskills\u002Fskia-add-test\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"skia add test","test","add test","add","when","directory","you","it","unit","tests","build","use","integration test","system","repository","integration","create","2026-11-10 10:12:30",false,"---\nname: skia-add-test\ndescription: Add a new test to the Skia repository. Use this skill when you need to create a new unit or integration test in the tests\u002F directory and ensure it's part of the build system.\n---\n\n# Skia Add Test Skill\n\nThis skill guides you through adding a new test to Skia. Tests are primarily written in C++ and located in the `tests\u002F` directory.\n\n## Workflow\n\n### 1. Create the Test File\nCreate a new `.cpp` file in the `tests\u002F` directory. Use the provided template as a starting point.\n- **Template Location:** `assets\u002Ftest_template.cpp`\n\n### 2. Update the Build System\nAdd the path to your new test file to the `tests_sources` list in `gn\u002Ftests.gni`.\n- Paths in `gn\u002Ftests.gni` should be relative to the directory or use the `$_tests` variable.\n\n### 3. Build the Test\nCompile the `dm` tool, which runs the tests.\n```bash\nninja --quiet -C out\u002FDebug dm\n```\n\n### 4. Run the Test\nUse `dm` with the `--match` flag to run your specific test.\n```bash\nout\u002FDebug\u002Fdm --match [test_name]\n```\nNote: Replace `[test_name]` with the name provided to the `DEF_TEST` (or similar) macro.\n\n## Key Concepts\n\n### Macros for Defining Tests\n- `DEF_TEST(name, reporter)`: Standard CPU test.\n- `DEF_GANESH_TEST(name, reporter, options, ctsEnforcement)`: Ganesh GPU test.\n- `DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS(name, reporter, context, ctsEnforcement)`: Graphite GPU test.\n\n### CtsEnforcement\n`CtsEnforcement` is used to track tests that should be run as part of Android's Conformance Test Suite (CTS) for a specific milestone (e.g., `kApiLevel_T`) or later.\n- `CtsEnforcement::kNever`: The test is not part of CTS.\n- `CtsEnforcement::kApiLevel_U`: The test is required for Android U and later.\n\n### Reporter and Assertions\n- `REPORTER_ASSERT(reporter, condition, ...)`: Standard assertion.\n- `ERRORF(reporter, ...)`: Report a failure with a formatted message.\n- `skiatest::ReporterContext`: Use this stack-allocated object to provide additional context (like subtest names) for failure reports.\n\nExample of `ReporterContext`:\n```cpp\n{\n    skiatest::ReporterContext subtest(reporter, SkString(\"My Subtest\"));\n    REPORTER_ASSERT(reporter, condition);\n}\n```\nIf `condition` fails, the error will include \"My Subtest\".\n","# Skia Add Test Skill\n\nThis skill guides you through adding a new test to Skia. Tests are primarily written in C++ and located in the `tests\u002F` directory.\n\n## Workflow\n\n### 1. Create the Test File\nCreate a new `.cpp` file in the `tests\u002F` directory. Use the provided template as a starting point.\n- **Template Location:** `assets\u002Ftest_template.cpp`\n\n### 2. Update the Build System\nAdd the path to your new test file to the `tests_sources` list in `gn\u002Ftests.gni`.\n- Paths in `gn\u002Ftests.gni` should be relative to the directory or use the `$_tests` variable.\n\n### 3. Build the Test\nCompile the `dm` tool, which runs the tests.\n```bash\nninja --quiet -C out\u002FDebug dm\n```\n\n### 4. Run the Test\nUse `dm` with the `--match` flag to run your specific test.\n```bash\nout\u002FDebug\u002Fdm --match [test_name]\n```\nNote: Replace `[test_name]` with the name provided to the `DEF_TEST` (or similar) macro.\n\n## Key Concepts\n\n### Macros for Defining Tests\n- `DEF_TEST(name, reporter)`: Standard CPU test.\n- `DEF_GANESH_TEST(name, reporter, options, ctsEnforcement)`: Ganesh GPU test.\n- `DEF_GRAPHITE_TEST_FOR_ALL_CONTEXTS(name, reporter, context, ctsEnforcement)`: Graphite GPU test.\n\n### CtsEnforcement\n`CtsEnforcement` is used to track tests that should be run as part of Android's Conformance Test Suite (CTS) for a specific milestone (e.g., `kApiLevel_T`) or later.\n- `CtsEnforcement::kNever`: The test is not part of CTS.\n- `CtsEnforcement::kApiLevel_U`: The test is required for Android U and later.\n\n### Reporter and Assertions\n- `REPORTER_ASSERT(reporter, condition, ...)`: Standard assertion.\n- `ERRORF(reporter, ...)`: Report a failure with a formatted message.\n- `skiatest::ReporterContext`: Use this stack-allocated object to provide additional context (like subtest names) for failure reports.\n\nExample of `ReporterContext`:\n```cpp\n{\n    skiatest::ReporterContext subtest(reporter, SkString(\"My Subtest\"));\n    REPORTER_ASSERT(reporter, condition);\n}\n```\nIf `condition` fails, the error will include \"My Subtest\".\n",{"name":5,"description":7},"main","607de4b035dcf7fdbaafb66c6cc04f22009ff4d4","_agents\u002Fskills\u002Fskia-add-test",1795,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskia","https:\u002F\u002Fskia.org","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 21:53:49",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add google\u002Fskia --skill skia-add-test",{"tool":69,"command":70},"bunx","bunx skills add google\u002Fskia --skill skia-add-test",{"tool":72,"command":73},"pnpm","pnpm dlx skills add google\u002Fskia --skill skia-add-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskia\u002Fblob\u002Fmain\u002F_agents\u002Fskills\u002Fskia-add-test\u002FSKILL.md",true,[77],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"assets\u002Ftest_template.cpp","ASSET","资产文件",1066,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskia\u002Fblob\u002Fmain\u002F_agents\u002Fskills\u002Fskia-add-test\u002Fassets\u002Ftest_template.cpp",[84,115],{"skillNo":85,"name":86,"nameZh":87,"description":88,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":96,"publishedAt":48},"01M698Z9BRHT49CDX1V3Y9YH3G","skia-style-check","Skia 代码风格检查","Checks that changed code on the current git branch matches Skia's style and formatting requirements defined in site\u002Fdocs\u002Fdev\u002Fcontrib\u002Fstyle.md. Use this skill when verifying, auditing, or reviewing code changes on the active branch for style compliance before committing or submitting. Do not use for compiler errors or build workflows.","检查当前 git 分支上改动的代码是否符合 site\u002Fdocs\u002Fdev\u002Fcontrib\u002Fstyle.md 中定义的 Skia 代码风格与格式要求。在提交前验证、审计或审查当前活动分支上的代码改动是否符合风格规范时使用。不适用于编译器错误或构建工作流。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskia\u002Fblob\u002Fmain\u002F_agents\u002Fskills\u002Fskia-style-check\u002FSKILL.md",[92,95],{"categoryNo":93,"categoryName":94,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[97,98,99,100,35,101,102,42,41,103,104,105,106,107,108,109,110,111,112,113,114],"check","skia style check","style","compiler","compliance","branch","do","requirements","reviewing code","errors","for","changes","contrib","dev","git branch","code","workflows","docs",{"skillNo":116,"name":117,"nameZh":118,"description":119,"descriptionZh":120,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":127,"publishedAt":48},"01M698Z74AMD0234MTMAS8RQ76","skia-gn-workflow","Skia GN 构建工作流","MANDATORY: Use this skill for ANY and ALL tasks involving building Skia with GN, Ninja, or compiling any Skia tool. It is the authoritative source for Skia's build workflows and MUST be used whenever compilation is required.","强制：任何涉及使用 GN、Ninja 构建 Skia 或编译任何 Skia 工具的任务都必须使用本技能。它是 Skia 构建工作流的权威来源，凡涉及编译都必须使用。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskia\u002Fblob\u002Fmain\u002F_agents\u002Fskills\u002Fskia-gn-workflow\u002FSKILL.md",[123,124],{"categoryNo":93,"categoryName":94,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":125,"categoryName":126,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRXQPYT60FQ3976GDV4Q","C++ 开发",[128,129,130,107,131,38,41,42,132,133,134,113],"workflow","skia gn workflow","source","with","tool","compiling","tasks"]