get-session-id
Installation
SKILL.md
Get Session ID Skill
Purpose: The session ID is automatically available in skills and commands via ${CLAUDE_SESSION_ID}.
How It Works:
- Claude Code substitutes
${CLAUDE_SESSION_ID}with the actual session ID when loading skills - No manual extraction or lookup required
- The session ID is also visible in context via SessionStart hooks for user reference
When to Use This Skill:
- Reference this documentation to understand how session IDs work
- The session ID is already available - just use
${CLAUDE_SESSION_ID}in skill/command templates