skillopt-sleep
できること
最近のローカルCursorセッションを確認し、繰り返し行われている作業を見つけて、プロジェクトスキルの改善を提案します。実際の使用から、手作業で書き直さずにアシスタントを向上させたいCursorユーザー向けです。
使う場面
- ✓最近のセッションからCursorに学ばせたいとき。
- ✓繰り返し行っている作業を、Cursorスキルにまとめたいとき。
- ✓提案されたスキルの変更を確認したり、採用したりしたいとき。
スキルのリンク
https://github.com/microsoft/SkillOpt/blob/main/plugins/cursor/skills/skillopt-sleep/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“最近のCursorセッションを確認し、私が繰り返している作業をカバーするスキルを提案してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは最近のセッション記録を読み、繰り返し行われている作業を抽出します。それらを再実行し、確認用に変更案を準備します。保留データでの評価が改善した変更だけを残し、採用するまで実際の内容は変わりません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
自動で動きますか?
いいえ。依頼したとき、または明示的に設定したスケジュールがあるときに動きます。
提案されたスキルはどこに保存されますか?
Cursorのプロジェクトスキルフォルダーに保存されます。これがCursorの想定される保存先です。
追加のツールが必要ですか?
再実行には、任意でCursor Agentのコマンドラインバックエンドを使えます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 19k
- ランキング
- #10501
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
skillopt-sleep
19kエージェントが、夜間レビューで過去のCodexセッションから学び、提案されたスキルの変更をテストして、より良い結果が出たものだけを残すよう支援します。
skillopt-sleep
19kエージェントが過去の利用から改善し、夜間にセッションを確認して、保留データでのスコアで検証したスキルとメモの変更を提案します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。