[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZMRDW16PY4ASHEN1DTE70":3,"skill-same:01M6CZMRDW16PY4ASHEN1DTE70":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":7,"ownerHtmlUrl":40,"ownerBlogUrl":7,"ownerDescription":7,"updatedAt":41,"install":42,"resources":55},"01M6CZMRDW16PY4ASHEN1DTE70","test-generator","测试用例生成",null,"","Testing-itay\u002FDevTools-Security-Lab","Testing-itay","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230151326?v=4","01M6CZH4Q5Z571N5ZRZWMQ3YBS","01M6CZH4W55EHV4P1D3SNNRXSS",0,"MIT","https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Ftest-generator\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[29,30],"test","test generator","2026-11-10 10:12:30",false,"\n\n\n\n---\nname: Test Generator\ndescription: Generate comprehensive unit tests for functions and classes.\nallowed-tools: Read, Write, Shell\n---\n\n# Test Generator Skill\n\nGenerate high-quality unit tests that maximize coverage and confidence in the codebase.\n\n## Test Generation Strategies\n\n1. **Input Partitioning**: Identify equivalence classes and boundary values. Test empty inputs, single items, max-size collections, and invalid types.\n\n2. **State Coverage**: For stateful objects, test initialization, transitions, and terminal states. Cover happy path and all error branches.\n\n3. **Mocking Patterns**: Mock external dependencies (HTTP, DB, file system) at boundaries. Use dependency injection to enable test doubles. Avoid over-mocking; prefer real objects for pure logic.\n\n4. **Assertions**: Use descriptive assertion messages. Prefer specific matchers (e.g., `toThrowWithMessage`) over generic ones. Assert on observable behavior, not implementation details.\n\n## Coverage Targets\n\n- Aim for 80%+ line coverage on business logic; 100% on critical paths (auth, payments, data integrity).\n- Prioritize branch coverage over line coverage for complex conditionals.\n- Use **Read** to understand the function\u002Fclass under test, **Write** to create test files, and **Shell** to run the test suite and verify results.\n\n## Output Format\n\n- Place tests in the project's standard test directory (e.g., `tests\u002F`, `__tests__\u002F`, `*.test.ts`).\n- Follow existing test naming and structure conventions.\n- Include setup\u002Fteardown where needed and ensure tests are isolated and repeatable.\n",{},"main","1188d0dcbd4e64256d35bfe14c955ba1c541b1de",".cursor\u002Fskills\u002Ftest-generator",13,"https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab","https:\u002F\u002Fgithub.com\u002FTesting-itay","2026-10-16 16:13:27",{"source":9,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Testing-itay\u002FDevTools-Security-Lab --skill test-generator",{"tool":48,"command":49},"bunx","bunx skills add Testing-itay\u002FDevTools-Security-Lab --skill test-generator",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Testing-itay\u002FDevTools-Security-Lab --skill test-generator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Ftest-generator\u002FSKILL.md",true,[],[57,66,75,91,107,119],{"skillNo":58,"name":59,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":31},"01M6CZR9VVRMS754ZKH7NPNMB1","sds-plugin-a11y-check","https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab\u002Fblob\u002Fmain\u002Fsrc\u002FnewDIR\u002Fbundles\u002Fplugins\u002Fsds-frontend-plugin\u002Fskills\u002Fsds-plugin-a11y-check\u002FSKILL.md",[],[63,64,65],"sds plugin a11y check","check","plugin",{"skillNo":67,"name":68,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":31},"01M6CZR8FQ30QGEV5D3SB6DDKP","endpoint-review","https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab\u002Fblob\u002Fmain\u002Fsrc\u002FnewDIR\u002Fbundles\u002Fplugins\u002Fpython-api-plugin\u002Fskills\u002Fendpoint-review\u002FSKILL.md",[],[72,73,74],"endpoint review","endpoint","review",{"skillNo":76,"name":77,"nameZh":78,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":79,"categories":80,"keywords":87,"publishedAt":31},"01M6CZR6TYBN5EMBM70E096E66","schema-draft","数据库Schema草案设计","https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab\u002Fblob\u002Fmain\u002Fsrc\u002FnewDIR\u002Fbundles\u002Fplugins\u002Fpython-api-plugin\u002Fagents\u002Fpy-plugin-endpoint-designer\u002Fskills\u002Fschema-draft\u002FSKILL.md",[81,84],{"categoryNo":82,"categoryName":83,"taxonomyType":26,"taxonomyTypeDesc":27},"01M8BS1P4QM1G70C9FKMTZ88VK","数据库管理",{"categoryNo":85,"categoryName":86,"taxonomyType":21,"taxonomyTypeDesc":22},"01M8BTGTEHKD89NSZ5CT4Y5AGV","数据工程师",[88,89,90],"schema","schema draft","draft",{"skillNo":92,"name":93,"nameZh":94,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":95,"categories":96,"keywords":103,"publishedAt":31},"01M6CZR5SDWF91FHDK54XHXS67","doc-outline","文档大纲生成","https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab\u002Fblob\u002Fmain\u002Fsrc\u002FnewDIR\u002Fbundles\u002Fplugins\u002Fai-documentation-workflow\u002Fskills\u002Fdoc-outline\u002FSKILL.md",[97,100],{"categoryNo":98,"categoryName":99,"taxonomyType":26,"taxonomyTypeDesc":27},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":101,"categoryName":102,"taxonomyType":21,"taxonomyTypeDesc":22},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",[104,105,106],"doc outline","outline","doc",{"skillNo":108,"name":59,"nameZh":109,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":110,"categories":111,"keywords":118,"publishedAt":31},"01M6CZR3Z4WZCBA5FVJZB65B1Y","SDS插件无障碍检查","https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab\u002Fblob\u002Fmain\u002Fsrc\u002FnewD\u002FnewDIR\u002Fbundles\u002Fplugins\u002Fsds-frontend-plugin\u002Fskills\u002Fsds-plugin-a11y-check\u002FSKILL.md",[112,115],{"categoryNo":113,"categoryName":114,"taxonomyType":21,"taxonomyTypeDesc":22},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":116,"categoryName":117,"taxonomyType":26,"taxonomyTypeDesc":27},"01M8C0KXSTFVNZCAY3CD7ATQM3","无障碍合规检查",[63,64,65],{"skillNo":120,"name":68,"nameZh":121,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":7,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":7,"sourceHtmlUrl":122,"categories":123,"keywords":130,"publishedAt":31},"01M6CZR2PR7T4XYSJJWQYYPXVW","API端点审查","https:\u002F\u002Fgithub.com\u002FTesting-itay\u002FDevTools-Security-Lab\u002Fblob\u002Fmain\u002Fsrc\u002FnewD\u002FnewDIR\u002Fbundles\u002Fplugins\u002Fpython-api-plugin\u002Fskills\u002Fendpoint-review\u002FSKILL.md",[124,127],{"categoryNo":125,"categoryName":126,"taxonomyType":21,"taxonomyTypeDesc":22},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":128,"categoryName":129,"taxonomyType":26,"taxonomyTypeDesc":27},"01M8CJ3T58C1GFPAH8M3Y8VR5K","后端开发",[74,72,73]]