handoff
Generate a context-rich briefing prompt for an external agent (Claude Code, Cursor, etc.)
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Generate a context-rich briefing prompt for an external agent (Claude Code, Cursor, etc.)
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Interview me about this card to develop the acceptance criteria
Workshop how to break this card into smaller spawned cards and capture entries in the card plan
Split a working doc into the card's specs, plan, and test cases once its shape is clear
| name | handoff |
| description | Generate a context-rich briefing prompt for an external agent (Claude Code, Cursor, etc.) |
| label | Handoff |
| pill-order | {"not-started":7,"specifying":5,"implementing":6,"reviewing":6} |
| workhorse-version | 0.1.0 |
The user wants to hand off work on this card to an external agent (Claude Code, Cursor, or another AI tool). Generate the briefing prompt in one pass — do not ask the user to confirm focus first.
claude-cli:// deep link), alongside the standard copy button. The deep link URL-encodes the block and is capped near 4500 encoded characters, so a full briefing routinely overflows it and disables the button. To avoid that:
.workhorse/handoffs/{card-id}/handoff.md (create the folder if it doesn't exist). Workhorse commits and pushes this file with the card's branch at the end of your turn — you do not commit it yourself.<card-branch> and check it out in a git worktree (e.g. git fetch origin then git worktree add ../<repo>-{card-id} <card-branch>) rather than switching branches in the user's working tree, pulling the latest so the committed handoff.md is present (an existing local branch or worktree may be stale), and directs it to read .workhorse/handoffs/{card-id}/handoff.md for its full briefing and follow it. Keep the pointer well under 1000 characters so the deep link always fits.handoff.md file itself is exempt: it is a real file, not embedded in a fence, so it may contain fenced code blocks freely.handoff.md, teach the agent how to find information (read the specs, diff the branch) rather than inlining large file contents.handoff.md, say so in that line.Whether delivered inline or written to handoff.md, the briefing contains these sections, in order:
1. Workhorse context — explain the spec-driven workflow:
.workhorse/specs/ as structured markdown with YAML frontmatter and checkbox acceptance criteria.workhorse/design/mockups/{card-id}/ as standalone HTML with inline CSS.workhorse/design/design-system.md.workhorse/plans/{card-id}/ — a free-form markdown working document with tech design notes and/or a checklist of build steps. Read it first if it exists, tick items (- [ ] → - [x]) as work completes, and expand steps into sub-items if they turn out larger than anticipated2. Card context — the card title, identifier, and description (when present)
3. Branch instructions — tell the agent to check the card's branch out in a git worktree (e.g. git fetch origin then git worktree add ../<repo>-{card-id} <card-branch>) rather than switching branches in place, so the user's working tree is left undisturbed, and to diff the branch against the upstream base branch to understand what specs and mockups have been added or changed
4. Journal summary — summarise what has happened so far on this card based on the conversation history (what was discussed, what decisions were made, what work was done)
5. Conversation context — compress the key points from the conversation: decisions made, open threads, areas explored, any unresolved questions. This gives the external agent continuity
6. Focus instructions — what the external agent should do, based on the focus you inferred