Skip to content
Development
Command

/share-to-pr

Post the current handoff as a PR comment so reviewers see the work context. Usage - /handoff-revive:share-to-pr [PR number]

From plugin
claude-handoff-revive
611 skills11 commands
Install
$ npx -y skills add sofumel/claude-handoff-revive --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/share-to-pr

Context preview

What this command does when you run it.

Post the current handoff as a PR comment so reviewers see the work context. Usage - /handoff-revive:share-to-pr [PR number]

Command definition

share-to-pr.md
description: Post the current handoff as a PR comment so reviewers see the work context. Usage - /handoff-revive:share-to-pr [PR number]
argument-hint: [PR number]

Share `.claude/handoff/current.md` to a GitHub PR as a comment. **This publishes the handoff content externally — always show the user what will be posted and get an explicit yes before posting.**

Steps:

1. Run the **dry-run** first (pass the user's PR number `$ARGUMENTS` if given; otherwise the script auto-detects the current branch's PR):

  • Linux/macOS/WSL/Git-Bash:
     bash "${CLAUDE_PLUGIN_ROOT:-.claude}/skills/handoff-revive/scripts/share-to-pr.sh" --dry-run [PR]
  • Windows PowerShell:
     $r = if ($env:CLAUDE_PLUGIN_ROOT) { $env:CLAUDE_PLUGIN_ROOT } else { ".claude" }; powershell -ExecutionPolicy Bypass -File "$r/skills/handoff-revive/scripts/share-to-pr.ps1" -DryRun [-Pr <PR>]

2. Show the user (in their language, read `.claude/handoff/lang`) which PR it will go to and the body preview. **Warn that the handoff may contain absolute paths or other local details** and point out anything that looks sensitive. 3. Only after the user confirms, run the same command **without** `--dry-run` / `-DryRun`. 4. Report the result. If `gh` is missing or no PR exists for the branch, relay the script's error and stop.

Ships withclaude-handoff-revive

Resume Claude Code work after rate/usage/context limits without replaying the prior transcript. Auto-saves at 90%/95% usage. Plugin-installable, 10 languages.

Get the whole plugin, auto-invoked
Stats
6
Stars
0
Views
1
Forks
Maintained
Maintenance
PowerShell
Language
MIT
License
1mo ago
Last commit
3mo ago
Created

Repo: sofumel/claude-handoff-revive