skillopt-sleep
Qué hace
Revisa las sesiones locales recientes de Cursor, encuentra el trabajo recurrente y propone mejoras para una skill del proyecto. Es para usuarios de Cursor que quieren que su asistente mejore con el uso real, sin reescritura manual.
Cuándo usarla
- ✓Cuando quieres que Cursor aprenda de tus sesiones recientes.
- ✓Cuando quieres consolidar el trabajo recurrente en una skill de Cursor.
- ✓Cuando quieres revisar o adoptar un cambio propuesto en la skill.
Link de la skill
https://github.com/microsoft/SkillOpt/blob/main/plugins/cursor/skills/skillopt-sleep/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
“Mira mis sesiones recientes de Cursor y sugiere una skill que cubra el trabajo que sigo repitiendo.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill lee tus registros recientes de sesiones y extrae las tareas recurrentes. Las reproduce y prepara un cambio propuesto para revisión, conservando solo los cambios que mejoran una puntuación de validación separada. Nada en vivo cambia hasta que lo adoptes.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
SkillOpt-Sleep for Cursor
SkillOpt-Sleep reviews recent local Cursor sessions, mines recurring tasks, replays those tasks, and proposes bounded improvements to a project Cursor skill. With the default gate enabled, a proposal is accepted only when it improves the held-out score. A normal run stages the proposal for review; nothing live changes until explicit adoption. There is no model-weight training.
This plugin has no session-end hook and no MCP server. Run the cycle only when the user asks, or install a schedule only when the user explicitly requests one.
Cursor target
Always use this project-relative target for Cursor-visible learning:
.cursor/skills/skillopt-sleep-learned/SKILL.md
Pass it through --target-skill-path on harvest, dry-run, and run.
Without an explicit target, the shared engine uses a Claude-managed skill under
~/.claude/skills, which is not the intended Cursor project skill.
The shared engine can also evolve project CLAUDE.md. If that secondary memory
target is unwanted, set "evolve_memory": false in
~/.skillopt-sleep/config.json before running.
Choose the runner
Use one of these supported command paths consistently:
- Source checkout on macOS/Linux:
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" <action> ... - Source checkout on Windows:
powershell -File "$env:SKILLOPT_SLEEP_REPO\plugins\run-sleep.ps1" <action> ... - Installed engine on any platform:
skillopt-sleep <action> ...
If SKILLOPT_SLEEP_REPO is not set and skillopt-sleep is unavailable, stop
and explain that the engine must be installed or a SkillOpt checkout must be
selected. Do not substitute a hand-written edit for the engine workflow.
Core workflow
- Harvest local Cursor JSONL transcripts read-only.
- Mine recurring, checkable task records from session digests.
- Replay tasks under the current skill and memory through the selected backend.
- Reflect on failures and propose bounded edits.
- Gate the candidate on held-out real tasks.
- Stage accepted proposals under
<project>/.skillopt-sleep/staging/<timestamp>/. - Adopt only after review, backing up existing live targets first.
Commands
Use the installed-command form below, or replace skillopt-sleep with the
platform-specific source runner described above.
TARGET_SKILL=.cursor/skills/skillopt-sleep-learned/SKILL.md
# Inspect current state and the latest staged proposal.
skillopt-sleep status --project "$(pwd)"
# Inspect mined tasks without provider spend.
skillopt-sleep harvest --project "$(pwd)" --source cursor \
--target-skill-path "$TARGET_SKILL" --max-sessions 5 --max-tasks 3
# First smoke check: deterministic and no provider calls.
skillopt-sleep dry-run --project "$(pwd)" --source cursor --backend mock \
--target-skill-path "$TARGET_SKILL" --max-sessions 5 --max-tasks 3 --json
# Model-driven optimization through the authenticated Cursor Agent CLI.
skillopt-sleep run --project "$(pwd)" --source cursor --backend cursor \
--target-skill-path "$TARGET_SKILL" \
--max-sessions 5 --max-tasks 3 --progress
# Inspect selections, then apply the reviewed managed proposal.
skillopt-sleep status --project "$(pwd)"
skillopt-sleep adopt --project "$(pwd)" --legacy
For fan-out proposals, use repeatable --skill NAME or --all-skills after
review. Bare adopt deliberately refuses a night containing fan-out rows.
Actions are status, harvest, dry-run, run, adopt, schedule, and
unschedule.
- Default backend is
mock, which is deterministic and makes no provider calls. --backend cursoruses the user's authenticated Cursor Agent CLI budget for model-driven mining, replay, judging, and reflection.--source cursorreads~/.cursor/projects/<workspace>/agent-transcripts/*/*.jsonl.--cursor-home PATHoverrides the Cursor home used for harvesting.--scope invokedselects the current workspace;--scope allincludes every Cursor workspace.--cursor-path PATHorSKILLOPT_SLEEP_CURSOR_PATHselects a non-defaultcursor-agentexecutable.--model NAMEorSKILLOPT_SLEEP_CURSOR_MODELoverrides the Cursor model.- Check model identifiers with
cursor-agent --list-models; when cost matters, verify the billed variant in Cursor's usage reporting. - Keep live runs bounded with
--max-sessions,--max-tasks, and--progress. - A held-out gain is evidence for that run, not a promise of general improvement.
Preguntas frecuentes
¿Se ejecuta por su cuenta?
No. Se ejecuta cuando lo pides, o cuando instalas una programación que hayas pedido explícitamente.
¿Adónde va la skill propuesta?
A una carpeta de skills de Cursor del proyecto, que es el destino previsto para Cursor.
¿Necesita una herramienta adicional?
Para las reproducciones se puede usar, de forma opcional, el backend de línea de comandos de Cursor Agent.
Detalles
Descripción original del autor
Use when the user wants Cursor to learn from recent local sessions, asks for an offline sleep or dream cycle, wants to consolidate recurring work into a Cursor skill, or requests SkillOpt-Sleep status, harvest, dry-run, run, scheduling, review, or adoption. Drives the validation-gated skillopt_sleep engine with Cursor transcripts and the optional Cursor Agent CLI backend.
repo: microsoft/SkillOpt
Popularidad
- Estrellas en GitHub
- 19 mil
- Posición en el ranking
- #10501
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
skillopt-sleep
19 milAyuda a tu agente a aprender de sesiones pasadas de Codex en una revisión nocturna, probando los cambios propuestos en la skill y conservando solo los que puntúan mejor.
skillopt-sleep
19 milAyuda a tu agente a mejorar a partir del uso pasado, revisando las sesiones durante la noche y proponiendo cambios en skills y memoria que se comprueban con una puntuación separada.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.