Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Handoff

ASecurity

Generate a structured handoff document for ending a development session. Saves to docs/sessions/ for the continue skill to read.

7 stars
0 votes
0 copies
0 views
Added 9/22/2026
ai-agentsgobashgit

Works with

cli

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add joris887/exosuit --skill handoff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Handoff?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Handoff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joris887-handoff/badge)](https://www.skillsdirectory.com/skills/joris887-handoff)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: handoff
version: 2.6.1
description: Generate a structured handoff document for ending a development session. Saves to docs/sessions/ for the continue skill to read.
trigger: manual
depends-on: []
references: []
disable-model-invocation: true
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Edit, Write
---
______________________________________________________________________

## handoff

**Skill metrics:** Emit a start event to the activity log:
```bash
echo "{\"type\":\"skill\",\"event\":\"start\",\"skill\":\"handoff\",\"ts\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}" >> docs/sessions/.activity-log.jsonl
```

Generate a comprehensive handoff for ending a development session:

## Phase 0: Validate Prerequisites

Before starting, verify:
- `docs/sessions/` directory exists (create if missing)
- No conflicting session file for today's date

If the directory is missing, create it silently and proceed.

## 1. Capture Current State

Analyze:

- Current branch: `git branch --show-current`
- Git status (uncommitted changes?)
- Open PRs: `gh pr list --author @me --state open`
- Current sprint spec (if exists: `docs/sprints/sprint-*.md`) — extract sprint goal, capacity used, and any decisions logged this session
- Last entries in @docs/progress.md

## 2. Document Progress

If work was done this session, ensure it's captured:

- Sprint spec updated with progress
- Any decisions documented
- Blockers noted

## 3. Generate Session File

Save a structured session file to `docs/sessions/session-YYYY-MM-DD.md`.

The file MUST start with YAML frontmatter for `/resume` searchability:

```markdown
---
date: YYYY-MM-DD
sprint: [current sprint number]
sprint_goal: "[sprint goal — one sentence from sprint spec]"
sprint_capacity: "[sessions used/total — e.g., 5/8]"
branch: [branch-name]
stories: [comma-separated story IDs worked on]
status: [completed | in-progress | blocked]
---

# Session Handoff — [YYYY-MM-DD]

## Git State
- **Branch:** [branch-name]
- **Uncommitted changes:** [yes/no — list if yes]
- **PR Status:** [Open #123 / Merged / Not created]

## Work Completed
- [x] [Task/story completed]
- [ ] [Task in progress — what's done, what remains]

## Key Decisions
- [Decision]: [Rationale]

## Blockers / Issues
- [Issue]: [Status]

## Files Accessed This Session

### Modified
- [path/to/file]: [what changed and why]

### Read (context-relevant)
- [path/to/file]: [why this file was important to understand]

### Investigated (can skip on resume)
- [path/to/file]: [explored but not relevant to current work]

## Test Status
- Passing: [count]
- Failing: [count]
- Coverage: [percentage if available]

## Next Steps (Minimal First Action)
1. [The single next thing to do — be very specific]
2. [Second priority]
3. [Third priority]

## Files to Load on Resume
- @[path] — [why this file is needed]

## Activity Summary

<!-- Populated from activity log if available -->

## Warnings / Gotchas
- [Any issues the next session should be aware of]
```

<IF condition="docs/sessions/.activity-log.jsonl exists">
**Activity summary:** Parse the activity log to populate the "Activity Summary" section with: total edits, total commands run, most-edited files (top 5), and edit-to-bash ratio.
</IF>

## 4. Create Next Session Prompt

Generate a ready-to-use prompt for the next session:

```markdown
## Next Session Start Prompt

Continue development.

### Context
- Last session: [date]
- Current story: [ID] - [title]
- Branch: [branch-name]
- PR Status: [Open #123 awaiting review / Not created / Merged]
- Status: [in progress / between sprints]

### Immediate Next Steps
1. [First thing to do]
2. [Second thing]
3. [Third thing]

### Files to Review
- @[path] - [why]

### Warnings/Gotchas
- [Any issues discovered]
```

## 4.5. Document Quality Check

After generating the session file, dispatch a fresh sub-agent to test it from a reader's perspective:

- **Agent type:** Explore (read-only, forked context)
- **Input:** ONLY the generated session file — no conversation history
- **Instructions:** "You are a developer starting a new session tomorrow with only this handoff file. (1) Can you understand what was done? (2) Are next steps specific enough to act on immediately? (3) Is any critical context missing? (4) Would you need to re-explore anything that could have been captured here?"

Review findings. Fix genuine gaps before finalizing.

## 5. Commit and PR Reminder

- If uncommitted changes: suggest commit message and push
- If sprint complete but no PR: suggest creating PR
- If PR approved but not merged: suggest merging

## 5.5. PR Session Summary

<IF condition="An open PR exists for the current branch (from step 1 gh pr list)">
Offer to add a session summary as a PR comment. This helps teammates (and future-you) understand the reasoning behind the code — the minimum viable knowledge transfer (see `docs/reference/TEAM_WORKFLOW.md` → Session Summaries):

```bash
gh pr comment --body "### Session Summary ($(date +%Y-%m-%d))
- **Decisions made:** [what was decided and why]
- **Alternatives rejected:** [approaches considered but not taken]
- **AI limitations encountered:** [what the AI struggled with or got wrong]"
```

If the user declines, skip without further prompting.
</IF>

## 6. Update Persistent Files

Ensure these are current:

- @docs/progress.md: recent sprints updated
- @CLAUDE.md "Current Focus" is accurate

**Skill metrics:** Emit a completion event:

```bash
echo "{\"type\":\"skill\",\"event\":\"end\",\"skill\":\"handoff\",\"outcome\":\"success\",\"ts\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}" >> docs/sessions/.activity-log.jsonl
```

Output the session summary and next session prompt.

Attribution

joris887joris887
View sourceMore from joris887 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →