{"enrichment":{"faq":[{"a":"tdd enforces the red-green-refactor cycle as the core TDD workflow. Red means writing a failing test first. Green means implementing minimal code to make that test pass. Refactor means improving the code while keeping tests passing. This cycle repeats for each feature, ensuring tests drive design and maintain coverage throughout development.","q":"What is the red green refactor cycle that tdd enforces?"},{"a":"tdd guides you to write failing tests before implementing production code. Start by defining what your code should do as a test case. Run it\u2014it fails (red phase). Then write the minimal implementation to pass it (green phase). Finally, improve the code without breaking tests (refactor phase). This test-first discipline ensures your code is testable and requirements are clear from the start.","q":"How do I write tests first with tdd?"},{"a":"tdd teaches TDD best practices by helping you avoid common pitfalls: writing tests after code, skipping the refactor phase, writing overly complex tests, or testing implementation details instead of behavior. The skill enforces atomic test cases as executable specifications, keeping each test focused on one behavior. This prevents brittle tests and ensures your test suite remains maintainable.","q":"What TDD best practices does tdd help me avoid?"},{"a":"Yes. tdd supports safe refactoring by maintaining test coverage throughout the process. Since you've written tests before implementation, your test suite acts as a safety net. You can confidently refactor code knowing that if tests still pass, behavior is preserved. This coverage-first approach eliminates the fear of breaking functionality during improvements.","q":"Can tdd help me refactor code safely?"},{"a":"tdd provides framework-specific commands for multiple languages to support your TDD workflow. These commands help you run tests, watch for changes, and execute the red-green-refactor cycle efficiently across different tech stacks. The skill adapts to your language and testing framework, making TDD discipline accessible whether you use Jest, pytest, RSpec, or other popular test runners.","q":"What framework-specific commands does tdd provide?"},{"a":"tdd structures atomic test cases as executable specifications\u2014each test focuses on a single behavior or requirement. This approach keeps tests small, readable, and maintainable. Atomic tests are easier to debug when they fail, provide clear documentation of expected behavior, and prevent cascading failures. tdd guides you to write these focused specifications so your test suite remains a reliable design tool.","q":"How does tdd structure atomic test cases?"}],"shadow_tags":["quality-assurance","development-methodology","testing-first","code-discipline","behavior-specification","incremental-development","test-automation","refactoring-workflow"],"summary_rewrite":"tdd guides you through strict test-driven development using the red-green-refactor cycle: write a failing test, implement minimal code to pass it, then refactor. The skill enforces the discipline of writing tests before production code and provides framework-specific commands for multiple languages."},"files":[{"bytes":3644,"path":".github/skills/tdd/SKILL.md","sha256":"74d5bd64f8c3ffff701a54d5539887c7feb3541220c408c34acc57a9aebe119a","url":"https://skillfed.io/files/zereight/gitlab-mcp/tdd/b04a681f/SKILL.md"}],"id":"zereight/gitlab-mcp/tdd","links":{"html":"https://skillfed.io/zereight/gitlab-mcp/tdd","md":"https://skillfed.io/zereight/gitlab-mcp/tdd.md","repo":"https://github.com/zereight/gitlab-mcp"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":330,"language":"TypeScript","last_updated":"2026-07-27","license":"MIT","name":"tdd","publisher":"zereight","stars":1847},"relations":{"similar":[{"id":"kimny1143/claude-code-template/tdd"},{"id":"cacr92/WeReply/testing-strategy"},{"id":"minicoohei/ai-agent-camp/tdd-guide"},{"id":"xenitV1/claude-code-maestro/tdd-mastery"},{"id":"glebis/claude-skills/tdd"},{"id":"modu-ai/moai-adk/moai-workflow-tdd"},{"id":"zereight/gitlab-mcp/ultraqa"},{"id":"rohitg00/awesome-claude-code-toolkit/tdd-mastery"},{"id":"frankify-app/skills/tdd"},{"id":"rtk-ai/rtk/rtk-tdd"}]},"slug":{"owner":"zereight","repo":"gitlab-mcp","skill":"tdd"},"version":"b04a681f"}
