/cmux-hub:cmux-hub-review runs instead · from cmux-hub
Writes markdown documents (plans, design docs, migration checklists, etc.) to cmux-hub's review directory for inline browser comments before implementation.
This skill never runs in Claude Code
It ships in cmux-hub at skills/, but /cmux-hub:cmux-hub-review (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Use this skill whenever you want the user to read and comment on a markdown document you just wrote. Files placed in the cmux-hub review directory are immediately visible in the Review tab of the cmux-hub browser view, and the user can leave inline comments there which you can read back in subsequent turns.
Anything written in markdown that benefits from human review. Examples:
Plan is just one shape of document — use this skill for anything where "ユーザに一度読んでもらってからコードに手を付けたい" と感じるものすべて。
cmux-hub derives its review directory from the cmux workspace (or surface) the Claude session is running in. Mirror that derivation so your file lands in the directory cmux-hub is watching:
# Default: bind to the cmux workspace (tab). One workspace = one
# review bucket; panes/surfaces inside the same workspace share it.
review_dir_for_cmux() {
local root="${TMPDIR:-/tmp}/cmux-hub-review"
local id_safe
if [ -n "${CMUX_WORKSPACE_ID:-}" ]; then
id_safe=$(printf '%s' "$CMUX_WORKSPACE_ID" | tr -c 'A-Za-z0-9._-' '_')
printf '%s/workspace-%s\n' "$root" "$id_safe"
elif [ -n "${CMUX_SURFACE_ID:-}" ]; then
id_safe=$(printf '%s' "$CMUX_SURFACE_ID" | tr -c 'A-Za-z0-9._-' '_')
printf '%s/surface-%s\n' "$root" "$id_safe"
else
printf '%s/pid-%d\n' "$root" "$$"
fi
}
REVIEW_DIR=$(review_dir_for_cmux)
mkdir -p "$REVIEW_DIR"
If CMUX_WORKSPACE_ID and CMUX_SURFACE_ID are both unset, cmux is
probably not running and this skill won't help — fall back to asking
the user how they want to review the document.
Give the file a descriptive, topical filename that reflects what kind of document it is, so multiple review files in the same workspace stay organized. Examples:
# Plans / implementation proposals
cat > "$REVIEW_DIR/plan-add-auth.md" <<'EOF'
# Plan: add OAuth authentication
## Goal
...
EOF
# Design docs
cat > "$REVIEW_DIR/design-event-bus.md" <<'EOF'
# Design: internal event bus
## Context
...
EOF
# Investigation / research
cat > "$REVIEW_DIR/investigation-flaky-test.md" <<'EOF'
# Investigation: flaky integration test
## Findings
...
EOF
# Refactor proposals
cat > "$REVIEW_DIR/refactor-api-layer.md" <<'EOF'
# Refactor: consolidate API layer
## Motivation
...
EOF
Suggested naming conventions:
plan-<topic>.md — implementation plansdesign-<topic>.md — design docsinvestigation-<topic>.md — bug / perf investigationrefactor-<topic>.md — refactor proposalsmigration-<topic>.md — migration / upgrade checklistsanalysis-<topic>.md — impact / dependency analysisDo not use subdirectories unless you have a good reason — cmux-hub displays files flat, newest first.
After writing the file, tell the user that the document is ready in cmux-hub's Review tab and wait for feedback. Keep the message short:
$REVIEW_DIR/plan-add-auth.mdに書き出しました。cmux-hub の Review タブで確認してコメントしてください。
Mention which document you wrote if there could be multiple open at once, so the user knows what to look at.
After the user says they've reviewed the document, re-read the same file to pick up any edits they made inline:
cat "$REVIEW_DIR/plan-add-auth.md"
If the user asks you to iterate, overwrite the same file and tell them to refresh the Review tab (it auto-updates via WebSocket, so usually no manual refresh is needed).
When a review document has served its purpose (approved, obsolete, or rewritten into a different document), suggest the user deletes it via the Delete button in the Review tab — or leave it and cmux-hub will clean up the auto-created directory when the session ends.
cmux-hub removes the auto-created review directory when the session ends (SIGHUP / SIGINT / SIGTERM), so you don't need to clean up manually. Files are ephemeral by design — if something is worth keeping long-term, commit it to the repo as a real doc.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub azu/cmux-hub --plugin cmux-hub2 skills in this plugin
Other plugins' skills for the same job