test-master
Fungsinya
Skill ini membantu AI membuat tes unit, integrasi, dan end-to-end, serta merencanakan cara proyek seharusnya diuji. Skill ini untuk pengembang dan staf QA.
Kapan dipakai
- βSaat Anda ingin tes ditulis untuk fitur baru atau untuk kode yang sudah ada.
- βSaat Anda perlu menemukan celah dalam cakupan tes Anda.
- βSaat tes Anda gagal atau tidak stabil dan Anda ingin penyebab utamanya diperbaiki.
Link skill
https://github.com/Jeffallan/claude-skills/blob/main/skills/test-master/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda menulis tes unit untuk fungsi harga ini dan memberi tahu kasus mana yang belum saya cakup?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI menentukan lingkup, menulis tes dengan pemeriksaan yang jelas, menjalankannya, memperbaiki kegagalan, lalu menulis laporan dengan peringkat keparahan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Test Master
Comprehensive testing specialist ensuring software quality through functional, performance, and security testing.
Core Workflow
- Define scope β Identify what to test and which testing types apply
- Create strategy β Plan the test approach across functional, performance, and security perspectives
- Write tests β Implement tests with proper assertions (see example below)
- Execute β Run tests and collect results
- If tests fail: classify the failure (assertion error vs. environment/flakiness), fix root cause, re-run
- If tests are flaky: isolate ordering dependencies, check async handling, add retry or stabilization logic
- Report β Document findings with severity ratings and actionable fix recommendations
- Verify coverage targets are met before closing; flag gaps explicitly
Quick-Start Example
A minimal Jest unit test illustrating the key patterns this skill enforces:
// β
Good: meaningful description, specific assertion, isolated dependency
describe('calculateDiscount', () => {
it('applies 10% discount for premium users', () => {
const result = calculateDiscount({ price: 100, userTier: 'premium' });
expect(result).toBe(90); // specific outcome, not just truthy
});
it('throws on negative price', () => {
expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))
.toThrow('Price must be non-negative');
});
});
Apply the same structure for pytest (def test_β¦, assert result == expected) and other frameworks.
Reference Guide
Load detailed guidance based on context:
<!-- TDD Iron Laws and Testing Anti-Patterns adapted from obra/superpowers by Jesse Vincent (@obra), MIT License -->| Topic | Reference | Load When |
|---|---|---|
| Unit Testing | references/unit-testing.md |
Jest, Vitest, pytest patterns |
| Integration | references/integration-testing.md |
API testing, Supertest |
| E2E | references/e2e-testing.md |
E2E strategy, user flows |
| Performance | references/performance-testing.md |
k6, load testing |
| Security | references/security-testing.md |
Security test checklist |
| Reports | references/test-reports.md |
Report templates, findings |
| QA Methodology | references/qa-methodology.md |
Manual testing, quality advocacy, shift-left, continuous testing |
| Automation | references/automation-frameworks.md |
Framework patterns, scaling, maintenance, team enablement |
| TDD Iron Laws | references/tdd-iron-laws.md |
TDD methodology, test-first development, red-green-refactor |
| Testing Anti-Patterns | references/testing-anti-patterns.md |
Test review, mock issues, test quality problems |
Constraints
MUST DO
- Test happy paths AND error/edge cases (e.g., empty input, null, boundary values)
- Mock external dependencies β never call real APIs or databases in unit tests
- Use meaningful
it('β¦')descriptions that read as plain-English specifications - Assert specific outcomes (
expect(result).toBe(90)), not just truthiness - Run tests in CI/CD; document and remediate coverage gaps
MUST NOT
- Skip error-path testing (e.g., don't test only the success branch of a try/catch)
- Use production data in tests β use fixtures or factories instead
- Create order-dependent tests β each test must be independently runnable
- Ignore flaky tests β quarantine and fix them; don't just re-run until green
- Test implementation details (internal method calls) β test observable behaviour
Output Templates
When creating test plans, provide:
- Test scope and approach
- Test cases with expected outcomes
- Coverage analysis
- Findings with severity (Critical/High/Medium/Low)
- Specific fix recommendations
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
Pertanyaan umum
Apakah skill ini hanya menulis tes unit?
Tidak. Skill ini juga mencakup pengujian integrasi, end-to-end, performa, dan keamanan.
Alat apa yang dipakai?
Contohnya memakai Jest, dan skill ini menyebut k6 dan Artillery untuk tes performa.
Bagaimana skill ini menangani tes yang tidak stabil?
Skill ini mencari masalah urutan dan masalah asinkron, serta dapat menambahkan logika retry atau stabilisasi.
Detail
Deskripsi asli dari pembuat
Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation frameworks; analyzing coverage gaps; performance testing with k6 or Artillery; security testing with OWASP methods; debugging flaky tests; or working on QA, regression, test automation, quality gates, shift-left testing, or test maintenance.
repo: Jeffallan/claude-skills
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11464
- Lisensi
- MIT
- Diperbarui
- 30/10/2026
Komentar
- β¦
Skill lain dari repositori ini
angular-architect
12kMembantu agent Anda membangun aplikasi Angular 17 ke atas dengan komponen standalone, routing lazy-loaded, status NgRx, pola RxJS, dan penyetelan kinerja.
api-designer
12kMembantu agent Anda merancang API REST atau GraphQL dan menulis spesifikasi OpenAPI 3.1, dengan aturan untuk sumber daya, paginasi, format error, dan versi.
architecture-designer
12kMembantu agent Anda merancang arsitektur sistem, membandingkan pola dan teknologi, serta menulis Architecture Decision Record yang menjelaskan setiap pilihan.
atlassian-mcp
12kMembantu agent Anda mencari dan memperbarui isu Jira serta halaman Confluence melalui MCP, termasuk kueri JQL dan CQL, sprint, dan sinkronisasi dokumentasi.
Skill serupa
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.