AGENT SKILL

handoff

Compact the current conversation into a handoff document a fresh session can read to pick up the work. Use at a ticket boundary before /clear, or whenever the context window has grown large and the live thread would otherwise be lost.

License 许可
MIT
最近更新
2026-08-05
Stars
★ 0
Forks
0

01 前言 Front Matter

name
handoff
description
Compact the current conversation into a handoff document a fresh session can read to pick up the work. Use at a ticket boundary before /clear, or whenever the context window has grown large and the live thread would otherwise be lost.

03 SKILL.md 正文

Handoff

.agent/state.json and the map carry what has been settled. Neither carries the live thread — what is in flight right now, why this approach and not the other one, what was just tried and rejected. That is what compaction loses and what this document preserves.

Write it at a ticket boundary before /clear, or any time the context window has grown large enough that the next step deserves a fresh one.

Where it goes

The OS temporary directory — $TMPDIR on macOS, /tmp otherwise. Never the workspace.

A handoff is scaffolding for one session gap, not a project artifact. In the workspace it would become a third thing to keep in sync with the map and state.json, and would go stale the moment it was read.

Name it handoff-<ticket-or-topic>.md and give the user the full path so the next session can be pointed at it.

What it carries

  • The live thread — what is in flight and why, in the conversation's own terms. What was tried, what was ruled out, what the next concrete step is.
  • Suggested skills — which skills the next session should reach for.
  • References, not copies — link the map, spec, ADRs, tickets, commits, and diffs by path or URL. Everything already written down stays where it is; the handoff points at it.
  • Open questions — anything the user still owes an answer on.

Anything already captured in the map, a spec, an ADR, a ticket, a commit message, or a diff belongs in the references list, not the body. Copying it in creates a second copy that immediately starts drifting from the first.

Redaction

Strip API keys, tokens, passwords, connection strings, and personal data before writing. The temp directory is not a secret store.

Process

  1. Identify the current ticket and phase from .agent/state.json.
  2. Write the live thread — the reasoning that exists only in this conversation.
  3. List references by path or URL.
  4. Name the suggested skills for the next session.
  5. Redact secrets.
  6. Write to the temp dir and report the full path to the user.

Relationship to state.json

Complementary, not a replacement. state.json stays the machine-readable resume point the SessionStart hook reads automatically; the handoff is the human- and agent-readable thread that sits alongside it. Persist state.json as normal — a handoff never substitutes for it.

Scope

Keep the document to the live thread. When it starts restating the map or the spec, stop and link instead — a handoff that grows into a full project summary has become the artifact it was written to avoid.

04 同仓库更多 Skills

lynchypin
lynchypin/project-onboard

wayfinder

The orchestration hub for all work. Creates a map of investigation tickets (grilling, research, prototype, task, bug), resolves them one at a time with strict grilling discipline, manages risk posture pauses during implementation, and hands off to to-spec when the map is complete. Use for any work regardless of size — a trivial task has a small map, a large migration has many tickets.

★ 0
lynchypin
lynchypin/project-onboard

to-tickets

Break the spec into small, independently-implementable tracer-bullet vertical slices. No checkpoint gate — hands off directly to wayfinder for implementation orchestration.

★ 0
lynchypin
lynchypin/project-onboard

to-spec

Synthesize a specification from the completed wayfinder map. Never runs its own interview — it only writes down what wayfinder's grilling tickets already established, at a depth proportional to the project's documentation tier.

★ 0
lynchypin
lynchypin/project-onboard

tdd

Reference material for test-driven development discipline. Red before green, one slice at a time. Use as reference during implementation, not as a step-by-step procedure.

★ 0
lynchypin
lynchypin/project-onboard

start-session

Orient a new session in any project directory. Detects empty directory, existing codebase, or resume state, gathers cheap signals, and routes to wayfinder. The only user-invoked entry point.

★ 0
lynchypin
lynchypin/project-onboard

setup

Configures the issue tracker. Called by start-session during first orient. Model-invoked — runs automatically as part of the flow, not user-triggered.

★ 0