focused-fix
Qué hace
Rastrea los archivos, las dependencias, los registros y las pruebas de una funcionalidad antes de proponer un arreglo, para que toda el área se repare y no se parchee pieza a pieza. Es para cuando una funcionalidad o un módulo necesita una reparación sistemática, no un arreglo rápido de un solo error.
Cuándo usarla
- ✓Cuando una funcionalidad o un módulo completo está roto y necesita volver a funcionar.
- ✓Cuando pides al agente que haga que una parte concreta de la aplicación funcione bien.
- ✓Cuando un arreglo rápido de un solo error no basta porque el problema abarca muchas partes.
Link de la skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/focused-fix/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
“El módulo de pago está roto de principio a fin. Necesito que rastrees todo lo que depende de él y luego lo hagas funcionar.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente mapea los archivos y las dependencias de la funcionalidad, lee los registros y las pruebas, y diagnostica la causa raíz antes de proponer cualquier arreglo. Los arreglos llegan solo cuando el alcance está completamente rastreado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Focused Fix — Deep-Dive Feature Repair
When to Use
Activate when the user asks to fix, debug, or make a specific feature/module/area work. Key triggers:
- "make X work"
- "fix the Y feature"
- "the Z module is broken"
- "focus on [area]"
- "this feature needs to work properly"
This is NOT for quick single-bug fixes (use systematic-debugging for that). This is for when an entire feature or module needs systematic repair — tracing every dependency, reading logs, checking tests, mapping the full dependency graph.
digraph when_to_use {
"User reports feature broken" [shape=diamond];
"Single bug or symptom?" [shape=diamond];
"Use systematic-debugging" [shape=box];
"Entire feature/module needs repair?" [shape=diamond];
"Use focused-fix" [shape=box];
"Something else" [shape=box];
"User reports feature broken" -> "Single bug or symptom?";
"Single bug or symptom?" -> "Use systematic-debugging" [label="yes"];
"Single bug or symptom?" -> "Entire feature/module needs repair?" [label="no"];
"Entire feature/module needs repair?" -> "Use focused-fix" [label="yes"];
"Entire feature/module needs repair?" -> "Something else" [label="no"];
}
The Iron Law
NO FIXES WITHOUT COMPLETING SCOPE → TRACE → DIAGNOSE FIRST
If you haven't finished Phase 3, you cannot propose fixes. Period.
Violating the letter of these phases is violating the spirit of focused repair.
Protocol — STRICTLY follow these 5 phases IN ORDER
digraph phases {
rankdir=LR;
SCOPE [shape=box, label="Phase 1\nSCOPE"];
TRACE [shape=box, label="Phase 2\nTRACE"];
DIAGNOSE [shape=box, label="Phase 3\nDIAGNOSE"];
FIX [shape=box, label="Phase 4\nFIX"];
VERIFY [shape=box, label="Phase 5\nVERIFY"];
SCOPE -> TRACE -> DIAGNOSE -> FIX -> VERIFY;
FIX -> DIAGNOSE [label="fix broke\nsomething else"];
FIX -> ESCALATE [label="3+ fixes\ncreate new issues"];
ESCALATE [shape=doubleoctagon, label="STOP\nQuestion Architecture\nDiscuss with User"];
}
Phase 1: SCOPE — Map the Feature Boundary
Before touching any code, understand the full scope of the feature.
- Ask the user: "Which feature/folder should I focus on?" if not already clear
- Identify the PRIMARY folder/files for this feature
- Map EVERY file in that folder — read each one, understand its purpose
- Create a feature manifest:
FEATURE SCOPE:
Primary path: src/features/auth/
Entry points: [files that are imported by other parts of the app]
Internal files: [files only used within this feature]
Total files: N
Total lines: N
Phase 2: TRACE — Map All Dependencies (Inside AND Outside)
Trace every connection this feature has to the rest of the codebase.
INBOUND (what this feature imports):
- For every import statement in every file in the feature folder:
- Trace it to its source
- Verify the source file exists
- Verify the imported entity (function, type, component) exists and is exported
- Check if the types/signatures match what the feature expects
- Check for:
- Environment variables used (grep for process.env, import.meta.env, os.environ, etc.)
- Config files referenced
- Database models/schemas used
- API endpoints called
- Third-party packages imported
OUTBOUND (what imports this feature):
- Search the entire codebase for imports from this feature folder
- For each consumer:
- Verify they're importing entities that actually exist
- Check if they're using the correct API/interface
- Note if any consumers are using deprecated patterns
Output format:
DEPENDENCY MAP:
Inbound (this feature depends on):
src/lib/db.ts → used in auth/repository.ts (getUserById, createUser)
src/lib/jwt.ts → used in auth/service.ts (signToken, verifyToken)
@prisma/client → used in auth/repository.ts
process.env.JWT_SECRET → used in auth/service.ts
process.env.DATABASE_URL → used via prisma
Outbound (depends on this feature):
src/app/api/login/route.ts → imports { login } from auth/service
src/app/api/register/route.ts → imports { register } from auth/service
src/middleware.ts → imports { verifyToken } from auth/service
Env vars required: JWT_SECRET, DATABASE_URL
Config files: prisma/schema.prisma (User model)
Phase 3: DIAGNOSE — Find Every Issue
Systematically check for problems. Run ALL of these checks:
CODE QUALITY:
- Every import resolves to a real file/export
- No circula
Preguntas frecuentes
¿Cuándo no debo usarla?
Para un error sencillo y puntual, un enfoque de depuración más simple encaja mejor.
¿Cambia código antes de diagnosticar?
No. Completa los pasos de alcance, rastreo y diagnóstico antes de proponer cualquier arreglo.
¿Qué rastrea?
Todos los archivos y dependencias del área afectada, junto con los registros y las pruebas.
Detalles
Descripción original del autor
Use when a whole feature or module is broken and needs fixing end to end ('make X work', 'the Y module is broken'). Maps every file and dependency of the area before changing anything. Single quick bug fixes do not need it.
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9586
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-launcher-orchestrator
29 milAyuda a tu agente a planificar, crear, probar y programar un agente gestionado de Claude en tu propia cuenta, paso a paso, a partir de un objetivo claro.
grade-iterate
29 milPermite que tu agente evalúe el trabajo de un agente de IA gestionado según una rúbrica y lo mejore en un número fijo de rondas, para que nunca entre en un bucle infinito.
interview
29 milPermite que tu agente te entreviste sobre una idea de agente de IA y convierta tus respuestas en un plan de construcción sencillo antes de poner nada en marcha.
run-without-you
29 milAyuda a tu agente a configurar un agente gestionado de IA para que se ejecute según un calendario o cuando ocurra un evento, comprobando el horario cron antes del lanzamiento.
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.