pnpm-workspace-migration
Handle packages migrating between pnpm workspaces. Clean stale root copies, update workspace configs, fix broken workspace:* references.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Handle packages migrating between pnpm workspaces. Clean stale root copies, update workspace configs, fix broken workspace:* references.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Never run Docker containers as root. Enforce USER directive in Dockerfiles and user: in compose files. Database images are the only exception.
Recover lost source files from pi session history when files were deleted but never committed to git.
Improve the Hormuz clock model through new signal classes, schema changes, uncertainty modeling, and better rendering or branch logic
Revise fork-tax protocols so they assume concurrent agents by default in shared workspaces, forbid destructive repo-wide cleanup of unrelated dirt, and require path-scoped staging plus explicit blocker recording.
Persist the full working state into git (commit + tag + push + manifest artifacts) as a deterministic handoff snapshot. Use when the user requests Π / fork tax / full dump.
Standardize human login, service identity, and inter-service auth around AT Protocol DIDs and Bluesky-backed one-time sign-in, while removing host-local static secrets and bespoke per-service auth flows.
| name | pnpm-workspace-migration |
| description | Handle packages migrating between pnpm workspaces. Clean stale root copies, update workspace configs, fix broken workspace:* references. |
| triggers | ["package moved","workspace migration","WORKSPACE_PKG_NOT_FOUND","pnpm-workspace.yaml","workspace:*"] |
When packages move between pnpm workspaces (e.g., from a root monorepo into a sub-monorepo), stale references accumulate in three places:
pnpm-workspace.yaml (explicit package paths)package.json dependencies (workspace:* references)package.json that depend on the moved package via workspace:*Find packages that exist in both locations:
comm -12 <(ls packages/ | sort) <(ls orgs/open-hax/openplanner/packages/ | sort)
Find who depends on the moved packages:
grep -r '"@scope/package-name"' --include='package.json' . | grep 'workspace:*'
git submodule deinit -f packages/old-namerm -rf packages/old-namepnpm-workspace.yaml if explicitly listedpackage.json scripts: update -C packages/old-name paths to new locationpnpm-workspace.yamlorgs/repo/packages/X and the root workspace only lists orgs/repo, pnpm will NOT find X.orgs/repo/packages/* to the root pnpm-workspace.yaml.If the destination workspace has its own broken workspace:* deps, use --filter to install only the packages you need:
pnpm install --filter @scope/my-package...
The ... includes all dependencies and dependents of the filtered package.
sudo rm -rf node_modules as a first step (indicates root-owned file contamination)shamefully-hoist=true to work around resolution issues