test-master
ما الذي تفعله
يساعد وكيل الذكاء الاصطناعي على إنشاء اختبارات الوحدة والتكامل ومن طرف إلى طرف، وتخطيط طريقة اختبار المشروع. وهي مناسبة للمطورين وفريق ضمان الجودة.
متى تستخدمها
- ✓عندما تريد كتابة اختبارات لميزة جديدة أو لشيفرة قائمة.
- ✓عندما تحتاج إلى إيجاد الفجوات في تغطية الاختبارات.
- ✓عندما تفشل الاختبارات أو تكون متقلبة وتريد إصلاح السبب الجذري.
رابط المهارة
https://github.com/Jeffallan/claude-skills/blob/main/skills/test-master/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل تستطيع كتابة اختبارات وحدة لدالة التسعير هذه، وتخبرني بالحالات التي أغفلتها؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحدد الوكيل النطاق، ويكتب الاختبارات بفحوص واضحة، ثم يشغّلها ويصلح الإخفاقات، ويكتب تقريرا بتقييمات الخطورة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من 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
الأسئلة الشائعة
هل تكتب اختبارات الوحدة فقط؟
لا. تغطي أيضا اختبارات التكامل ومن طرف إلى طرف والأداء والأمان.
ما الأدوات التي تستخدمها؟
تستخدم أمثلتها Jest، وتذكر k6 وArtillery لاختبارات الأداء.
كيف تتعامل مع الاختبارات المتقلبة؟
تبحث عن مشكلات ترتيب التنفيذ ومشكلات async، ويمكنها إضافة منطق لإعادة المحاولة أو التثبيت.
التفاصيل
الوصف الأصلي من المؤلف
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
الشعبية
- نجوم GitHub
- 12k
- الترتيب
- #11464
- الترخيص
- MIT
- آخر تحديث
- 30/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
angular-architect
12kيساعد وكيلك على بناء تطبيقات Angular 17 والإصدارات الأحدث بمكونات مستقلة، وتوجيه بتحميل كسول، وإدارة حالة NgRx، وأنماط RxJS، وتحسين الأداء.
api-designer
12kيساعد وكيلك على تصميم واجهات REST أو GraphQL وكتابة مواصفات OpenAPI 3.1، مع قواعد للموارد والترقيم وصيغ الأخطاء والإصدارات.
architecture-designer
12kيساعد وكيلك على تصميم بنية الأنظمة، ومقارنة الأنماط والتقنيات، وكتابة سجلات قرارات المعمارية التي تشرح سبب كل اختيار.
atlassian-mcp
12kيساعد وكيلك على البحث في تذاكر Jira وصفحات Confluence وتحديثها عبر MCP، بما فيها استعلامات JQL وCQL والسبرنتات ومزامنة التوثيق.
مهارات مشابهة
test-driven-development
311kيعلّم وكيلك كتابة اختبار فاشل أولًا، ثم رؤيته يفشل، ثم كتابة أصغر شيفرة تنجحه، قبل بناء أي ميزة أو إصلاح.
verification-before-completion
311kيعلّم وكيلك تشغيل فحوصات حقيقية وقراءة نتائجها قبل أن يقول إن المهمة أو الإصلاح أو البناء مكتمل أو ناجح.
migrate-to-shoehorn
310kيستبدل تأكيدات النوع الخطرة في ملفات الاختبار بمكتبة shoehorn، حتى تتمكن الاختبارات من استخدام بيانات جزئية وتجتاز فحوص الأنواع.