المهارات test-fixing
📦

test-fixing

آمن

Fix Failing Tests Systematically

When tests fail after refactoring or code changes, this skill groups errors by type and root cause, then fixes each group methodically to get the test suite passing.

يدعم: Claude Codex Code(CC)
🥉 75 برونزي
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "test-fixing". The tests are failing after my recent refactor. I renamed several modules and now have 12 failing tests.

النتيجة المتوقعة:

Running test suite to identify all failures...

Found 12 failing tests:
- 6 ImportErrors (module renaming impact)
- 4 AttributeErrors (function signature changes)
- 2 AssertionErrors (logic changes)

Prioritizing by impact:
1. ImportErrors (6 tests) - fixing first
2. AttributeErrors (4 tests)
3. AssertionErrors (2 tests)

Starting with ImportError group: analyzing module structure...

استخدام "test-fixing". Help me fix the failing tests in the API module. They started failing after I updated the dependencies.

النتيجة المتوقعة:

Running focused test on API module: pytest tests/api/ -v

Grouping failures by error type:
- 3 ImportError (missing dependency)
- 2 AssertionError (API response format changed)

Following fix order strategy:
1. Fix infrastructure: add missing dependency
2. Fix logic: update assertion for new response format

Verifying each fix with targeted test runs...

التدقيق الأمني

آمن
v1 • 2/25/2026

All static findings are false positives. The skill is documentation-only (SKILL.md) with no executable code. The detected 'external_commands' are markdown examples of CLI commands, not actual shell executions. The 'weak cryptographic algorithm' finding is a scanner misidentification with no cryptographic code present.

1
الملفات التي تم فحصها
122
الأسطر التي تم تحليلها
0
النتائج
1
إجمالي عمليات التدقيق
لا توجد مشكلات أمنية
تم تدقيقه بواسطة: claude

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
50
المجتمع
100
الأمان
100
الامتثال للمواصفات

ماذا يمكنك بناءه

Fix Tests After Refactoring

After renaming modules or functions across a codebase, this skill helps identify all affected test failures, groups them by type, and systematically fixes each group.

Handle CI/CD Test Failures

When CI pipeline fails due to test errors, use this skill to group failures, understand root causes, and fix systematically before retrying the pipeline.

Debug Multiple Test Failures

When running a large test suite reveals many failures, this skill helps prioritize which to fix first based on dependency order and impact.

جرّب هذه الموجهات

Basic Test Fix Request
The tests are failing after my recent changes. Please help me fix them using the test-fixing skill. Run the test suite first to see all failures.
Post-Refactor Test Fixing
I refactored my codebase and now 15 tests are failing. Use smart error grouping to categorize these failures and fix them in the right order. Start by running make test to see all failures.
CI Pipeline Test Debugging
My CI pipeline failed due to test errors. Use the test-fixing skill to identify the root cause of each failure. Prioritize infrastructure issues like import errors and missing dependencies first.
Subset Test Fixing
I have 5 ImportError failures in my auth module tests. Fix these specific failures first, verify they pass, then we will move to other error groups.

أفضل الممارسات

  • Run focused test subsets after each fix to verify the change works before moving to the next group
  • Fix infrastructure issues (imports, dependencies, config) before logic bugs for cleaner error states
  • Use git diff to understand what changed recently and identify root causes of test failures
  • Keep changes minimal and focused - fix one issue at a time rather than bulk changes

تجنب

  • Fixing all tests at once without running subsets - this makes it hard to identify which fix resolved which error
  • Ignoring infrastructure errors and trying to fix logic errors first - import failures will mask real issues
  • Making large, sweeping changes instead of targeted fixes - increases risk of introducing new bugs
  • Skipping the final full test suite run - may miss regressions introduced during fixing

الأسئلة المتكررة

How does this skill handle test failures?
This skill runs the test suite, groups failures by error type and root cause, then fixes each group systematically starting with highest impact.
Does this skill execute tests automatically?
The skill provides the methodology and commands to run. You execute the test commands (make test, pytest) as the user.
What test frameworks does this work with?
The skill works with any test framework (pytest, Jest, RSpec, etc.) - it focuses on error grouping methodology, not specific framework syntax.
Can this fix flaky tests?
No, this skill focuses on deterministic test failures. Flaky tests require different debugging approaches.
How do I prioritize which failures to fix first?
Follow the fix order strategy: infrastructure first (imports, dependencies), then API changes (signatures, modules), then logic issues (assertions, bugs).
What if tests fail due to missing dependencies?
Missing dependencies are infrastructure errors - fix these first as they often cause cascading failures in other test groups.

تفاصيل المطور

المؤلف

sickn33

الترخيص

MIT

مرجع

main

بنية الملفات

📄 SKILL.md