skills/tdd-workflow/SKILL.md
Standardized Test-Driven Development (TDD) cycle (RED-GREEN-REFACTOR-VERIFY). Use when user asks to write tests, do TDD, implement test-first, or ensure code quality with high test coverage and regression prevention.
npx skillsauth add jochenyang/jochen-ai-rules tdd-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill standardizes the Test-Driven Development process to achieve high code quality and maintainability.
Follow these 4 steps strictly for every new feature or bug fix:
Never write implementation code before its corresponding test. If you find yourself implementing logic first, stop and write a test that covers it.
Don't write multiple tests at once. Follow the cycle: one test → implementation → refactor → next test.
Tests should be easy to read and understand. Use the Arrange-Act-Assert pattern:
Focus on what the code does, not how it does it. This makes your tests more resilient to internal refactoring.
scripts/run-tests.sh - Run the test suite and generate coverage report.scripts/init-test.sh - Scaffold a new test file based on project templates.dev-plannerfrontend-designapi-designerdatabase-engineerquality-assurancePause and ask the owner before:
Every use of this skill should end with:
Skill Fit - why TDD is the right workflow herePrimary Deliverable - RED/GREEN/REFACTOR progress and changed testsExecution Evidence - failing test, passing test, and verification commandsRisks / Open Questions - flaky tests, missing coverage, or blocked environmentsNext Action - the next verification or implementation stepdatabases
Review current conversation, analyze tasks, errors, and user feedback, extract learning opportunities for skill improvement. Use when user says "reflect", "review session", "what did we learn", "session summary", or after completing a complex task.
development
Create and resume structured manual session handoffs for long-running development work. Use when approaching context limits, before manual reset, before switching models or IDEs, after a milestone, or when automatic compact would lose important implementation state.
development
Implement distinctive, production-grade frontend UI code with strong visual direction, motion systems, local media asset generation, conversion-aware copy, and polished frontend execution. Use when building landing pages, marketing sites, product pages, dashboards, motion-heavy interfaces, or frontend experiences that need real assets and compelling copy.
development
Project context engine for repo orientation, cached handoff, and task-focused code retrieval.