test-setup
ما الذي تفعله
تهيئ هذه المهارة الأساس الآلي للاختبار في مشروع لعبة، بما فيه المجلدات ومشغّل اختبارات المحرك وسير عمل CI. وهي موجهة للفرق التي تبدأ الإعداد التقني وتريد الاختبارات منذ البداية.
متى تستخدمها
- ✓عندما يصل مشروع لعبة إلى الإعداد التقني ويحتاج إلى إطار اختبار قبل أي برمجة.
- ✓عندما يريد الفريق تشغيل الاختبارات تلقائياً مع كل دفع للشيفرة.
- ✓عندما لا يملك المشروع مجلدات اختبار ولا سير عمل CI بعد.
رابط المهارة
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/test-setup/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أعدّ إطار الاختبار وCI للعبة Unity الخاصة بي قبل أن تبدأ دورتنا الأولى.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تكتشف المهارة المحرك، وتعرض خطة، ثم تنشئ مجلدات الاختبار القياسية وإعداد المشغّل وملف سير عمل GitHub Actions. وهي مصممة للتشغيل مرة واحدة قبل بدء التنفيذ.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation,workflow,qa.level
Automation mode: Resolve modes.automation (project.local.yaml →
project.yaml → default collaborative). Every AskUserQuestion call and
every file write follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Test Setup
This skill scaffolds the automated testing infrastructure for the project. It detects the configured engine, generates the appropriate test runner configuration, creates the standard directory layout, and wires up CI/CD so tests run on every push.
Run this once during the Technical Setup phase, before any implementation begins. A test framework installed at sprint start costs 30 minutes. A test framework installed at sprint four costs 3 sprints.
Output: tests/ directory structure + .github/workflows/tests.yml
Phase 1: Detect Engine and Existing State
Read references/1-detect.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
Phase 2: Present Plan
Read references/2-plan.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
Phase 3: Create Directory Structure
Read references/3-directories.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
Phase 4: Create CI/CD Workflow
Read references/4-ci.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
Phase 5: Create Smoke Test Seed
Read references/5-smoke-seed.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
Phase 6: Post-Setup Summary
Read references/6-summary.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
Collaborative Protocol
- Never overwrite existing test files — only create files that are missing. If a test runner file exists, leave it as-is.
- Always ask before creating files — Phase 2 requires explicit approval.
- Engine detection is non-negotiable — if the engine is not configured,
stop and redirect to
/setup-engine. Do not guess. forceflag skips the "already exists" early-exit but never overwrites. It means "create any missing files even if the directory already exists."- For Unity CI, note that the
UNITY_LICENSEsecret must be configured manually. Do not attempt to automate license management.
الأسئلة الشائعة
متى أشغّلها؟
شغّلها مرة واحدة أثناء الإعداد التقني، قبل التنفيذ، لأن إعدادها لاحقاً يستغرق وقتاً أطول.
ماذا تنشئ؟
تنشئ بنية مجلد اختبارات وملف سير عمل GitHub Actions.
هل تسأل قبل الكتابة؟
نعم. تعرض خطة أولاً، وكتابة الملفات تتبع إعداد الأتمتة في المشروع.
التفاصيل
الوصف الأصلي من المؤلف
Scaffold the test framework and CI — tests/ directory, engine test runner, GitHub Actions workflow. Once, before the first sprint.
الشعبية
- نجوم GitHub
- 33k
- الترتيب
- #8504
- الترخيص
- 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، حتى تتمكن الاختبارات من استخدام بيانات جزئية وتجتاز فحوص الأنواع.