Repository navigation
Closed
Conversation
Owner
|
Superpowers 6 already includes a stateful handoff at the step level without needing another skill. |
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Who is submitting this PR? (required)
What problem are you trying to solve?
When a human partner needs to stop for hours or days, the current workaround is to ask the agent to summarize the session. That can work, but the output varies: some summaries omit commands, some hide skipped verification, some bury the next action, and some drift into reassurance instead of operational state.
The related #931 issue shows real demand for session handoff, but the maintainer explicitly pushed back on adding slash commands and resume machinery: "Just talk to the agent." This PR follows that direction. It gives agents a normal explicit skill to use when the human asks to pause or hand off, without adding slash commands, persistent files, hooks, or a resume system.
What does this PR change?
Adds
skills/handoff/SKILL.md, a compact handoff contract with required sections for goal, current state, decisions, files touched, commands run, risks/open questions, and next action. It also adds an explicit-skill request fixture forhandoffand hardens the explicit-request test runner so it works on macOS/Claude Code 2.1.177 (gtimeout/no-timeout fallback and--verbosefor stream JSON).Is this change appropriate for the core library?
Yes. Pausing and resuming agent work is a general AI-native workflow problem across projects and harnesses. The skill is not domain-specific, does not integrate a third-party service, adds no runtime dependency, and avoids the broader plan-aware/resume-command system that maintainers rejected in #931.
What alternatives did you consider?
/create_handoffand/resume_planslash commands like Feature: Plan-aware session handoff commands (/create_handoff + /resume_plan) #931. Rejected because the maintainer explicitly said not to add new slash commands and to just talk to the agent.writing-plans,executing-plans, orsubagent-driven-developmentto support plan-aware resume. Rejected for this PR because that is a larger design change and not necessary for the core pause/handoff request.Does this PR contain multiple unrelated changes?
No. The skill, prompt fixture, and test-runner compatibility changes all support one behavior: explicit invocation of a handoff skill and verification that the skill loads before action.
Existing PRs
#931 is an open plan-aware handoff command proposal. This PR intentionally does not add slash commands, does not write handoff files, and does not add resume automation. #590 was a closed attempt to add
session-pauseandsession-resumeskills, with the PR body markederror; this PR adds one explicithandoffskill only. #1617 was a broader context-pack handoff contract touching planning/SDD docs; this PR does not change plan execution or context-pack contracts.Environment tested
New harness support (required if this PR adds a new harness)
Not applicable. This PR adds no new harness.
Evaluation
handoffrequests loadsuperpowers:handoffbefore other tools, and the pressure prompt produced the ordered handoff sections while stopping implementation.Verification performed:
bash -n tests/explicit-skill-requests/run-all.sh tests/explicit-skill-requests/run-test.sh node /Users/zaidazmi/Github/superpowers-prs/skill-doctor/scripts/lint-skills.js \ --root /Users/zaidazmi/Github/superpowers-prs/human-handoff \ --skills-dir skills/handoff git diff --check upstream/dev...HEAD bash tests/explicit-skill-requests/run-all.sh claude -p '<pressure prompt asking to stop and use handoff skill>' \ --plugin-dir /Users/zaidazmi/Github/superpowers-prs/human-handoff \ --dangerously-skip-permissions \ --max-turns 4Results:
The pressure prompt included an unfinished-work temptation and an explicit instruction to stop for the day. The agent used the handoff skill, produced the ordered handoff sections, and did not continue implementation.
Rigor
superpowers:writing-skillsguidance and completed targeted pressure testing (results above)This PR adds a new skill and does not edit existing tuned skill prose. The baseline result was not a dramatic RED failure; the branch is therefore intentionally narrow and the PR body does not overclaim. The explicit-request harness verifies the important runtime property for this MVP: when the human names the skill, Claude Code loads
superpowers:handoffbefore taking action.Human review
@zaidazmi reviewed the complete proposed diff in Codex before submission.