[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MKWCNXRV5N9BSGND07V4H":3,"skill-same:01M77MKWCNXRV5N9BSGND07V4H":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M77MKWCNXRV5N9BSGND07V4H","git-worktree",null,"Use Git worktrees to isolate parallel coding tasks. Use when setting up a task checkout, working in a shared repo, or managing existing worktrees.","davidondrej\u002Fskills","davidondrej","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F131768515?v=4","01M77MHARFKYVNT9FV22807T8F","David Ondrej","01M77MHASHNDV507F9NTVKR2CY",4310,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fgit-worktree\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: git-worktree\ndescription: Use Git worktrees to isolate parallel coding tasks. Use when setting up a task checkout, working in a shared repo, or managing existing worktrees.\ndisable-model-invocation: true\ntriggers: [user, model]\n---\n\n# Git Worktrees for Parallel Agents\n\n## In Cloudroom (`$ROOM_THREAD_ID` is set)\n\nNever run `git worktree add` yourself. Cloudroom only deletes worktrees it made, so hand-made ones pile up in `~\u002Fcode` forever.\n\n- **New task:** start the thread with **New worktree** instead.\n- **Move this thread to its own worktree:** fork it into a Cloudroom-managed worktree. Cloudroom makes the branch and deletes the folder once its last thread is archived (after the worktree retention setting, default 21 days).\n\n  ```bash\n  room-cli thread fork \"$ROOM_THREAD_ID\" --new-environment worktree --title \"\u003Ctask>\" \\\n    --prompt \"You now run in a new worktree. Copy the gitignored .env files from \u003Cprimary checkout> into it, then stop and wait for the user.\"\n  ```\n\n  It branches from `main`, so uncommitted edits stay behind; commit them first or pass `--base-branch \u003Cref>`. Then tell the user to continue in the new thread and archive this one. Skip the rest of this skill.\n\n## Start here\n\nDetect where you are before editing:\n\n```bash\n[ \"$(git rev-parse --path-format=absolute --git-dir)\" = \"$(git rev-parse --path-format=absolute --git-common-dir)\" ] \\\n  && echo \"primary checkout\" || echo \"worktree\"\n```\n\n- **Primary checkout** → create a task-named worktree, complete the setup below, and `cd` into it before editing.\n- **Worktree** (including one created by Cursor) → proceed with the task.\n\n## Working model\n\nWorktrees have separate working files and branches but share Git history, stashes, config, and refs.\n\n- **One task = one worktree = one agent session.** Never share a working directory between agents.\n- Keep the primary checkout on main, only for review, merging, and pushing.\n- Nothing auto-merges. The human reviews each diff before merging or discarding the worktree.\n- Keep task branches local and short-lived. Push only main unless the user explicitly asks to push a task branch.\n- Merge one worktree at a time. If main moved, rebase the task branch before merging.\n\n## Creating and removing\n\n```bash\ngit worktree add ..\u002Fmyrepo-task-x          # new worktree + branch \"myrepo-task-x\"\ngit worktree add ..\u002Ffix-y -b fix-y main    # explicit branch off main\ngit worktree list                          # see all worktrees\ngit worktree remove ..\u002Fmyrepo-task-x       # delete when merged\u002Fabandoned\ngit worktree prune                         # clean up stale registrations\n```\n\nA branch can be checked out in only one worktree, including main.\n\nIn Cursor, use the Agents Window or `\u002Fworktree \u003Ctask>`. `\u002Fapply-worktree` applies results to the main checkout; `\u002Fdelete-worktree` discards them. `\u002Fbest-of-n model1,model2 \u003Ctask>` runs the same task in parallel worktrees, one per model. Cursor auto-deletes older worktrees, so preserve results promptly; pushing task branches still requires explicit approval.\n\n## Complete the setup\n\nA fresh worktree contains tracked files only. Bootstrap it before task work:\n\n1. **Env\u002Fsecret files** — copy `.env`, `.env.local`, and similar files from the primary checkout. Never symlink them: edits would change the originals.\n2. **Dependencies** — install locally (`npm ci`, `pnpm install`, `uv sync`, `bundle install`). Never symlink `node_modules` from the primary checkout: bundlers such as Next.js\u002FTurbopack reject paths outside the worktree. If it is a symlink, remove it with `rm -f node_modules` and install normally.\n3. **Databases and services** — choose shared or per-worktree state. For shared services, pin their identity to avoid duplicate instances and port conflicts. For shared Docker Compose services, pin the project name, for example with a top-level `name:`; otherwise each worktree's folder name creates a separate project. Copy or re-seed per-worktree state such as SQLite files.\n4. **Ports** — run dev\u002Ftest servers and debuggers one at a time, or configure separate ports per worktree.\n5. **Generated files and caches** — rebuild gitignored output in the worktree (`npm run build`, codegen).\n6. **Git hooks** — `core.hooksPath` and `.git\u002Fconfig` are shared; verify hook scripts don't assume the primary checkout's path.\n\n## Automate setup\n\nIn Cursor, `.cursor\u002Fworktrees.json` runs setup on creation (`$ROOT_WORKTREE_PATH` is the primary checkout):\n\n```json\n{\n  \"setup-worktree\": [\n    \"npm ci\",\n    \"cp $ROOT_WORKTREE_PATH\u002F.env.local .env.local\"\n  ]\n}\n```\n\nOtherwise, put the checklist in `scripts\u002Fsetup-worktree.sh` and run it first in each new worktree. Find the primary checkout from a worktree with:\n\n```bash\ndirname \"$(git rev-parse --path-format=absolute --git-common-dir)\"\n```\n\n## Merge and clean up\n\n```bash\n# from the primary checkout, after reviewing the worktree's diff:\ngit merge --no-ff task-branch     # or: git merge --squash task-branch\ngit worktree remove ..\u002Fmyrepo-task-x\ngit branch -d task-branch\n```\n\nIn Cursor, use `\u002Fapply-worktree`, then review and commit.\n\n- Delete each worktree as soon as its branch is merged or pushed to main. Nothing else cleans them up.\n- Rebase or restart worktrees that have stalled for days.\n- Commit early and often. Deleting a worktree loses uncommitted work; commits remain in the shared repository.\n","# Git Worktrees for Parallel Agents\n\n## In Cloudroom (`$ROOM_THREAD_ID` is set)\n\nNever run `git worktree add` yourself. Cloudroom only deletes worktrees it made, so hand-made ones pile up in `~\u002Fcode` forever.\n\n- **New task:** start the thread with **New worktree** instead.\n- **Move this thread to its own worktree:** fork it into a Cloudroom-managed worktree. Cloudroom makes the branch and deletes the folder once its last thread is archived (after the worktree retention setting, default 21 days).\n\n  ```bash\n  room-cli thread fork \"$ROOM_THREAD_ID\" --new-environment worktree --title \"\u003Ctask>\" \\\n    --prompt \"You now run in a new worktree. Copy the gitignored .env files from \u003Cprimary checkout> into it, then stop and wait for the user.\"\n  ```\n\n  It branches from `main`, so uncommitted edits stay behind; commit them first or pass `--base-branch \u003Cref>`. Then tell the user to continue in the new thread and archive this one. Skip the rest of this skill.\n\n## Start here\n\nDetect where you are before editing:\n\n```bash\n[ \"$(git rev-parse --path-format=absolute --git-dir)\" = \"$(git rev-parse --path-format=absolute --git-common-dir)\" ] \\\n  && echo \"primary checkout\" || echo \"worktree\"\n```\n\n- **Primary checkout** → create a task-named worktree, complete the setup below, and `cd` into it before editing.\n- **Worktree** (including one created by Cursor) → proceed with the task.\n\n## Working model\n\nWorktrees have separate working files and branches but share Git history, stashes, config, and refs.\n\n- **One task = one worktree = one agent session.** Never share a working directory between agents.\n- Keep the primary checkout on main, only for review, merging, and pushing.\n- Nothing auto-merges. The human reviews each diff before merging or discarding the worktree.\n- Keep task branches local and short-lived. Push only main unless the user explicitly asks to push a task branch.\n- Merge one worktree at a time. If main moved, rebase the task branch before merging.\n\n## Creating and removing\n\n```bash\ngit worktree add ..\u002Fmyrepo-task-x          # new worktree + branch \"myrepo-task-x\"\ngit worktree add ..\u002Ffix-y -b fix-y main    # explicit branch off main\ngit worktree list                          # see all worktrees\ngit worktree remove ..\u002Fmyrepo-task-x       # delete when merged\u002Fabandoned\ngit worktree prune                         # clean up stale registrations\n```\n\nA branch can be checked out in only one worktree, including main.\n\nIn Cursor, use the Agents Window or `\u002Fworktree \u003Ctask>`. `\u002Fapply-worktree` applies results to the main checkout; `\u002Fdelete-worktree` discards them. `\u002Fbest-of-n model1,model2 \u003Ctask>` runs the same task in parallel worktrees, one per model. Cursor auto-deletes older worktrees, so preserve results promptly; pushing task branches still requires explicit approval.\n\n## Complete the setup\n\nA fresh worktree contains tracked files only. Bootstrap it before task work:\n\n1. **Env\u002Fsecret files** — copy `.env`, `.env.local`, and similar files from the primary checkout. Never symlink them: edits would change the originals.\n2. **Dependencies** — install locally (`npm ci`, `pnpm install`, `uv sync`, `bundle install`). Never symlink `node_modules` from the primary checkout: bundlers such as Next.js\u002FTurbopack reject paths outside the worktree. If it is a symlink, remove it with `rm -f node_modules` and install normally.\n3. **Databases and services** — choose shared or per-worktree state. For shared services, pin their identity to avoid duplicate instances and port conflicts. For shared Docker Compose services, pin the project name, for example with a top-level `name:`; otherwise each worktree's folder name creates a separate project. Copy or re-seed per-worktree state such as SQLite files.\n4. **Ports** — run dev\u002Ftest servers and debuggers one at a time, or configure separate ports per worktree.\n5. **Generated files and caches** — rebuild gitignored output in the worktree (`npm run build`, codegen).\n6. **Git hooks** — `core.hooksPath` and `.git\u002Fconfig` are shared; verify hook scripts don't assume the primary checkout's path.\n\n## Automate setup\n\nIn Cursor, `.cursor\u002Fworktrees.json` runs setup on creation (`$ROOT_WORKTREE_PATH` is the primary checkout):\n\n```json\n{\n  \"setup-worktree\": [\n    \"npm ci\",\n    \"cp $ROOT_WORKTREE_PATH\u002F.env.local .env.local\"\n  ]\n}\n```\n\nOtherwise, put the checklist in `scripts\u002Fsetup-worktree.sh` and run it first in each new worktree. Find the primary checkout from a worktree with:\n\n```bash\ndirname \"$(git rev-parse --path-format=absolute --git-common-dir)\"\n```\n\n## Merge and clean up\n\n```bash\n# from the primary checkout, after reviewing the worktree's diff:\ngit merge --no-ff task-branch     # or: git merge --squash task-branch\ngit worktree remove ..\u002Fmyrepo-task-x\ngit branch -d task-branch\n```\n\nIn Cursor, use `\u002Fapply-worktree`, then review and commit.\n\n- Delete each worktree as soon as its branch is merged or pushed to main. Nothing else cleans them up.\n- Rebase or restart worktrees that have stalled for days.\n- Commit early and often. Deleting a worktree loses uncommitted work; commits remain in the shared repository.\n",{"name":5,"triggers":24,"description":7,"disable-model-invocation":27},[25,26],"user","model",true,"main","a9d4ad810cf3c303fde23bdcd5fc86df7c57daf3","skills\u002Fgit-worktree",626,"https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills","https:\u002F\u002Fwww.cloudroom.dev","https:\u002F\u002Fgithub.com\u002Fdavidondrej","https:\u002F\u002Fwww.cloudroom.dev\u002F","founder of Cloudroom","2026-11-14 10:00:36",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":27},[40,43,46],{"tool":41,"command":42},"npx","npx skills add davidondrej\u002Fskills --skill git-worktree",{"tool":44,"command":45},"bunx","bunx skills add davidondrej\u002Fskills --skill git-worktree",{"tool":47,"command":48},"pnpm","pnpm dlx skills add davidondrej\u002Fskills --skill git-worktree","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fgit-worktree\u002FSKILL.md",[51],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"agents\u002Fopenai.yaml","REFERENCE","参考文档",43,"https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fgit-worktree\u002Fagents\u002Fopenai.yaml",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M77MPMR6DE13EZFSMY76S6YB","varied-search","Research a topic across the web, GitHub, and X\u002FTwitter with DeepAPI and produce a concise Markdown report. Use for varied-search or requests to compare web coverage, relevant repositories, and social discussion.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fvaried-search\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M77MPG5F9H2JBW4VFHBY1VSM","total-review","Run five independent max-effort reviews (Fable 5.1, Opus 5.5, GPT-6 Astra, GPT-6.1 Sol, Muse Wonder), merge their findings, and fix only what the user approves. Use for \u002Ftotal-review, or when the user or another agent asks for a total review.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftotal-review\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M77MP8XZJ42ZJZQV8C76B353","stop-overthinking","Manually-invoked skill that stops overthinking and forces a short, practical decision. Use only when the user explicitly invokes stop-overthinking.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fstop-overthinking\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M77MP5EGQSNF1VS9SY8CK60Q","state","Manually-invoked skill that recaps what the current thread is doing and how far along it is. Use when the user says \"state\", \"where are we\", or \"what % are we done\".","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fstate\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M77MP2H479SWAP7687RAVG7T","setup-help","Guide setup one step at a time and show what remains. Use only when the user explicitly asks for it by name.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsetup-help\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M77MNZV9X8NPC9JZMWP8WAF8","self-archive","Archive the current Cloudroom thread and release its runtime. Use only when the user explicitly asks to self-archive, archive yourself, or archive this thread.","https:\u002F\u002Fgithub.com\u002Fdavidondrej\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fself-archive\u002FSKILL.md",[],[]]