Complete Test-Driven Development workflow coordinating RED → GREEN → REFACTOR → COMMIT cycle with requirement traceability. Use this when implementing a requirement (REQ-*) or adding new functionality.
/plugin marketplace add foolishimp/ai_sdlc_method/plugin install aisdlc-methodology@aisdlcThis skill is limited to using the following tools:
Skill Type: Orchestrator (TDD Workflow) Purpose: Coordinate complete TDD cycle with requirement traceability Prerequisites:
You are orchestrating the complete Test-Driven Development (TDD) workflow.
Your goal is to implement a requirement using the RED → GREEN → REFACTOR → COMMIT cycle while maintaining requirement traceability.
Before starting TDD, verify:
If prerequisites missing:
requirement-extraction skill (from requirements-skills plugin)Invoke: red-phase skill
Purpose: Write tests that fail because the code doesn't exist yet
What red-phase does:
test_user_login.py)Success Criteria: Tests exist and FAIL
Invoke: green-phase skill
Purpose: Write minimal code to make tests pass
What green-phase does:
auth_service.py)Success Criteria: Tests PASS
Invoke: refactor-phase skill
Purpose: Improve code quality and eliminate technical debt (Principle #6)
What refactor-phase does:
Success Criteria: Tests still PASS, tech debt = 0
Invoke: commit-with-req-tag skill
Purpose: Create final commit with requirement traceability
What commit-with-req-tag does:
feat: Add user login (<REQ-ID>)
Implements user authentication with email and password.
Business Rules:
- BR-001: Email validation
- BR-002: Password minimum 12 characters
Tests: 5 tests, 100% coverage
Success Criteria: Final commit created with REQ-* traceability
When you complete the TDD workflow, show:
[TDD Workflow: <REQ-ID>]
✅ Phase 0: Prerequisites
✓ Requirement: <REQ-ID> (User login)
✓ Git repository: initialized
✓ Working tree: clean
✅ Phase 1: RED (Write Failing Tests)
✓ Created: test_user_login.py (5 tests)
✓ Tests FAILED as expected ✓
✓ Commit: RED: Add tests for <REQ-ID>
✅ Phase 2: GREEN (Make Tests Pass)
✓ Created: auth_service.py
✓ Implemented: login() function
✓ Tests PASSED ✓
✓ Commit: GREEN: Implement <REQ-ID>
✅ Phase 3: REFACTOR (Improve Quality + Eliminate Tech Debt)
Code Quality Improvements:
✓ Added type hints to 3 functions
✓ Added docstrings to 2 public methods
✓ Improved variable names (2 changes)
Tech Debt Pruning:
✓ Deleted 2 unused imports
✓ Removed 1 dead function (8 lines)
✓ Simplified validation logic (complexity 12 → 6)
✓ Tests still PASSING ✓
✓ Commit: REFACTOR: Clean up <REQ-ID>
✅ Phase 4: COMMIT (Final Commit)
✓ Final commit: feat: Add user login (<REQ-ID>)
🎉 TDD Workflow Complete!
Files: 2 files (auth_service.py, test_user_login.py)
Tests: 5 tests, 100% coverage
Commits: 4 commits (RED, GREEN, REFACTOR, final)
Traceability: <REQ-ID> → commit abc123
If prerequisites not met:
requirement-extraction skill (from requirements-skills plugin)If tests fail in GREEN phase:
If tech debt detected in REFACTOR phase:
prune-unused-code, simplify-complex-code (actuator skills)Before invoking this skill, ensure:
If prerequisites not met:
requirement-extraction skillThis orchestrator skill invokes:
red-phase - Write failing testsgreen-phase - Implement code to pass testsrefactor-phase - Improve quality and eliminate tech debtcommit-with-req-tag - Create final commit with traceabilitydetect-unused-code - (via refactor-phase) Detect tech debtprune-unused-code - (via refactor-phase) Eliminate tech debtdetect-complexity - (via refactor-phase) Detect over-complex codesimplify-complex-code - (via refactor-phase) Simplify complex codeThis skill respects configuration in .claude/plugins.yml:
plugins:
- name: "@aisdlc/code-skills"
config:
tdd:
minimum_coverage: 80 # Fail if coverage < 80%
enforce_red_green_refactor: true # Enforce phase order
allow_skip_tests: false # Block if user tries to skip tests
squash_commits: false # Keep RED/GREEN/REFACTOR commits separate
After TDD workflow completes:
tdd-workflow for next REQ-*)Why TDD workflow?
Homeostasis Goal:
desired_state:
tests_written_first: true
tests_passing: true
tech_debt: 0
requirement_traceability: complete
"Excellence or nothing" 🔥
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.