/delegation:writing-handoffsfrom delegation
Use when you need to compact the current conversation into a handoff document so a fresh session or agent can continue a branch or task with full context. Trigger phrases include "write a handoff", "hand this off", "compact this for a fresh agent", "handoff doc", "summarize this branch's context", "I'll pick this up later", "create a handoff for the next session". Produces a structured Markdown doc (from a template) capturing purpose, current state, files affected, rationale, do's-and-don'ts learned, and suggested skills. Do NOT use to author PRDs, ADRs, plans, or specs — those are separate durable artifacts that a handoff references by path, not reproduces. Do NOT use for a routine end-of-task summary message; a handoff is a written file for a different session to load.
Ships in delegation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Invoke this skill when a conversation has accumulated context that a fresh session or another agent will need to continue the work — typically when you're pausing a branch, switching machines, hitting a context limit, or handing a task to a teammate's agent.
A handoff is the agent's own compaction: a written file that preserves the irrecoverable context — why the work is shaped the way it is, what was tried and abandoned, the gotchas learned along the way. A fresh agent can read the diff and the commits; it cannot reconstruct the reasoning. That reasoning is what this document carries.
Gather context from the repo, not from memory. Run, don't recall:
git rev-parse --abbrev-ref HEAD — current branchgit remote get-url origin — repository URLgit status --short and git diff --stat — files touchedgit log --oneline -10 — recent commits
Use these to fill the factual header fields exactly.Resolve the output path.
docs/handoffs/YYYYMMDD-handoff_<name>.md<name> defaults to the current branch slug when the user does not
supply one (e.g. on branch handoff-skill →
docs/handoffs/20260608-handoff_handoff-skill.md).Fill the template. Copy template.md (in this skill directory) and
replace every placeholder with real content drawn from the conversation and
the gathered git facts.
Write the file and report the path back so the user can open or commit it.
<redacted> and note where the real value
lives (e.g. "in macOS Keychain under …").See template.md in this directory. Sections:
Title · Date · Repo/Branch/Status · Purpose & Vision · Current State ·
Files Affected · Rationale & Key Decisions · Do's and Don'ts · Important
Context · Suggested Skills · References.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/delegating-to-claude-pUse when authoring a non-interactive `claude -p` invocation or designing a delegation prompt for autonomous Claude on the consumer side. Provides the empirically-validated flag set, prompt template, steers-vs-needs-naming map, failure-mode catalog, recipe templates, and cost reference distilled from 22 sub-experiments (S1 → S22) in the agentic-harness-lab v0.8.0 dogfood arc. Trigger phrases include "delegate to claude -p", "claude -p flags", "autonomous claude", "one-shot claude", "claude -p prompt", "headless claude". Do NOT use for interactive Claude Code sessions, brainstorming, or genuine multi-turn work - `claude -p` is a one-shot contract; pick interactive Claude for those./delegating-to-codexUse when authoring a non-interactive `codex exec` invocation or deciding whether to hand a task from Claude Code to OpenAI Codex CLI. Provides the validated autonomous invocation, the sandbox/approval ladder, the JSON event schema for triage, a when-to-delegate framework, failure modes, and one empirical trial. Trigger phrases include "delegate to codex", "codex exec", "hand this to codex", "run codex", "codex --full-auto", "ask codex", "second opinion from codex", "have codex use a skill", "run a skill in codex", "codex pr-review". Do NOT use for interactive pair-programming in the Codex TUI, or for trivial CRUD/UI/first-attempt tasks where a model handoff adds no value. For autonomous Claude (not Codex), use `delegating-to-claude-p` instead.Other plugins' skills for the same job
delegation@agentic-skills is listed by agentparadise/agentic-skills — review the source before installing
npx claudepluginhub agentparadise/agentic-skills --plugin delegation