Copies `claude -r <session-id> --fork-session` for the current session to the clipboard. Use when the user wants to fork the current session into a new branch from another terminal, or asks to copy the fork command, session id, or `/fork` command.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add sasamuku/dotfiles --skill copy-resume --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Copy Resume?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/sasamuku-copy-resume)More formats (shields.io, HTML) on the badges page.
---
name: copy-resume
description: Copies `claude -r <session-id> --fork-session` for the current session to the clipboard. Use when the user wants to fork the current session into a new branch from another terminal, or asks to copy the fork command, session id, or `/fork` command.
allowed-tools: Bash(bash -c *)
---
# Copy Resume
現在のセッションから分岐 (fork) するコマンド `claude -r <session-id> --fork-session` を pbcopy する。`/fork` と同等の挙動を別ターミナルで行うためのもの。
## タスク
以下を **そのまま** 1 回の Bash 呼び出しで実行する:
```bash
bash -c '
PROJECT_DIR=$(pwd | sed "s|[/.]|-|g")
SESSION_FILE=$(ls -t ~/.claude/projects/"${PROJECT_DIR}"/*.jsonl 2>/dev/null | head -1)
if [ -z "$SESSION_FILE" ]; then
echo "error: no session file found for $(pwd)" >&2
exit 1
fi
SESSION_ID=$(basename "$SESSION_FILE" .jsonl)
CMD="claude -r $SESSION_ID --fork-session"
printf "%s" "$CMD" | pbcopy
echo "copied: $CMD"
'
```
出力の `copied: ...` 行をそのままユーザーへ返す。それ以上の説明は不要。
## 備考
- Claude Code の session JSONL はファイル名が sessionId になっている (`~/.claude/projects/<encoded-cwd>/<session-id>.jsonl`)
- encoded-cwd は `pwd` の `/` と `.` を `-` に変換したもの (先頭は元々 `/` なので自動的に `-` 始まりになる)
- スキル実行中は現セッションが最新更新なので `ls -t | head -1` で取れる
- zsh の nomatch エラーを避けるため `bash -c` で実行する
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.
Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.
Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"