ワンクリックで
worktrees
Manage Git worktrees as OMK safe isolated coding lanes for complex, risky, or parallel work.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Manage Git worktrees as OMK safe isolated coding lanes for complex, risky, or parallel work.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Clone important project dependency source code into an ignored local workspace so KiloCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library implementation details, or make core dependency repos locally readable. Do not use for ordinary API/docs questions where @librarian is enough.
Generate comprehensive hierarchical codemaps for UNFAMILIAR repositories. Expensive operation - only use when explicitly asked for codebase documentation or initial repository mapping
Chief-only workflow for heavy coding sessions, multi-phase implementation, and risky refactors. Use for complex work that needs planning, review gates, and persistent progress tracking.
Loop engineering runtime Grill + Monitor
Configure and improve oh-my-kilocode-slim for the current user. Use when users want to tune agents, models, prompts, custom agents, skills, MCPs, presets, or plugin behavior. Also use when recurring workflow friction suggests a safe config or prompt improvement.
Review recent work, find repeated workflow patterns, and suggest reusable skills, agents, commands, config changes, or playbooks. Use when the user asks to learn from past sessions, improve recurring workflows, or identify what should be turned into reusable agent instructions.
| name | worktrees |
| description | Manage Git worktrees as OMK safe isolated coding lanes for complex, risky, or parallel work. |
The worktrees skill provides an opinionated, safe orchestration protocol for
managing Git worktrees as isolated coding lanes. Its value is giving the Chief a consistent OMK workflow for parallel agents, risky experiments, integration review, and cleanup.
This is an chief-only workflow. Other specialists such as @fixer
or @designer can be assigned tasks inside a worktree lane, but the
Chief owns lane planning, branch/path selection, file ownership,
delegation, diff validation, integration, and cleanup.
All worktrees reside under the default path:
.slim/worktrees/<slug>/
Do not create worktrees as sibling directories of the main repository.
.slim/worktrees.json)Use the optional local metadata manifest .slim/worktrees.json to maintain
structural tracking:
{
"version": "1.0.0",
"updatedAt": "2026-06-14T00:00:00.000Z",
"lanes": [
{
"slug": "feature-auth-v2",
"branch": "omk/feature-auth-v2",
"path": ".slim/worktrees/feature-auth-v2",
"base": "main",
"purpose": "refactor authentication flow to use OAuth2",
"owner": "chief",
"status": "active",
"areas": ["src/auth", "src/config"],
"createdAt": "2026-06-14T12:00:00.000Z"
}
]
}
If .slim/worktrees.json does not exist, create it when initializing a lane,
and keep it updated as lanes are transitioned, integrated, or pruned. Treat it
as local workflow metadata by default; ask before making it part of a committed
project convention.
Before executing any Git mutation command, the Chief must observe the following guards:
git worktree list to avoid path or branch conflicts.omk/<slug> or custom project convention) does not already exist locally or on remote..slim/worktrees/ is ignored by Git before creating nested worktrees.You must seek explicit user confirmation before executing:
git worktree add or git worktree removegit prune or git worktree prunegit reset --hard, git clean, git push --force, or removing a dirty worktree directory).Never execute destructive commands, delete branches, remove dirty worktrees, or clean uncommitted changes without explicit user confirmation for that exact operation.
Before creating lanes, add or update managed marker blocks only.
.gitignore:
# BEGIN oh-my-kilocode-slim worktrees
.slim/worktrees/
.slim/worktrees.json
# END oh-my-kilocode-slim worktrees
.ignore:
# BEGIN oh-my-kilocode-slim worktrees
!.slim/
!.slim/worktrees.json
!.slim/worktrees/
!.slim/worktrees/**
# END oh-my-kilocode-slim worktrees
<slug> for the worktree.omk/<slug> unless project/user conventions dictate otherwise.git worktree add -b <branch-name> .slim/worktrees/<slug> <base-commit/branch>
.slim/worktrees.json..slim/worktrees/<slug>.Before merging or integrating the worktree branch:
git worktree remove .slim/worktrees/<slug>
.slim/worktrees.json to mark the lane as archived or remove it.