Handoff

From tyevans/tackline · View interactive version

Handoff is an AI agent skill from the GitHub repository tyevans/tackline. Capture the orchestrator's mental model for a structured session transition. Use at end of long sessions, when /session-health recommends a fresh session, or before switching workstreams.

How to use this skill

Skill file

!git log --oneline -10

Handoff: Structured Session Transition

You are running a session handoff -- capturing the orchestrator's mental model so a future session can pick up where this one left off. Focus area (optional): $ARGUMENTS

When to Use

Overview

Handoff works in 4 phases:

Gather state (tasks + git + context)
  -> Document decisions and discoveries
    -> Identify loose ends and risks
      -> Write handoff note

Phase 1: Gather State

1a. Task State Snapshot

Check your task tracker for current state: in-progress tasks, blocked items, and what is ready to pick up.

1b. Working Tree State

git status
git log --oneline -10
git stash list

Note any uncommitted changes, recent commits made this session, and stashed work.

1c. Session Scope

Review what you set out to do this session and what actually happened:


Phase 2: Document Decisions

2a. Key Decisions Made

List every significant decision made during this session:

These are the decisions most likely to be re-litigated in a fresh session without context.

2b. Patterns Discovered

Note any patterns, conventions, or codebase behaviors discovered during exploration:

2c. Mental Model

Capture the high-level understanding built up during this session:


Phase 3: Identify Loose Ends

3a. Unfinished Work

For each in-progress task:

3b. Known Risks

Flag anything that could cause problems:

3c. Resumable Agents

Identify any agents that were dispatched this session but did not complete:

3d. Open Questions

List unresolved questions that came up during the session:

Sharpening gate: Transform vague questions into decision frameworks. For each question:

  1. Name the specific code/component where the question arose
  2. State what decision is needed with concrete options and constraints
  3. Make it decidable — include the criteria needed to resolve it

Example transformation:


Phase 4: Write Handoff Note

Produce a structured handoff document:

## Session Handoff: [date or topic]

### What Got Done
- [completed task/outcome 1]
- [completed task/outcome 2]

### Key Decisions
- **[Decision]**: [reasoning] (rejected: [alternatives])

### Patterns & Discoveries
- [pattern/discovery with evidence]

### In-Progress Work
- **[task ID]**: [status, where to pick up, what remains]

### Uncommitted Changes
- [file or area]: [what changed and why it is not yet committed]

### Blocked Work
- **[task ID]**: blocked on [reason]

### Resumable Agents
<!-- only include this section when one or more agents were mid-task at session end -->
- **[agent-id]**: [one-line description of last known state — e.g., "investigating auth module, blocked on missing test coverage"]
  - Resume: `Task({resume: "<agent-id>"})`

### Open Questions
- **[Component/file]**: [decision needed] — Options: [A (pros/cons), B (pros/cons)]. Criteria: [what determines choice]. Ask: [who or what investigation resolves this]

### Recommended Next Steps
1. [Highest priority action with specific file/function/command to run]
2. [Second priority with pickup point]
3. [Third priority with context]

### Risks & Warnings
- [anything the next session should watch out for]

4a. Persist the Handoff

If $ARGUMENTS specifies a focus area, use it as the filename context. Write the handoff note to the project's memory:

Create a handoff task in your task tracker with the full handoff note content, or write the handoff note to .claude/tackline/memory/handoff-[date].md for persistent reference if the project has a .claude/tackline/memory/ directory.

4b. Pipe-Format Summary

After writing the handoff note, emit a pipe-format summary so the next session's /status or /advise can consume handoff items without parsing the full prose document:

## Handoff state

**Source**: /handoff
**Input**: [focus area from $ARGUMENTS, or "general session handoff"]
**Pipeline**: (none — working from direct input)

### Items (5)

1. **Unfinished work** — [N tasks in-progress at handoff time]
   - tasks: [task IDs and one-line status for each in-progress task]
   - pickup points: [specific file:line or step for each task]

2. **Key decisions** — [N decisions made this session]
   - decisions: [brief titles of the most important decisions]
   - rationale preserved: [yes — in handoff note | partial | no]

3. **Resumable agents** — [N agents mid-task | none]
   - agents: [agent IDs and last known state, or "none"]

4. **Open questions** — [N unresolved questions]
   - questions: [component names where decisions are needed]
   - blockers: [external dependencies or missing information]

5. **Risks flagged** — [N risks]
   - risks: [brief list of fragile areas or timing-sensitive work]
   - confidence: CONFIRMED

### Summary

[One paragraph: what work was in flight, what the highest-priority pickup point is, and what the incoming session should do first.]

Guidelines

See Also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.