一键导入
get-session-id
Reference for accessing session ID via ${CLAUDE_SESSION_ID} automatic substitution
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reference for accessing session ID via ${CLAUDE_SESSION_ID} automatic substitution
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Guide for writing clear, descriptive commit messages
Merge task branch to base branch with linear history (works from task worktree)
MANDATORY: Use instead of `git rebase` - provides automatic backup and conflict recovery
MANDATORY: Use instead of `git rebase -i` for squashing - unified commit messages
Analyze mistakes with conversation length as potential cause (CAT-specific)
Run scheduled retrospective analysis, derive action items, and track effectiveness
| name | get-session-id |
| description | Reference for accessing session ID via ${CLAUDE_SESSION_ID} automatic substitution |
Purpose: The session ID is automatically available in skills and commands via ${CLAUDE_SESSION_ID}.
How It Works:
${CLAUDE_SESSION_ID} with the actual session ID when loading skillsWhen to Use This Skill:
${CLAUDE_SESSION_ID} in skill/command templatesClaude Code assigns a unique session ID (UUID v4) to each conversation session. This ID is used for:
/home/node/.config/projects/-workspace/{session-id}.jsonlIn skill and command markdown files, use ${CLAUDE_SESSION_ID} directly:
# This gets auto-substituted when the skill loads
SESSION_FILE="/home/node/.config/claude/projects/-workspace/${CLAUDE_SESSION_ID}.jsonl"
cat "$SESSION_FILE" | jq -s 'length'
Bash hooks receive the session ID via stdin JSON:
# Read stdin JSON and extract session_id
INPUT=$(cat)
SESSION_ID=$(echo "$INPUT" | jq -r '.session_id // empty')
# Use for session-specific operations
SESSION_FILE="/home/node/.config/claude/projects/-workspace/${SESSION_ID}.jsonl"
The session ID is injected into conversation context via two mechanisms:
echo-session-id.sh: Outputs session ID at SessionStartinject-session-instructions.sh: Includes session ID in CAT instructionsUsers see the session ID in system reminders at conversation start:
Session ID: b6933609-ab67-467e-af26-e48c3c8c129e
# Session ID is auto-substituted - no manual lookup needed
cat /home/node/.config/projects/-workspace/${CLAUDE_SESSION_ID}.jsonl | jq -s 'length'
# The session ID is already substituted when this runs
jq -s '[.[] | select(.type == "message")]' \
"/home/node/.config/projects/-workspace/${CLAUDE_SESSION_ID}.jsonl"
#!/bin/bash
INPUT=$(cat)
SESSION_ID=$(echo "$INPUT" | jq -r '.session_id // empty')
# Now use $SESSION_ID for session-specific operations