Skillquality 0.45

set-session-context

>-

Price
free
Protocol
skill
Verified
no

What it does

Set Session Context

Automatically set session name and color based on the current git branch and PR.

Steps

  1. Detect branch:

    git symbolic-ref --short HEAD
    
    • If detached HEAD (command fails) → stop, do nothing
    • If main or master → stop, do nothing
  2. Look up PR title:

    gh pr view --json title --jq '.title'
    
  3. Determine session name:

    • If PR exists → use PR title
    • If no PR → humanize branch name: strip the conventional prefix and slash/hyphen separator, replace remaining hyphens with spaces
      • feat/add-widgetadd widget
      • fix-login-buglogin bug
  4. Run: /rename <session name>

  5. Determine color from the branch prefix (match ^(type)[/-]):

    PrefixColor
    featblue
    fixred
    choregreen
    docscyan
    refactoryellow
    testpurple
    ciorange
    buildorange
    perfyellow
    stylecyan
    (no match)blue
  6. Run: /color <color>

Behavior

  • Execute silently: do not announce, explain, or narrate what you are doing.
  • Do not ask for confirmation.
  • If gh is unavailable or fails, fall back to the humanized branch name.

Capabilities

skillsource-paultyngskill-set-session-contexttopic-agent-skillstopic-ai-toolstopic-claude-codetopic-cursortopic-dotfiles

Install

Quality

0.45/ 1.00

deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,273 chars)

Provenance

Indexed fromgithub
Enriched2026-05-18 19:09:03Z · deterministic:skill-github:v1 · v1
First seen2026-05-18
Last seen2026-05-18

Agent access