tdd-workflow
Guides agents through test-driven development using the red-green-refactor cycle before writing implementation code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Guides agents through test-driven development using the red-green-refactor cycle before writing implementation code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | tdd-workflow |
| description | Guides agents through test-driven development using the red-green-refactor cycle before writing implementation code |
| skillctl | {"namespace":"examples","version":"1.0.0","category":"testing","tags":["tdd","testing","workflow"],"capabilities":["read_file","write_file"]} |
Guide every feature and bugfix through the red-green-refactor cycle.
Activate when the user asks to implement a feature, fix a bug, or add behavior — before any implementation code is written.
Do NOT activate for documentation changes, configuration tweaks, refactoring that preserves behavior, or exploratory questions.
Before touching implementation code, write a test that captures the desired behavior:
Write the minimum implementation code to make the failing test pass:
With all tests passing, improve the code:
assert calls are fine if they verify the same behavior.Use descriptive names that read as specifications:
test_empty_cart_has_zero_total
test_adding_item_increases_count
test_removing_last_item_empties_cart
test_discount_code_reduces_total_by_percentage
Avoid generic names like test_function_works or test_case_1.
After the primary behavior passes, add tests for:
Reviews REST API designs for consistency, naming conventions, versioning strategy, and error handling patterns
Guides agents through auditing project dependencies for known vulnerabilities, outdated packages, and license compliance issues