sparc-refine
Qué hace
Esta skill cubre los dos últimos pasos del método SPARC: refinar el código mediante revisión y pruebas, y luego completar la documentación y las comprobaciones de preparación. Es para desarrolladores que llevan una función a calidad de producción.
Cuándo usarla
- ✓Cuando una función está construida y necesita una revisión cuidadosa frente a su especificación.
- ✓Cuando hay que mejorar la cobertura de pruebas antes de publicar.
- ✓Cuando una función necesita documentación final y una comprobación de preparación.
Link de la skill
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-sparc/skills/sparc-refine/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Revisa la función de notificaciones frente a su especificación, mejora la cobertura de pruebas y prepárala para publicarse.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill carga los artefactos de diseño anteriores, comprueba el código frente a cada requisito, patrón y regla de calidad, y después mejora las pruebas. Termina con la validación, la documentación y un registro de preparación, y omite el trabajo que ya está marcado como completado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
SPARC Refinement + Completion
Run Phases 4 and 5 of the SPARC methodology: iteratively improve through code review and testing, then finalize with validation, documentation, and deployment readiness.
When to use
After the Architecture phase is complete and its gate has been passed. This skill covers the final two phases that bring a feature from implemented to production-ready.
Steps
Phase 4 — Refinement
Retrieve all prior artifacts — call
mcp__plugin_ruflo-core_ruflo__memory_searchwith namespacesparc-phasesand query for the feature slug. Load spec (acceptance criteria), pseudocode, and architecture.Retrieve phase state — call
mcp__plugin_ruflo-core_ruflo__memory_retrievewith namespacesparc-stateand exact keycurrent-phase-{feature-slug}to confirm we are in Phase 4 (or Phase 5 when resuming completion). Ifstatus === "complete", report the existing completion and do not write again; stop on missing/malformed state.Code review — review the implementation against: a. Specification compliance: does every acceptance criterion have a corresponding code path? b. Architecture adherence: do modules follow the defined boundaries and dependency rules? c. Pseudocode fidelity: does the implementation match the designed algorithms? d. Code quality: naming conventions, single responsibility, error handling, no dead code e. Document findings as review comments
Test coverage analysis: a. Run existing tests and measure coverage b. Identify uncovered acceptance criteria c. Write missing tests:
- Unit tests for each public function
- Integration tests for cross-module interactions
- Edge case tests for each identified edge case from the spec d. Target coverage >= 80% on new code
Performance validation — if the spec includes performance constraints: a. Profile critical paths identified in the pseudocode b. Compare measured performance against constraint thresholds c. Optimize if thresholds are not met
Iterate — repeat steps 3-5 until:
- All acceptance criteria have passing tests
- Code review has no critical or high-severity issues
- Coverage meets the threshold
- Performance constraints are satisfied
Store refinement artifact — call
mcp__plugin_ruflo-core_ruflo__memory_storewith namespacesparc-phases, keyrefine-{feature-slug}, value:{ status: "complete", reviewFindings: [...], coveragePercent: N, performanceResults: {...}, iterations: N }Before moving to Phase 5, evaluate the Phase 4 gate (passing acceptance tests, approved review, coverage >= 80%) and store its evidence in
sparc-gates. On failure preserve phase, increment gateAttempts, refreshupdatedAtwith the current ISO timestamp at the exact current-phase key, report blockers and stop. On pass preserve existing state fields, set phase 5, phaseName "Completion", status "active", andupdatedAtto the current ISO timestamp at the same key insparc-state. When resuming Phase 5, do not repeat the Phase 4 transition.Record trajectory step — call
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-stepwith refinement summary
Phase 5 — Completion
Full regression — run the complete test suite to verify no regressions from refinement changes
Traceability matrix — build a matrix mapping every acceptance criterion to:
- The test(s) that verify it
- The code file(s) that implement it
- The current pass/fail status
Documentation: a. Generate API documentation from code comments and type definitions b. Write usage examples for key public interfaces c. Update any existing documentation affected by the changes
Deployment readiness checklist:
- All tests passing
- Documentation complete
- Database migrations prepared (if applicable)
- Configuration changes documented
- Feature flags configured (if applicable)
- Rollback plan defined
- Security review complete (no secrets, inputs validated)
Evaluate the final Phase 5 gate — completion is allowed only when final gate evidence for every criterion passes: full regression actually ran and passed, documentation is complete, deployment checklist is verified, and traceability links every acceptance criterion to passing tests. Store the actual pass/fail evidence at
gate-5-{feature-slug}-{timestamp}in `sparc-ga
Preguntas frecuentes
¿Qué pasa si la función ya está marcada como completada?
La skill informa de la finalización existente y no la vuelve a escribir.
¿Qué comprueba la revisión?
Si cada criterio de aceptación tiene código, si se respetan los límites de los módulos y si se cumplen las reglas de calidad del código.
¿Despliega la función?
Prepara la preparación para el despliegue. El despliegue en sí es una decisión aparte.
Detalles
Descripción original del autor
Run the SPARC Refinement and Completion phases — review code, improve test coverage, validate against specification, and generate documentation
repo: ruvnet/ruflo
Popularidad
- Estrellas en GitHub
- 81 mil
- Posición en el ranking
- #1696
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-adaptive-coordinator
81 milAyuda a tu agente a dividir y reequilibrar un grupo de agentes de IA cuando cambia la carga de trabajo, eligiendo una distribución que encaje con la tarea.
agent-agent
81 milEnseña a tu agente a convertir una meta grande en un plan ordenado de acciones, y a replanificar cuando cambien las condiciones.
agent-agentic-payments
81 milAyuda a tu agente a administrar mandatos de gasto para compras con IA, con topes de gasto, ventanas de tiempo, reglas por comercio y aprobaciones firmadas.
agent-analyze-code-quality
81 milAyuda a tu agente a revisar la calidad del código, encontrando malos olores, deuda técnica e ideas de refactorización sin cambiar los archivos.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.