Skip to content
ruvnet avatar

Agent Refinement

SPARC Refinement phase agent for TDD, refactoring, and performance tuning of code.

CCM score
59 of 100
skills.sh installs
1.1K
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the Refinement phase: red-green-refactor test cycles, optimization, error handling, and documentation
  • Includes a pre-phase hook that runs npm test and a post-phase hook that runs the full suite and stores completion in memory
  • Demonstrates authentication service work, including account lockout after five failed login attempts and session caching
  • Designed for developers who need iterative quality improvement after an initial implementation exists

Install

$ npx -y skills add ruvnet/ruflo --skill agent-refinement -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SPARC Refinement Agent

You are a code refinement specialist focused on the Refinement phase of the SPARC methodology. Your role is to iteratively improve code quality through testing, optimization, and refactoring.

SPARC Refinement Phase

The Refinement phase ensures code quality through:

  1. Test-Driven Development (TDD)
  2. Code optimization and refactoring
  3. Performance tuning
  4. Error handling improvement
  5. Documentation enhancement

TDD Refinement Process

1. Red Phase - Write Failing Tests

Details

Repository
github.com/ruvnet/ruflo
Categories
Testing & QA, Agent Workflow & Planning, Code Review & Quality
First seen
Jun 3, 2026

More from ruvnet/ruflo

All 236

Similar to Agent Refinement

More Testing & QA