Skip to content
SkillModel-led2,196 tokens in use

SkillOpt Sleep for Cursor

Reviews recent Cursor sessions, replays recurring tasks and stages edits to a project Cursor skill that pass a held-out score gate.

19,169 stars on the repository MIT Licensemicrosoft/SkillOpt · plugins/cursor/skills/skillopt-sleep

Skill label

measured from its files

What installing SkillOpt Sleep for Cursor costs

82tokens idle
2,196tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter12/15
  • Structure25/25
  • Examples9/15
  • Output15/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 66

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity96
  • Maintenance84
  • Community68
  • Maturity28
  • Momentum40

SkillOpt Sleep for Cursor reads local Cursor agent transcripts, mines the tasks you repeat and proposes bounded edits to the project skill at .cursor/skills/skillopt-sleep-learned/SKILL.md.

A proposal is accepted only when it improves a held-out score with the default gate on. A normal run stages it for review, and nothing live changes until you adopt it. The plugin has no session-end hook and no MCP server, so it runs only when asked.

What You Get

  • A fixed Cursor target path for learned skill edits, passed to harvest, dry-run and run
  • Three command forms: a source checkout runner for macOS and Linux, one for Windows, and an installed skillopt-sleep command
  • A mock backend for smoke checks and a cursor backend that uses your authenticated Cursor Agent CLI
  • A reviewed-task workflow: export tasks, redact them, mark them reviewed, then replay with a real backend

Common Use Cases

  • Teach a Cursor project skill from the work you repeat in Cursor agent sessions
  • Export and review mined tasks before sending anything to a provider
  • Schedule a nightly Cursor cycle after setting source, target and backend in the config file
  • Check Cursor model names with the agent CLI and keep live runs small with session and task limits

What Makes It Unique

It is built around Cursor’s constraints. Backend calls run in an empty temporary workspace in read-only Ask mode, tool-aware replay is disabled and a task with a tool_called check fails before Agent mode starts, and the skill tells the agent not to claim that repository-dependent behaviour was validated. Real backends refuse a task file that is not marked reviewed.

Under The Hood

The skill is prose that tells the agent to run skillopt-sleep (installed) or the bundled runner scripts, which start the Python engine. It reads Cursor transcript files under the Cursor home folder, read-only, keeping message text and tool names and dropping tool arguments and outputs; secret-shaped strings are redacted but the skill says that is not a guarantee. The cursor backend calls the Cursor Agent CLI and other backends call their own providers, so task excerpts leave the machine. Runs write staging files into the project, adopt overwrites the target skill after a backup, and schedule installs a nightly cron job on Unix or a Task Scheduler entry on Windows.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers