worktree-install
Reinstall dependencies in a Sideboard worktree after merge-from-main or a lockfile change. Use when `pnpm install` hangs, several worktrees install at once, or a native build is outside the permitted directory.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- worktree-install
- description
- Reinstall dependencies in a Sideboard worktree after merge-from-main or a lockfile change. Use when `pnpm install` hangs, several worktrees install at once, or a native build is outside the permitted directory.
03 SKILL.md 正文
Worktree-local package install
Several Sideboard worktrees merging from main and running pnpm install at
the same time share ~/.pnpm-store and ~/.cache/node-gyp. That lock can
hang, and a Cursor / Codex sandbox only allows writes inside this worktree
("permitted directory"). Native rebuilds (better-sqlite3, Electron) then
fail or stall if they write to the home cache.
Sideboard already points setup scripts and worktree agent env at
.context/.sideboard/pkg-cache/ (npm_config_store_dir, npm_config_cache,
npm_config_devdir, electron_config_cache). Prefer those. Do not switch
back to a shared home store to "go faster."
When to reinstall
pnpm-lock.yamlorpackage.jsonchanged after merge / rebase from the default branch.node_modulesis missing or a native addon failed to load.
Do not pnpm install in the main repo checkout.
How
Detach (/long-running). One install per worktree; do not share a store
with sibling worktrees.
# Env Sideboard already set is enough. If a hang or "permitted directory"
# error remains, pass the dirs explicitly:
pnpm install \
--store-dir .context/.sideboard/pkg-cache/pnpm-store \
--cache-dir .context/.sideboard/pkg-cache/pnpm
Optional env if the parent stripped them:
export npm_config_store_dir="$PWD/.context/.sideboard/pkg-cache/pnpm-store"
export npm_config_cache_dir="$PWD/.context/.sideboard/pkg-cache/pnpm"
export npm_config_cache="$PWD/.context/.sideboard/pkg-cache/npm"
export npm_config_devdir="$PWD/.context/.sideboard/pkg-cache/node-gyp"
export electron_config_cache="$PWD/.context/.sideboard/pkg-cache/electron"
stop_job if there is no progress for a long stretch (store lock or
network). Retry once with the explicit dirs above. Do not delete
~/.pnpm-store on the Mac — that races other worktrees.
The cache dir is local scratch (.context/.sideboard/). Do not commit it.
04 同仓库更多 Skills
skill-improver
When a miss will recur — you made it twice, or a person told you the rule — write the lesson into the skill before the turn ends. One sentence, in the same change. Run in the turn, not on a schedule.
release
暂无简介
long-running
暂无简介
review
Merge-readiness review for this repository. Use when reviewing a PR, worktree diff, or Sideboard Review (Approve / Approve with nits / Request changes).
release
Cut a Sideboard version. Default: bump, README/changelog, commit, merge, then push/retarget the `v*` tag so `.github/workflows/release.yml` publishes npm (OIDC) and the signed Mac desktop. No workflow_dispatch. Do not pack Electron in a worktree turn. Use for electron release, desktop release, pnpm release, or “I’ll publish npms.”
phone-screenshots
Capture Sideboard phone or marketing screenshots from the iOS simulator without the Expo tools button. Use when hiding or restoring that button, retaking site/phone images, or the Expo overlay is in the way.