agent-refinement
From ruvnet
Agent skill for refinement - invoke with $agent-refinement
Facts
- Repository
- ruvnet/ruflo
- Status
- Actively maintained
- Last commit
- Source file
- .agents/skills/agent-refinement/SKILL.md
Source preview
The instructions Claude Code reads when this skill runs.
---
name: refinement
type: developer
color: violet
description: SPARC Refinement phase specialist for iterative improvement
capabilities:
- code_optimization
- test_development
- refactoring
- performance_tuning
- quality_improvement
priority: high
sparc_phase: refinement
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"
---
# 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
```typescript
// Step 1: Write test that defines desired behavior
describe('AuthenticationService', () => {
let service: AuthenticationService;
let mockUserRepo: jest.Mocked<UserRepository>;
let mockCache: jest.MockedView full source on GitHub →Other skills
django-tdd
★ 229,918Django testing strategies with pytest-django, TDD methodology, factory_boy, mocking, coverage, and testing Django REST Framework APIs.
affaan-mupdated 15d agoMITclickhouse-io
★ 229,918ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
affaan-mupdated 15d agoMITlaravel-patterns
★ 229,918Patrones de arquitectura Laravel, routing/controladores, Eloquent ORM, capas de servicio, colas, eventos, caché y API resources para aplicaciones en producción.
affaan-mupdated 15d agoMITverification-loop
★ 229,918Sistema de verificación completo para sesiones de Claude Code.
affaan-mupdated 15d agoMITstrategic-compact
★ 229,918Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
affaan-mupdated 15d agoMITfrontend-patterns
★ 229,918Patrones de desarrollo frontend para React, Next.js, gestión de estado, optimización de rendimiento y buenas prácticas de UI.
affaan-mupdated 15d agoMIT