git-worktree
Create and manage isolated git worktrees safely.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create and manage isolated git worktrees safely.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Opinionated workflow for submodule development + PRs + control-center pointer bumps.
Store Apple notarization IDs in Keychain and notarize/staple OpenWork DMGs locally.
Sync control-center master and update submodule pointers safely.
Require every OpenCode plugin to expose get_skills and get_version tools.
Use client.app.log() instead of console.log in OpenCode plugins
Guide for creating effective skills. Use when users want to create or update a skill that extends Claude with specialized knowledge, workflows, or tool integrations.
| name | git-worktree |
| description | Create and manage isolated git worktrees safely. |
Add this line to any prompt when you want to do worktree setup:
@git-worktree
Create a new git worktree under ../worktrees/<name> so feature work is isolated, repeatable, and easy to clean up.
This repo commonly uses worktrees for feature work. The usual pattern is:
../worktrees/<feature>vendor/openwork/)git reset --hard, git checkout --, rm -rf) unless explicitly requested.git pull --ff-only and avoid rebases unless asked.git rev-parse --show-toplevel and ensure it matches the current repo.masterRun:
git fetch origin --prune
git pull --ff-only origin master
Pick a feature name:
feat/<name>../worktrees/feat-<name>Then:
ls ..
ls ../worktrees
git worktree add -b feat/<name> ../worktrees/feat-<name> master
git -C ../worktrees/feat-<name> submodule update --init --recursive
Inside the new worktree:
git -C ../worktrees/feat-<name>/vendor/openwork fetch origin --prune
git -C ../worktrees/feat-<name>/vendor/openwork switch -c feat/<name> origin/dev
Then install deps and develop:
pnpm -C ../worktrees/feat-<name>/vendor/openwork install
pnpm -C ../worktrees/feat-<name>/vendor/openwork typecheck
git worktree list
ls ../worktrees
git submodule status
If you want to remove a worktree, prefer:
git worktree remove ../worktrees/feat-<name>
Only do this after confirming there is no uncommitted work in that worktree.