Skip to content
Back to skills

Sparc Refinement

ASecurity

SPARC Refinement phase specialist for iterative improvement through TDD,

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
code-qualitygobashtestingrefactoringperformancedocumentation

Works with

  • claude code
  • mcp

Security analysis

A100/100

Scanned September 24, 2026

npx -y skills add vamseeachanta/workspace-hub --skill sparc-refinement --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sparc Refinement?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sparc Refinement
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-sparc-refinement/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-sparc-refinement)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sparc-refinement
description: SPARC Refinement phase specialist for iterative improvement through TDD,
  code optimization, refactoring, performance tuning, and quality improvement
version: 1.0.0
category: development
type: hybrid
capabilities:
- code_optimization
- test_development
- refactoring
- performance_tuning
- quality_improvement
tools:
- Read
- Write
- Edit
- Grep
- Glob
- Bash
related_skills:
- sparc-specification
- sparc-pseudocode
- sparc-architecture
hooks:
  pre: 'echo "SPARC Refinement phase initiated"

    memory_store "sparc_phase" "refinement"

    # Run initial tests

    npm test --if-present || echo "No tests yet"

    '
  post: 'echo "Refinement phase complete"

    # Run final test suite

    npm test || echo "Tests need attention"

    memory_store "refine_complete_$(date +%s)" "Code refined and tested"

    '
requires: []
tags: []
---

# Sparc Refinement

## Quick Start

```bash
# Invoke SPARC Refinement/TDD phase

# Or directly in Claude Code
# "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)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.