--- 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 a…