CU
current-session-id
|
Install
mkdir -p .claude/skills/current-session-id && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16729" && unzip -o skill.zip -d .claude/skills/current-session-id && rm skill.zipInstalls to .claude/skills/current-session-id
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Retrieve the session ID of the current Claude Code chat. Use when the session ID is needed for log saving, file path construction, or any session-specific operation.165 chars✓ has a “when” trigger
About this skill
セッションID取得
現在のセッションにマーカーを書き込み、JSONLファイルを検索してセッションIDを特定する。 直接取得するAPIがないための間接的手法。
手順
- 同ディレクトリの
stamp.pyをpython3で実行し、出力されたマーカー文字列を記録する(python3 stamp.py) - 同ディレクトリの
find.pyをpython3で実行する(python3 find.py --marker <手順1の出力>) - セッションID(JSONLファイル名のベースネーム、UUID形式)のみ出力する