AI SummaryTask Handoff enables seamless continuation of work across Claude sessions by identifying the current task list and generating commands to resume tasks in a new session. Developers and project managers benefit from structured task persistence and clear handoff workflows.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "task-handoff" skill in my project. Please run this command in my terminal: # Install skill into the correct directory mkdir -p .claude/skills/task-handoff && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/task-handoff/SKILL.md "https://raw.githubusercontent.com/berlysia/dotfiles/master/.skills/task-handoff/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
Identify current session's task list and generate commands to start a new Claude session sharing the same tasks. Use when "handing off", "continuing later", "resuming tasks", or preparing work for next session.
Task Handoff
現在のセッションのタスクリストを特定し、次のClaudeセッションで同じタスクを引き継ぐためのコマンドを生成します。
前提
• タスクは ~/.claude/tasks/<task-list-id>/<num>.json に保存される • cat <file> | jq '.subject' でタスクの件名、.description で詳細を確認可能 • CLAUDE_CODE_TASK_LIST_ID 環境変数でタスクリストIDを指定すると、新規セッションで同じタスクリストを共有できる(Claude Code内部で最優先参照される)
Step 1: 現在のタスクリストを取得
TaskList ツールを呼び出し、現在のセッションにタスクがあるか確認する。 タスクがない場合は「タスクリストが空です。先に /decomposition でタスクを作成するか、TaskCreate でタスクを追加してください。」と案内して終了する。
Step 2: タスクリストIDを特定
タスクリストID(= ~/.claude/tasks/ 配下のディレクトリ名)を特定する。 $CLAUDE_TASK_LIST_ID が設定済みならそれを使用。未設定なら claude-task-list-id スクリプトで検索する。 • TaskGet で最初のタスクの subject を読み取る • 以下を実行: `bash echo ${CLAUDE_TASK_LIST_ID:-$(claude-task-list-id "<TaskGetで取得した最初のタスクのsubject>")} ` 出力されたディレクトリ名が TASK_LIST_ID となる。 見つからない場合: ~/.claude/tasks/ にまだ書き込まれていない可能性がある。ユーザーに「タスクが未保存の可能性があります」と通知する。 注意: TASK_LIST_ID はタスクファイルの格納ディレクトリ名であり、通常はセッションIDと一致するが、CLAUDE_CODE_TASK_LIST_ID 環境変数で別セッションのタスクリストを使用している場合は異なる。--resume に渡すセッションIDとは区別すること。
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster