Capture Desktop

gasserane/personal-skills/skills/capture-desktop

作者 gasseranea22368a1505356d9815ee7aa7ffd65f0afeb5bad無授權條款收錄於 2026年10月9日更新於 2026年10月9日

Capture a claude.ai Desktop session into the MEL file system. Use when Ane finishes a session in the Claude Desktop app and wants the work captured on the device — triggered by "/capture-desktop", "capture this desktop session", "I did this on Claude desktop", "save my desktop work", "import from claude.ai". Paste-driven; no cloud API exists. Stages a local transcript, classifies content into deliverables, decisions/rules, project-knowledge changes, and full log, then files each to its home. Auto-files transcript + deliverables; confirms memory/wiki/CLAUDE.md writes one-by-one.

AI 產生的概覽

擷取貼上的 Claude Desktop 工作階段,將內容分類,並把交付項目、決策與知識編輯歸檔到磁碟。

功能
此技能接收貼上的 Claude Desktop 對話(或檔案路徑),在本機暫存一份逐字且去重的逐字稿,並把實質內容分成交付項目、決策/規則/經驗教訓、專案知識變更與完整日誌四類。交付項目會自動歸檔到工作資料夾,而記憶、wiki 與 CLAUDE.md 的寫入則會逐筆提出並確認。接著它會執行同步檢查、提交工作資料夾變更,並輸出摘要報告。
適用情境
當 Claude Desktop 應用程式中的工作階段結束後需要擷取到裝置上時使用,例如使用者表示自己在 Claude Desktop 上做了工作,或要求儲存或匯入該桌面工作時。由於沒有雲端 API,它適用於貼上驅動的擷取方式。
執行需求
需要代理的檔案讀寫與編輯工具、一個具備 git 與推送權限的本機工作資料夾,以及輔助指令碼 scripts/capture_desktop.py 和 scripts/check_desktop_sync.py。它也會參照一個 claude-config 複本,以及用於 CLAUDE.md 提交的同步指令碼。此技能本身不附帶指令碼,僅為說明文件。

Capture Desktop Session

The device-side mirror of scripts/check_desktop_sync.py. That script governs device-to-cloud sync. This skill governs cloud-to-device capture. claude.ai has no API, so capture is paste-driven: Ane pastes a finished Desktop session and this skill routes its content to the right places on disk.

Step 1 — Get the content

Ask Ane to paste the Desktop conversation, or accept a file path if she gives one. If the paste is long, write it to a temp file first to avoid truncation.

Step 2 — Stage the transcript

Run the helper to stage a verbatim, deduplicated transcript:

python scripts/capture_desktop.py stage --input <tempfile> --title "<short title>"
  • Exit 0: prints the transcript path. Continue.
  • Exit 3: [DUP] already captured — this session was captured before. Tell Ane and stop unless she confirms she wants to re-route it anyway.

Transcripts are local-only (gitignored, OneDrive-backed). The staged transcript IS the "full log" bucket — no further action for that bucket.

Step 3 — Classify the content

Read the staged transcript. Sort its substantive content into four buckets:

  1. Deliverables — documents, analyses, tables, drafts Ane produced.
  2. Decisions / rules / lessons — locked decisions, framework calls, guidance on how the system should work, feedback on your behaviour. Capture successes as well as corrections: an approach the transcript shows Ane praised, reused, or locked is a success worth banking as a feedback memory (with Why: and How to apply:) so /improve-system trends confirmed successes, not only corrections.
  3. Project-knowledge changes — edits that belong in canonical sources (mel_wiki/ pages, ~/.claude/CLAUDE.md).
  4. Full log — already staged in Step 2. No action.

If a bucket is empty, say so. Do not invent content to fill it.

Step 4 — Route each bucket

Deliverables (auto-file). Propose a path under the work folder, save with the Write tool, and name it in the summary. Apply mel_wiki/wiki/concepts/edit-preservation-protocol.md when target file exists.

Decisions / rules / lessons (confirm each). For each item, propose the target — a memory file under the memory dir, a wiki entry, or a feedback memory — and show the exact content you will write. Get a yes/no from Ane before writing. Apply mel_wiki/wiki/concepts/edit-preservation-protocol.md when target file exists.

Project-knowledge changes (confirm each). For each item, propose the exact edit to the canonical source and get a yes/no. Apply the change with the Edit tool, scope-bounded. Apply mel_wiki/wiki/concepts/edit-preservation-protocol.md when target file exists.

  • For mel_wiki/ edits: stage for the work-folder commit in Step 5.
  • For ~/.claude/CLAUDE.md edits: after applying, commit cross-repo by running bash ~/.claude-config-clone/scripts/sync-from-local.sh --auto "capture-desktop: <one-line reason>". This copies live CLAUDE.md into the claude-config clone, reconciles, commits, and pushes. It exits 0 silently if nothing changed.

Step 5 — Close the loop and commit

If any canonical source was edited (wiki or CLAUDE.md), run the sync check so the re-upload flag for the Desktop project fires:

python scripts/check_desktop_sync.py

Report any [DRIFT] it surfaces. Then commit the work-folder changes (deliverables and mel_wiki/ edits only — transcripts are gitignored). Stage by name, never git add -A:

git add <deliverable paths> <mel_wiki paths>git commit -m "feat(capture): desktop session <slug> — <what landed>"git push

Step 6 — Report

Deliver a tight summary:

CAPTURE-DESKTOP — <date>  Transcript: desktop-captures/<slug>/transcript.md (local)  Deliverables: <list or none>  Decisions/rules written: <list or none>  Canonical edits: <list or none> (CLAUDE.md pushed to claude-config: yes/no)  Sync check: <in sync / N drift flagged>  Commit: <short-SHA> pushed / nothing to commit

來源與署名

來源:gasserane/personal-skills位於skills/capture-desktop提交a22368a

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架