{"enrichment":{"faq":[{"a":"tdd's red-green-refactor cycle is the core workflow: first write a failing test (red), then write minimal code to make it pass (green), then refactor safely knowing tests still pass. Each phase gets its own commit, creating an auditable history where every commit is either a failing test, passing code, or a refactoring. This discipline keeps your tree lint-clean and your changes traceable.","q":"What is the red green refactor cycle in tdd?"},{"a":"tdd teaches you to write failing tests before any implementation. Start by describing the behavior you want in a test, run it to confirm it fails (red phase), then write just enough code to pass it (green phase). This inverts traditional development: the test becomes your specification. tdd guides you to focus on what the code should do, not how it does it, preventing over-engineering.","q":"How do I write tests first with tdd?"},{"a":"tdd enforces a commit protocol where each phase\u2014red test, green code, refactoring\u2014gets its own commit. This creates an auditable history showing exactly when tests were added and when implementation followed. The skill includes commit hygiene checks to keep your repository lint-clean at every step, making it easy to review or bisect changes later.","q":"How should I structure tdd commits for auditable test history?"},{"a":"tdd helps you sidestep common pitfalls: testing implementation details instead of behavior, writing tests after code (defeating TDD's design benefits), or skipping refactoring. The skill teaches behavioral testing that survives refactoring, so your tests describe what the code does, not how. Avoid brittle tests tied to internal structure; tdd guides you toward resilient, maintainable test suites.","q":"What testing anti-patterns should I avoid in tdd?"},{"a":"tdd includes guidance on vertical-slice testing, where you test a complete feature end-to-end rather than isolated horizontal layers. This approach often catches real integration issues earlier and keeps tests closer to user behavior. tdd's behavioral focus naturally aligns with vertical slices, helping you write tests that matter.","q":"Can tdd help with vertical-slice testing instead of layers?"},{"a":"tdd emphasizes behavioral testing over implementation details, so your tests describe outcomes, not internal mechanics. When you refactor during the refactor phase (with all tests passing), behavioral tests remain valid because the external contract hasn't changed. This discipline means your test suite survives refactoring intact, supporting long-term code health.","q":"How does tdd ensure tests don't become brittle after refactoring?"}],"shadow_tags":["test-first-methodology","commit-hygiene","behavioral-verification","vertical-slicing","implementation-agnostic","refactor-discipline","marker-enforcement","interface-design"],"summary_rewrite":"tdd guides you through writing tests before implementation using the red-green-refactor workflow. Each cycle commits a failing test marked red, then minimal passing code marked green, with refactoring only after all tests pass. The skill enforces behavioral testing over implementation details and includes commit hygiene checks to keep your tree lint-clean at every step."},"files":[{"bytes":8754,"path":"derived/tdd/SKILL.md","sha256":"39b8321a30f5d9caf9c689c447b04b381a15c6dd7157ed1739530e309a7ea968","url":"https://skillfed.io/files/frankify-app/skills/tdd/10240aeb/SKILL.md"}],"id":"frankify-app/skills/tdd","links":{"html":"https://skillfed.io/frankify-app/skills/tdd","md":"https://skillfed.io/frankify-app/skills/tdd.md","repo":"https://github.com/frankify-app/skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":0,"language":"Shell","last_updated":"2026-07-27","license":"MIT","name":"tdd","publisher":"frankify-app","stars":0},"relations":{"similar":[{"id":"ShaftHQ/SHAFT_ENGINE/test-driven-development"},{"id":"rpamis/comet/test-driven-development"},{"id":"ryan-yuuu/crypto-trading-arena/test-driven-development"},{"id":"crbnos/carbon/test-driven-development"},{"id":"xenitV1/claude-code-maestro/tdd-mastery"},{"id":"Wide-Moat/open-computer-use/test-driven-development"},{"id":"family3253/skill/superpowers-test-driven-development"},{"id":"getcrew44/crew44/test-driven-development"},{"id":"beita6969/ScienceClaw/test-driven-development"},{"id":"bartstc/vite-ts-react-template/test-driven-development"}]},"slug":{"owner":"frankify-app","repo":"skills","skill":"tdd"},"version":"10240aeb"}
