Command Palette

Search for a command to run...

Назад к скиллам
скилл № 73921

pi-dev-upgrade

Upgrade pi-dev coding agent in NixOS/nix-darwin dotfiles. Updates flake input, release-source and dependency hashes, extension dependencies, and applies…

БесплатноБез исполняемых скриптов
dejanrот dejanr★ 15 звёзд на GitHub

Установить pi-dev-upgrade в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Pi-dev Upgrade Skill

Upgrade the repository's Nix packages, verify them, then ask before activation. Do not commit unless requested.

1. Preflight

Run from the repository root. Record these versions separately; carry recorded values into later commands rather than assuming shell variables persist between tool calls.

git status --short
pi --version
nix eval --raw .#pi-dev-coding-agent.version
curl -fsSL 'https://api.github.com/repos/earendil-works/pi/releases/latest' | jq -r '.tag_name'
(cd modules/home/cli/pi-dev/extensions && pnpm config get minimum-release-age)
  • Installed version: pi --version; may lag an already-updated repository.
  • Repository version: the evaluated package version; use this as the changelog baseline.
  • Target version: latest stable release, unless the user requests another version.

If repository and installed versions already match the target, stop. If only the repository matches, verify its package/dependency consistency and builds, then offer activation rather than repeating the bump. Preserve existing user changes.

Read nix/package.nix, nix/extensions.nix, and extensions/package.json under modules/home/cli/pi-dev/, plus the extensions README. Check both root devDependencies and overrides, and relevant Home Manager integration when packaging changes.

The repository configures a seven-day pnpm release-age policy. Check whether the target is old enough before installing. If it is blocked, ask before making an exception; do not silently disable the policy. With explicit approval, a one-command exception is:

(cd modules/home/cli/pi-dev/extensions && pnpm install --config.minimum-release-age=0)

This bypasses the age check for the entire invocation, including transitive dependencies; it does not change the persistent policy.

2. Review Compatibility and Update Versions

Fetch packages/coding-agent/CHANGELOG.md from the target release tag, not main. Inspect only the range from the repository version to the target. Check API removals and changed behavior as well as headings labeled breaking changes. Search local extension usage before deciding migration is unnecessary.

For affected integrations, read the relevant Pi API docs and examples before editing. Avoid unrelated documentation and extension refactors.

nix flake update pi-dev
nix eval --raw .#pi-dev-coding-agent.version

The input tracks the default branch, not the release tag. Confirm its resulting package version matches the chosen target; reconcile any mismatch before proceeding.

Update all root @earendil-works/* version pins in extensions/package.json, including devDependencies and pnpm overrides. Keep extension peer dependencies as "*"; do not introduce per-extension version pins.

(cd modules/home/cli/pi-dev/extensions && pnpm install)

Every workspace command must explicitly select the extensions directory. Use the approved age exception instead of the normal install only when needed.

3. Refresh All Changed Hashes Before Verification Builds

There are three independent fixed-output hashes:

File under modules/home/cli/pi-dev/ Hash Refresh when
nix/package.nix releaseSource.hash Release archive changes
nix/package.nix npmDepsHash Release dependency lockfile changes
nix/extensions.nix pnpmDeps.hash Extension dependency lockfile changes

A successful build with an old source hash does not prove an upgrade. Nix can reuse the cached old archive even when the URL and derivation version change.

Prefetch the new archive first (set TARGET to the recorded tag, including v):

nix store prefetch-file --unpack --json \
  "https://github.com/earendil-works/pi/releases/download/${TARGET}/pi-${TARGET#v}-source.tar.gz"

Copy the returned hash into releaseSource.hash. This unpacked hash matches the current fetchzip configuration. Inspect the returned store path's packages/coding-agent/package.json to confirm its version matches the target. If archive layout or fetch options change, obtain the hash through the actual fetchzip derivation instead.

For a normal release bump, invalidate npmDepsHash upfront unless the release dependency lockfile is known to be unchanged:

npmDepsHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";

If the extension dependency lockfile changed, set pnpmDeps.hash in extensions.nix to "".

Collect dependency hashes in one Nix invocation, using --keep-going so independent fetches can both report mismatches:

nix build .#pi-dev-coding-agent .#pi-dev-extensions --no-link --keep-going

Match each got: sha256-... to its failing derivation and update the corresponding hash. These mismatches are expected discovery steps, not verification failures. Do not repeatedly try unchanged stale hashes first.

4. Build and Verify

**Build individual packages, never the system topleve

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл pi-dev-upgrade?

Upgrade pi-dev coding agent in NixOS/nix-darwin dotfiles. Updates flake input, release-source and dependency hashes, extension dependencies, and applies breaking changes to local extensions. Mechanical task - use Sonnet.

Как установить скилл pi-dev-upgrade?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pi-dev-upgrade запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pi-dev-upgrade с