ai-estimates
Use when estimating how long a task will take: coding, writing, research, analysis, design, data work, or anything else AI can…
Manage Git worktrees as OMO safe isolated coding lanes for complex, risky, or parallel work.
Claude Code
$ npx -y skills add alvinunreal/oh-my-opencode-slim --skill worktrees --agent claude-code
Codex
$ npx skills add alvinunreal/oh-my-opencode-slim --skill worktrees -a codex -y
Cursor
$ npx skills add alvinunreal/oh-my-opencode-slim --skill worktrees -a cursor -y
Gemini CLI
$ npx skills add alvinunreal/oh-my-opencode-slim --skill worktrees -a gemini-cli -y
GitHub Copilot
$ npx skills add alvinunreal/oh-my-opencode-slim --skill worktrees -a github-copilot -y
OpenCode
$ npx skills add alvinunreal/oh-my-opencode-slim --skill worktrees -a opencode -y
Windsurf
$ npx skills add alvinunreal/oh-my-opencode-slim --skill worktrees -a windsurf -y
name: worktrees description: Manage Git worktrees as OMO 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 Orchestrator a consistent OMO workflow for parallel agents, risky experiments, integration review, and cleanup.
This is an **orchestrator-only** workflow. Other specialists such as `@fixer` or `@designer` can be assigned tasks inside a worktree lane, but the Orchestrator 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.
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": "omos/feature-auth-v2",
"path": ".slim/worktrees/feature-auth-v2",
"base": "main",
"purpose": "refactor authentication flow to use OAuth2",
"owner": "orchestrator",
"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 Orchestrator must observe the following guards:
You must seek explicit user confirmation before executing:
Never execute destructive commands, delete branches, remove dirty worktrees, or clean uncommitted changes without explicit user confirmation for that exact operation.
Before creating or cleaning lanes, inspect `.gitignore`. Update the managed block in place when present; otherwise append it. Add only the missing exact lines below, never duplicate entries or modify unrelated rules. This keeps lane artifacts out of git.
# BEGIN oh-my-opencode-slim worktrees .slim/worktrees/ .slim/worktrees.json # END oh-my-opencode-slim worktrees
---
1. Identify the task scope and determine a short `<slug>` for the worktree. 2. Formulate a branch name. Default to `omos/<slug>` unless project/user conventions dictate otherwise. 3. Validate repository safety. Ask the user for confirmation to initialize the lane. 4. Before creating the lane, ensure the managed ignore blocks are present using the Ignore File Setup rules above. 5. Run:
git worktree add -b <branch-name> .slim/worktrees/<slug> <base-commit/branch>
6. Register the metadata in `.slim/worktrees.json`.
1. Run all sub-agents with their working directory set strictly to the worktree path, such as `.slim/worktrees/<slug>`. 2. Do not modify the main checkout for lane work. Keep build, test, and edit operations isolated inside the lane. 3. Track file or folder ownership per lane to avoid merge conflicts between parallel agents. 4. Commit progress within the worktree only when the user asked for commits or approved local checkpoint commits.
Before merging or integrating the worktree branch: 1. Apply a proportionate final-state verification plan to the changed behavior and its important boundaries. Run checks required by repository or release instructions. 2. Generate and display a clear diff comparing the worktree branch to the integration base branch. 3. Ask the user for confirmation to integrate. 4. Perform the approved integration, such as merge or cherry-pick, from the main checkout or the user-approved integration checkout.
1. Before cleaning the lane, ensure the managed ignore blocks follow the Ignore File Setup rules above. 2. Ensure all changes are safely merged or archived. 3. Confirm the worktree has no uncommitted changes. 4. Request user approval to remove the worktree. 5. Safely remove the worktree using:
git worktree remove .slim/worktrees/<slug>
6. Update `.slim/worktrees.json` to mark the lane as `archived` or remove it.
---
Lean, fine tuned Opencode multi agent suite · Mix any models · Auto delegate tasks
Use when estimating how long a task will take: coding, writing, research, analysis, design, data work, or anything else AI can…
Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use…
Generate comprehensive hierarchical codemaps for UNFAMILIAR repositories. Expensive operation - only use when explicitly asked…
Use when a request includes examples, samples, templates, or reference outputs. Treat them as evidence of intent, not as…
High-cost orchestrator workflow for large, high-risk, multi-phase coding efforts with meaningful dependencies and review gates.…
Configure and improve oh-my-opencode-slim for the current user. Use when users want to tune agents, models, prompts, custom…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration