원클릭으로
worktree-setup
Procedure for creating a git worktree and devcontainer for a new task. Use this when starting a new development task.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Procedure for creating a git worktree and devcontainer for a new task. Use this when starting a new development task.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
E2E test skill that confirms plugin loading works.
Templates and process for creating devcontainer configurations. Use this when setting up a new project, adding devcontainer support, or creating devcontainers for worktrees.
Cross-model code review before every PR. Use this after code is written and before pushing.
Mandatory checklist before starting implementation. Use this before writing code for any non-trivial task.
Production Dockerfile and container runtime security checklist. Use this when building Docker/Podman images or configuring container deployments.
Step-by-step OWASP Top 10 security review checklist. Use this when reviewing code for security issues, submitting a PR, or when code touches authentication, authorization, data storage, or external communication.
| name | worktree-setup |
| description | Procedure for creating a git worktree and devcontainer for a new task. Use this when starting a new development task. |
Each task gets its own worktree and devcontainer instance. This ensures isolation — the worst case is rolling back a branch.
# From the main repo directory
git worktree add ../worktrees/<branch-name> -b <type>/<ticket-id>-<short-description>
Branch naming follows conventional format:
feature/PROJ-123-add-oauth-loginfix/PROJ-456-null-pointer-in-parserrefactor/PROJ-789-extract-payment-serviceFor a yolo (developer) agent — safelisted network only:
devcontainer up --workspace-folder ../worktrees/<branch-name>
The devcontainer should not use "network": "none". Developer agents self-limit to safelisted registries per their agent instructions.
For an interactive agent — with network:
devcontainer up --workspace-folder ../worktrees/<branch-name>
devcontainer exec --workspace-folder ../worktrees/<branch-name> <command>
# Check the branch
devcontainer exec --workspace-folder ../worktrees/<branch-name> git branch --show-current
# Check tools are available
devcontainer exec --workspace-folder ../worktrees/<branch-name> <build-command>
# Stop the devcontainer (find container ID first)
docker ps --filter "label=devcontainer.local_folder=../worktrees/<branch-name>" -q | xargs docker stop
# Remove the worktree
git worktree remove ../worktrees/<branch-name>
# Delete the branch if merged
git branch -d <branch-name>
If resource constraints prevent one-devcontainer-per-worktree, a single devcontainer can be shared. This introduces friction:
docker cp'd into the container for lint/test runs.git checkout -- . inside the container).Prefer dedicated containers. Only share when machine resources (RAM, CPU) make it necessary. If sharing, document which container ID is shared and add restoration steps to every agent's workflow.