[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HKKRG42N23NNMARTPTSFT":3,"skill-same:01M78HKKRG42N23NNMARTPTSFT":44},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M78HKKRG42N23NNMARTPTSFT","unit-tests",null,"Use when running unit tests in the VS Code repo. Covers the runTests tool, scripts\u002Ftest.sh (macOS\u002FLinux) and scripts\u002Ftest.bat (Windows), and their supported arguments for filtering, globbing, and debugging tests.","Qtrick\u002Fprebasecode","Qtrick","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F141445503?v=4","01M78HD7H7KZCCZK56G86RHXHG","David Fan","01M78HD7J9D6W89KHEGD4BWBVN",0,"MIT","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Funit-tests\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unit-tests\ndescription: Use when running unit tests in the VS Code repo. Covers the runTests tool, scripts\u002Ftest.sh (macOS\u002FLinux) and scripts\u002Ftest.bat (Windows), and their supported arguments for filtering, globbing, and debugging tests.\n---\n\n# Running Unit Tests\n\n## Preferred: Use the `runTests` tool\n\nIf the `runTests` tool is available, **prefer it** over running shell commands. It provides structured output with detailed pass\u002Ffail information and supports filtering by file and test name.\n\n- Pass absolute paths to test files via the `files` parameter.\n- Pass test names via the `testNames` parameter to filter which tests run.\n- Set `mode=\"coverage\"` to collect coverage.\n\nExample (conceptual): run tests in `src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts` with test name filter `\"should split lines\"`.\n\n## Fallback: Shell scripts\n\nWhen the `runTests` tool is not available (e.g. in CLI environments), use the platform-appropriate script from the repo root:\n\n- **macOS \u002F Linux:** `.\u002Fscripts\u002Ftest.sh [options]`\n- **Windows:** `.\\scripts\\test.bat [options]`\n\nThese scripts download Electron if needed and launch the Mocha test runner.\n\n### Commonly used options\n\n#### Bare file paths - Run tests from specific files\n\nPass source file paths directly as positional arguments. The test runner automatically treats bare `.ts`\u002F`.js` positional arguments as `--run` values.\n\n```bash\n.\u002Fscripts\u002Ftest.sh src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts\n```\n\n```bat\n.\\scripts\\test.bat src\\vs\\editor\\test\\common\\model.test.ts\n```\n\nMultiple files:\n\n```bash\n.\u002Fscripts\u002Ftest.sh src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Frange.test.ts\n```\n\n#### `--run \u003Cfile>` - Run tests from a specific file (explicit form)\n\nAccepts a **source file path** (starting with `src\u002F`). The runner strips the `src\u002F` prefix and the `.ts`\u002F`.js` extension automatically to resolve the compiled module.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts\n```\n\nMultiple files can be specified by repeating `--run`:\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Frange.test.ts\n```\n\n#### `--grep \u003Cpattern>` (aliases: `-g`, `-f`) - Filter tests by name\n\nRuns only tests whose full title matches the pattern (passed to Mocha's `--grep`).\n\n```bash\n.\u002Fscripts\u002Ftest.sh --grep \"should split lines\"\n```\n\nCombine with `--run` to filter tests within a specific file:\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --grep \"should split lines\"\n```\n\n#### `--runGlob \u003Cpattern>` (aliases: `--glob`, `--runGrep`) - Run tests matching a glob\n\nRuns all test files matching a glob pattern against the compiled output directory. Useful for running all tests under a feature area.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --runGlob \"**\u002Feditor\u002Ftest\u002F**\u002F*.test.js\"\n```\n\nNote: the glob runs against compiled `.js` files in the output directory, not source `.ts` files.\n\n#### `--coverage` - Generate a coverage report\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --coverage\n```\n\n#### `--timeout \u003Cms>` - Set test timeout\n\nOverride the default Mocha timeout for long-running tests.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --timeout 10000\n```\n\n### Integration tests\n\nIntegration tests (files ending in `.integrationTest.ts` or located in `extensions\u002F`) are **not run** by `scripts\u002Ftest.sh`. Use `scripts\u002Ftest-integration.sh` (or `scripts\u002Ftest-integration.bat`) instead. See the `integration-tests` skill for details.\n\n### Compilation requirement\n\nTests run against compiled JavaScript output. Ensure the `VS Code - Build` watch task is running or that compilation has completed before running tests. Test failures caused by stale output are a common pitfall.\n","# Running Unit Tests\n\n## Preferred: Use the `runTests` tool\n\nIf the `runTests` tool is available, **prefer it** over running shell commands. It provides structured output with detailed pass\u002Ffail information and supports filtering by file and test name.\n\n- Pass absolute paths to test files via the `files` parameter.\n- Pass test names via the `testNames` parameter to filter which tests run.\n- Set `mode=\"coverage\"` to collect coverage.\n\nExample (conceptual): run tests in `src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts` with test name filter `\"should split lines\"`.\n\n## Fallback: Shell scripts\n\nWhen the `runTests` tool is not available (e.g. in CLI environments), use the platform-appropriate script from the repo root:\n\n- **macOS \u002F Linux:** `.\u002Fscripts\u002Ftest.sh [options]`\n- **Windows:** `.\\scripts\\test.bat [options]`\n\nThese scripts download Electron if needed and launch the Mocha test runner.\n\n### Commonly used options\n\n#### Bare file paths - Run tests from specific files\n\nPass source file paths directly as positional arguments. The test runner automatically treats bare `.ts`\u002F`.js` positional arguments as `--run` values.\n\n```bash\n.\u002Fscripts\u002Ftest.sh src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts\n```\n\n```bat\n.\\scripts\\test.bat src\\vs\\editor\\test\\common\\model.test.ts\n```\n\nMultiple files:\n\n```bash\n.\u002Fscripts\u002Ftest.sh src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Frange.test.ts\n```\n\n#### `--run \u003Cfile>` - Run tests from a specific file (explicit form)\n\nAccepts a **source file path** (starting with `src\u002F`). The runner strips the `src\u002F` prefix and the `.ts`\u002F`.js` extension automatically to resolve the compiled module.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts\n```\n\nMultiple files can be specified by repeating `--run`:\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Frange.test.ts\n```\n\n#### `--grep \u003Cpattern>` (aliases: `-g`, `-f`) - Filter tests by name\n\nRuns only tests whose full title matches the pattern (passed to Mocha's `--grep`).\n\n```bash\n.\u002Fscripts\u002Ftest.sh --grep \"should split lines\"\n```\n\nCombine with `--run` to filter tests within a specific file:\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --grep \"should split lines\"\n```\n\n#### `--runGlob \u003Cpattern>` (aliases: `--glob`, `--runGrep`) - Run tests matching a glob\n\nRuns all test files matching a glob pattern against the compiled output directory. Useful for running all tests under a feature area.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --runGlob \"**\u002Feditor\u002Ftest\u002F**\u002F*.test.js\"\n```\n\nNote: the glob runs against compiled `.js` files in the output directory, not source `.ts` files.\n\n#### `--coverage` - Generate a coverage report\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --coverage\n```\n\n#### `--timeout \u003Cms>` - Set test timeout\n\nOverride the default Mocha timeout for long-running tests.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --timeout 10000\n```\n\n### Integration tests\n\nIntegration tests (files ending in `.integrationTest.ts` or located in `extensions\u002F`) are **not run** by `scripts\u002Ftest.sh`. Use `scripts\u002Ftest-integration.sh` (or `scripts\u002Ftest-integration.bat`) instead. See the `integration-tests` skill for details.\n\n### Compilation requirement\n\nTests run against compiled JavaScript output. Ensure the `VS Code - Build` watch task is running or that compilation has completed before running tests. Test failures caused by stale output are a common pitfall.\n",{"name":5,"description":7},"main","a87007e75a0e5632a49ac593bd7df9f4e8d57d38",".github\u002Fskills\u002Funit-tests","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode","https:\u002F\u002Fgithub.com\u002FQtrick","2026-09-18 02:39:35",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Qtrick\u002Fprebasecode --skill unit-tests",{"tool":36,"command":37},"bunx","bunx skills add Qtrick\u002Fprebasecode --skill unit-tests",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Qtrick\u002Fprebasecode --skill unit-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Funit-tests\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M78HRHDZJD3512KSR0GZPJ57","review","Review skill with nested metadata","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-skill-meta\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M78HRG98D7PY73KG63XAK5H6","ui-ux-pro-max","UI UX Pro Max design guidance","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.opencode\u002Fskills\u002Fui-ux-pro-max\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M78HRFBCY0MBYVQ0HRXSV5GX","deploy","Deploy skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.codex\u002Fskills\u002Fdeploy\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M78HRE6JKXTMJN9DHCF487YD","interop","Interoperable Agent Skill for live smoke","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-monorepo\u002F.agents\u002Fskills\u002Finterop\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M78HRCTZENSGRPZX2N148VDD","ship","Devin ship skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-extra-skills\u002F.devin\u002Fskills\u002Fship\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M78HRBVY4KCF8ZRJ2M8RYFRD","lint","Codeium lint skill","https:\u002F\u002Fgithub.com\u002FQtrick\u002Fprebasecode\u002Fblob\u002Fmain\u002Ftest\u002Fprebase\u002Ffixtures\u002Fproject-guidance-extra-skills\u002F.codeium\u002Fskills\u002Flint\u002FSKILL.md",[],[]]