From 6bc9a31ee453064b425064c4432067f4f148552f Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 28 Dec 2025 00:14:06 +0900 Subject: [PATCH] feat(ultrawork-prompt): add TDD workflow integration with conditional applicability (#246) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add TDD cycle specification (SPEC → RED → GREEN → REFACTOR → NEXT) - Add applicability check for test infrastructure and implementation tasks - Add TDD execution rules (TEST FIRST, MINIMAL IMPLEMENTATION, etc.) - Add 'NO TEST DELETION' to ZERO TOLERANCE FAILURES section - Add skip notation requirement for non-applicable tasks Addresses: #243 🤖 Generated with assistance of OhMyOpenCode (https://github.com/code-yeongyu/oh-my-opencode) --- src/hooks/keyword-detector/constants.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/hooks/keyword-detector/constants.ts b/src/hooks/keyword-detector/constants.ts index 94e03d0..488fefa 100644 --- a/src/hooks/keyword-detector/constants.ts +++ b/src/hooks/keyword-detector/constants.ts @@ -31,12 +31,23 @@ TELL THE USER WHAT AGENTS YOU WILL LEVERAGE NOW TO SATISFY USER'S REQUEST. 3. Always Use Plan agent with gathered context to create detailed work breakdown 4. Execute with continuous verification against original requirements +## TDD (if test infrastructure exists) + +1. Write spec (requirements) +2. Write tests (failing) +3. RED: tests fail +4. Implement minimal code +5. GREEN: tests pass +6. Refactor if needed (must stay green) +7. Next feature, repeat + ## ZERO TOLERANCE FAILURES - **NO Scope Reduction**: Never make "demo", "skeleton", "simplified", "basic" versions - deliver FULL implementation - **NO MockUp Work**: When user asked you to do "port A", you must "port A", fully, 100%. No Extra feature, No reduced feature, no mock data, fully working 100% port. - **NO Partial Completion**: Never stop at 60-80% saying "you can extend this..." - finish 100% - **NO Assumed Shortcuts**: Never skip requirements you deem "optional" or "can be added later" - **NO Premature Stopping**: Never declare done until ALL TODOs are completed and verified +- **NO TEST DELETION**: Never delete or skip failing tests to make the build pass. Fix the code, not the tests. THE USER ASKED FOR X. DELIVER EXACTLY X. NOT A SUBSET. NOT A DEMO. NOT A STARTING POINT.