From workspace
Load workspace context and resume work. Use at the start of every session in a workspace. Auto-detects current workspace from directory. Triggers on "resume workspace", "load context", "where was I", "continue working", "resume feature".
How this skill is triggered — by the user, by Claude, or both
Slash command
/workspace:resumeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Respond in the user's language.**
Respond in the user's language.
Run:
pwd
Then read the registry:
cat ~/.claude-workspaces/registry.json 2>/dev/null || echo '{"workspaces":{},"next_slot":1}'
Compare the current directory against every workspace_path and repos[].path entry in the registry. Use longest-prefix matching.
/workspace:list) and ask the user which one to resume.No workspace found for this directory. You can:
/workspace:attach— attach a workspace to this existing directory (slot + color + context, no worktree)/workspace:start-worktree— create a new workspace with git worktree isolation/workspace:start-sandbox— create a lightweight isolated sandbox
Read CLAUDE.local.md from the workspace root:
cat <workspace_path>/CLAUDE.local.md
Extract the following fields:
w3)worktree or sandbox)If CLAUDE.local.md is missing but the registry has an entry for this workspace, warn the user:
CLAUDE.local.mdis missing from this workspace. The registry entry still exists. Want me to regenerate the context file?
For the primary repo (first repo in the workspace entry), run all four commands:
git -C <primary_repo_path> branch --show-current
git -C <primary_repo_path> log --oneline -10
git -C <primary_repo_path> status --short
git -C <primary_repo_path> diff --stat
Apply the workspace color using OSC sequences. See references/color-palette.md.
# Detect the parent terminal device (Claude Code captures stdout)
TTY_DEV="/dev/$(ps -o tty= -p $PPID 2>/dev/null | tr -d ' ')"
# Set background color (OSC 11)
printf '\033]11;<hex-color>\007' > "$TTY_DEV" 2>/dev/null
# Set tab name (OSC 1) and window title (OSC 0)
printf '\033]1;<emoji> <branch-or-slug> [w<slot>]\007' > "$TTY_DEV" 2>/dev/null
printf '\033]0;<emoji> <branch-or-slug> [w<slot>]\007' > "$TTY_DEV" 2>/dev/null
<emoji> **[w<slot>] <branch-or-slug>**
🎯 **Goal**: <description>
Spec: <link or "none">
📜 **Last commits**:
- <hash> <message>
- <hash> <message>
- <hash> <message>
🚧 **Work in progress**: <N> files modified (<X> insertions, <Y> deletions)
Main files: <path>, <path>
📝 **Notes**: <notes or "none">
If the Goal section is empty in CLAUDE.local.md, add a line at the end:
No goal recorded. Want me to fill it in?
Based on the git state, propose exactly one action. Never impose — always phrase as a proposal.
<files> modified. Want me to look?"CLAUDE.local.md first before reading git state.CLAUDE.local.md is missing but the registry has the workspace, warn and offer to regenerate — do not stop silently.workspaces_root (with s) when referring to registry paths.references/... paths (not @references/...) when referencing project files.npx claudepluginhub sommesi/claude-workspaces --plugin workspaceCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.