session-handoff

Close a session and generate a timestamped .session markdown handoff document.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/xxih/ai-harness-zh --skill session-handoff-xxih
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-handoff
Source: https://github.com/xxih/ai-harness-zh/tree/main/packages/session-workflows/targets/codex/skills/session-handoff
Command: npx skills add https://github.com/xxih/ai-harness-zh --skill session-handoff-xxih

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps when a user wants to end the current session, generate a handoff document, and preserve context for a new window, especially when the context window is near its limit.

Core Features & Use Cases

  • Session Closure: Detects explicit user requests to end a session and creates a structured handoff file in the .session folder.
  • Learning Export: Evaluates learning outcomes and routes them to task‑local notes, support queues, or formal assets.
  • Resume Ready: Provides the file location and next steps so the following window can pick up seamlessly.
  • Example: After a lengthy code review, invoke this skill to bundle decisions, pending tasks, and validation results into a handoff document before switching contexts.

Quick Start

Ask the assistant to perform a session handoff and save the handoff file for the next window.

Frequently Asked Questions about session-handoff

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve context when ending a session near the context window limit?

To preserve context when ending a session near the window limit, generate a timestamped .session markdown handoff file. This document records decisions, pending tasks, and validation results, providing a clear entry point for the next window to pick up seamlessly.

What is a session handoff document and when do I need to create one?

A session handoff document is a structured markdown file that saves context, learning outcomes, and pending tasks. You need to create one when explicitly terminating a session or when the context window approaches its limit to avoid losing progress.

How do I save a handoff file to continue work in a new window?

To save a handoff file, ask the assistant to perform a session handoff. It will create a timestamped markdown file in the .session folder, evaluate learning outcomes, and provide the file location and next steps for the following window.

Can I export learning outcomes and notes before switching contexts?

Yes, you can export learning outcomes before switching contexts. The session handoff evaluates learning outcomes and automatically routes them to task-local notes, support queues, or formal assets within the generated markdown file.

What is the best way to bundle code review decisions before closing a session?

The best way to bundle code review decisions is to invoke session handoff to create a structured markdown document. This file captures decisions, pending tasks, and validation results, ensuring the next session resumes work without missing context.