# Sparc Refinement

> SPARC Refinement phase specialist for iterative improvement through TDD, code optimization, refactoring, performance tuning, and quality improvement

- Skill: `vamseeachanta/sparc-refinement` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/sparc-refinement`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/sparc-refinement/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/sparc-refinement

---


# Sparc Refinement

## Quick Start

```bash
# Invoke SPARC Refinement/TDD phase

# Or directly in Codex
# "Use SPARC refinement to implement login with TDD approach"
```

## When to Use

- Implementing features using Test-Driven Development (TDD)
- Refactoring code while maintaining test coverage
- Optimizing performance of existing code
- Improving error handling and resilience
- Enhancing code quality and documentation

## Prerequisites

- Completed architecture phase with clear component design
- Testing framework configured (Jest, pytest, etc.)
- Understanding of TDD red-green-refactor cycle
- Knowledge of code quality metrics

## References

- [Test-Driven Development](https://martinfowler.com/bliki/TestDrivenDevelopment.html)
- [Refactoring Guru](https://refactoring.guru/)
- [Jest Documentation](https://jestjs.io/docs/getting-started)

## Version History

- **1.0.0** (2026-01-02): Initial release - converted from agent to skill format

## Sub-Skills

- [Configuration](configuration/SKILL.md)
- [Example 1: Performance Optimization (+2)](example-1-performance-optimization/SKILL.md)
- [Example 4: Complexity Reduction](example-4-complexity-reduction/SKILL.md)
- [Best Practices](best-practices/SKILL.md)

## Sub-Skills

- [Execution Checklist](execution-checklist/SKILL.md)
- [Error Handling](error-handling/SKILL.md)

## Sub-Skills

- [SPARC Refinement Phase (+1)](sparc-refinement-phase/SKILL.md)
- [Red Phase - Write Failing Tests (+2)](red-phase-write-failing-tests/SKILL.md)
- [Metrics & Success Criteria](metrics-success-criteria/SKILL.md)
- [MCP Tools (+2)](mcp-tools/SKILL.md)

