save-session-resume について
save-session-resumeは、再開可能な会話を記録し、正確な再開コマンドを用意するスキルです。対象セッションの特定、短い要約の保存、コマンドのコピーを案内し、コマンド自体は実行しません。
主な機能
- 01親会話と正確なセッションの特定
- 02再開構文と起動エイリアスの確認
- 03日付付きセッション索引の保存
- 04安全な要約とコマンドのコピー
活用シーン
- 01作業セッション終了前のコンテキスト保存
- 02元のディレクトリで特定の会話を再開
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ rubenflamshepherd/ ruben-agent-skills --skill save-session-resumeインストール後、Claude Code で/save-session-resumeを入力して読み込まれたか確認します。
同梱ファイルscripts/save_session_resume.py
README(原文)English
プロジェクトの README よりこの README の日本語訳はまだありません。以下は英語の原文です。日本語の紹介はページ上部をご覧ください。
Save a resumable session
- Use the
session-discoveryskill to identify the parent conversation, its authoritative session ID or transcript path, original working directory, and harness. For a current session, an environment-provided ID is a clue; verify it against transcript metadata. Do not use a subagent transcript or a--lastselector when an exact session is available. If the match is ambiguous, resolve it before saving. - Summarize the work in one short line: what was completed and the main remaining work or constraint. Do not include secrets or unrelated private transcript content.
- Verify the installed harness's resume syntax and the configured launch alias. Build one shell command that enters the saved working directory and resumes the exact session. Use
letsgofor Codex,vamosfor Claude Code, orpifor Pi when those aliases are configured. If the user requested dangerous permissions, confirm the alias supplies them; do not assume or add bypass flags by guesswork. Shell-quote the directory and any transcript path. Do not execute the resume command. - Run scripts/save_session_resume.py with
--session-id,--title,--summary, and--command. It appends or refreshes one dated entry in~/projects/session-resumes.md, preserves other entries, and copies a shell-safe summary comment followed by the command to the clipboard. Resolve the script path relative to thisSKILL.md. Use--indexonly when the user chose another shared file. - Confirm the script completed and link the index file. Tell the user the two-line clipboard text is ready to paste. Do not print the shell command in the response.
Honor narrower requests: if the user asks for only a file or only clipboard text, provide only that output. Keep the shared file at one entry per session; do not create dated per-session notes unless asked.
コメント
Markdown 対応