Skip to main content

tdd

Test-driven development: the agent writes the failing test, then the code, one behavior at a time. Use when building a feature or fixing a bug test-first, or when the user says tdd, red-green, or test-first.

معلومات المصدر

المستودع
MasihMoafi/skills
آخر نشاط في المصدر
٣ نوفمبر ٢٠٢٦ في ٠٨:٣٧
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٨
التفرعات
٠

tdd: red-green one slice at a time

Makes the agent write one failing test for the next behavior, then the smallest code that passes, repeating slice by slice.

Uses

Use when building a feature or fixing a bug test-first, or when the user says tdd, red-green or test-first.

How to use

Name the behavior and pick the public seam → run the repo test command once for baseline → Red: one failing test for the missing behavior → Green: smallest code that passes → next slice; refactor only after the behavior is green.

Limitations

A test that passes immediately is a characterization test—pick a truly missing behavior. Code written before its test is deleted and rewritten test-first.

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
nametdd
descriptionTest-driven development: the agent writes the failing test, then the code, one behavior at a time. Use when building a feature or fixing a bug test-first, or when the user says tdd, red-green, or test-first.