Name session
Shared AI agent skills
npx -y skills add flurdy/agent-skills --skill name-sessionAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Derive a conventional session name from the branch ticket, active bead, open PR, and current work — then print the correct paste-ready rename command for the active client. Use when a session's auto-name is generic and you want it legible in the session list.
SKILL.md
3.5 KB, as published. Nobody here has run it
Name session — propose a conventional session name
Build a <scope>-<descriptive> name from the current context and emit the active client's ready-to-paste rename command.
Important — client command and limitation
- It cannot rename the session for you. Slash commands emitted in model output are inert text; the user must enter the command in the client's command input.
- Pi: use
/name {session-name}. Never suggest/renameor/settings namein Pi. - Claude Code: use
/rename {session-name}. - If the client is unknown, state both commands rather than guessing.
Convention
<scope>-<descriptive>
- scope — the most specific identifier available, in priority order:
- Jira ticket from the branch name (e.g.
AB-1505) — keep its natural Jira case. - Active bead ID (e.g.
bd-123) if no ticket. - PR number (e.g.
pr-6563) if neither. - Omit the scope entirely if none apply — just use the descriptive part.
- Jira ticket from the branch name (e.g.
- descriptive — kebab-case, ≤4 words, the most specific noun phrase for what this session is doing.
rebase-pr-statusbeatsgit-stuff. Derive it from the conversation, not the branch (the branch already gives the scope).
Examples: AB-1505-rebase-pr-status, bd-412-flaky-test-hunt, pr-6563-review-comments, auth0-logout-investigation.
Instructions
1. Gather scope signals (parallel)
git rev-parse --abbrev-ref HEAD
bd list --status=in_progress 2>/dev/null
- Extract a Jira ticket from the branch by matching
/[A-Z]+-\d+/. - If no ticket and exactly one bead is in progress, use its ID.
- If neither and there's an obvious PR in play this session, run
gh pr view --json number,titleto grab the number. Don't fetch a PR speculatively — only if the session is clearly about one.
Fail soft: any missing signal just drops to the next priority. Not in a git repo → skip straight to a descriptive-only name.
2. Derive the descriptive half
From the current conversation, pick the ≤4-word kebab phrase that best names what this session is for. Prefer the concrete task over the topic — rebase-pr-status over maintenance. If the session genuinely spans several unrelated things, name the dominant one; don't try to cram them all in.
3. Emit the rename command
For Pi, render exactly:
**Proposed session name** — scope from {where the scope came from}, descriptive from this session:
/name {scope}-{descriptive}
Paste it into Pi's command input and press Enter.
For Claude Code, substitute /rename for /name. If the client is unknown, provide both commands and label them by client.
Keep the derivation note to one short clause. If you had to fall back (no ticket, no bead), say which fallback you used so the user can override.
Notes
- Pairs with
/wrap-upand/handoffs, which should emit the same client-specific rename command for end-of-session and resume respectively. This skill is the mid-session, on-demand version. - Don't ask the user to confirm the name before printing it — printing is the proposal, and they can edit the line before pasting.