regression-suite
ما الذي تفعله
تحتفظ هذه المهارة بقائمة لأهم الاختبارات في مشروع لعبة، وتتحقق من أن الأخطاء المُصلحة مغطاة. وهي موجهة لقادة ضمان الجودة والمطورين الذين يريدون منع عودة الأخطاء القديمة.
متى تستخدمها
- ✓عندما يصلح مطور خطأً ويحتاج إلى التأكد من كتابة اختبار انحدار له.
- ✓عندما يريد الفريق معرفة ما إذا كانت مسارات اللعب الأساسية مغطاة بالاختبارات قبل الإصدار.
- ✓عندما تنتهي دورة عمل ويريد الفريق التأكد من اختبار الميزات الجديدة.
رابط المهارة
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/regression-suite/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“تحقق من أن كل خطأ أصلحناه في هذه الدورة له اختبار انحدار، وأخبرني بما ينقص.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تربط المهارة اختبارات المشروع بمسارات اللعب الحرجة وبالأخطاء التي أُصلحت. تكتب قائمة مجموعة الانحدار، وتبلغ عن أي إصلاحات أو ميزات تفتقر إلى التغطية.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation,workflow,qa.level,system_overrides
Resolved above — use as-is. No block → defaults in
.claude/docs/config-resolution.md.
Regression Suite
This skill ensures that every bug fix is backed by a test that would have caught the original bug — and that the regression suite stays current as the game evolves. It also detects when new features have been added without corresponding regression coverage.
A regression suite is not a new test category — it is a curated list of
tests already in tests/ that collectively cover the game's critical paths
and known failure points. This skill maintains that list.
Output: tests/regression-suite.md
When to run:
- After fixing a bug (confirm a regression test was written or identify gap)
- Before a phase gate — at
qa.level: full,/gate-checkrequires a regression suite - As part of sprint close to detect coverage drift
Every AskUserQuestion call follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Workflow tier: modes.workflow as resolved above — supplied by modes.rigor
unless set explicitly — per .claude/docs/workflow-modes.md; in audit mode consider
workflow_overrides.system_overrides.<system> per system as each GDD is read. It
sets whether GDD critical paths are mapped or coverage is smoke-only — see Step 2c.
qa.level: controls whether the suite is generated at
all. At minimal, the regression suite is not generated (report that and
stop); at standard, generate it at Polish-stage entry; at full, at
Production-stage entry. Distinct axis from workflow.
1. Parse Arguments
Early qa.level guard (resolved above): if qa.level: minimal, the
regression suite is not generated — report "Regression suite not generated at
qa.level minimal" and STOP here, before any scan, in every mode
(update / audit / report). This is the qa.level axis; it is distinct from
the workflow-tier minimal branch in Step 2c (which only changes the
critical-path source, not whether the suite runs). Do not enter Step 2c's
minimal branch on account of qa.level. This stop's verdict is
NOT ASSESSED (Section 7) — tests are not required at this level, and nothing
was scanned.
Modes:
/regression-suite update— scan new bug fixes this sprint and check for regression test presence; add new tests to the suite manifest/regression-suite audit— full audit of all GDD critical paths vs. existing test coverage; flag paths with no regression test/regression-suite report— read-only status report (no writes); suitable for sprint reviews- No argument — if a sprint is clearly active (sprint plan exists with in-progress stories), run
update. If ambiguous or no active sprint is detected, useAskUserQuestion:- Prompt: "No subcommand specified. Which mode do you want to run?"
- Options:
[A] update — scan new bug fixes this sprint and add missing regression tests[B] audit — full audit of all GDD critical paths vs. existing test coverage[C] report — read-only status report (no writes)
2. Load Context
Step 2a — Load existing regression suite
Read tests/regression-suite.md if it exists. Extract:
- Total registered regression tests
- Last updated date
- Any tests flagged as
STALEorQUARANTINED
If it does not exist: note "No regression suite found — will create one."
Step 2b — Load test inventory
Glob all test files:
tests/unit/**/*_test.*
tests/integration/**/*_test.*
tests/regression/**/*
For each file, note the system (from directory path) and file name. Do not read test file contents unless needed for name-to-test mapping.
Step 2c — Load GDD critical paths
For audit mode: read design/gdd/systems-index.md to get all systems, then
scope the scan by each system's workflow tier (resolved above):
full— read the GDD and map critical paths from all sections.standard— same, from the required sections (Acceptance Criteria, Edge Cases, and Formulas where the system defines numeric rules). A system pinned higher viasystem_overridesis mapped at its higher tier.minimal— skip the GDD critical-path scan. Instead read the latest smoke-check report inproduction/qa/smoke-*.mdand take the criti
الأسئلة الشائعة
ما مجموعة الانحدار؟
هي قائمة منتقاة من الاختبارات الموجودة، تغطي معاً أهم مسارات اللعبة والإخفاقات السابقة.
هل تكتب اختبارات جديدة؟
تحدد الفجوات حتى يقرر الفريق أي الاختبارات يضيف.
متى تكون مطلوبة؟
في أشد مستويات ضمان الجودة صرامة، تشترط بوابة الفحص وجود مجموعة انحدار قبل التقدم.
التفاصيل
الوصف الأصلي من المؤلف
Map test coverage to GDD critical paths, find fixed bugs lacking regression tests, flag drift from new features.
الشعبية
- نجوم GitHub
- 33k
- الترتيب
- #8473
- الترخيص
- MIT
- آخر تحديث
- 18/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
adopt
33kيتحقق من أن وثائق مشروع لعبة قائم تتبع صيغ قالب الاستوديو، ثم يكتب خطة ترحيل مرقمة لسد أي فجوات.
architecture-decision
33kيكتب سجل قرار معماري لاختيار تقني، يغطي السياق والبدائل والعواقب، ويراجعه الأدوار التقنية المناسبة.
architecture-review
33kيتحقق من أن قراراتك التقنية تغطي كل متطلبات التصميم، ولا تتعارض، وتناسب إصدار المحرك، مع حكم واضح بالنجاح أو الملاحظة.
art-bible
33kيكتب كتاب الفن الذي يحدد الهوية البصرية للعبة، حتى تتبع إنتاج الأصول قواعد أسلوب واحدة واضحة.
مهارات مشابهة
test-driven-development
311kيعلّم وكيلك كتابة اختبار فاشل أولًا، ثم رؤيته يفشل، ثم كتابة أصغر شيفرة تنجحه، قبل بناء أي ميزة أو إصلاح.
verification-before-completion
311kيعلّم وكيلك تشغيل فحوصات حقيقية وقراءة نتائجها قبل أن يقول إن المهمة أو الإصلاح أو البناء مكتمل أو ناجح.
migrate-to-shoehorn
310kيستبدل تأكيدات النوع الخطرة في ملفات الاختبار بمكتبة shoehorn، حتى تتمكن الاختبارات من استخدام بيانات جزئية وتجتاز فحوص الأنواع.