/rubypowers:handofffrom rubypowers
Captures structured session state into docs/handoffs/ before context switches or session end, enabling seamless resumption. Includes git state, plans, and next steps.
Ships in rubypowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Capture the current session's state into a structured handoff document so a future session (or a different agent) can resume without losing context. The handoff document records goals, decisions, progress, and next steps.
Core principle: Capture what the next session needs to know — not everything that happened.
Announce at start: "I'm using the handoff skill to capture session state."
Don't use when:
rubypowers:finishing-a-development-branch instead)rubypowers:compound instead)/rubypowers:handoff # Create a full handoff document
/rubypowers:handoff-resume # Resume from the latest handoff
/rubypowers:handoff-list # List available handoffs
Output location: docs/handoffs/YYYY-MM-DD-<topic>.md
Archive location: docs/handoffs/_archive/
Run these commands to collect file-level state:
# Modified files
git diff --name-only
git status --porcelain
# Detect plan files
ls .claude/plans/*.md 2>/dev/null
ls docs/rubypowers/plans/*.md 2>/dev/null
ls docs/rubypowers/specs/*.md 2>/dev/null
ls docs/superpowers/plans/*.md 2>/dev/null
ls docs/superpowers/specs/*.md 2>/dev/null
Derive a short topic slug from the current work context. Use the branch name as a starting point, stripped of prefixes like feature/, fix/, lg/. If no branch context, ask the user or derive from the goal.
Topic slug guidelines:
auth-jwt-migration not fix-auth or JIRA-1234docs/handoffs/stimulus-form-validation, stripe-webhook-retry-logicbugfix, refactor, updates — these are meaningless when you have 10 handoffs in the directorydocs/handoffs/ — consistency beats clevernessCreate a file at docs/handoffs/YYYY-MM-DD-<topic>.md with this structure:
---
created: <ISO 8601 UTC timestamp>
branch: <current git branch>
trigger: manual
restored: false
topic: <topic slug>
---
# Handoff: <descriptive title>
## Goal
<What we're working on and why — 2-3 sentences max>
## Current State
<What's done, what's in progress, what's blocked — bullet list>
## Key Decisions
<Important choices made and their rationale — bullet list with "decision — rationale" format>
## Modified Files
<From git status/diff — bullet list of file paths>
## Failed Approaches
<What was tried and didn't work, so the next session doesn't repeat it — bullet list>
## Files to Read
<Plan files, specs, design docs the next session should read first — bullet list with backtick paths>
## Next Steps
<Concrete actions to take next — numbered list, most important first>
## Open Questions
<Unresolved uncertainties or decisions that need user input — bullet list>
Unlike the hook-triggered version (which leaves <!-- to be enriched by LLM --> markers), the manual skill fills every section from conversation context:
Handoff saved to `docs/handoffs/<filename>.md`
Summary:
- Goal: <one-line summary>
- Next steps: <count> items remaining
- Files to read: <count> documents
This skill also runs automatically via hooks when context compaction occurs:
PreCompact hook runs hooks/handoff-create before compactionexperimental.session.compacting event triggers the same scriptThe hook-generated handoff captures mechanical state only (modified files, plan files). After compaction, the PostCompact hook (or session.compacted event) restores the handoff as additionalContext and instructs the agent to fill in the LLM-dependent sections from compacted context.
Handoff documents are plain markdown files in docs/handoffs/ — any agent or tool that can read the filesystem can resume from them. This makes handoffs work across agent boundaries, not just within the same session.
Use cases:
/rubypowers:handoff-resume to pick up where Claude Code left off.docs/handoffs/ to understand what the agent was working on, then continues manually or starts a new session with context.handoff-resume to continue.Why this works: The handoff document is the contract. It doesn't depend on any specific agent's memory, context window, or session state. Any agent that can read markdown and follow instructions can resume from it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lucianghinda/rubypowers --plugin rubypowers35 skills in this plugin
/37signals-styleRails coding patterns derived from analysis of 37signals' Fizzy codebase. Use when writing Rails code in 37signals/Basecamp style or when asked to follow 37signals patterns. Covers controllers, models, views, Hotwire, testing, database, security, and team philosophy./brainstormingUse when starting any creative work — creating features, building components, adding functionality, or modifying behavior — before writing any implementation code./brakemanStatic analysis security vulnerability scanner for Ruby on Rails applications. Use when analyzing Rails code for security issues, running security audits, reviewing code for vulnerabilities, setting up security scanning in CI/CD, managing security warnings, or investigating specific vulnerability types (SQL injection, XSS, command injection, etc.). Also use when configuring Brakeman, reducing false positives, or integrating with automated workflows./compoundUse when a problem has just been solved and verified working — the fix is fresh, the investigation is in recent history, and the solution is non-trivial enough to capture for future reference/compound-refreshUse when docs/solutions/ learnings may be stale — after refactors, migrations, or dependency upgrades, when a retrieved learning feels outdated or contradicts a recently solved problem, when pattern docs no longer reflect current code, or when reviewing docs/solutions/ for accuracy./consulting-an-oracleUse when stuck after multiple debug attempts and want to escalate to a stronger one-shot model (GPT-5 Pro, Opus, Gemini Pro) — packages a self-contained "oracle prompt" with Ruby/Rails project briefing, verbatim error, what-was-tried, constraints, and just-enough attached files. Triggers include "ask the oracle", "write a letter to GPT-5", "I'm stuck, draft a prompt for another model", "/tmp/letter.md".Other plugins' skills for the same job