{"enrichment":{"faq":[{"a":"Tdd Workflow implements the red-green-refactor cycle as a three-phase process: first, write a failing test (red phase); second, write minimal code to make it pass (green phase); third, refactor the code while keeping tests passing (refactor phase). This cycle ensures tests drive design decisions and maintains code quality throughout development.","q":"What is the TDD red green refactor cycle?"},{"a":"Tdd Workflow guides you to write unit and integration tests before implementation code. Start by defining test cases that describe expected behavior, then write minimal code to satisfy those tests. This test-first approach clarifies requirements upfront and prevents over-engineering, making your codebase more maintainable and bug-resistant.","q":"How do I write tests first in Tdd Workflow?"},{"a":"Tdd Workflow enforces an 80% minimum code coverage threshold for all new features and fixes. By writing tests first and using coverage verification tools, you systematically identify untested code paths. The workflow includes guidance on coverage measurement and strategies to reach and maintain this benchmark across your Rust and TypeScript projects.","q":"How can Tdd Workflow help achieve 80% code coverage?"},{"a":"Tdd Workflow provides practical strategies for mocking databases, APIs, and other external services to ensure test isolation. By replacing real dependencies with controlled mocks during testing, you keep tests fast, independent, and focused on your code's behavior rather than external system reliability.","q":"How does Tdd Workflow handle mocking external dependencies?"},{"a":"Tdd Workflow addresses key pitfalls including testing implementation details instead of behavior, writing slow or interdependent tests, inadequate edge case coverage, and mishandling async operations. It emphasizes descriptive test names, proper test isolation, and validation of actual user-facing behavior to ensure test quality and maintainability.","q":"What common testing pitfalls does Tdd Workflow help avoid?"},{"a":"Yes. Tdd Workflow extends the red-green-refactor pattern to bug fixes by first writing a test that reproduces the bug (red), then fixing the code (green), then refactoring safely. For refactoring, existing tests serve as a safety net, ensuring changes don't break functionality while you improve code structure and clarity.","q":"Can Tdd Workflow be applied to bug fixes and refactoring?"}],"shadow_tags":["red-green-refactor","test-coverage-metrics","behavior-driven-testing","mock-and-stub","async-test-handling","edge-case-validation","test-isolation-patterns","quality-assurance-workflow"],"summary_rewrite":"Tdd Workflow guides developers through test-first development using the red-green-refactor pattern: write failing tests, implement minimal code to pass, then refactor while maintaining test coverage. It covers unit and integration testing strategies for both Rust and TypeScript, with practical examples including validation logic, mocking external dependencies, and coverage verification tools. All new features and fixes must meet an 80% test coverage threshold."},"files":[{"bytes":9340,"path":".claude/skills/tdd-workflow/SKILL.md","sha256":"da8bfaae84dfc10829b64bd2ae364a5d7be202b73747edc319fcf45cb532551f","url":"https://skillfed.io/files/cacr92/WeReply/tdd-workflow/f2b1df9d/SKILL.md"}],"id":"cacr92/WeReply/tdd-workflow","links":{"html":"https://skillfed.io/cacr92/WeReply/tdd-workflow","md":"https://skillfed.io/cacr92/WeReply/tdd-workflow.md","repo":"https://github.com/cacr92/WeReply"},"meta":{"agents_supported":["claude-code","codex","cursor"],"first_seen":"2026-07-28","forks":3,"language":"Python","last_updated":"2026-01-30","license":"MIT","name":"Tdd Workflow","publisher":"cacr92","stars":4},"relations":{"similar":[{"id":"cacr92/WeReply/refactoring"},{"id":"cacr92/WeReply/api-design"},{"id":"cacr92/WeReply/error-handling-debugging"},{"id":"cacr92/WeReply/testing-strategy"},{"id":"cacr92/WeReply/security-review"},{"id":"cacr92/WeReply/debugging"},{"id":"cacr92/WeReply/code-review"},{"id":"majiayu000/spellbook/rust-project"},{"id":"joelhooks/joelclaw/rust-sop"},{"id":"cacr92/WeReply/deepseek-integration"}]},"slug":{"owner":"cacr92","repo":"WeReply","skill":"tdd-workflow"},"version":"f2b1df9d"}
