원클릭으로
worktree
Standard Operating Procedures for managing git worktrees to isolate tasks.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Standard Operating Procedures for managing git worktrees to isolate tasks.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Guidelines for creating, reviewing, and improving agent skills.
Guidelines for validation, staging, amending, and commit messages.
Guidelines for dependency injection patterns.
Guidelines for ensuring architectural changes are validated against core use cases.
Orchestrates efficient read and write interactions with the engram unified memory store via MCP tools. Provides deterministic workflows for decomposing observations into atomic memories, composing four-dimensional queries (context, similarity, relationship, time) for maximum retrieval accuracy, managing agent-managed focus context, and linking memories into associative webs at write time. Ensures memories are discoverable, precisely ranked, and structurally connected across sessions.
Guidelines for dual-use architecture (CLI and Go Library), dependency separation, and extensible registry patterns.
| name | worktree |
| description | Standard Operating Procedures for managing git worktrees to isolate tasks. |
This skill mandates and guides the use of git worktree for task isolation.
CRITICAL: You MUST inspect the workspace root before beginning work.
You are in a Worktree-Enabled Workspace if:
main or master which represents the primary branch..agent/, .gemini/) but no direct source code files at the root level.feature-xyz, fix-abc) alongside main.If this pattern is detected:
main or master directory (except for repo-wide maintenance).main for your work. You must create a sibling directory.Before creating a worktree, ensure the local main (or master) is up to date to avoid divergence.
# Assuming 'main' is the primary directory
git -C main checkout main
git -C main pull origin main
Create a new folder and branch as a sibling to main.
# Syntax: git -C <base> worktree add ../<folder-name> -b <branch-name>
# Example: Creating a feature branch
git -C main worktree add ../feature-new-login -b feature.new-login
Naming Convention:
feature-new-login).type.name (e.g., feature.new-login, fix.crash-handling).Immediately after creation, you must switch your working directory/context.
cd ../feature-new-login
Rule: All subsequent commands (builds, tests, git commits) MUST be run from inside this new worktree directory.
When the task is completed and verified:
# From the root or main directory
rm -rf feature-new-login
git -C main worktree prune
git -C main worktree list no longer shows it.If you see fatal: 'feature/xyz' is already checked out at...:
git -C main worktree list.git -C main worktree prune.If git pull fails in the new worktree:
git branch --set-upstream-to=origin/main
If switching between worktrees causes installation issues:
adb uninstall <package_name>