skillopt-sleep
Skill này làm gì
Rà soát các phiên Cursor cục bộ gần đây, tìm công việc lặp lại và đề xuất cải tiến cho một skill dự án. Dành cho người dùng Cursor muốn trợ lý của họ tiến bộ từ việc sử dụng thực tế mà không phải viết lại thủ công.
Khi nào nên dùng
- ✓Khi bạn muốn Cursor học từ các phiên làm việc gần đây của bạn.
- ✓Khi bạn muốn gom công việc lặp lại thành một skill Cursor.
- ✓Khi bạn muốn xem lại hoặc áp dụng một thay đổi skill được đề xuất.
Liên kết skill
https://github.com/microsoft/SkillOpt/blob/main/plugins/cursor/skills/skillopt-sleep/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xem các phiên Cursor gần đây của tôi và đề xuất một skill bao quát công việc mà tôi lặp lại.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đọc các bản ghi phiên gần đây của bạn và khai thác tác vụ lặp lại. Nó phát lại chúng và đặt một thay đổi được đề xuất để xem xét, chỉ giữ những thay đổi cải thiện điểm trên một tập giữ lại. Không có gì trực tiếp thay đổi cho đến khi bạn áp dụng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Nó có tự chạy không?
Không. Nó chạy khi bạn yêu cầu, hoặc khi bạn cài một lịch trình mà bạn đã yêu cầu rõ ràng.
Skill được đề xuất được đặt ở đâu?
Vào thư mục skill Cursor của dự án, đó là đích dự kiến cho Cursor.
Nó có cần công cụ bổ sung không?
Một backend dòng lệnh Cursor Agent tùy chọn có thể dùng để phát lại.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 19k
- Vị trí xếp hạng
- #10501
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
skillopt-sleep
19kGiúp agent của bạn học từ các phiên Codex trước đó qua rà soát hằng đêm, chỉ giữ những thay đổi skill đề xuất có điểm tốt hơn.
skillopt-sleep
19kGiúp agent của bạn cải thiện từ việc dùng trước đây, rà soát phiên qua đêm và đề xuất thay đổi skill, bộ nhớ được kiểm tra bằng điểm giữ lại.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.