create-handoff
"Create handoff document for passing work to another session. **ALWAYS use when** the user says 'create a handoff', 'hand this off', 'save progress for…
от coalesce-labs★ 20 звёзд на GitHub
Установить create-handoff в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Create Handoff
Paths. Commands below name files inside this skill's own directory as ${CLAUDE_SKILL_DIR}/…. Claude Code fills that in. On any other harness, set CLAUDE_SKILL_DIR to the absolute directory that contains this SKILL.md before running them. If you cannot, stop and report skill_dir_unresolved.
Prerequisites
# Thoughts must exist for this skill's documents. CTL-2306: the full host setup check (daemon,
# registry, house rules) belongs to the setup-catalyst skill, not to a skill that must run anywhere.
-e thoughts/shared || echo "⚠️ thoughts/shared is missing in $(pwd) — run \`humanlayer thoughts init\` or the setup-catalyst skill; if the prompt names an output path, write there" >&2
Configuration Note
This command uses ticket references like PROJ-123. Replace PROJ with your Linear team's ticket prefix:
- Read from
.catalyst/config.jsonif available - Otherwise use a generic format like
TICKET-XXX - Examples:
ENG-123,FEAT-456,BUG-789
You are tasked with writing a handoff document to hand off your work to another agent in a new session. You will create a handoff document that is thorough, but also concise. The goal is to compact and summarize your context without losing any of the key details of what you're working on.
Process
1. Filepath & Metadata — computed, never composed
IMPORTANT: Document Storage Rules
- ALWAYS write to
thoughts/shared/(appropriate subdirectory) - NEVER write to
thoughts/searchable/— this is a read-only search index
Do NOT compose the filename yourself. thoughts/shared is a per-project symlink: the same relative path resolves to a different physical subtree depending on which worktree you are in, and a hand-typed HH-MM-SS drifts between the filename, the frontmatter and the citation. Both produce a path you announce and the next turn cannot find (CTL-2104). Ask the helper instead — it stamps the time mechanically and resolves the symlink for you:
source "${CLAUDE_SKILL_DIR}/scripts/lib/handoff-durability.sh"
# <scope> = the ticket id (e.g. PROJ-123), or `general` when there is no ticket.
# <description> = brief kebab-case description.
HANDOFF_PATHS="$(handoff_resolve_path "<scope>" "<description>")"
HANDOFF_REL="$(printf '%s\n' "$HANDOFF_PATHS" | sed -n '1p')" # thoughts/shared/handoffs/...
HANDOFF_ABS="$(printf '%s\n' "$HANDOFF_PATHS" | sed -n '2p')" # /Users/.../repos/<project>/shared/...
printf 'relative: %s\nabsolute: %s\n' "$HANDOFF_REL" "$HANDOFF_ABS"
Capture both echoed lines. $HANDOFF_ABS is the absolute path you will cite; it is the one form that stays correct no matter which worktree the reader is in.
Get current git information for metadata (branch, commit, repository name) using git commands. Use the timestamp already embedded in $HANDOFF_REL for the frontmatter date — do not generate a second one.
Examples of what the helper returns:
- With ticket:
thoughts/shared/handoffs/PROJ-123/2025-01-08_13-55-22_auth-feature.md - Without ticket:
thoughts/shared/handoffs/general/2025-01-08_13-55-22_refactor-api.md
2. Handoff writing.
Using the above conventions, write your document to a temp file — handoff_write_verified installs it at $HANDOFF_ABS in step 3 and proves the bytes landed:
HANDOFF_TMP="$(mktemp -t handoff-XXXXXX)" # Write your document content here.
Use the following YAML frontmatter pattern. Use the metadata gathered in step 1, Structure the document with YAML frontmatter followed by content:
Use the following template structure:
---
date: [Current date and time with timezone in ISO format]
researcher: [Researcher name from thoughts status]
git_commit: [Current commit hash]
branch: [Current branch name]
repository: [Repository name]
topic: "[Feature/Task Name] Implementation Strategy"
tags: [implementation, strategy, relevant-component-names]
status: complete
last_updated: [Current date in YYYY-MM-DD format]
last_updated_by: [Researcher name]
type: handoff
source_ticket: [TICKET-ID or null]
source_plan: "plan-filename" # or null
source_research: "research-filename" # or null
---
# Handoff: {TICKET or General} - {very concise description}
## Resume contract
- **Stopped at:** {the exact point you stopped: the file:line, command, or step you were in the middle of, and whether it finished}
- **Next step:** {ONE concrete action the next session takes first, e.g. "run `bun run test` in <worktree>, then fix the failing contract test"}
- **Re-arm:** {every loop, wakeup, monitor, watch or background task that was running and died with this session, with the command that restarts it; "none" if none}
- **Open questions:**
- {question} **Default if unanswered:** {what the next session does if no human answers}
- {"none" if none}
- **Autonomy:** {whether this work may continue unattended; list every action that needs a human first (merge, deploy, delete, a message to a person), or "non
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Write - 02
Bash - 03
Read
Вложенные файлы
- agents/vendor.lock.json
- agents/vendor.yaml
- scripts/lib/handoff-durability.sh
FAQ
Что делает скилл create-handoff?
"Create handoff document for passing work to another session. **ALWAYS use when** the user says 'create a handoff', 'hand this off', 'save progress for later', 'I need to stop here', or when context usage is high (>60%) during implementation and work needs to continue in a fresh session."
Как установить скилл create-handoff?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-handoff запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…