Skip to content
Join free
davidondrej

Handoff skill

Capture session context for a fresh agent. Use for handoffs, context limits, switching focus, ending sessions, or splitting work across sessions.

$npx alyn-cli add handoff-by-davidondrej
View this skill on GitHubdavidondrej/skills/skills/handoff/SKILL.md
Pack stars
4,364
Pack installs
11k
Alyn Score
73/99
Updated
2 days ago
License
MIT

davidondrej

Handoff

What is the Handoff skill?

Handoff is a productivity skill by davidondrej for Claude Code, Cursor, Codex and other AI coding agents. Capture session context for a fresh agent. Use for handoffs, context limits, switching focus, ending sessions, or splitting work across sessions.

Capture the context a fresh agent needs to continue without re-asking, re-discovering, or repeating mistakes.

When to use it

Use for handoffs, context limits, switching focus, ending sessions, or splitting work across sessions.

What the SKILL.md covers

  • Core Principles
  • Procedure
  • Output Format
  • 1. Goal
  • 2. Why This Matters / Background
  • 3. Current State
  • 4. Key Decisions (and why)
  • 5. Traps & Dead Ends
  • 6. Relevant Files & Pointers
  • 7. Open Work (status, with dependencies)
Author
davidondrej
Pack
davidondrej/skills (30 skills)
Category
Productivity, #173 of 640
Alyn Score
73 / 99
Files
2
License
MIT
Last updated
2 days ago
Works with
Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot

Handoff compared to similar skills

SkillAlyn ScoreGitHub starsUpdated
Handoff · davidondrej734.4k2 days ago
Claude Handoff · vinvcn626.1k34 h ago
Claude Handoff · Matt Pocock86332k31 h ago
AI Team Orchestration · GitHub8642k3 days ago

Install Handoff

Pick your agent. Every command is ready to paste.

$npx alyn-cli add handoff-by-davidondrej

Detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

$npx skills add davidondrej/skills --skill handoff

Or use the open skills CLI directly.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads handoff when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the handoff skill”. In Codex, type $handoff.

The skill itself

SKILL.md

FolderGitHub

Handoff

Capture the context a fresh agent needs to continue without re-asking, re-discovering, or repeating mistakes.

Core Principles

  1. Describe state. Write "Auth is implemented; logout is not started," not "Implement logout next." The next agent chooses actions from the context.
  2. Link existing artifacts. Reference PRDs, plans, ADRs, issues, commits, diffs, and design docs by path or URL instead of copying their content.
  3. Preserve why. Capture decisions, rejected approaches, and failures that code alone cannot explain.
  4. Require verification. Present claims as context to check against the actual code, not facts to trust blindly.
  5. Redact secrets and PII. Never include keys, tokens, passwords, or personal data. Name credential locations (e.g. ".env.local, not committed"), never values.
  6. Keep only useful context. Omit obvious, redundant, or explanatory material recoverable from code or project configuration.

Procedure

  1. Read existing project instructions (AGENTS.md or equivalent). Keep the handoff session-specific; do not repeat those instructions.
  2. Read and update any prior handoff instead of starting from scratch.
  3. Treat user-supplied arguments as the next session's focus.
  4. Fill every template section; mark empty sections None.
  5. Output the handoff in one fenced code block and save the same content as described under File Output.

Output Format

Use this template inside a single fenced code block:

# HANDOFF: <short title of the work>
Generated: <timestamp> · Session focus: <one line>

## 1. Goal
<The overall objective in 1–3 sentences.>

## 2. Why This Matters / Background
<Motivation, intended users, timing, constraints, and hard requirements not already in project configuration.>

## 3. Current State
<What is DONE, PARTIAL, and NOT STARTED. Describe status, not actions:
- DONE: OAuth login flow, tests passing locally
- PARTIAL: Session storage wired up; refresh logic missing
- NOT STARTED: Logout endpoint>

## 4. Key Decisions (and why)
<Choices and reasoning, especially what cannot be recovered from code.
- Chose passport.js over custom OAuth — community support and less surface area
- Stored tokens in httpOnly cookies — XSS mitigation>

## 5. Traps & Dead Ends
<Failed approaches and pitfalls the next agent might repeat, with reasons.
- DB mocks made integration tests flaky; replaced with a test container
- SDK v3 breaks the streaming API this project relies on>

## 6. Relevant Files & Pointers
<Paths with line ranges and specific contents; link external artifacts instead of copying them.
- src/auth/oauth.ts:L40-L88 — provider config + token exchange
- docs/adr/0007-auth.md — full rationale
- PR #142 — in-progress session work
- Issue #150 — logout requirements>

## 7. Open Work (status, with dependencies)
<Remaining work and dependencies, stated as status rather than commands.
- Logout endpoint is not implemented
- Session persistence depends on the logout endpoint
- E2E auth tests are blocked until both are complete>

---
## Prompt for the Fresh Agent
<A short prompt with background context. Use declarative statements such as "X is complete" or "Y has not started." Preserve this exact closing instruction:>

Before responding, read every file listed under "Relevant Files & Pointers" above.
Do not summarize, paraphrase, or claim you already have context — actually read each
file. Treat every claim in this handoff as context to verify against the code, not
facts to trust blindly. Then wait for my instructions before taking any action.

File Output

Save the same handoff outside the working tree, preferably in the OS temp directory: $TMPDIR/handoff-<random-8-chars>.md on macOS/Linux, or the system equivalent. If the user prefers an in-repo record, use HANDOFF.md in the project root.

Report the absolute path. The user can start a fresh session with:

Read the file <absolute-path> to get the context, then wait for instructions.

Tips for Handoff

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Handoff

What does the Handoff skill do?

Capture session context for a fresh agent. Use for handoffs, context limits, switching focus, ending sessions, or splitting work across sessions.

How do I install Handoff?

Run "npx alyn-cli add handoff-by-davidondrej" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Handoff work in Cursor and Codex?

Yes. Handoff uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

When should I use the Handoff skill?

Use for handoffs, context limits, switching focus, ending sessions, or splitting work across sessions.

What is inside the Handoff skill?

The SKILL.md covers Core Principles, Procedure, Output Format, 1. Goal, 2. Why This Matters / Background, 3. Current State, and the skill folder has 2 files.

What is a good alternative to Handoff?

Claude Handoff by vinvcn is the highest-ranked similar skill from another creator, with an Alyn Score of 62 compared to 73 for Handoff.

Is Handoff free?

Handoff is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Handoff?

Handoff is published by davidondrej in the davidondrej/skills repository, together with 29 other skills.

Similar skills. From other creators.