workspace-orchestration
できること
このスキルは、番号付きのスロットを持つ共有ワークスペースを管理します。各タスクは、コードを変更する前に空いているスロットを確保します。1つのプロジェクトで複数の並行タスクを動かす人向けです。
使う場面
- ✓dockoワークスペースのslotsフォルダー内のファイルを扱うとき。
- ✓編集を始める前に、タスクに空いているスロットを確保させたいとき。
- ✓使用中のスロットを確認したり、終わったスロットを解放したりしたいとき。
スキルのリンク
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/workspace-orchestration/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ログインのバグ修正用に空いているスロットを確保し、どのスロットになったか教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはdockoのコマンドを使い、ブランチとタスクのためにスロットを確保します。作業中は確保を更新し、終わったら解放します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
docko Workspace Orchestration
Use this skill whenever work touches files in slots/ or when the user asks about workspace coordination.
Quick Path
- Run
/dock-statusordocko 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. - Pass
--session "$DOCKO_SESSION_ID"on every claim, heartbeat, and release. The SessionStart hook exports it for this session. - Prefer
docko slot acquire --session "$DOCKO_SESSION_ID" --branch <branch> --task "<task>" --briefwhen you want docko to pick a slot. Selection is round-robin, starting after the last slot claimed for that application. - In a workspace with several applications, pass
--application <id>so the pick stays inside the right pool. - Add
--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. - If every slot is busy and docko asks whether it should create a fresh managed clone, answer explicitly.
- Use
docko claim --session "$DOCKO_SESSION_ID" --resource slot --id <slot> --branch <branch> --task "<task>"only when you already know the exact slot. - Do the work inside that slot. On long-running work, keep the claim fresh:
docko heartbeat --session "$DOCKO_SESSION_ID" --resource slot --id <slot> - Release the slot when done:
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-doctor
Rules
- Work from the root. Edit code in
slots/*. - If
$DOCKO_SESSION_IDis 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. Usedocko session list --briefordocko session currentto pick one. - Never invent a session id. The PreToolUse hook checks the runtime's own session, so a made-up id claims a slot that then blocks your own writes. Use
$DOCKO_SESSION_ID, or an id fromdocko session list --brief. branchis claim metadata. docko records it and never runsgit checkout.- Claims are slot-scoped. Two sessions cannot share a slot, and one claim does not reserve a branch, a PR, or a file.
- If a parent session already owns the slot, reuse that authority instead of creating a second claim.
- Subagents started with the Agent tool share the parent's session id, so they inherit the parent's claim and need no docko call. A separately launched
claudeprocess gets its own session id and must be delegated:docko delegate --session <owner> --child-session <child> --resource slot --id <slot>. - If docko reports
AMBIGUOUS_SESSION, run thesuggested_commandfrom the error payload, or retry with an explicit--session <id>fromdocko session list --brief; do not end existing sessions unless the user asked for cleanup. - If a write is blocked, read the deny message: it names the slot, the reason (
slot-not-claimed,claim-expired,unrelated-session) and the exact command that fixes it. - If every slot is busy and the user already approved the fallback, add
--clone-when-busytodocko slot acquire. - If
dockois not runnable, checkDOCKO_BIN. If it still fails, stop and tell the user. - Do not inspect slots one by one or replace the CLI with
docko/registry.jsonduring normal work. Usedocko status --brief --claimedinstead.
よくある質問
スロットとは何ですか?
1つのタスクが同時に使える、ワークスペース内の別々の作業領域です。dockoツールが管理しています。
確保せずにスロット内のファイルを編集できますか?
いいえ。このスキルでは、スロット内のコード編集には有効な確保が必要とされています。
すべてのスロットが使用中の場合はどうなりますか?
dockoが新しいマネージドクローンを作成するかを尋ねることがあり、エージェントはそれに明示的に答えるよう指示されています。
詳細
作者による元の説明
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/ require an active claim.
人気
- GitHubのスター
- 33k
- ランキング
- #8813
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
owasp-security
33kエージェントがWebアプリ、API、モバイル、コンテナ、AIエージェント向けの OWASP のセキュリティ指針を理解し、よくある弱点を見つけて修正案を出せるよう支援します。
agent-management
33kエージェントが、AI Maestro のコマンドラインを使って AI エージェントを作成、一覧表示、休止、再開、名前変更、削除できるよう支援します。各エージェントのライフサイクルを管理します。
agent-messaging
33kエージェントが、主に自分のマシン上で Agent Messaging Protocol を使い、AIエージェント同士の署名付きメッセージを送信、受信、返信できるよう支援します。
docs-search
33kエージェントが、自動生成されたコードのドキュメントから関数の署名、クラスの定義、コメントを検索できるよう支援します。コードを変更する前に、実際のAPIを確認できます。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。