SkillsReviewed · oprogramadorreal

optimus:worktree

optimus:worktree is a skill for developers who want separate Git workspaces for parallel tasks, but it depends on the wider Optimus plugin. It directs a coding assistant to create a branch and worktree, run project setup and establish a test baseline. It may also leave an unstaged .gitignore change.

Researched 16 Nov 2026

In short.

optimus:worktree is a coding-assistant skill for developers working on several Git tasks, but it needs shared Optimus files beyond its own folder. Its documented workflow creates a separate checkout and branch, runs detected setup and test commands, and preserves the original checked-out branch. It can change the main checkout's .gitignore. Nothing was executed, so successful setup, host compatibility and failure recovery remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Covers all four supplied files under skills/worktree: SKILL.md, README.md, agents/openai.yaml and references/worktree-setup.md, plus the repository-root LICENSE notice, at revision db331abc6d51134456f5dd3f936ca99e23984ba0. The original source is [https://github.com/oprogramadorreal/optimus-claude/tree/master/skills/worktree]. The wider plugin, installation guide, supported-host table and external shared references are excluded. An unchanged copy of this folder still depends on the wider plugin. Nothing was executed; installation, command detection, repository changes, tests, recovery and cleanup are unverified.

The overview

identity

optimus:worktree belongs to the Optimus plugin in oprogramadorreal/optimus-claude. Its purpose is to prepare a Git worktree: a separate working directory with its own checked-out branch, allowing another coding-assistant session to work on a different task.

