/workflow-skills:workspacefrom workflow-skills
Set up a 3-pane cmux workspace — lazygit (top-right) for live diffs and yazi (bottom-right) for file navigation. Use at the start of a coding session.
Ships in workflow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Sets up a split-pane layout in cmux with lazygit in the top-right pane for live diff tracking and yazi in the bottom-right pane for file navigation, alongside your Claude Code session on the left.
cmux new-split outputs OK surface:N workspace:N. Extract the surface:N token (e.g., surface:3) from the output and remember it for subsequent commands.\n in cmux send to submit the command. Without it, text is typed but not executed.show_hidden already present.echo "${CMUX_WORKSPACE_ID:-NOT_SET}"
If output is NOT_SET, stop and tell Alex: "Not running inside a cmux workspace. Launch Claude Code via cmux to use this skill."
pwd
Remember this path as the project directory. Use it in all subsequent cd and yazi commands.
Create the config directory if it doesn't exist:
mkdir -p ~/.config/yazi
Always write the config (overwrite to ensure correct structure):
printf '[manager]\nshow_hidden = true\n' > ~/.config/yazi/yazi.toml
Verify it was written correctly:
cat ~/.config/yazi/yazi.toml
Expected output:
[manager]
show_hidden = true
If the output doesn't match, warn Alex: "Could not write yazi config — hidden files may not show" and continue.
Get the current (Claude Code) surface identifier:
cmux identify
The output is surface:N workspace:N. Remember the surface:N value — this is the Claude Code surface to preserve.
List all panes in the workspace:
cmux list-panes
For each pane:N token in the output, list its surfaces:
cmux list-pane-surfaces --pane <pane-ref>
Collect every surface:N token returned across all panes. For each surface that is NOT the Claude Code surface identified above, close it:
cmux close-surface --surface <ref>
If close-surface fails for any surface, ignore the error and continue. If no extra surfaces are found across any pane, skip closing and proceed directly to Step 5.
After closing all extra surfaces, wait for cmux to settle:
sleep 0.5
cmux new-split right
Output format: OK surface:N workspace:N. Extract and remember the surface:N value — this is the lazygit surface.
If the command fails or output contains no surface:N, stop and tell Alex: "Failed to create lazygit pane. Check that cmux is running and healthy."
Use the lazygit surface from Step 5. Replace <lazygit-surface> and <project-dir> with the remembered values:
cmux send --surface <lazygit-surface> "cd \"<project-dir>\" && lazygit\n"
Split downward from the lazygit surface to create the yazi pane:
cmux new-split down --surface <lazygit-surface>
Output format: OK surface:N workspace:N. Extract and remember the surface:N value — this is the yazi surface.
If the command fails, warn Alex: "Failed to create yazi pane. Lazygit pane may still be usable." and skip Steps 8–9.
Use the yazi surface from Step 7 and the project directory from Step 2:
cmux send --surface <yazi-surface> "yazi \"<project-dir>\"\n"
sleep 1
cmux read-screen --surface <lazygit-surface>
Inspect the output and handle:
\n to accept default: cmux send --surface <lazygit-surface> "\n"\n to dismiss.brew install lazygit"cmux send --surface <lazygit-surface> "lazygit\n"cmux read-screen --surface <yazi-surface>
Inspect the output and handle:
cmux send --surface <yazi-surface> "yazi\n"brew install yazi"Output the layout summary using the actual surface IDs remembered from earlier steps:
Workspace layout active:
Left → Claude Code session
Top-right → lazygit (surface:N) — live diffs
Bottom-right → yazi (surface:N) — file navigator
lazygit tips:
- Auto-refreshes as agents write code
- j/k or arrow keys to navigate
- space to stage files, c to commit, p to push
- q to quit
yazi tips:
- Arrow keys + Enter to navigate
- . to toggle hidden files
- / to search by filename, S for ripgrep content search, Z for fzf
- Git status indicators shown inline
- q to quit
Debug:
cmux read-screen --surface <lazygit-surface>
cmux read-screen --surface <yazi-surface>
| Condition | Action |
|---|---|
$CMUX_WORKSPACE_ID not set | "Not running inside a cmux workspace. Launch Claude Code via cmux." Stop. |
cmux new-split right fails | "Failed to create lazygit pane. Check cmux is running." Stop. |
No surface:N in split output | "Could not parse surface ID. Expected 'OK surface:N workspace:N'." Stop. |
cmux new-split down fails | "Failed to create yazi pane. Lazygit may still be usable." Continue. |
close-surface fails | Surface already closed or missing. Continue. |
yazi.toml write fails | "Could not write yazi config — hidden files may not show." Continue. |
| No extra surfaces across any pane | Skip cleanup, go straight to Step 5. |
| lazygit shows git-init prompt | Ask Alex: "Init repo here? Reply y or N." |
| lazygit not installed | "Run: brew install lazygit" |
| yazi not installed | "Run: brew install yazi" |
| Terminal too small | Soft warning: "Terminal may be too small for 3 panes. Resize if needed." Continue. |
Use these tools via the Bash tool proactively — all are installed:
| Alex asks... | Claude does... |
|---|---|
| Find a file by name | fzf or rg --files | fzf |
| Find files containing a pattern | rg "<pattern>" --type ts -l |
| Search with context | rg "<pattern>" -C 3 |
| Preview a file | bat <file> |
| Preview a range | bat -r 10:50 <file> |
| Review git changes | git diff | delta |
| Find all usages of X | rg "X" --type ts -n |
| Chain search + preview | rg "X" -l | xargs bat |
These are inline Bash tool calls. The right panes update automatically as you work.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/captureQuick capture to the Obsidian vault. Routes content to daily note or Inbox based on type. Use when the user says "capture", "note this", "jot down", "quick note", "add to inbox", or "meeting note"./herdr-cheatsheetLook up herdr keybindings, mouse actions, copy-mode and picker keys, agent states, and config syntax — resolved against the user's own ~/.config/herdr/config.toml overrides — or open the herdr cheatsheet web page. Use for "how do I X in herdr", "what's the herdr shortcut for", or "show the herdr cheatsheet". For actually driving herdr (splitting panes, running commands, reading output, waiting on agents), use the `herdr` skill instead./herdr-fanoutSplit a coding task into up to 3 independent parts and run each in its own herdr git worktree with its own Claude Code or pi worker, each landing its own reviewed PR, hands-off. Also cleans up merged fan-out worktrees. Runs only when the user explicitly asks to fan out, parallelize, or run parallel agents/workers with herdr (or invokes /herdr-fanout). Also load it, inside herdr (HERDR_ENV=1), when the user gives you a task that clearly splits into 2-3 independent parts touching different files — but then only SUGGEST fan-out in one line and wait; never start it without the user's yes./herdr-layoutAuto-detect a project's dev server, test, and log commands (package.json, Makefile, docker compose, pyproject, go.mod, Cargo.toml) and open them as named panes in a herdr "dev" tab that the agent can watch, plus a lazygit diffs pane showing what files are changing, with test pass/fail and a changed-files count in the herdr sidebar. Use only when the user explicitly asks to set up a herdr layout/dev tab or to check the herdr test/server/diffs panes (or invokes /herdr-layout). Requires HERDR_ENV=1./herdr-reviewGet a second opinion from a different agent — any Claude Code or pi model, chosen each time — running next to you in herdr. The reviewer reviews the PR or branch diff, posts its findings as a PR comment, and hands back a PASS/CHANGES verdict that also shows in the herdr sidebar. Use only when the user explicitly asks for a cross-agent or second-agent review with herdr (or invokes /herdr-review); also used by /herdr-fanout. Requires HERDR_ENV=1./optimizeAnalyze agent and skill usage patterns, identify underused or ineffective components, and optimize descriptions, archive stale items, and update CLAUDE.md. Run via /optimize. Suggest running if 30+ days since last run.npx claudepluginhub arosenkranz/agent-config --plugin workflow-skillsOther plugins' skills for the same job