[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CM7MC4HPX8K65KBFHSJKBA":3,"skill-same:01M7CM7MC4HPX8K65KBFHSJKBA":53},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7CM7MC4HPX8K65KBFHSJKBA","testing-patterns",null,"Testing patterns and principles. Unit, integration, mocking strategies.","haliltek\u002Fdev.tr","haliltek","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F31656259?v=4","01M7CKZCVHYRZ5CFNDBMFT5S7Q","Halil TEK","01M7CKZCWH3RX91D93NHE4DP2J",0,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\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\nversion: 1.0.0\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 (\u003C100ms) |\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 (\u003C100ms) |\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,"version":24,"description":7,"when_to_use":25,"allowed-tools":26},"1.0.0","When writing unit tests, integration tests, choosing testing frameworks, or implementing mocking strategies.","Read, Write, Edit, Glob, Grep, Bash","main","35fc33da79b31d7f8dadfc704083baff1b5672a0",".agents\u002Fskills\u002Ftesting-patterns","https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr","https:\u002F\u002Fgithub.com\u002Fhaliltek","2026-11-13 01:38:48",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add haliltek\u002Fdev.tr --skill testing-patterns",{"tool":39,"command":40},"bunx","bunx skills add haliltek\u002Fdev.tr --skill testing-patterns",{"tool":42,"command":43},"pnpm","pnpm dlx skills add haliltek\u002Fdev.tr --skill testing-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-patterns\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"scripts\u002Ftest_runner.py","SCRIPT","脚本",7078,"https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftesting-patterns\u002Fscripts\u002Ftest_runner.py",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CM8JAC0X6HVS8VCHH51KPZ","respectfully","Wraps any prompt with a reminder to respect CLAUDE.md files","https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frespectfully\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CM8FPHK4J5EP607Y77XHA4","recruiter","Think like a skeptical technical recruiter when working on the daily.dev Recruiter platform. Use when reviewing UI\u002FUX, features, or code in webapp\u002Fpages\u002Frecruiter.","https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frecruiter\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CM8CB9XR2W46XJ3T2X0245","changelog","Generate a daily.dev changelog post for a new feature or update. Use when a team member needs to write a changelog announcement.","https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fchangelog\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CM88HKHZP4S2H9GYKWCBPB","webapp-testing","Web application testing principles. E2E, Playwright, deep audit strategies.","https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CM831R2XYCHFNRGXD6NYS1","web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CM7XTJ13ZQFZ9Y5SRYF8CP","vulnerability-scanner","Advanced vulnerability analysis principles. OWASP 2025, Supply Chain Security, attack surface mapping, risk prioritization.","https:\u002F\u002Fgithub.com\u002Fhaliltek\u002Fdev.tr\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvulnerability-scanner\u002FSKILL.md",[],[]]