Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

handoff · rohitg00 — Claude Code skill: what it does, how to install

Resumes the latest agent session for the current directory and surfaces any unanswered questions first.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rohitg00/agentmemory --skill handoff -a claude-code
Open on GitHub

What handoff does

The skill locates the most recent session for the current working directory using memory_sessions. It verifies directory paths against boundary separators rather than raw prefixes, preventing false matches between sibling directories like /repo and /repo-staging.

When a previous run stopped on an unanswered user question, handoff displays that question before summarizing. It then queries memory_recall for key files, decisions, and errors, closing with a single next step. The skill depends directly on memory_sessions and memory_recall tools being available in your setup.

What it helps with

  • resume interrupted agent sessions in the current directory
  • surface unanswered questions from the previous run
  • prevent context mix-ups between sibling project paths

Example prompts for the agent

  • where were we?
  • pick up where I left off
  • resume work on this project

How to install handoff

1Skills CLI (Vercel)

npx skills add rohitg00/agentmemory --skill handoff -a claude-code

2Manually: put the files in place

~/.claude/skills/handoff/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/handoff/

From the same set11

The whole set →
remember rohitg00 Saves insights, decisions, and learnings to agentmemory long-term storage with concept tags so agents can retrieve them later. Claude Code CX Codex Cursor +1 14,000installs recall rohitg00 Searches past observations, sessions, and learnings through agentmemory. Use it to recover context when you need to know what a project already covered. Claude Code CX Codex Cursor +1 13,900installs forget rohitg00 Deletes selected durable memories from agentmemory after explicit confirmation. Useful when scrubbing secrets or obsolete notes. Claude Code CX Codex Cursor +1 13,800installs session-history rohitg00 Shows recent project sessions as a clean timeline. Use it to recover past decisions, observations, and session status. Claude Code CX Codex Cursor +1 13,800installs commit-history rohitg00 Lists git commits linked to agent sessions with optional filters for branch, repo, and limit. Claude Code CX Codex Cursor +1 13,700installs agentmemory-agents rohitg00 Guides coding agents on linking the memory server via agentmemory connect. It safely merges host configurations without wiping existing MCP servers. Claude Code CX Codex Cursor +1 11,000installs agentmemory-mcp-tools rohitg00 Index of every agentmemory MCP tool with its parameters and workflows. Helps agents pick the right memory tool and format valid arguments. Claude Code CX Codex Cursor +1 10,900installs agentmemory-config rohitg00 This skill helps configure local agentmemory and check its MCP connection. Use it to enable features, inspect authentication, or diagnose a connection failure. Claude Code CX Codex Cursor +1 10,900installs

Other versions of handoff

Similar

stitch::generate-design official google-labs-code Turns a text prompt or an image into a finished UI screen through Stitch MCP, then edits it with targeted prompts. Claude Code CX Codex Cursor +1 10,700installs skill-creator official openai Official guide for drafting and updating agent skills. It structures procedures, bundled scripts, and documentation while keeping token overhead low. Claude Code CX Codex Cursor +1 4,900installs vercel-cli vercel This skill guides an agent through Vercel CLI deployments, inspection, and troubleshooting. Use it for logs, environment variables, domains, and project setup. Claude Code CX Codex Cursor +1 6,700installs build-mcp-server official Anthropic This skill helps design an MCP server for Claude Code by clarifying the use case, choosing deployment, and shaping the tool interface. Claude Code 6,711installs open-code-review-delegate alibaba Instructs the host agent to drive code reviews while using the OCR CLI only for file selection and rule resolution. Useful when running reviews with your own model. Claude Code CX Codex Cursor +1 3,600installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs writing-plans Jesse Vincent This skill turns requirements for a multi-step task into an implementation plan before code changes begin. It helps when another engineer needs exact files, interfaces, and checks. Claude Code CX Codex 282,859installs

Questions about handoff

How to install handoff in Claude Code?

Run npx skills add rohitg00/agentmemory --skill handoff -a claude-code in your terminal.

What does the handoff skill do?

It recalls the most recent session for your directory, flags any unanswered question first, and suggests the next action.

What dependencies does handoff require?

It requires memory_sessions and memory_recall tool calls to fetch session metadata and observations.

Source text

SKILL.md · Apache-2.0
---
name: handoff
description: Resume the most recent agent session for the current working directory, leading with any unanswered question. Use when the user says "where were we", "resume", "handoff", "pick up where I left off", or starts a session with no fresh context.
argument-hint: "[optional cwd override]"
user-invocable: true
---

The user wants to resume work. Optional cwd override: $ARGUMENTS

## Quick start

```json
memory_sessions { "project": "<current-project-id>", "limit": 20 }
```

Pick the most recent session whose `cwd` matches this project, then:
`memory_recall { "query": "<session top concepts>", "project": "<current-project-id>", "limit": 10 }`.
When an agent is requested, pass the same `agentId` to both calls.

Expected output:

```text
Resuming 7f3a9c2 "Auth refresh rework".
Open question: should logout revoke all device tokens or just the current one?
Next step: decide revoke scope, then update auth/logout.ts.
```

## Why

Match the session by directory boundary, not raw prefix, so a sibling repo never
gets mistaken for this one. Never invent observations for an empty session.

## Workflow

1. Resolve the project path: if `$ARGUMENTS` is given, normalize it to absolute
   (`path.resolve(process.cwd(), $ARGUMENTS)`); else use the cwd.
2. Call `memory_sessions` with the exact project identifier when known, and
   `agentId` when requested. Otherwise follow `nextCursor` until the matching
   directory is found or pagination ends. Preserve filters between pages.
   Pick the most recent session whose normalized `cwd`
   matches by directory boundary: equality, OR `cwd.startsWith(projectPath + sep)`,
   OR `projectPath.startsWith(cwd + sep)`. Prefer `completed` over `abandoned`.
   No match: report that this project has no matching session and stop. Do not
   substitute a different project's session.
3. If the session ended on an unanswered user-facing question, surface it FIRST.
   Look in `summary` or recent `conversation` observations whose `narrative`
   ends in `?`.
4. Summarize: title/summary, key files, key decisions or errors, using
   `memory_recall` on the top concepts, limit 10, preserving the chosen project
   and agent scope. Check each result's session or
   project provenance before including it; a query alone does not enforce scope.
5. End with one concrete "next step?" pointer.

## Anti-patterns

WRONG: `session.cwd.startsWith(projectPath)` matches `/repo-a-staging` when the
project is `/repo-a`, resuming the wrong repo's session.

RIGHT: `session.cwd === projectPath || session.cwd.startsWith(projectPath + sep)`,
a directory-boundary check that cannot cross sibling repos.

## Checklist

- cwd override resolved to an absolute, normalized path.
- Match used a directory-boundary check, not a raw prefix.
- Unanswered question (if any) leads the response.
- Empty session is reported plainly, with an offer to start fresh.

## See also

- `recap`, `session-history`, `recall`: same session data, broader views.

## Troubleshooting

See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_sessions` or `memory_recall` is not available.

© rohitg00 · Apache-2.0 · rohitg00/agentmemory

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor