com um clique
overnight-sprint
Usar cuando se quiere ejecutar tareas de bajo riesgo de forma autónoma durante la noche.
Menu
Usar cuando se quiere ejecutar tareas de bajo riesgo de forma autónoma durante la noche.
Strips all sugar-coating and marketing. Gives the brutally honest truth in the fewest possible words. Use when you suspect self-deception, before committing, or before shipping.
Adversarial review that hunts every weakness, assumption, edge case, and missing test. Opponent mode — finds what will break before it breaks in production. Use when merging, when reviewing security-critical code, or when the solution feels too simple.
Usar cuando se lee, escribe, busca o consolida la memoria persistente entre sesiones de Savia.
Usar cuando se escribe, valida o implementa una spec ejecutable SDD.
Test-driven development with vertical-slice red-green-refactor cycles. Use when applying TDD to a new feature or bug fix, when user mentions 'red-green-refactor', 'tdd', 'test-first', 'vertical slice' — explicitly avoids the 'horizontal slicing' anti-pattern (write all tests first, then all code) which produces brittle implementation-coupled tests.
TEMPLATE — copia este directorio para crear una skill nueva. NO se carga en runtime.
| name | overnight-sprint |
| description | Usar cuando se quiere ejecutar tareas de bajo riesgo de forma autónoma durante la noche. |
| summary | Sprint autonomo nocturno: ejecuta tareas de bajo riesgo en bucle. Genera PRs Draft en ramas agent/overnight-*. Revision humana obligatoria al dia siguiente. |
| maturity | experimental |
| context | fork |
| agent | dev-orchestrator |
| category | sdd-framework |
| tags | ["autonomous","overnight","batch","low-risk"] |
| priority | medium |
If you were dispatched as a subagent to execute a specific delegated task, skip this skill's full orchestration workflow. Execute only the assigned task, report result (DONE / DONE_WITH_CONCERNS / BLOCKED), and return. This guard prevents runaway skill activation in nested agent contexts.
Regla de seguridad:
@docs/rules/domain/autonomous-safety.md— NUNCA merge, SIEMPRE PR Draft con reviewer humano.
AUTONOMOUS_REVIEWERoutput/overnight-results-{YYYYMMDD}.tsvoutput/overnight-summary-{YYYYMMDD}.mdoutput/agent-runs/overnight-{YYYYMMDD}-audit.log1. AUTONOMOUS_REVIEWER configurado en pm-config.local.md → si no: ❌ ABORT
2. Doble opt-in (SPEC-186): → si no: ❌ ABORT
bash scripts/savia-double-optin-check.sh \
--skill overnight-sprint --confirm-autonomous
Requiere AMBOS: OVERNIGHT_SPRINT_ENABLED=true Y flag explicito.
3. Hay tareas etiquetadas como overnight-safe en el backlog → si no: ⚠️ nada que hacer
4. Tests del proyecto pasan en estado actual (baseline) → si no: ❌ ABORT
5. Auto Mode activado (claude --enable-auto-mode) → si no: ⚠️ warning, continuar
Desde Claude Code 2026-03-24, el flag --enable-auto-mode activa un classifier
pre-tool-call que bloquea acciones potencialmente destructivas (rm masivo,
exfiltración de datos sensibles, ejecución de código malicioso) sin detener
el bucle autónomo. Es complementario a los gates de autonomous-safety.md
— no reemplaza AUTONOMOUS_REVIEWER ni AGENT_MAX_CONSECUTIVE_FAILURES,
añade una capa extra de defensa en profundidad.
Activar: claude --enable-auto-mode al lanzar la sesión que invoca esta skill,
o desde Desktop/VS Code Settings → Claude Code → Auto Mode.
Humano ejecuta /overnight-sprint
↓
Validar prerequisitos (reviewer, enabled, tareas, baseline tests)
↓
Mostrar lista de tareas candidatas → PEDIR CONFIRMACIÓN HUMANA
↓
[Humano confirma] → Registrar baseline de métricas
↓
LOOP (hasta max_tasks o max_failures o fin de tareas):
↓
Tomar siguiente tarea del backlog
↓
Crear rama: agent/overnight-{YYYYMMDD}-{tarea_id}
↓
Crear worktree aislado
↓
Implementar tarea (time-box: AGENT_TASK_TIMEOUT_MINUTES)
↓
Ejecutar tests
↓
¿Tests pasan Y métricas no degradan?
SÍ → Crear PR Draft con reviewer → registrar en results.tsv como "pr-created"
NO → Descartar rama → registrar como "discarded"
↓
¿Crash o timeout?
SÍ → Registrar como "crash" o "timeout" → incrementar contador de fallos
↓
¿Fallos consecutivos >= AGENT_MAX_CONSECUTIVE_FAILURES?
SÍ → ABORT → registrar razón
↓
Siguiente tarea
↓
Generar informe resumen
↓
Notificar a AUTONOMOUS_REVIEWER
timestamp tarea_id rama status tests_pass metricas_delta pr_url descripcion
2026-03-12T01:15:00 AB-1234 agent/overnight-20260312-fix-lint pr-created true coverage:+2.1% https://... Fix linter warnings in auth module
2026-03-12T01:32:00 AB-1235 agent/overnight-20260312-add-tests pr-created true coverage:+5.3% https://... Add unit tests for user service
2026-03-12T01:48:00 AB-1236 agent/overnight-20260312-refactor-dto discarded true complexity:+0.2 - Refactor DTOs - complexity increased
2026-03-12T02:05:00 AB-1237 agent/overnight-20260312-update-deps crash - - - Dependency update caused build failure
NUNCA → Hacer merge de un PR
NUNCA → Aprobar un PR
NUNCA → Hacer commit en rama de humano (main, develop, feature/*)
NUNCA → Crear tareas en el backlog
NUNCA → Modificar configuración del proyecto
NUNCA → Instalar dependencias nuevas sin que estén en la tarea
SIEMPRE → PR en Draft con AUTONOMOUS_REVIEWER asignado
SIEMPRE → Ramas agent/overnight-*
SIEMPRE → Registrar CADA intento en results.tsv
SIEMPRE → Generar audit log
| Métrica | Objetivo |
|---|---|
| PRs creados por sesión | ≥ 5 |
| Tasa de aceptación (PRs merged por humano) | ≥ 70% |
| Crashes por sesión | ≤ 3 |
| Tiempo medio por tarea | ≤ AGENT_TASK_TIMEOUT_MINUTES |
SE-206: Para detección dinámica de idle entre tareas usar
scripts/agent-wait-idle.sh. Verdocs/rules/domain/agent-idle-protocol.md.