/pr-workflow:gsd-pr-workflow-reportfrom pr-workflow
Report PR state via gh: at execute:wave:post regenerate the phase's PR.md from the branch's open PR and checks; at ship:post print a notice when the branch has no open PR
Ships in pr-workflow. 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.
Run gsd-tools config-get pr-workflow.enabled --default true (it resolves the nested
config["pr-workflow"]["enabled"]). On output false, print
pr-workflow reporting is disabled (pr-workflow.enabled); nothing regenerated. and stop.
SUB is verify-post when dispatched at execute:wave:post, ship-post-notice when dispatched at ship:post.
Phase directory: $ARGUMENTS when given, else the PHASE_DIR of the phase the dispatching
workflow is running. When neither exists, print pr-workflow: phase directory unknown and stop.
# Trust order: global manifest, then plugin root. Never the project copy (a repo can plant it).
_B="${GSD_HOME:-${HOME:-}}"; case "$_B" in /?*) ;; *) echo "pr-workflow: no absolute GSD_HOME/HOME" >&2; exit 1;; esac
G="$_B/.gsd/capabilities/pr-workflow"
_P="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/scripts/pr_status.py}"; case "$_P" in /?*) ;; *) _P= ;; esac
if [ -e "$G/capability.json" ] || [ -L "$G/capability.json" ]; then PR_PY="$G/scripts/pr_status.py"
elif [ -f "$_P" ]; then PR_PY="$_P"
else PR_PY=
fi
[ -f "$PR_PY" ] || { echo "pr-workflow: pr_status.py not found in global or plugin roots" >&2; exit 1; }
python3 -I "$PR_PY" "$SUB" <phase directory>
Exit 0: print stdout verbatim, empty included (ship-post-notice prints nothing when an open PR
exists). Exit 1: print stdout and report the failure; exit 1 means the script could not write the
unavailable sentinel to PR.md.
verify-post alone writes PR.md, into the phase directory where the ship:pre gate looks.ship:post, probe live and leave PR.md unread (it may describe a PR merged since).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
pr-workflow@gsd-beads is listed by davdittrich/gsd-beads — review the source before installing
npx claudepluginhub davdittrich/gsd-beads --plugin pr-workflow