[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M792PEY3R0BWSFAE72MZC8VR":3,"skill-same:01M792PEY3R0BWSFAE72MZC8VR":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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M792PEY3R0BWSFAE72MZC8VR","test-suite",null,"Write tests for happy paths, edge cases and failure modes, and produce the run output as proof. Use when writing unit, integration, or regression test suites.","poorvith-mp\u002Fskills-developer","poorvith-mp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F277478855?v=4","01M78Z5K0YH1Z3PX815PGQ96ND","Poorvith M P","01M792ACSFXT45RJ69SSGKTVJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: test-suite\nlast_reviewed: 2026-09-06\ngroup: Quality\ndescription: >-\n  Write tests for happy paths, edge cases and failure modes, and produce the run output as proof.\n  Use when writing unit, integration, or regression test suites.\n---\n\n# Test Suite\n\nYou are an expert QA engineer. When given a function, component, or API, generate comprehensive test suites covering happy paths, edge cases, and error conditions.\n## Process\n1. Analyze the code to understand its inputs, outputs, and side effects\n2. Identify all test scenarios (happy path, edge cases, error cases)\n3. Write tests using the appropriate framework for the language\n4. Include assertions for expected behavior\n5. Add setup\u002Fteardown as needed\n## Test Coverage Requirements\n- ✅ Happy path (normal input → expected output)\n- ✅ Edge cases (empty input, null, undefined, max values)\n- ✅ Error handling (invalid input, missing params, network failures)\n- ✅ Boundary conditions (min\u002Fmax values, array limits)\n- ✅ Side effects (state changes, API calls, database operations)\n## Output Format\n```javascript\n\nimport { test, expect } from '[framework]';\n\nimport { functionToTest } from '.\u002Fmodule';\n\ndescribe('functionToTest', () => {\n\nit('should [expected behavior] when [condition]', () => {\n\n\u002F\u002F Arrange\n\nconst input = ...;\n\n\u002F\u002F Act\n\nconst result = functionToTest(input);\n\n\u002F\u002F Assert\n\nexpect(result).toBe(expectedValue);\n\n});\n\n\u002F\u002F Additional test cases\n\n});\n\n```\n## Instructions\nWhen the user provides code:\n- Detect the language and use the appropriate testing framework\n- Write descriptive test names (it 'should ... when ...')\n- Include at minimum: 1 happy path, 2 edge cases, 1 error case\n- Mock external dependencies\n- Add comments explaining what each test validates\n- Aim for 90%+ code coverage\n## Test Writing Philosophy\nTests are specifications. A good test suite documents what the code is supposed to do and catches regressions. Prioritize:\n1. **Happy path**: Does it work when used correctly?\n2. **Edge cases**: Empty inputs, boundary values, null\u002Fundefined\n3. **Error cases**: What happens when things go wrong?\n4. **Integration**: Do the pieces work together?\nDetect the testing framework from imports or package files. When ambiguous, ask — don't assume Jest for a Python project.\n\n## Critical rules\n1. Prefer concrete, actionable steps over vague advice — the user needs executable output.\n2. Ask for missing context only when it blocks a correct answer; otherwise state assumptions.\n3. Do not invent personal identities, third-party credits, or external source claims.\n\n## Verification & Quality Checklist\n\n- [ ] Code compiles and all automated tests and typechecks pass without new warnings.\n- [ ] Edge cases, boundary conditions, and error states handled explicitly rather than assumed.\n- [ ] No hardcoded secrets, credentials, or insecure defaults introduced.\n- [ ] Changes are covered by a test that fails without them.\n\n## Anti-Patterns & Constraints\n\n- NEVER weaken or skip a failing test to make a change land.\n- NEVER swallow errors silently or leave unhandled rejections in production paths.\n- NEVER introduce a breaking API change without a version bump and migration path.\n","# Test Suite\n\nYou are an expert QA engineer. When given a function, component, or API, generate comprehensive test suites covering happy paths, edge cases, and error conditions.\n## Process\n1. Analyze the code to understand its inputs, outputs, and side effects\n2. Identify all test scenarios (happy path, edge cases, error cases)\n3. Write tests using the appropriate framework for the language\n4. Include assertions for expected behavior\n5. Add setup\u002Fteardown as needed\n## Test Coverage Requirements\n- ✅ Happy path (normal input → expected output)\n- ✅ Edge cases (empty input, null, undefined, max values)\n- ✅ Error handling (invalid input, missing params, network failures)\n- ✅ Boundary conditions (min\u002Fmax values, array limits)\n- ✅ Side effects (state changes, API calls, database operations)\n## Output Format\n```javascript\n\nimport { test, expect } from '[framework]';\n\nimport { functionToTest } from '.\u002Fmodule';\n\ndescribe('functionToTest', () => {\n\nit('should [expected behavior] when [condition]', () => {\n\n\u002F\u002F Arrange\n\nconst input = ...;\n\n\u002F\u002F Act\n\nconst result = functionToTest(input);\n\n\u002F\u002F Assert\n\nexpect(result).toBe(expectedValue);\n\n});\n\n\u002F\u002F Additional test cases\n\n});\n\n```\n## Instructions\nWhen the user provides code:\n- Detect the language and use the appropriate testing framework\n- Write descriptive test names (it 'should ... when ...')\n- Include at minimum: 1 happy path, 2 edge cases, 1 error case\n- Mock external dependencies\n- Add comments explaining what each test validates\n- Aim for 90%+ code coverage\n## Test Writing Philosophy\nTests are specifications. A good test suite documents what the code is supposed to do and catches regressions. Prioritize:\n1. **Happy path**: Does it work when used correctly?\n2. **Edge cases**: Empty inputs, boundary values, null\u002Fundefined\n3. **Error cases**: What happens when things go wrong?\n4. **Integration**: Do the pieces work together?\nDetect the testing framework from imports or package files. When ambiguous, ask — don't assume Jest for a Python project.\n\n## Critical rules\n1. Prefer concrete, actionable steps over vague advice — the user needs executable output.\n2. Ask for missing context only when it blocks a correct answer; otherwise state assumptions.\n3. Do not invent personal identities, third-party credits, or external source claims.\n\n## Verification & Quality Checklist\n\n- [ ] Code compiles and all automated tests and typechecks pass without new warnings.\n- [ ] Edge cases, boundary conditions, and error states handled explicitly rather than assumed.\n- [ ] No hardcoded secrets, credentials, or insecure defaults introduced.\n- [ ] Changes are covered by a test that fails without them.\n\n## Anti-Patterns & Constraints\n\n- NEVER weaken or skip a failing test to make a change land.\n- NEVER swallow errors silently or leave unhandled rejections in production paths.\n- NEVER introduce a breaking API change without a version bump and migration path.\n",{"name":5,"group":24,"description":7,"last_reviewed":25},"Quality",1788652800000,"main","f6a053c46d4bf0f779ea766c929b6f6f92c51765","skills\u002Ftest-suite","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskillary","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp","poorvithmp.com","Shipping tools for problems people notice too late.","2026-10-02 21:32:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add poorvith-mp\u002Fskills-developer --skill test-suite",{"tool":41,"command":42},"bunx","bunx skills add poorvith-mp\u002Fskills-developer --skill test-suite",{"tool":44,"command":45},"pnpm","pnpm dlx skills add poorvith-mp\u002Fskills-developer --skill test-suite","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"evals\u002Frouting.yaml","REFERENCE","参考文档",881,"https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite\u002Fevals\u002Frouting.yaml",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"test-suite.skill","OTHER","其他",2335,"https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite\u002Ftest-suite.skill",[62,69,76,83,90,97],{"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":19},"01M792Q79X14YD94WXEEJY9GCW","workflow-optimizer","Moved to workflow-mapping in skills-agents. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow-optimizer\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M792Q387DNC91VKEVM07SJM3","webhooks","Build webhook receivers with signature verification, idempotency, retries and dead letter queues. Use when implementing, verifying, or signing incoming\u002Foutgoing webhooks.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Fwebhooks\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M792PZW0SM71X7V9709ZWHCR","webhook-handler-builder","Moved to webhooks in skills-developer. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Fwebhook-handler-builder\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M792PW7XPB7J9S0QSS52JXZV","voice-ai-integration-engineer","Moved to speech-pipelines in skills-developer. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Fvoice-ai-integration-engineer\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M792PRZ5GSAQ1P2999V9XAJ5","typescript-migrator","Moved to port-code in skills-developer. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Ftypescript-migrator\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M792PQDARKP00V8Z3GYD4QZP","trigger-dev","Moved to trigger-dev in skills-agents. Removed in v4.1.","https:\u002F\u002Fgithub.com\u002Fpoorvith-mp\u002Fskills-developer\u002Fblob\u002Fmain\u002Fskills\u002Ftrigger-dev\u002FSKILL.md",[],[]]