agent-refinement
FeaturedAgent skill for refinement - invoke with $agent-refinement
AI & Automation 82,021 stars
9679 forks Updated today MIT
Install
Quality Score: 93/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
---
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.Mocked<CacheService>;
beforeEach(() => {
mockUserRepo = createMockRepository();
mockCache = cre...
Details
- Author
- ruvnet
- Repository
- ruvnet/ruflo
- Created
- 1 years ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
agent-refactoring-workflow
Direct an agent through a refactor in verifiable steps with tests as the safety net, rather than one large rewrite. Use when restructuring code with agent assistance.
14 Updated 2 months ago
Amey-Thakur AI & Automation Featured
agent-implementer-sparc-coder
Agent skill for implementer-sparc-coder - invoke with $agent-implementer-sparc-coder
82,021 Updated today
ruvnet AI & Automation Listed
agent-implementer-sparc-coder
Agent skill for implementer-sparc-coder - invoke with $agent-implementer-sparc-coder
0 Updated 1 months ago
spike-faye-lei