claude-cli-session

Installation
SKILL.md

Claude CLI Session

Use this skill when the user wants Claude Code to continue work through a pinned project session instead of starting a fresh session every time.

Use the project-root .claude-cli-session-id file as the primary source of truth for the session to resume.

The main user task must never run without an active session ID.

Do not use wrapper scripts. Run Claude CLI directly.

Default to --permission-mode acceptEdits for edit-capable automated runs unless the user explicitly asks for a different permission mode.

Workflow

  1. Read <project-root>/.claude-cli-session-id first.
  2. If the file exists and contains a valid UUID session ID, use that value for the real Claude command.
  3. If the file is missing or empty, generate a new UUID, write it into .claude-cli-session-id, and use it to bootstrap a fresh Claude session with --session-id.
  4. When bootstrapping a brand-new session, use a short bootstrap prompt that tells Claude to inspect the current directory and get ready to continue work in this project.
  5. If bootstrap fails and .claude-cli-session-id still does not contain an active session ID, do not run the main user prompt. Report the failure and stop.
Related skills
Installs
4
GitHub Stars
1
First Seen
Mar 19, 2026