[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E86HEENP8MS1JVDS29N226":3,"skill-same:01M7E86HEENP8MS1JVDS29N226":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":13,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7E86HEENP8MS1JVDS29N226","testing-patterns",null,"Testing patterns and principles. Unit, integration, mocking strategies.","wsmsistemassuporte\u002FSISTEMAS-INTEGRADOS","wsmsistemassuporte","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F227585707?v=4","01M7E7Y8EBZQEXD14Q9CYW4XHB","01M7E7Y8FBFB64X3F61T38KRG7",0,"MIT","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: testing-patterns\ndescription: Testing patterns and principles. Unit, integration, mocking strategies.\nwhen_to_use: \"When writing unit tests, integration tests, choosing testing frameworks, or implementing mocking strategies.\"\nallowed-tools: Read, Write, Edit, Glob, Grep, Bash\n---\n\n# Testing Patterns\n\n> Principles for reliable test suites.\n\n---\n\n## 1. Testing Pyramid\n\n```\n        \u002F\\          E2E (Few)\n       \u002F  \\         Critical flows\n      \u002F----\\\n     \u002F      \\       Integration (Some)\n    \u002F--------\\      API, DB queries\n   \u002F          \\\n  \u002F------------\\    Unit (Many)\n                    Functions, classes\n```\n\n---\n\n## 2. AAA Pattern\n\n| Step | Purpose |\n|------|---------|\n| **Arrange** | Set up test data |\n| **Act** | Execute code under test |\n| **Assert** | Verify outcome |\n\n---\n\n## 3. Test Type Selection\n\n### When to Use Each\n\n| Type | Best For | Speed |\n|------|----------|-------|\n| **Unit** | Pure functions, logic | Fast (\u003C50ms) |\n| **Integration** | API, DB, services | Medium |\n| **E2E** | Critical user flows | Slow |\n\n---\n\n## 4. Unit Test Principles\n\n### Good Unit Tests\n\n| Principle | Meaning |\n|-----------|---------|\n| Fast | \u003C 100ms each |\n| Isolated | No external deps |\n| Repeatable | Same result always |\n| Self-checking | No manual verification |\n| Timely | Written with code |\n\n### What to Unit Test\n\n| Test | Don't Test |\n|------|------------|\n| Business logic | Framework code |\n| Edge cases | Third-party libs |\n| Error handling | Simple getters |\n\n---\n\n## 5. Integration Test Principles\n\n### What to Test\n\n| Area | Focus |\n|------|-------|\n| API endpoints | Request\u002Fresponse |\n| Database | Queries, transactions |\n| External services | Contracts |\n\n### Setup\u002FTeardown\n\n| Phase | Action |\n|-------|--------|\n| Before All | Connect resources |\n| Before Each | Reset state |\n| After Each | Clean up |\n| After All | Disconnect |\n\n---\n\n## 6. Mocking Principles\n\n### When to Mock\n\n| Mock | Don't Mock |\n|------|------------|\n| External APIs | The code under test |\n| Database (unit) | Simple dependencies |\n| Time\u002Frandom | Pure functions |\n| Network | In-memory stores |\n\n### Mock Types\n\n| Type | Use |\n|------|-----|\n| Stub | Return fixed values |\n| Spy | Track calls |\n| Mock | Set expectations |\n| Fake | Simplified implementation |\n\n---\n\n## 7. Test Organization\n\n### Naming\n\n| Pattern | Example |\n|---------|---------|\n| Should behavior | \"should return error when...\" |\n| When condition | \"when user not found...\" |\n| Given-when-then | \"given X, when Y, then Z\" |\n\n### Grouping\n\n| Level | Use |\n|-------|-----|\n| describe | Group related tests |\n| it\u002Ftest | Individual case |\n| beforeEach | Common setup |\n\n---\n\n## 8. Test Data\n\n### Strategies\n\n| Approach | Use |\n|----------|-----|\n| Factories | Generate test data |\n| Fixtures | Predefined datasets |\n| Builders | Fluent object creation |\n\n### Principles\n\n- Use realistic data\n- Randomize non-essential values (faker)\n- Share common fixtures\n- Keep data minimal\n\n---\n\n## 9. Best Practices\n\n| Practice | Why |\n|----------|-----|\n| One assert per test | Clear failure reason |\n| Independent tests | No order dependency |\n| Fast tests | Run frequently |\n| Descriptive names | Self-documenting |\n| Clean up | Avoid side effects |\n\n---\n\n## 10. Anti-Patterns\n\n| ❌ Don't | ✅ Do |\n|----------|-------|\n| Test implementation | Test behavior |\n| Duplicate test code | Use factories |\n| Complex test setup | Simplify or split |\n| Ignore flaky tests | Fix root cause |\n| Skip cleanup | Reset state |\n\n---\n\n> **Remember:** Tests are documentation. If someone can't understand what the code does from the tests, rewrite them.\n","# Testing Patterns\n\n> Principles for reliable test suites.\n\n---\n\n## 1. Testing Pyramid\n\n```\n        \u002F\\          E2E (Few)\n       \u002F  \\         Critical flows\n      \u002F----\\\n     \u002F      \\       Integration (Some)\n    \u002F--------\\      API, DB queries\n   \u002F          \\\n  \u002F------------\\    Unit (Many)\n                    Functions, classes\n```\n\n---\n\n## 2. AAA Pattern\n\n| Step | Purpose |\n|------|---------|\n| **Arrange** | Set up test data |\n| **Act** | Execute code under test |\n| **Assert** | Verify outcome |\n\n---\n\n## 3. Test Type Selection\n\n### When to Use Each\n\n| Type | Best For | Speed |\n|------|----------|-------|\n| **Unit** | Pure functions, logic | Fast (\u003C50ms) |\n| **Integration** | API, DB, services | Medium |\n| **E2E** | Critical user flows | Slow |\n\n---\n\n## 4. Unit Test Principles\n\n### Good Unit Tests\n\n| Principle | Meaning |\n|-----------|---------|\n| Fast | \u003C 100ms each |\n| Isolated | No external deps |\n| Repeatable | Same result always |\n| Self-checking | No manual verification |\n| Timely | Written with code |\n\n### What to Unit Test\n\n| Test | Don't Test |\n|------|------------|\n| Business logic | Framework code |\n| Edge cases | Third-party libs |\n| Error handling | Simple getters |\n\n---\n\n## 5. Integration Test Principles\n\n### What to Test\n\n| Area | Focus |\n|------|-------|\n| API endpoints | Request\u002Fresponse |\n| Database | Queries, transactions |\n| External services | Contracts |\n\n### Setup\u002FTeardown\n\n| Phase | Action |\n|-------|--------|\n| Before All | Connect resources |\n| Before Each | Reset state |\n| After Each | Clean up |\n| After All | Disconnect |\n\n---\n\n## 6. Mocking Principles\n\n### When to Mock\n\n| Mock | Don't Mock |\n|------|------------|\n| External APIs | The code under test |\n| Database (unit) | Simple dependencies |\n| Time\u002Frandom | Pure functions |\n| Network | In-memory stores |\n\n### Mock Types\n\n| Type | Use |\n|------|-----|\n| Stub | Return fixed values |\n| Spy | Track calls |\n| Mock | Set expectations |\n| Fake | Simplified implementation |\n\n---\n\n## 7. Test Organization\n\n### Naming\n\n| Pattern | Example |\n|---------|---------|\n| Should behavior | \"should return error when...\" |\n| When condition | \"when user not found...\" |\n| Given-when-then | \"given X, when Y, then Z\" |\n\n### Grouping\n\n| Level | Use |\n|-------|-----|\n| describe | Group related tests |\n| it\u002Ftest | Individual case |\n| beforeEach | Common setup |\n\n---\n\n## 8. Test Data\n\n### Strategies\n\n| Approach | Use |\n|----------|-----|\n| Factories | Generate test data |\n| Fixtures | Predefined datasets |\n| Builders | Fluent object creation |\n\n### Principles\n\n- Use realistic data\n- Randomize non-essential values (faker)\n- Share common fixtures\n- Keep data minimal\n\n---\n\n## 9. Best Practices\n\n| Practice | Why |\n|----------|-----|\n| One assert per test | Clear failure reason |\n| Independent tests | No order dependency |\n| Fast tests | Run frequently |\n| Descriptive names | Self-documenting |\n| Clean up | Avoid side effects |\n\n---\n\n## 10. Anti-Patterns\n\n| ❌ Don't | ✅ Do |\n|----------|-------|\n| Test implementation | Test behavior |\n| Duplicate test code | Use factories |\n| Complex test setup | Simplify or split |\n| Ignore flaky tests | Fix root cause |\n| Skip cleanup | Reset state |\n\n---\n\n> **Remember:** Tests are documentation. If someone can't understand what the code does from the tests, rewrite them.\n",{"name":5,"description":7,"when_to_use":23,"allowed-tools":24},"When writing unit tests, integration tests, choosing testing frameworks, or implementing mocking strategies.","Read, Write, Edit, Glob, Grep, Bash","main","03e6fa14256a912975cc697432387c6a73a449e5",".agents\u002Fskills\u002Ftesting-patterns","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte","2026-10-22 09:39:15",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add wsmsistemassuporte\u002FSISTEMAS-INTEGRADOS --skill testing-patterns",{"tool":37,"command":38},"bunx","bunx skills add wsmsistemassuporte\u002FSISTEMAS-INTEGRADOS --skill testing-patterns",{"tool":40,"command":41},"pnpm","pnpm dlx skills add wsmsistemassuporte\u002FSISTEMAS-INTEGRADOS --skill testing-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-patterns\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"scripts\u002Ftest_runner.py","SCRIPT","脚本",7078,"https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-patterns\u002Fscripts\u002Ftest_runner.py",[52,61,68,76,83,90],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":56,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7EATGN515CGWA7REA8NZV6D","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EATB6MD07AZB5HN4R1M89B","youtube-downloader","Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fvideo-downloader\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":56,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7EASZB81GGX64TVYBWXD5WA","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7EASX7B6KH7HP31HZ8MHB5Q","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftemplate-skill\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7EASS5PBF4QB0AMV9D7TRNS","tailored-resume-generator","Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftailored-resume-generator\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":56,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M7EASJBPTYHRW144CB4P4F4E","slack-gif-creator","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwsmsistemassuporte\u002FSISTEMAS-INTEGRADOS\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fslack-gif-creator\u002FSKILL.md",[],[]]