ワンクリックで
handoff
Document current plan and progress into handoff file
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Document current plan and progress into handoff file
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Manual E2E tester that starts the app and exercises new features end-to-end
Generate a single self-contained HTML page that is genuinely visual AND interactive — charts, diagrams, motion, tabs, comparison toggles, click-to-expand, base64-inlined images, opinionated typography. Use whenever the user wants ANY rich visual artifact from arbitrary content: explainer, research write-up, PRD or spec page, pitch, internal one-pager, "make this less boring" rebuild, scroll-snap deck, landing-style summary, distilled report. Trigger phrasings: "make me a page about X", "turn this PDF/doc into something visual", "build me a deck/talk/pitch", "explain Y in a visual way", "make this readable", "give it some eye candy", "I want something I can show the team", "less boring version of this", "rebuild that page", "redo it with more visuals". Output is one .html file that renders identically when DM'd — CDN libraries (Tailwind, Chart.js, D3, GSAP, Mermaid, Lucide) load from stable jsdelivr/unpkg URLs; every image is base64-inlined. Not for plain Markdown docs (use technical-writer), not for code revi
Vision-based visual QA reviewer — captures rendered output (live web pages, static HTML artifacts, PDFs) as screenshots, inspects them with a designer's eye for layout defects a human catches instantly, and normalizes findings into the verify pipeline format
Independent second-opinion reviewer that shells out to the local Codex CLI for a broad code review, then normalizes findings into the verify pipeline format
Comment-hygiene-only reviewer — flags ephemeral review-ID references, historical change-narration, stale comments, reviewer-appeasement, and redundant restating in the scoped diff, and normalizes findings into the verify pipeline format
Adversarial cooperation loop — player implements, /verify reviews, creates PR, passes CI
| name | handoff |
| description | Document current plan and progress into handoff file |
| argument-hint | [optional: custom filename] |
| disable-model-invocation | true |
| allowed-tools | ["Read","Write","Bash","Grep","Glob","TodoWrite","AskUserQuestion"] |
Auto-generate a comprehensive handoff document that captures current work state, progress, and context. This supports the "Document & Clear" workflow for complex tasks - create a handoff document, /clear the session, then later resume by reading the handoff.
The document is saved to /tmp for easy copy/paste to wherever you need it (notes app, issue tracker, email, etc.).
$ARGUMENTS (optional): Custom filename without extension
handoff-{timestamp}.md/handoff → /tmp/handoff-2024-01-15-1430.md/handoff auth-feature → /tmp/auth-feature.mdCheck that we're in a git repository (handoff documents git state):
git rev-parse --git-dir
If this fails, create a minimal handoff without git context and warn the user.
Collect comprehensive git information:
# Current branch
CURRENT_BRANCH=$(git branch --show-current)
# Base branch (for comparison)
BASE_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
if [ -z "$BASE_BRANCH" ]; then
if git show-ref --verify --quiet refs/heads/main; then
BASE_BRANCH="main"
elif git show-ref --verify --quiet refs/heads/master; then
BASE_BRANCH="master"
else
BASE_BRANCH="HEAD"
fi
fi
# Commit history on current branch
git log --oneline $BASE_BRANCH..HEAD 2>/dev/null || git log --oneline -5
# Commits ahead count
COMMITS_AHEAD=$(git rev-list --count $BASE_BRANCH..HEAD 2>/dev/null || echo "unknown")
# Changed files with status
git diff --name-status $BASE_BRANCH...HEAD 2>/dev/null
# Uncommitted changes
git status --porcelain
# Recent commits with full messages
git log -5 --format="%h - %s%n%b" --no-merges
# Current git user
GIT_USER=$(git config user.name)
GIT_EMAIL=$(git config user.email)
If TodoWrite has been used in the session, the current TODO state should be included:
For changed files, provide context:
# Count changes by status
git diff --name-status $BASE_BRANCH...HEAD | awk '{print $1}' | sort | uniq -c
# Group files by directory
git diff --name-only $BASE_BRANCH...HEAD | sed 's|/[^/]*$||' | sort | uniq -c | sort -rn
# Diff stats for magnitude of changes
git diff --stat $BASE_BRANCH...HEAD
Use AskUserQuestion only if there's significant work in progress (more than 3 commits OR uncommitted changes OR active TODOs).
Ask strategically useful questions:
Question 1: "What's the current blocker or challenge (if any)?"
Options:
- "No blockers - work is progressing smoothly"
- "Waiting on code review or feedback"
- "Technical issue - something not working as expected"
- "Unclear requirements or design decision needed"
Question 2: "What's the most important context to remember?"
Options:
- "Implementation approach or architecture decisions"
- "Key files or functions to focus on"
- "Dependencies or integration points to be aware of"
- "No specific context - handoff document captures it"
Only ask if it adds value. For simple tasks (1-2 commits, clear scope), skip questions and generate automatically.
Create comprehensive markdown document with this structure:
# Handoff: {Work Description from Commits or Branch Name}
**Generated**: {ISO timestamp}
**Branch**: {CURRENT_BRANCH}
**Created By**: {GIT_USER} <{GIT_EMAIL}>
---
## Quick Summary
{One-paragraph summary of what's being worked on, inferred from:
- Branch name
- Recent commit messages
- Changed files
}
## Current State
### Branch Information
- **Current Branch**: {CURRENT_BRANCH}
- **Base Branch**: {BASE_BRANCH}
- **Commits Ahead**: {COMMITS_AHEAD}
- **Uncommitted Changes**: {Yes/No} ({count} files)
### Repository Status
{Output from git status}
## Work Progress
{If TODO list exists:}
### ✅ Completed Tasks
- {List completed tasks from TODO}
### 🔄 In Progress
- {List in-progress tasks from TODO}
### ⏭️ Pending Tasks
- {List pending tasks from TODO}
{If no TODO list:}
Based on commit history, work appears to be focused on:
{Infer from commit messages what's been done}
## Changes Overview
### Commit History
{git log output showing commits on branch}
### Files Changed
**Summary**: {X} files ({A} added, {M} modified, {D} deleted)
{Group by directory:}
**{Directory}** ({count} files)
- {file1} (Status)
- {file2} (Status)
### Change Statistics
{git diff --stat output}
## Technical Context
{Analyze changes to provide context:}
### Components Modified
- {List major components/modules affected}
### Key Files to Review
{Highlight important files based on:
- Largest changes (diff stats)
- Core functionality (e.g., main.py, app.js)
- New files (might be important)
}
### Dependencies or Integration Points
{Check for changes to:
- package.json, requirements.txt, go.mod, Cargo.toml
- Config files
- API contracts
- Database migrations
}
## Known Issues or Blockers
{If user provided blocker info via AskUserQuestion, include it}
{Otherwise, check for TODO/FIXME/HACK comments in recent changes}
{If found, list them; if not:}
No known blockers documented.
## Key Decisions or Context
{If user provided context via AskUserQuestion, include it}
{Otherwise, extract from commit messages or skip}
## Resumption Guide
### To Resume This Work:
1. **Checkout the branch**:
```bash
git checkout {CURRENT_BRANCH}
Review current state:
git status
git log {BASE_BRANCH}..HEAD
Understand changes:
/catchup # Use catchup command to get oriented
{If uncommitted changes exist:} Review uncommitted work:
git diff # See what's changed but not committed
Continue implementation: {If TODO list exists:}
{Check for and include if present:}
{Scan for and link to:}
{Suggest concrete next steps based on state:}
Immediate (next 1-2 tasks):
Later (follow-up work):
How to Use This Handoff:
/catchup to verify current state
### 7. Save Handoff Document
Determine filename:
```bash
if [ -z "$ARGUMENTS" ]; then
TIMESTAMP=$(date +%Y-%m-%d-%H%M)
FILENAME="/tmp/handoff-$TIMESTAMP.md"
else
# Sanitize filename (remove spaces, special chars)
CLEAN_NAME=$(echo "$ARGUMENTS" | tr ' ' '-' | tr -cd 'a-zA-Z0-9-_')
FILENAME="/tmp/$CLEAN_NAME.md"
fi
Write the handoff document to the file using the Write tool.
Output:
✅ Handoff document created: {FILENAME}
The document includes:
- Branch state and commit history ({X} commits)
- Changed files ({Y} files)
- {If TODOs exist: Task progress (X completed, Y pending)}
- Resumption instructions
📋 Copy the file content to wherever you need it.
📁 File location: {FILENAME}
💡 To resume this work later:
1. Read the handoff document
2. Run /catchup to verify current state
3. Continue from where you left off
⚠️ Warning: Not in a git repository.
Creating minimal handoff without git context...
Proceed with a simpler handoff that documents:
ℹ️ No commits or changes detected on this branch.
Creating minimal handoff with current directory state...
Include:
⚠️ Warning: Detached HEAD state detected.
Current commit: {hash}
Including state snapshot in handoff...
❌ Error: Could not write to {FILENAME}
Possible issues:
- /tmp directory not writable
- Disk full
- Permission issues
Try specifying a different location:
/handoff ~/my-handoff
# Basic usage - auto-generated filename
/handoff
# Custom filename
/handoff auth-refactor
# After significant work, before taking a break
/handoff user-api-work
# Before handing off to teammate
/handoff feature-x-for-alice
# After /handoff, typical workflow:
# 1. Copy content from /tmp/handoff-*.md to your notes
# 2. Run /clear to reset session
# 3. Later: Read your notes, run /catchup, resume work
This command works well with:
/clear - After /handoff, clear the session knowing state is documented/catchup - When resuming, use /catchup to verify handoff is accurate/create-pr - Before creating PR, /handoff documents what's being submitted/check-ci - After /handoff, ensure tests pass before stepping awayIf TodoWrite has been active:
Parse commit messages for:
Prioritize in "Key Files" section:
Preserve ephemeral context:
The goal is making it effortless to pause complex work and resume later with full context intact.