set-session-context
Installation
SKILL.md
Set Session Context
Automatically set session name and color based on the current git branch and PR.
Steps
-
Detect branch:
git symbolic-ref --short HEAD- If detached HEAD (command fails) → stop, do nothing
- If
mainormaster→ stop, do nothing
-
Look up PR title:
gh pr view --json title --jq '.title'