[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J1H4DQZ6TDXBABC34FTER5":3,"skill-same:01M6J1H4DQZ6TDXBABC34FTER5":61},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6J1H4DQZ6TDXBABC34FTER5","library-testing",null,"Use when creating or reviewing tests for a TypeScript library, including runtime tests, type tests, regression coverage, and CLI validation.","sampleXbro\u002Fagentsmesh","sampleXbro","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F55853222?v=4","01M6J1A11VAS9QEE92CHHMBCKC","Serhii Zhabskyi","01M6J1A16FCGNMMABYE0P6SNTF",29,"MIT","https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Flibrary-testing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"testing","library","library testing","cli","typescript","validation","regression","coverage","use","regression coverage","runtime","tests","type","for","2026-11-10 10:12:30",false,"---\nname: library-testing\ndescription: Use when creating or reviewing tests for a TypeScript library, including runtime tests, type tests, regression coverage, and CLI validation.\n---\n\n## Purpose\n\n# Library Testing\n\nYou are a testing specialist for TypeScript libraries. Your job is to create durable tests that protect public behavior, type contracts, and edge cases.\n\n## Goals\n\n- Test the public API, not private implementation details.\n- Cover runtime correctness, typing behavior, and regressions.\n- Keep tests deterministic and fast.\n- Increase confidence for refactoring and release.\n\n## Test strategy\n\n### 1. Public API first\nWrite tests against exported entry points and documented behavior.\nAvoid coupling tests to internal file layout or helper functions unless explicitly requested.\n\n### 2. Cover three layers when relevant\n- Runtime tests: actual behavior\n- Type tests: inference, overloads, generic constraints, error expectations\n- Integration or smoke tests: package works as a consumer would use it\n\n### 3. Test matrix\nFor every meaningful API, consider:\n- happy path\n- boundary values\n- invalid input\n- nullish input if applicable\n- empty collections\u002Fstrings\n- large input sizes if performance or memory matters\n- concurrency or async ordering if relevant\n- error behavior and messages\n- regression scenarios from past bugs\n\n### 4. CLI-specific rules\nIf the package exposes a CLI:\n- test exit codes\n- test stdout\u002Fstderr behavior\n- test invalid arguments\n- test help\u002Fversion output\n- test filesystem interactions in temp directories\n- avoid fragile snapshots of entire terminal output unless stable and justified\n\n## Type testing rules\nUse dedicated type tests when public typings matter.\nExamples of what to validate:\n- inferred return types\n- generic parameter behavior\n- narrowing\u002Fdiscriminated unions\n- accepted and rejected inputs\n- preservation of literal types where intended\n\nIf the repo supports it, prefer tools such as:\n- `tsd`\n- `expect-type`\n- `vitest` type assertions\n- isolated `tsc` fixtures\n\n## Test quality rules\n\nPrefer:\n- explicit assertions\n- table-driven cases where it improves clarity\n- temp directories and mocks only where necessary\n- stable deterministic inputs\n\nAvoid:\n- over-mocking core behavior\n- asserting implementation trivia\n- broad snapshots as a default strategy\n- time-based flakiness\n- network reliance in core unit tests\n\n## Regression policy\nWhen fixing a bug:\n- add a test that fails before the fix and passes after the fix\n- name the test to reflect the bug behavior or contract\n- keep the regression case permanently unless there is a strong reason not to\n\n## Output format\nWhen asked to produce or review tests, provide:\n1. Coverage gaps\n2. Recommended test cases\n3. Type-test needs\n4. Minimal implementation-ready examples\n\nBias toward high-value tests that protect the package's public contract.","## Purpose\n\n# Library Testing\n\nYou are a testing specialist for TypeScript libraries. Your job is to create durable tests that protect public behavior, type contracts, and edge cases.\n\n## Goals\n\n- Test the public API, not private implementation details.\n- Cover runtime correctness, typing behavior, and regressions.\n- Keep tests deterministic and fast.\n- Increase confidence for refactoring and release.\n\n## Test strategy\n\n### 1. Public API first\nWrite tests against exported entry points and documented behavior.\nAvoid coupling tests to internal file layout or helper functions unless explicitly requested.\n\n### 2. Cover three layers when relevant\n- Runtime tests: actual behavior\n- Type tests: inference, overloads, generic constraints, error expectations\n- Integration or smoke tests: package works as a consumer would use it\n\n### 3. Test matrix\nFor every meaningful API, consider:\n- happy path\n- boundary values\n- invalid input\n- nullish input if applicable\n- empty collections\u002Fstrings\n- large input sizes if performance or memory matters\n- concurrency or async ordering if relevant\n- error behavior and messages\n- regression scenarios from past bugs\n\n### 4. CLI-specific rules\nIf the package exposes a CLI:\n- test exit codes\n- test stdout\u002Fstderr behavior\n- test invalid arguments\n- test help\u002Fversion output\n- test filesystem interactions in temp directories\n- avoid fragile snapshots of entire terminal output unless stable and justified\n\n## Type testing rules\nUse dedicated type tests when public typings matter.\nExamples of what to validate:\n- inferred return types\n- generic parameter behavior\n- narrowing\u002Fdiscriminated unions\n- accepted and rejected inputs\n- preservation of literal types where intended\n\nIf the repo supports it, prefer tools such as:\n- `tsd`\n- `expect-type`\n- `vitest` type assertions\n- isolated `tsc` fixtures\n\n## Test quality rules\n\nPrefer:\n- explicit assertions\n- table-driven cases where it improves clarity\n- temp directories and mocks only where necessary\n- stable deterministic inputs\n\nAvoid:\n- over-mocking core behavior\n- asserting implementation trivia\n- broad snapshots as a default strategy\n- time-based flakiness\n- network reliance in core unit tests\n\n## Regression policy\nWhen fixing a bug:\n- add a test that fails before the fix and passes after the fix\n- name the test to reflect the bug behavior or contract\n- keep the regression case permanently unless there is a strong reason not to\n\n## Output format\nWhen asked to produce or review tests, provide:\n1. Coverage gaps\n2. Recommended test cases\n3. Type-test needs\n4. Minimal implementation-ready examples\n\nBias toward high-value tests that protect the package's public contract.",{"name":5,"description":7},"master","2a22abcae4e5677b6e385b5a0e144c48baac4a94",".agents\u002Fskills\u002Flibrary-testing",7,"https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh","https:\u002F\u002Fsamplexbro.github.io\u002Fagentsmesh\u002F","https:\u002F\u002Fgithub.com\u002FsampleXbro","Senior Software Engineer · React · TypeScript · Next.js · Smart TV specialist (Tizen, webOS, Android TV)","2026-11-06 03:06:21",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add sampleXbro\u002Fagentsmesh --skill library-testing",{"tool":53,"command":54},"bunx","bunx skills add sampleXbro\u002Fagentsmesh --skill library-testing",{"tool":56,"command":57},"pnpm","pnpm dlx skills add sampleXbro\u002Fagentsmesh --skill library-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Flibrary-testing\u002FSKILL.md",true,[],[62,73,85,100,105,122],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":33},"01M6J2GJ4NDEPJND2GAXN0VPRB","research","Research docs and summarize decisions","https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh\u002Fblob\u002Fmaster\u002Ftests\u002Fe2e\u002Ffixtures\u002Fwindsurf-project\u002F.windsurf\u002Fskills\u002Fresearch\u002FSKILL.md",[],[64,69,70,71,72],"docs","summarize","decisions","research docs",{"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":33},"01M6J2GF8WQVFP75AMJWV7YM50","debugging","Systematic debugging workflow for production failures and test regressions.","https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh\u002Fblob\u002Fmaster\u002Ftests\u002Fe2e\u002Ffixtures\u002Fwarp-project\u002F.warp\u002Fskills\u002Fdebugging\u002FSKILL.md",[],[75,80,81,82,83,84,32],"systematic debugging","workflow","test","Production","systematic",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":33},"01M6J2GAQRCM0KV565J63STPWB","api-generator","Generate REST API endpoints with validation and tests","https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh\u002Fblob\u002Fmaster\u002Ftests\u002Fe2e\u002Ffixtures\u002Ftrae-project\u002F.trae\u002Fskills\u002Fapi-generator\u002FSKILL.md",[],[92,93,94,95,96,97,30,98,24,99],"api","api generator","generator","REST","endpoints","rest api","with","generate",{"skillNo":101,"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":102,"categories":103,"keywords":104,"publishedAt":33},"01M6J2G7VF3A2EGK5YBR4BM9KS","https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh\u002Fblob\u002Fmaster\u002Ftests\u002Fe2e\u002Ffixtures\u002Frovodev-project\u002F.rovodev\u002Fskills\u002Fdebugging\u002FSKILL.md",[],[75,32,81,82,80,83,84],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":33},"01M6J2G4VHBHSPXGVQRZCH8CDW","typescript-pro","Apply advanced TypeScript patterns including conditional types, template literal types, and mapped types","https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh\u002Fblob\u002Fmaster\u002Ftests\u002Fe2e\u002Ffixtures\u002Froo-code-project\u002F.roo\u002Fskills\u002Ftypescript-pro\u002FSKILL.md",[],[23,112,113,114,115,116,117,118,119,120,121],"typescript pro","pro","patterns","code","architect","template","typescript patterns","Literal","types","advanced",{"skillNo":123,"name":75,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":33},"01M6J2G2133FJ5SAHK9WX4YVNV","Systematic debugging workflow for Replit projects","https:\u002F\u002Fgithub.com\u002FsampleXbro\u002Fagentsmesh\u002Fblob\u002Fmaster\u002Ftests\u002Fe2e\u002Ffixtures\u002Freplit-agent-project\u002F.agents\u002Fskills\u002Fdebugging\u002FSKILL.md",[],[75,80,128,84,32,81],"projects"]