Skip to content

Add explicit handoff skill - #1793

Closed
zaidazmi wants to merge 1 commit into
obra:devfrom
zaidazmi:codex/human-handoff-skill
Closed

zaidazmi wants to merge 1 commit into
obra:devfrom
zaidazmi:codex/human-handoff-skill

Conversation

@zaidazmi

Copy link
Copy Markdown

Who is submitting this PR? (required)

Field Value
Your model + version GPT-5 via Codex
Harness + version Codex desktop app / codex-cli 0.140.0-alpha.19
All plugins installed browser, build-ios-apps, build-web-apps, canva, chrome, documents, figma, github, pdf, presentations, spreadsheets; dynamic tools: codegraph and multi-agent tools
Human partner who reviewed this diff @zaidazmi reviewed the complete diff in Codex before submission

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 for handoff and hardens the explicit-request test runner so it works on macOS/Claude Code 2.1.177 (gtimeout/no-timeout fallback and --verbose for 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?

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-pause and session-resume skills, with the PR body marked error; this PR adds one explicit handoff skill 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

Harness (e.g. Claude Code, Cursor) Harness version Model Model version/ID
Codex desktop app codex-cli 0.140.0-alpha.19 GPT-5 Codex GPT-5
Claude Code CLI through explicit-request harness 2.1.177 Claude Opus claude-opus-4-8
Local CLI runtime macOS zsh, Node v23.6.1 n/a n/a

New harness support (required if this PR adds a new harness)

Not applicable. This PR adds no new harness.

Evaluation

  • Initial prompt: human partner asked for a "Human Handoff" skill for when an agent should pause and produce a clean handoff: current state, decisions made, files touched, risks, commands run, and next action.
  • Eval sessions after the change: targeted explicit-invocation harness runs plus a pressure prompt. The external Drill/tmux eval harness is not present in this checkout, so this is targeted pressure testing rather than a full Drill scenario suite.
  • Outcome compared to before: three baseline subagent runs without the skill produced generally usable handoffs when given rich facts, so this PR does not claim a dramatic baseline collapse. The improvement is a consistent explicit trigger and output contract: after the change, explicit handoff requests load superpowers:handoff before 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 4

Results:

Skill Doctor checked 1 skill(s): no issues found.
PASS: subagent-driven-development-please
PASS: use-systematic-debugging
PASS: please-use-brainstorming
PASS: mid-conversation-execute-plan
PASS: handoff-please
Passed: 5
Failed: 0
Total: 5

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

  • If this is a skills change: I used superpowers:writing-skills guidance and completed targeted pressure testing (results above)
  • This change was tested adversarially, not just on the happy path
  • I did not modify carefully-tuned content (Red Flags table, rationalizations, "human partner" language) without extensive evals showing the change is an improvement

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:handoff before taking action.

Human review

  • A human has reviewed the COMPLETE proposed diff before submission

@zaidazmi reviewed the complete proposed diff in Codex before submission.

@obra

obra commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Superpowers 6 already includes a stateful handoff at the step level without needing another skill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants