본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)33k · #8813

workspace-orchestration

하는 일

이 스킬은 번호가 붙은 슬롯이 있는 공유 워크스페이스를 관리합니다. 코드를 바꾸기 전에 각 작업이 빈 슬롯을 차지합니다. 한 프로젝트에서 여러 병렬 작업을 실행하는 사람을 위한 것입니다.

사용하는 경우

  • ✓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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/workspace-orchestration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. Run /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.
  2. Pass --session "$DOCKO_SESSION_ID" on every claim, heartbeat, and release. The SessionStart hook exports it for this session.
  3. Prefer 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.
  4. In a workspace with several applications, pass --application <id> so the pick stays inside the right pool.
  5. 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.
  6. If every slot is busy and docko asks whether it should create a fresh managed clone, answer explicitly.
  7. Use docko claim --session "$DOCKO_SESSION_ID" --resource slot --id <slot> --branch <branch> --task "<task>" only when you already know the exact slot.
  8. Do the work inside that slot. On long-running work, keep the claim fresh: docko heartbeat --session "$DOCKO_SESSION_ID" --resource slot --id <slot>
  9. 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_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.
  • 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 from docko session list --brief.
  • branch is claim metadata. docko records it and never runs git 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 claude process 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 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.
  • 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-busy to docko slot acquire.
  • If docko is not runnable, check DOCKO_BIN. If it still fails, stop and tell the user.
  • Do not inspect slots one by one or replace the CLI with docko/registry.json during normal work. Use docko status --brief --claimed instead.
자주 묻는 질문

슬롯이란 무엇인가요?

슬롯은 한 번에 한 작업이 쓸 수 있는 별도의 작업 영역이며, 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.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8813
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