TDD Green Phase - Make Tests Pass Quickly
Implement minimal code to satisfy GitHub issue requirements and make failing tests pass without over-engineering.
MCP get_skill({ skillId: "tdd-green-phase-make-tests-pass-quickly-6510fa13" })Use this skill with your agent
Create a free account and connect via MCP
# TDD Green Phase - Make Tests Pass Quickly Write the minimal code necessary to satisfy GitHub issue requirements and make failing tests pass. Resist the urge to write more than required. ## GitHub Issue Integration ### Issue-Driven Implementation - **Reference issue context** - Keep GitHub issue requirements in focus during implementation - **Validate against acceptance criteria** - Ensure implementation meets issue definition of done - **Track progress** - Update issue with implementation progress and blockers - **Stay in scope** - Implement only what's required by current issue, avoid scope creep ### Implementation Boundaries - **Issue scope only** - Don't implement features not mentioned in the current issue - **Future-proofing later** - Defer enhancements mentioned in issue comments for future iterations - **Minimum viable solution** - Focus on core requirements from issue description ## Core Principles ### Minimal Implementation - **Just enough code** - Implement only what's needed to satisfy issue requirements and make tests pass - **Fake it till you make it** - Start with hard-coded returns based on issue examples, then generalise - **Obvious implementation** - When the solution is clear from issue, implement it directly - **Triangulation** - Add more tests based on issue scenarios to force generalisation ### Speed Over Perfection - **Green bar quickly** - Prioritise making tests pass over code quality - **Ignore code smells temporarily** - Duplication and poor design will be addressed in refactor phase - **Simple solutions first** - Choose the most straightforward implementation path from issue context - **Defer complexity** - Don't anticipate requirements beyond current issue scope ### Implementation Strategies (Polyglot) - **Start with constants** - Return hard-coded values from issue examples initially - **Progress to conditionals** - Add if/else logic as more issue scenarios are tested - **Extract to methods/functions** - Create simple helpers when duplication emerges - **Use basic collections** - Simple arrays, lists, or maps over complex data structures ## Execution Guidelines 1. **Review issue requirements** - Confirm implementation aligns with GitHub issue acceptance criteria 2. **Run the failing test** - Confirm exactly what needs to be implemented 3. **Confirm your plan with the user** - Ensure understanding of requirements and edge cases. NEVER start making changes without user confirmation 4. **Write minimal code** - Add just enough to satisfy issue requirements and make test pass 5. **Run all tests** - Ensure new code doesn't break existing functionality 6. **Do not modify the test** - Ideally the test should not need to change in the Green phase. 7. **Update issue progress** - Comment on implementation status if needed ## Green Phase Checklist - [ ] Implementation aligns with GitHub issue requirements - [ ] All tests are passing (green bar) - [ ] No more code written than necessary for issue scope - [ ] Existing tests remain unbroken - [ ] Implementation is simple and direct - [ ] Issue acceptance criteria satisfied - [ ] Ready for refactoring phase
Related Skills
More skills in Software Engineering
Accessibility Standards
Comprehensive web accessibility standards based on WCAG 2.2 AA, with 38+ anti-patterns, legal enforcement context (EAA, ADA Title II), WAI-ARIA patterns, and framework-specific fixes for modern web frameworks and libraries.
Accord
Authoring unified specification packages across Business/Development/Design teams via staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria). No code. Use when authoring cross-team specs, building L0-L3 packages, or aligning Biz/Dev/Design on a single source of truth.
Acquire Codebase Knowledge
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narrow code edits unless the user asks for repository-level discovery.
Acreadiness Assess
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc readiness` and hands off rendering to the @ai-readiness-reporter custom agent. Supports policies (--policy) for org-specific scoring. Use when asked to assess, audit, or score the AI readiness of a repo.
Acreadiness Generate Instructions
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default, recommended for Copilot in VS Code) plus optional per-area .instructions.md files with applyTo globs for monorepos. Use after running /acreadiness-assess to close gaps in the AI Tooling pillar.
Acreadiness Policy
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting pass-rate thresholds, or chaining org baselines with team overrides. Use when the user asks about strict mode, AI-only scoring, custom weights, CI gating, or wants org-wide standardisation.
Explore Other Categories
Skills from other categories with shared topics
Accessibility Expert
Expert assistant for web accessibility (WCAG 2.1/2.2), inclusive UX, and a11y testing
Accessibility Runtime Tester
Runtime accessibility specialist for keyboard flows, focus management, dialog behavior, form errors, and evidence-backed WCAG validation in the browser.
Agents Playwright Tester
Testing mode for Playwright tests