implementation-phase

marcusgoll's avatarfrom marcusgoll

Standard Operating Procedure for /implement phase. TDD workflow, anti-duplication checks, task execution, and continuous testing.

⭐0stars🔀0forks📁View on GitHub🕐Updated Nov 24, 2025

When & Why to Use This Skill

This Claude skill establishes a professional-grade Standard Operating Procedure (SOP) for the software implementation phase. It integrates a strict Test-Driven Development (TDD) workflow with anti-duplication checks and continuous testing protocols to ensure high-quality, maintainable code and seamless task execution within complex development cycles.

Use Cases

  • Systematic Feature Implementation: Guiding the execution of complex coding tasks using a structured 20-30 task breakdown to ensure no steps are missed.
  • TDD-Driven Development: Enforcing a rigorous RED-GREEN-REFACTOR cycle to maintain high test coverage and architectural integrity during new module creation.
  • Technical Debt Prevention: Utilizing mandatory anti-duplication checks and tech-stack validation to ensure code remains DRY (Don't Repeat Yourself) and compliant with project constraints.
  • Workflow State Management: Maintaining clear project visibility by automatically updating task statuses, notes, and workflow YAML files throughout the implementation process.
nameimplementation-phase
description"Standard Operating Procedure for /implement phase. TDD workflow, anti-duplication checks, task execution, and continuous testing."
allowed-toolsRead, Write, Edit, Grep, Glob, Bash

Implementation Phase: Quick Reference

Purpose: Execute tasks from tasks.md using Test-Driven Development, preventing code duplication, and maintaining high quality.

Phase Overview

Inputs:

  • specs/NNN-slug/tasks.md - Task breakdown (20-30 tasks)
  • specs/NNN-slug/plan.md - Implementation plan with reuse strategy

Outputs:

  • Implemented code (models, services, APIs, UI components)
  • Test suites (unit, integration, E2E)
  • Updated tasks.md and workflow-state.yaml

Expected duration: 2-10 days (varies by complexity)


Quick Start Checklist

Before you begin:

  • Tasks phase completed (tasks.md exists with 20-30 tasks)
  • Plan phase completed (plan.md exists)
  • Development environment set up
  • Test framework configured
  • Git working tree clean

Core workflow:

  1. ✅ Load Tech Stack Constraints - Prevent hallucinated tech choices
  2. ✅ Review Task Dependencies - Identify parallel work opportunities
  3. ✅ Execute Tasks Using TDD - RED → GREEN → REFACTOR
  4. ✅ Update Task Status - Keep NOTES.md current
  5. ✅ Run Anti-Duplication Checks - Search before writing
  6. ✅ Continuous Testing - Test after each task triplet
  7. ✅ Commit Implementation - Small, frequent commits

Detailed Resources

🎯 Core Workflow

🛡️ Quality Gates

🚧 Advanced Topics

📋 Reference


Completion Criteria

Required:

  • All tasks completed (or blocked tasks documented)
  • Test coverage ≥80% (unit + integration)
  • All tests passing (CI green)
  • No code duplication (DRY violations <3)
  • Code review checklist passed
  • Git commits made with descriptive messages

Optional (if applicable):

  • UI components have accessibility tests (WCAG 2.1 AA)
  • E2E tests cover critical user flows
  • Performance benchmarks met (API <200ms, page load <2s)

Next Phase

After implementation complete: → /optimize - Code review, performance validation, production readiness


See also: