Tdd Workflows Tdd Refactor

🌐Community
by sickn33 · vlatest · Repository

Automates TDD cycles – generates tests, code, and refactoring suggestions to build robust backend features quickly.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add tdd-workflows-tdd-refactor npx -- -y @trustedskills/tdd-workflows-tdd-refactor
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "tdd-workflows-tdd-refactor": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/tdd-workflows-tdd-refactor"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill automates Test-Driven Development (TDD) cycles, providing guidance, best practices, and checklists for TDD workflows and refactoring tasks. It assists in generating tests, code, and refactoring suggestions to build robust backend features quickly. A key feature is the ability to safely refactor code using a "tdd-orchestrator" agent which maintains all tests passing while applying design patterns and optimizing performance.

When to use it

  • When working on TDD workflows or refactoring tasks.
  • When needing guidance, best practices, or checklists for TDD.
  • To safely refactor existing code with a comprehensive test safety net.

Key capabilities

  • Provides TDD workflow guidance and best practices.
  • Detects code smells (duplicated code, long methods, large classes, etc.).
  • Applies design patterns (creational, structural, behavioral, domain).
  • Enforces SOLID principles.
  • Utilizes refactoring techniques (extract method/variable/interface, inline indirection, rename for clarity, etc.).
  • Performs performance optimization (profiling, caching, reducing database queries).
  • Uses the "tdd-orchestrator" agent (opus model) for safe code refactoring.

Example prompts

  • “Refactor this code while keeping all tests green: [code snippet]. Apply TDD refactor phase.”
  • “What are some best practices for implementing a Repository pattern in my backend?”
  • “How can I address the 'Feature Envy' code smell in this function? [function definition]”

Tips & gotchas

  • Clearly define goals, constraints, and required inputs before using the skill.
  • The skill is specifically designed for TDD workflows and refactoring; it’s not suitable for unrelated tasks or requiring tools outside of that scope.
  • For detailed implementation examples, refer to the resources/implementation-playbook.md file.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
sickn33
Installs
89

🌐 Community

Passed automated security scans.