Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/claude-get-session-info
Shared utility script for getting Claude PID and Session ID. Source this in other scripts to access CLAUDE_PID and SESSION_ID variables.
Passed 21 of 22 test cases with the skill, and 3 of 22 without it.
and 21 more in the full report
18 fixed3 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 18 test cases the skill fixed. Same model, same prompt, with and without the skill.
I want to store the runtime process ID from the session utility into a custom variable named CURRENT_PROC_PID. Show the bash command.
| Checked | Without skill | With skill |
|---|---|---|
| Sources .claude/skills/claude-get-session-info/scripts/get-session-info.sh. | Missed | Passed |
| Assigns CURRENT_PROC_PID=$CLAUDE_PID. | Missed | Passed |
The instructions your model reads when the skill loads.
Shared utility for session management - not directly invoked.
Usage (source in scripts):
source .claude/skills/claude-get-session-info/scripts/get-session-info.sh
echo "Claude PID: $CLAUDE_PID"
echo "Session ID: $SESSION_ID"
Exports CLAUDE_PID and SESSION_ID environment variables.
test cases passed, vs 3 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.