[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EG16VAJENYPWSW6THE232Y":3,"skill-same:01M6EG16VAJENYPWSW6THE232Y":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6EG16VAJENYPWSW6THE232Y","regression-tester",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fregression-tester\u002FSKILL.md",[],[18,19,20],"regression","tester","regression tester","2026-11-10 10:12:30",false,"# Regression Tester\n\n## Overview\n\nThis skill creates a safety net around refactoring work. It analyzes what changed, identifies the public API surface and behavior contracts of the refactored code, generates targeted regression tests that verify behavior is preserved, and runs them against both the old and new implementations to confirm equivalence.\n\n## Instructions\n\n### Step 1: Analyze the Refactoring Scope\n\n1. Get the diff: `git diff main...HEAD` or compare specific commits\n2. Categorize changes:\n   - **Signature changes** — function\u002Fmethod names, parameters, return types\n   - **Internal restructuring** — same API, different implementation\n   - **Extracted modules** — code moved to new files\u002Ffunctions\n   - **Behavioral changes** — intentional behavior modifications (flag these!)\n\n3. Identify the **behavior contract** for each changed unit:\n   - What inputs does it accept?\n   - What outputs does it produce?\n   - What side effects does it have? (DB writes, API calls, file I\u002FO)\n   - What errors does it throw and under what conditions?\n\n### Step 2: Check Existing Coverage\n\n1. Run existing tests: `npm test` \u002F `pytest` \u002F `go test .\u002F...`\n2. If tests pass, check coverage of the refactored code:\n   ```bash\n   npx jest --coverage --collectCoverageFrom='src\u002Frefactored-module\u002F**'\n   ```\n3. Identify untested code paths in the refactored area:\n   - Uncovered branches (if\u002Felse, switch cases, error handling)\n   - Edge cases (empty input, null, boundary values, concurrent access)\n   - Integration points (function calls to other modules)\n\n### Step 3: Generate Regression Tests\n\nCreate tests that verify behavior, not implementation:\n\n1. **Input\u002Foutput tests** — For pure functions, test that same inputs produce same outputs\n2. **Contract tests** — For APIs, verify request\u002Fresponse shape and status codes\n3. **Side-effect tests** — For stateful code, verify correct DB operations, events emitted\n4. **Error path tests** — Verify error handling behavior is preserved\n5. **Boundary tests** — Empty arrays, zero values, maximum lengths, unicode strings\n\n**Test structure:**\n```\ndescribe('[ModuleName] regression', () => {\n  describe('preserved behavior', () => {\n    \u002F\u002F Tests that MUST pass identically before and after refactor\n  });\n  describe('edge cases', () => {\n    \u002F\u002F Tests for boundary conditions\n  });\n  describe('error handling', () => {\n    \u002F\u002F Tests for error paths\n  });\n});\n```\n\n### Step 4: Verify Against Old Implementation\n\n1. Stash or commit current changes\n2. Checkout the pre-refactor code: `git stash && git checkout main`\n3. Run the new regression tests against the OLD code — they should all pass\n4. Return to refactored code: `git checkout - && git stash pop`\n5. Run the regression tests again — they should still all pass\n6. If any test fails on the refactored code but passed on the old code → regression found\n\n### Step 5: Report\n\n```\nRegression Test Report\n═══════════════════════\nRefactored: src\u002Fservices\u002Fbilling.ts (4 functions, 187 lines changed)\n\nTests generated: 24\n  Passed (old code): 24\u002F24  ✓\n  Passed (new code): 23\u002F24  ✗\n\n❌ REGRESSION FOUND:\n  test: \"calculates prorated amount for mid-cycle upgrade\"\n  Expected: 14.52\n  Received: 14.50\n  Location: src\u002Fservices\u002Fbilling.ts:89 (rounding changed from Math.ceil to Math.round)\n\n✓ All other behavior preserved.\n```\n\n## Examples\n\n### Example 1: Refactored Utility Functions\n\n**User prompt:**\n```\nI refactored our date utility module from moment.js to dayjs. Can you make sure nothing broke?\n```\n\n**Agent actions:**\n```bash\ngit diff main -- src\u002Futils\u002Fdates.ts\n```\n\n**Agent analysis:**\n```\nRefactoring scope: src\u002Futils\u002Fdates.ts\n  - Import changed: moment → dayjs\n  - 8 exported functions, all signatures preserved\n  - Internal parsing logic changed\n\nExisting test coverage: 3 tests covering 2 of 8 functions (25%)\n\nGenerated 18 regression tests covering:\n  ✓ formatDate() — 4 formats × 3 edge cases (null, invalid, timezone)\n  ✓ diffInDays() — positive, negative, same day, DST boundary\n  ✓ startOfWeek() — Sunday vs Monday locale, year boundary\n  ✓ parseISO() — valid, invalid, with\u002Fwithout timezone offset\n  ✓ isBusinessDay() — weekday, Saturday, Sunday, holiday handling\n  ✓ addBusinessDays() — skip weekends, cross month boundary\n\nResults against old code (moment.js): 18\u002F18 passed\nResults against new code (dayjs):     17\u002F18 passed\n\n❌ Regression: startOfWeek('2024-01-01') returns Sunday with dayjs\n   but returned Monday with moment (locale-dependent).\n   Fix: Add dayjs.extend(weekOfYear) and set locale explicitly.\n```\n\n### Example 2: Extracted Service Layer\n\n**User prompt:**\n```\nI split our monolithic UserController into UserService + UserController. Did I break anything?\n```\n\n**Agent output:**\n```\nAnalyzed refactoring: 1 file → 2 files\n  Old: src\u002Fcontrollers\u002FUserController.ts (342 lines)\n  New: src\u002Fcontrollers\u002FUserController.ts (98 lines) + src\u002Fservices\u002FUserService.ts (267 lines)\n\nPublic API surface: 6 endpoints unchanged (routes, params, response shapes)\nInternal: Business logic extracted to UserService, controller delegates\n\nGenerated 22 regression tests:\n  POST \u002Fusers — creation with valid data, duplicate email, missing fields\n  GET \u002Fusers\u002F:id — existing user, non-existent (404), invalid ID format\n  PUT \u002Fusers\u002F:id — partial update, full update, unauthorized (403)\n  DELETE \u002Fusers\u002F:id — soft delete, already deleted, cascade check\n  GET \u002Fusers — pagination, filtering, sorting, empty result\n\nResults: 22\u002F22 passed on both old and new code ✓\nNo regressions detected. Refactoring is safe.\n```\n\n## Guidelines\n\n- Test behavior, not implementation — don't assert on internal method calls\n- Run tests against BOTH old and new code to confirm equivalence\n- Flag intentional behavior changes separately from regressions\n- Focus test generation on the changed code, not the entire codebase\n- Include edge cases that the original code may not have tested\n- For database-touching code, use transactions that roll back after each test\n- If the refactoring changes performance characteristics, add benchmark comparisons\n- Keep regression tests permanent — they protect against future changes too\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fregression-tester",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill regression-tester",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill regression-tester",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill regression-tester","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fregression-tester\u002FSKILL.md",true,[],[49,63,73,82,88,95],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":59,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[54],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[60,61,62],"model","model hierarchy","model hierarchy skill",{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":69,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[68],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},[70,71,72],"MCP","zoom","zoom mcp",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[79,80,81,71],"sdk","zoom apps sdk","apps",{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":94,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[93],{"categoryNo":55,"categoryName":56,"taxonomyType":57,"taxonomyTypeDesc":58},[90],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[97]]