Agent skill
name
Name or rename the current session — saves to statusline and session notes
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/name
SKILL.md
Your task
Name the current session so it appears in the statusline and is saved for future reference.
The argument provided is: {{ args }}
Steps
-
Get the session name — use the argument if provided, otherwise ask the user with AskUserQuestion: "What name do you want to give this session?"
-
Find the current session ID — run:
bashls -t ~/.claude/projects/*/*.jsonl 2>/dev/null | head -1 | xargs basename | sed 's/\.jsonl$//' -
Save the session name:
bashmkdir -p ~/.claude/session_notes echo "<name>" | tee ~/.claude/session_notes/<session_id> -
Confirm — tell the user the session is named and will appear in the statusline (📌 ) after the next response.
Note
This is separate from Claude Code's built-in /rename command which renames the session in the UI sidebar.
Use /name to tag the session so the statusline always reminds you what you're working on.
You can use both: /rename for the sidebar, /name for the statusline.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?