The original folder is [https://github.com/oprogramadorreal/optimus-claude/tree/master/skills/worktree]. The supplied files identify revision db331abc6d51134456f5dd3f936ca99e23984ba0. The README presents it as a Claude Code skill; an accompanying configuration file also defines explicit-invocation behavior for Codex.

assessment

The documented design fits developers who repeatedly need another checkout with dependencies and an initial test result. It combines several preparation steps and explicitly reports any .gitignore edit. For a task that only needs a branch, the README recommends a simpler workflow.

Its practical reliability is not established. The instructions depend on the assistant detecting appropriate project commands, and two shared references sit outside this folder. The procedure also labels initial test failures as pre-existing without requiring a comparison run in the original workspace.

users

Intended users include developers running separate assistant sessions, handling an urgent fix while another task remains unfinished, or reviewing and experimenting in another checkout. Each session can operate in its own directory and branch.

Beginners need enough Git knowledge to choose the correct repository, understand branches and save changes before cleanup. Experienced developers may find the repeated setup procedure useful, especially in a workspace containing several repositories. The skill asks for a target repository when that choice is ambiguous.

capabilities

The instructions cover repository selection, task-based branch naming, worktree creation under .worktrees/, project setup and an initial test run. They also require a guard against creating another worktree while already inside a linked worktree.

The final report is intended to give the directory, branch, original branch, test status, opening instructions and cleanup command. The skill does not automatically start another assistant session. It directs the assistant never to commit or push, and to leave any added .gitignore rule unstaged while preserving existing index entries.

Using it

requirements

The README requires Optimus installed in a supported host and Git 2.5 or later. Its supported-host version table is outside the supplied files, so exact host compatibility is unknown. The README says VSCode 1.103 or later can discover worktrees; VSCode is an optional way to open them.

The skill references shared branch-naming and multi-repository detection files elsewhere in Optimus. Those files are not supplied. Project-specific runtimes, package managers and test tools depend on the repository being prepared; their requirements cannot be determined from this skill alone.

mechanism

This skill supplies instructions for a coding assistant to follow. The Claude Code definition disables model invocation, and the Codex policy sets allow_implicit_invocation to false. Both express that the user must invoke the skill explicitly.

The assistant resolves the repository root, checks git worktree list, records the current branch and creates a new branch without switching to it. It verifies that Git ignores .worktrees/ contents, then uses git worktree add to attach the new checkout. The directory name comes from replacing slashes in the branch name with hyphens.

Setup and test commands are inferred from CLAUDE.md or project manifests. Separate checkout directories help separate task files, but the procedure specifies no command sandbox for those setup and test operations.

setup

The folder README directs installation through the main Optimus README at the upstream project [https://github.com/oprogramadorreal/optimus-claude]. The installation instructions are not supplied, so an exact installation command cannot be established here.

After installation in a compatible host, the documented entry points are /optimus:worktree and /optimus:worktree "fix login timeout". Invocation should start from the main checkout. If .worktrees/ is not effectively ignored, the procedure appends an ignore rule and leaves it unstaged. It then attempts detected project setup and tests inside the new checkout.

example

For a login-timeout fix, the README illustrates /optimus:worktree "fix login timeout" producing branch fix/login-timeout in .worktrees/fix-login-timeout while the original checkout stays on main. The actual starting branch depends on the repository, and final naming depends on the shared naming rules.

The documented next step is to open that directory or start a fresh assistant session there. Cleanup uses git worktree remove .worktrees/fix-login-timeout once the work can safely be removed. The README transcript is illustrative; no branch creation, setup or passing test result was observed.

Assessment & evidence

limitations

The original checkout can acquire an unstaged .gitignore edit, even though its branch is intended to stay unchanged. Setup may install dependencies and execute project-defined commands. Their effects depend on the target project and host permissions.

The procedure calls failing baseline tests pre-existing because the worktree starts from the same commit. That does not establish the cause: dependency installation or environment differences could also affect results. No comparison run is required.

Recovery instructions cover failures before the worktree exists, including deleting the unused branch. Recovery after project setup fails is not specified. Behavior with detached HEAD, submodules, unusual Git configurations and unavailable dependencies is not established by the supplied files.

reasoning

The useful combination is a separate task directory plus repeatable preparation: branch creation, an effective ignore rule, project setup and an initial test result. This can help developers keep concurrent tasks organized and record failures before making changes.

That benefit depends on accurate command detection and complete Optimus installation. Developers whose projects need custom bootstrap steps should examine how those commands will be chosen. The supplied material supports the intended workflow, but provides no measured time savings or execution evidence.

alternatives

For a task needing only a branch, the README points to /optimus:commit branch. For test-driven development, it points to /optimus:tdd, which is described as offering worktree isolation within its workflow. Those skills' full behavior is not assessed here.

Developers can also perform the documented Git worktree operations manually and choose their own setup and test commands. This requires handling naming, ignore rules, baseline reporting and cleanup themselves. The supplied evidence contains no comparative performance results.

evidence

The supplied material includes the folder README, skill definition, Codex invocation policy, shared worktree setup procedure and repository-root MIT licence. The skill definition is available at the pinned source address [https://raw.githubusercontent.com/oprogramadorreal/optimus-claude/db331abc6d51134456f5dd3f936ca99e23984ba0/skills/worktree/SKILL.md].

These files establish documented behavior and permissions. They contain no observed execution logs or independent validation. The plugin installation guide, supported-host table, branch-naming reference and multi-repository detection reference are outside the supplied material.

Access & freshness

costs

The MIT notice grants software permissions without a licence fee. The supplied files provide no host subscription prices, model charges or operating-cost estimates, so total cost is unknown.

Each worktree can involve another dependency installation and test run. Disk use, execution time, network activity and any project-specific service charges were not measured or assessed.

rights

The folder README links to the repository's MIT licence. The supplied notice names oprogramadorreal as the 2026 copyright holder and permits use, copying, modification, distribution, sublicensing and sale.

Copies or substantial portions must retain the copyright and permission notices. The licence supplies the software without warranty and disclaims liability. It does not establish terms or prices for an assistant host or project dependencies.

freshness

The supplied snapshot was captured on 16 November 2026 at 21:43:57 UTC and identifies commit db331abc6d51134456f5dd3f936ca99e23984ba0. That capture time does not establish when the skill was last changed.

No release number, file modification history or later source changes are provided. The master-branch address can change independently of this pinned revision, so current upstream behavior and compatibility remain unknown.

actions

Before adopting it, consult the upstream installation and host requirements and ensure the referenced shared files are present. Identify the setup and test commands the assistant is likely to detect, since the skill runs them in the new checkout.

For an initial use, invoke it from the intended repository's main checkout with a concrete task description. Review the resulting branch, directory, .gitignore change and actual test output. Treat a failed baseline as an initial observation until its cause is established.

Start the task session inside the new directory. When finished, save or integrate the work before removing the worktree; ordinary removal may refuse a checkout containing uncommitted changes.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/worktree/README.mdselected · checked 2026-11-16
skills/worktree/SKILL.mdselected · checked 2026-11-16
skills/worktree/agents/openai.yamlselected · checked 2026-11-16
skills/worktree/references/worktree-setup.mdselected · checked 2026-11-16