Use when working in a persistent-slot workspace that uses docko. Covers slot claims, delegated teammate inheritance, and the rule that code edits inside slots/
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-workspace-orchestration-bc813b5c830e ,按照其中的说明把「workspace-orchestration」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this skill whenever work touches files in slots/ or when the user asks about workspace coordination.
/dock-status or docko status --brief. docko walks up to the workspace root on its own, so this works from inside a slot; pass --root <workspace> only from outside the workspace.--session "$DOCKO_SESSION_ID" on every claim, heartbeat, and release. The SessionStart hook exports it for this session.docko slot acquire --session "$DOCKO_SESSION_ID" --branch <branch> --task "<task>" --brief when you want docko to pick a slot. Selection is round-robin, starting after the last slot claimed for that application.--application <id> so the pick stays inside the right pool.--prefer <slot-id> when a specific slot is the right one (it already has the branch, say). docko takes it when free and rotates normally when it is not.docko claim --session "$DOCKO_SESSION_ID" --resource slot --id <slot> --branch <branch> --task "<task>" only when you already know the exact slot.docko heartbeat --session "$DOCKO_SESSION_ID" --resource slot --id <slot>docko release --session "$DOCKO_SESSION_ID" --resource slot --id <slot>Prefer slash commands when installed:
/dock-status/dock-claim <slot> <branch> <task>/dock-heartbeat <slot>/dock-release <slot>/dock-doctorslots/*.$DOCKO_SESSION_ID is empty (plugin hooks not installed, or a different runtime), stop before the first claim and resolve a real session id — never run claim or heartbeat with an empty --session. Use docko session list --brief or docko session current to pick one.$DOCKO_SESSION_ID, or an id from docko session list --brief.branch is claim metadata. docko records it and never runs git checkout.claude process gets its own session id and must be delegated: docko delegate --session <owner> --child-session <child> --resource slot --id <slot>.AMBIGUOUS_SESSION, run the suggested_command from the error payload, or retry with an explicit --session <id> from docko session list --brief; do not end existing sessions unless the user asked for cleanup.slot-not-claimed, claim-expired, unrelated-session) and the exact command that fixes it.--clone-when-busy to docko slot acquire.docko is not runnable, check DOCKO_BIN. If it still fails, stop and tell the user.docko/registry.json during normal work. Use docko status --brief --claimed instead.