[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CS17YJ4FE9NM99B39S5VX2":3,"skill-same:01M6CS17YJ4FE9NM99B39S5VX2":61},{"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":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":6,"updatedAt":41,"install":42,"resources":54},"01M6CS17YJ4FE9NM99B39S5VX2","release",null,"Release a new version. Confirms reviews and tests pass, updates VERSION and CHANGELOG.md, commits, tags, and installs.","kfet\u002Ffir","kfet","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F14585?v=4","01M6CRZCB8P1V37WM3X0GB2DA6","Kalin Fetvadjiev","01M6CRZCFG1EW1WEN4RK84W1N5",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Frelease\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27],"changelog","commits","version","tests","tags","reviews","true","updates","new","2026-11-10 10:12:30",false,"---\nname: release\ndescription: Release a new version. Confirms reviews and tests pass, updates VERSION and CHANGELOG.md, commits, tags, and installs.\noverride: true\n---\n\n# Release Skill\n\nRelease a new version of the project.\n\n## Version determination\n\nIf the user provides a version, use it. Otherwise, auto-determine:\n\n1. Read the current version from `VERSION`.\n2. Look at entries under `## [Unreleased]` in `CHANGELOG.md`.\n3. If there are `### Added` or `### Removed` entries → **minor** bump (e.g. 0.1.0 → 0.2.0).\n4. If there are only `### Fixed` or `### Changed` entries → **patch** bump (e.g. 0.1.0 → 0.1.1).\n5. If the section is empty → ask the user whether to proceed or abort.\n\nA regenerated model catalog (step 1) does **not** count towards the bump — it is\nroutine data, not a user-visible feature, so it never turns a patch into a minor.\nIt still gets a `### Changed` catalog entry describing what actually moved (see\nstep 1); that line alone is not grounds for a minor bump either.\n\n## Steps\n\n1. **Regenerate models** — run `make generate-models` to pull the latest model definitions. If this produces changes, they will be included in the release commit automatically.\n\n   The generator logs a `Catalog diff vs compiled-in:` line — which first-party\n   models were added\u002Fremoved, how much aggregator and pricing churn rode along.\n   **Write the `### Changed` catalog entry from that line**, verbatim or lightly\n   edited; never the old canned \"routine upstream refresh\" sentence, which hid\n   everything. Name the changed-pricing models too, grouped by provider\n   (`provider: id, id`; at most 10, then `+N more`). `-changelog \u003Cpath>` writes the same text as a ready-to-paste\n   bullet if you would rather read it from a file than the log.\n\n   If it reports no changes, **omit the catalog line entirely** — do not write a\n   line saying nothing changed. If an upstream source failed to fetch, the\n   summary says removals were not reported (everything a dead source lists looks\n   deleted); take that at face value and do not go digging for removals. Keep\n   the entry to 1–3 lines: it is read on a phone.\n\n   Run the generator **once**. Its baseline is the catalog compiled into the\n   binary it just built from the checkout, so a second run diffs against the\n   first run's own output and reports nothing changed. If you have already run\n   it twice, `git checkout pkg\u002Fai\u002Fmodels_catalog.bin` and run it once more.\n2. **Full build & test** — execute `make all` and confirm everything passes.\n2b. **Docs** — review repo docs against this release; update them, and update or generate high-level docs. Bigger diagrams, less words.\n3. **Check CHANGELOG** — read `CHANGELOG.md` and confirm there are entries under `## [Unreleased]`. If empty, ask the user.\n4. **Determine version** — follow the rules above if the user didn't specify one. State the version and proceed.\n5. **Update CHANGELOG** — rename `## [Unreleased]` to `## [VERSION] - YYYY-MM-DD` (today's date) and add a fresh empty `## [Unreleased]` section above it. Keep reverse-chronological order.\n6. **Update VERSION** — write the new version to the `VERSION` file (no trailing newline beyond one).\n7. **Commit** — stage **all** uncommitted changes with `git add -A`, then commit with `git commit -m \"release: vVERSION\"`. Check `git status` first.\n8. **Tag** — use `git tag -a vVERSION -m \"release: vVERSION\"` (pass `-m` to avoid opening an editor).\n9. **Install** — `make install` to install the new version.\n10. **Verify** — run **the binary `make install` just wrote**, by absolute path, and confirm it prints the new version:\n\n    ```bash\n    # go install honours GOBIN when set, else GOPATH\u002Fbin.\n    installdir=\"$(go env GOBIN)\"; [ -n \"$installdir\" ] || installdir=\"$(go env GOPATH)\u002Fbin\"\n    \"$installdir\u002Ffir\" --version\n    ```\n\n    Then diagnose PATH: compare `command -v fir` against `$installdir\u002Ffir`. If\n    they differ (and are not the same file — a symlink is fine), PATH is serving\n    a **stale, shadowing** binary and a bare `fir --version` will silently report\n    the old version. `make install` warns about this; do not ignore the warning.\n    Never accept a bare `fir --version` as proof.\n\n    At this step you **diagnose and report only** — say which path holds which\n    version. Do not touch the shadowing binary here: nothing is published yet, so\n    there is no release artifact to reconcile against. Reconciliation happens\n    after publishing (see *Post-publish: reconcile a shadowing PATH binary*).\n\n## Important notes\n\n- **Uncommitted changes**: Always check `git status` before committing. All release-related and pending changes should be included in the release commit.\n- **Avoid interactive git**: Always pass `-m` to `git tag -a` and `git commit`. Git may try to open vim\u002Fnano, which fails in non-interactive environments.\n- **Moving tags**: If you need to move a tag after an additional commit, use `git tag -d vVERSION` then re-create it.\n\n## Publishing\n\nAfter the user confirms, run `make publish` to regenerate the PGO profile and amend the release commit if it changed, push the commit and tag to origin, and let GoReleaser CI build and create the release.\n\nThe release body is automatic: CI runs `scripts\u002Frelease-notes.sh \u003Ctag>` (the version's `CHANGELOG.md` section as **Highlights** + compare link) and passes it to GoReleaser; the mirror step copies it to kfet\u002Ffir-dist. So the CHANGELOG section *is* the release notes — write it for users. After CI is green, check `gh release view vVERSION --repo kfet\u002Ffir-dist` shows the highlights; if not, fix with `scripts\u002Frelease-notes.sh vVERSION > n.md && gh release edit vVERSION --repo kfet\u002Ffir --notes-file n.md` (and the same for `kfet\u002Ffir-dist`).\n\nAlternatively, `make deploy HOST=\u003Chost>` scp's a locally built binary straight\nonto a host. That is **not** the update path — it installs an unpublished,\nlocally built artifact and leaves a `~\u002F.local\u002Fbin\u002Ffir.prev` backup file behind.\nReserve it for the case where no published artifact exists for that platform, or\nfor deliberate pre-release testing, and say out loud that you are doing it.\nHosts are normally brought current with `fir update` — see below.\n\nIf any step fails, stop and report the error. Do not push or publish unless the user confirms.\n\n**Before publishing, re-check that `origin\u002Fmain` has not moved** since you\nstarted — another agent may be releasing the same repo concurrently. `git\nfetch origin` and confirm your branch is not behind.\n\n**If the push is rejected:** discard the *release*, keep the *work*. Delete\nthe tag (`git tag -d vVERSION`), unwind the release commit, rebase onto the\nnew `origin\u002Fmain`, then redo the release from the start — re-pick the\nversion (theirs may have taken it), re-derive the CHANGELOG section from\n`## [Unreleased]`, and re-run `make all` on the merged tree. Never rebase a\nfinalised release commit and push it: the version, changelog and test run\nare assertions about a tree that no longer exists.\n\n## Post-publish: Track All GitHub Actions\n\n**A red workflow is a broken release, period.** Every workflow on the release commit — `ci` included, not only `release` — must be green. Do not report \"released\" with a red `ci`, and do not excuse it as pre-existing: a failure that was already red on earlier commits is still a broken release. Fix it (new patch release if needed) before you call the release done.\n\nAfter `make publish` succeeds, poll GitHub Actions until every triggered workflow finishes:\n\n```bash\nSHA=$(git rev-parse HEAD)   # the release commit; runs are matched on this\n\n# env -u ...: a shell that exports CLICOLOR_FORCE \u002F FORCE_COLOR \u002F CLICOLOR makes\n# `gh` emit ANSI escapes *into its --json output*, so jq fails with\n# \"Invalid numeric literal\". NO_COLOR=1 does NOT override CLICOLOR_FORCE, and\n# gh's own --jq is colourised too — unsetting the forcing vars is the fix.\n# No 2>&1 either: merging stderr into output that must parse as JSON turns a\n# transient gh error into unparseable garbage.\nGH=\"env -u CLICOLOR_FORCE -u FORCE_COLOR -u CLICOLOR gh\"\n\nruns=$($GH run list --limit 15 --json status,conclusion,name,headSha,databaseId) || {\n  echo \"PROBE ERROR: gh run list failed\"; exit 1; }\necho \"$runs\" | jq -e . >\u002Fdev\u002Fnull || { echo \"PROBE ERROR: output is not JSON\"; exit 1; }\necho \"$runs\" | jq -r --arg sha \"$SHA\" '.[] | select(.headSha==$sha) | \"\\(.name) \\(.status) \\(.conclusion)\"'\n```\n\n`$SHA` must be set, and the selection must be non-empty: zero matching runs is\n\"probe not working yet\", **not** \"all runs finished\". Treat an empty match as\nnot-ready early on, and as an error if it persists.\n\nThis must **not** use `--branch` filtering — tag-triggered workflows (like `release`) don't appear under a branch filter. Instead, match runs by `headSha` against the release commit.\n\nLoop every 30 seconds. Stop when all runs for the release commit SHA are `completed`. If any conclude with `failure` or `cancelled`, report the failure details:\n\n```bash\n$GH run view \u003Crun-id> --log-failed | tail -40\n```\n\n### Probe hygiene (applies to any poll loop)\n\n**A probe that errored or produced unparseable output is a FAILURE, not a\n\"keep waiting\".** Treat these as three distinct outcomes and never collapse them:\n\n- **ready** → stop, success.\n- **not ready** → the probe ran, parsed cleanly, and the state is genuinely\n  still in progress. Only this continues the loop.\n- **errored \u002F unparseable** → a broken probe. Retry at most 2–3 *consecutive*\n  times (network blips are real), then **stop and report**. Never let it fall\n  through to \"continue\" indefinitely.\n\nConcretely: check the command's exit code before piping to `jq`; validate with\n`jq -e .` before extracting fields; never pipe a command's stderr (`2>&1`) into\nsomething that must parse as structured data; and **never assume a `--json` flag\nyields clean JSON** — a colour-forcing environment, a pager, or a progress\nspinner can all corrupt it, and the tool still exits 0. If you cannot distinguish\n\"not ready\" from \"broken\", the loop is wrong — a broken probe polls happily until\ntimeout while the thing it watches has long since finished. Also bound the loop\n(a wall-clock cap and a max poll count) so even a mis-classified probe cannot\nrun for the better part of an hour.\n\nWhen a probe *does* come back unparseable, look at the raw bytes\n(`printf '%s' \"$out\" | od -c | head`) before assuming it was transient. An ANSI\nescape or a BOM at byte 0 is a permanent, reproducible fault that no amount of\nretrying will clear.\n\nDo not ask the user whether to monitor — always do it automatically after a successful publish.\n\n## Post-publish: reconcile a shadowing PATH binary\n\nOnly once the CI monitoring above reports every workflow for the release commit\n`completed` \u002F `success` does a published artifact exist. That green result — not\na guess, not a sleep — is the signal that the following is safe to run.\n\n**A shadowing PATH binary is brought current by the canonical update path, and\nby nothing else: `fir update`, run on the host that carries it.** `fir update`\nupgrades a Homebrew-managed install via brew and otherwise self-replaces\natomically from the published GitHub release, leaving no backup files behind.\n\n**Copying a build artifact over an installed binary is not a supported update\npath.** Do not `cp`\u002F`scp`\u002F`mv` the output of `make install` or `make build` onto\na binary on someone's `PATH`, and do not leave `.prev` (or any other) backup\nlitter next to it. A host that gets hand-copied artifacts is running an\nunpublished build that no release tag describes.\n\nRun it as a bare command so the shell resolves the **shadowing** binary — that\nis the one that needs replacing, and `fir update` rewrites the running binary in\nplace:\n\n```bash\nfir update            # NOT \"$installdir\u002Ffir\" update — that one is already new\nhash -r               # shells cache PATH lookups; clear before re-checking\n\"$(command -v fir)\" --version\n```\n\nFor a remote host, run `fir update` **on that host** (e.g. over ssh). Never scp\na binary to it.\n\nThen verify. `fir update` prints \"already up to date\" and exits 0 when the\nrunning binary's version string compares no older than the release — so a\ndev\u002Fdirty build can silently no-op. If `\"$(command -v fir)\" --version` does not\nreport the version you just released, that host is carrying a non-release build\nand `fir update` will not fix it.\n\n**Exception — no published artifact for the platform.** If the release has no\nasset for that host's OS\u002Farch, there is nothing to self-update from. Then, and\nonly then, build and install into the PATH location deliberately: state out loud\nwhich path you are overwriting and why, get the user's confirmation first, and do\nnot leave a backup file behind. This is the exception, never the offer.\n\n## Known pitfalls\n\n- **Re-tagging a tag GoReleaser already published fails with 422 `already_exists`**, and the fir-dist mirror step then never runs. Fix: `gh release delete \u003Ctag> --yes --cleanup-tag=false`, then rerun with `gh workflow run release.yml -f tag=\u003Ctag>`. Prefer a new patch version over amending a pushed release commit.\n- **Python linters are unpinned**: `make lint-python` runs `uvx ruff@latest` and `uvx ty@latest`. If lint fails on files you did not touch, suspect a new linter release. Do not chase it inside a release, and do not mass-`--fix` noqa.\n- `.fir\u002Fextensions` is a symlink to `pkg\u002Fresources\u002Fbuiltin_extensions`: lint errors under the former are in the latter. Root `CHANGELOG.md` is a symlink into `cmd\u002Ffir\u002F`.\n- **Fleet deploy:** the fleet is not a fixed list. Enumerate hosts with `rhosts probe=true` and run `fir update` on every reachable host that has fir. Then grep each host's `~\u002F.config\u002Ffir\u002Fsettings.json` `defaultModel` and `~\u002F.config\u002Fpoe-acp\u002F*\u002Fconfig.json` `model`: a pin there beats any built-in default. Deploy the binary before changing a bot's model. On slow hosts (Raspberry Pi) `fir update` can outlast the ssh timeout; re-check `fir --version` before calling it failed.\n","# Release Skill\n\nRelease a new version of the project.\n\n## Version determination\n\nIf the user provides a version, use it. Otherwise, auto-determine:\n\n1. Read the current version from `VERSION`.\n2. Look at entries under `## [Unreleased]` in `CHANGELOG.md`.\n3. If there are `### Added` or `### Removed` entries → **minor** bump (e.g. 0.1.0 → 0.2.0).\n4. If there are only `### Fixed` or `### Changed` entries → **patch** bump (e.g. 0.1.0 → 0.1.1).\n5. If the section is empty → ask the user whether to proceed or abort.\n\nA regenerated model catalog (step 1) does **not** count towards the bump — it is\nroutine data, not a user-visible feature, so it never turns a patch into a minor.\nIt still gets a `### Changed` catalog entry describing what actually moved (see\nstep 1); that line alone is not grounds for a minor bump either.\n\n## Steps\n\n1. **Regenerate models** — run `make generate-models` to pull the latest model definitions. If this produces changes, they will be included in the release commit automatically.\n\n   The generator logs a `Catalog diff vs compiled-in:` line — which first-party\n   models were added\u002Fremoved, how much aggregator and pricing churn rode along.\n   **Write the `### Changed` catalog entry from that line**, verbatim or lightly\n   edited; never the old canned \"routine upstream refresh\" sentence, which hid\n   everything. Name the changed-pricing models too, grouped by provider\n   (`provider: id, id`; at most 10, then `+N more`). `-changelog \u003Cpath>` writes the same text as a ready-to-paste\n   bullet if you would rather read it from a file than the log.\n\n   If it reports no changes, **omit the catalog line entirely** — do not write a\n   line saying nothing changed. If an upstream source failed to fetch, the\n   summary says removals were not reported (everything a dead source lists looks\n   deleted); take that at face value and do not go digging for removals. Keep\n   the entry to 1–3 lines: it is read on a phone.\n\n   Run the generator **once**. Its baseline is the catalog compiled into the\n   binary it just built from the checkout, so a second run diffs against the\n   first run's own output and reports nothing changed. If you have already run\n   it twice, `git checkout pkg\u002Fai\u002Fmodels_catalog.bin` and run it once more.\n2. **Full build & test** — execute `make all` and confirm everything passes.\n2b. **Docs** — review repo docs against this release; update them, and update or generate high-level docs. Bigger diagrams, less words.\n3. **Check CHANGELOG** — read `CHANGELOG.md` and confirm there are entries under `## [Unreleased]`. If empty, ask the user.\n4. **Determine version** — follow the rules above if the user didn't specify one. State the version and proceed.\n5. **Update CHANGELOG** — rename `## [Unreleased]` to `## [VERSION] - YYYY-MM-DD` (today's date) and add a fresh empty `## [Unreleased]` section above it. Keep reverse-chronological order.\n6. **Update VERSION** — write the new version to the `VERSION` file (no trailing newline beyond one).\n7. **Commit** — stage **all** uncommitted changes with `git add -A`, then commit with `git commit -m \"release: vVERSION\"`. Check `git status` first.\n8. **Tag** — use `git tag -a vVERSION -m \"release: vVERSION\"` (pass `-m` to avoid opening an editor).\n9. **Install** — `make install` to install the new version.\n10. **Verify** — run **the binary `make install` just wrote**, by absolute path, and confirm it prints the new version:\n\n    ```bash\n    # go install honours GOBIN when set, else GOPATH\u002Fbin.\n    installdir=\"$(go env GOBIN)\"; [ -n \"$installdir\" ] || installdir=\"$(go env GOPATH)\u002Fbin\"\n    \"$installdir\u002Ffir\" --version\n    ```\n\n    Then diagnose PATH: compare `command -v fir` against `$installdir\u002Ffir`. If\n    they differ (and are not the same file — a symlink is fine), PATH is serving\n    a **stale, shadowing** binary and a bare `fir --version` will silently report\n    the old version. `make install` warns about this; do not ignore the warning.\n    Never accept a bare `fir --version` as proof.\n\n    At this step you **diagnose and report only** — say which path holds which\n    version. Do not touch the shadowing binary here: nothing is published yet, so\n    there is no release artifact to reconcile against. Reconciliation happens\n    after publishing (see *Post-publish: reconcile a shadowing PATH binary*).\n\n## Important notes\n\n- **Uncommitted changes**: Always check `git status` before committing. All release-related and pending changes should be included in the release commit.\n- **Avoid interactive git**: Always pass `-m` to `git tag -a` and `git commit`. Git may try to open vim\u002Fnano, which fails in non-interactive environments.\n- **Moving tags**: If you need to move a tag after an additional commit, use `git tag -d vVERSION` then re-create it.\n\n## Publishing\n\nAfter the user confirms, run `make publish` to regenerate the PGO profile and amend the release commit if it changed, push the commit and tag to origin, and let GoReleaser CI build and create the release.\n\nThe release body is automatic: CI runs `scripts\u002Frelease-notes.sh \u003Ctag>` (the version's `CHANGELOG.md` section as **Highlights** + compare link) and passes it to GoReleaser; the mirror step copies it to kfet\u002Ffir-dist. So the CHANGELOG section *is* the release notes — write it for users. After CI is green, check `gh release view vVERSION --repo kfet\u002Ffir-dist` shows the highlights; if not, fix with `scripts\u002Frelease-notes.sh vVERSION > n.md && gh release edit vVERSION --repo kfet\u002Ffir --notes-file n.md` (and the same for `kfet\u002Ffir-dist`).\n\nAlternatively, `make deploy HOST=\u003Chost>` scp's a locally built binary straight\nonto a host. That is **not** the update path — it installs an unpublished,\nlocally built artifact and leaves a `~\u002F.local\u002Fbin\u002Ffir.prev` backup file behind.\nReserve it for the case where no published artifact exists for that platform, or\nfor deliberate pre-release testing, and say out loud that you are doing it.\nHosts are normally brought current with `fir update` — see below.\n\nIf any step fails, stop and report the error. Do not push or publish unless the user confirms.\n\n**Before publishing, re-check that `origin\u002Fmain` has not moved** since you\nstarted — another agent may be releasing the same repo concurrently. `git\nfetch origin` and confirm your branch is not behind.\n\n**If the push is rejected:** discard the *release*, keep the *work*. Delete\nthe tag (`git tag -d vVERSION`), unwind the release commit, rebase onto the\nnew `origin\u002Fmain`, then redo the release from the start — re-pick the\nversion (theirs may have taken it), re-derive the CHANGELOG section from\n`## [Unreleased]`, and re-run `make all` on the merged tree. Never rebase a\nfinalised release commit and push it: the version, changelog and test run\nare assertions about a tree that no longer exists.\n\n## Post-publish: Track All GitHub Actions\n\n**A red workflow is a broken release, period.** Every workflow on the release commit — `ci` included, not only `release` — must be green. Do not report \"released\" with a red `ci`, and do not excuse it as pre-existing: a failure that was already red on earlier commits is still a broken release. Fix it (new patch release if needed) before you call the release done.\n\nAfter `make publish` succeeds, poll GitHub Actions until every triggered workflow finishes:\n\n```bash\nSHA=$(git rev-parse HEAD)   # the release commit; runs are matched on this\n\n# env -u ...: a shell that exports CLICOLOR_FORCE \u002F FORCE_COLOR \u002F CLICOLOR makes\n# `gh` emit ANSI escapes *into its --json output*, so jq fails with\n# \"Invalid numeric literal\". NO_COLOR=1 does NOT override CLICOLOR_FORCE, and\n# gh's own --jq is colourised too — unsetting the forcing vars is the fix.\n# No 2>&1 either: merging stderr into output that must parse as JSON turns a\n# transient gh error into unparseable garbage.\nGH=\"env -u CLICOLOR_FORCE -u FORCE_COLOR -u CLICOLOR gh\"\n\nruns=$($GH run list --limit 15 --json status,conclusion,name,headSha,databaseId) || {\n  echo \"PROBE ERROR: gh run list failed\"; exit 1; }\necho \"$runs\" | jq -e . >\u002Fdev\u002Fnull || { echo \"PROBE ERROR: output is not JSON\"; exit 1; }\necho \"$runs\" | jq -r --arg sha \"$SHA\" '.[] | select(.headSha==$sha) | \"\\(.name) \\(.status) \\(.conclusion)\"'\n```\n\n`$SHA` must be set, and the selection must be non-empty: zero matching runs is\n\"probe not working yet\", **not** \"all runs finished\". Treat an empty match as\nnot-ready early on, and as an error if it persists.\n\nThis must **not** use `--branch` filtering — tag-triggered workflows (like `release`) don't appear under a branch filter. Instead, match runs by `headSha` against the release commit.\n\nLoop every 30 seconds. Stop when all runs for the release commit SHA are `completed`. If any conclude with `failure` or `cancelled`, report the failure details:\n\n```bash\n$GH run view \u003Crun-id> --log-failed | tail -40\n```\n\n### Probe hygiene (applies to any poll loop)\n\n**A probe that errored or produced unparseable output is a FAILURE, not a\n\"keep waiting\".** Treat these as three distinct outcomes and never collapse them:\n\n- **ready** → stop, success.\n- **not ready** → the probe ran, parsed cleanly, and the state is genuinely\n  still in progress. Only this continues the loop.\n- **errored \u002F unparseable** → a broken probe. Retry at most 2–3 *consecutive*\n  times (network blips are real), then **stop and report**. Never let it fall\n  through to \"continue\" indefinitely.\n\nConcretely: check the command's exit code before piping to `jq`; validate with\n`jq -e .` before extracting fields; never pipe a command's stderr (`2>&1`) into\nsomething that must parse as structured data; and **never assume a `--json` flag\nyields clean JSON** — a colour-forcing environment, a pager, or a progress\nspinner can all corrupt it, and the tool still exits 0. If you cannot distinguish\n\"not ready\" from \"broken\", the loop is wrong — a broken probe polls happily until\ntimeout while the thing it watches has long since finished. Also bound the loop\n(a wall-clock cap and a max poll count) so even a mis-classified probe cannot\nrun for the better part of an hour.\n\nWhen a probe *does* come back unparseable, look at the raw bytes\n(`printf '%s' \"$out\" | od -c | head`) before assuming it was transient. An ANSI\nescape or a BOM at byte 0 is a permanent, reproducible fault that no amount of\nretrying will clear.\n\nDo not ask the user whether to monitor — always do it automatically after a successful publish.\n\n## Post-publish: reconcile a shadowing PATH binary\n\nOnly once the CI monitoring above reports every workflow for the release commit\n`completed` \u002F `success` does a published artifact exist. That green result — not\na guess, not a sleep — is the signal that the following is safe to run.\n\n**A shadowing PATH binary is brought current by the canonical update path, and\nby nothing else: `fir update`, run on the host that carries it.** `fir update`\nupgrades a Homebrew-managed install via brew and otherwise self-replaces\natomically from the published GitHub release, leaving no backup files behind.\n\n**Copying a build artifact over an installed binary is not a supported update\npath.** Do not `cp`\u002F`scp`\u002F`mv` the output of `make install` or `make build` onto\na binary on someone's `PATH`, and do not leave `.prev` (or any other) backup\nlitter next to it. A host that gets hand-copied artifacts is running an\nunpublished build that no release tag describes.\n\nRun it as a bare command so the shell resolves the **shadowing** binary — that\nis the one that needs replacing, and `fir update` rewrites the running binary in\nplace:\n\n```bash\nfir update            # NOT \"$installdir\u002Ffir\" update — that one is already new\nhash -r               # shells cache PATH lookups; clear before re-checking\n\"$(command -v fir)\" --version\n```\n\nFor a remote host, run `fir update` **on that host** (e.g. over ssh). Never scp\na binary to it.\n\nThen verify. `fir update` prints \"already up to date\" and exits 0 when the\nrunning binary's version string compares no older than the release — so a\ndev\u002Fdirty build can silently no-op. If `\"$(command -v fir)\" --version` does not\nreport the version you just released, that host is carrying a non-release build\nand `fir update` will not fix it.\n\n**Exception — no published artifact for the platform.** If the release has no\nasset for that host's OS\u002Farch, there is nothing to self-update from. Then, and\nonly then, build and install into the PATH location deliberately: state out loud\nwhich path you are overwriting and why, get the user's confirmation first, and do\nnot leave a backup file behind. This is the exception, never the offer.\n\n## Known pitfalls\n\n- **Re-tagging a tag GoReleaser already published fails with 422 `already_exists`**, and the fir-dist mirror step then never runs. Fix: `gh release delete \u003Ctag> --yes --cleanup-tag=false`, then rerun with `gh workflow run release.yml -f tag=\u003Ctag>`. Prefer a new patch version over amending a pushed release commit.\n- **Python linters are unpinned**: `make lint-python` runs `uvx ruff@latest` and `uvx ty@latest`. If lint fails on files you did not touch, suspect a new linter release. Do not chase it inside a release, and do not mass-`--fix` noqa.\n- `.fir\u002Fextensions` is a symlink to `pkg\u002Fresources\u002Fbuiltin_extensions`: lint errors under the former are in the latter. Root `CHANGELOG.md` is a symlink into `cmd\u002Ffir\u002F`.\n- **Fleet deploy:** the fleet is not a fixed list. Enumerate hosts with `rhosts probe=true` and run `fir update` on every reachable host that has fir. Then grep each host's `~\u002F.config\u002Ffir\u002Fsettings.json` `defaultModel` and `~\u002F.config\u002Fpoe-acp\u002F*\u002Fconfig.json` `model`: a pin there beats any built-in default. Deploy the binary before changing a bot's model. On slow hosts (Raspberry Pi) `fir update` can outlast the ssh timeout; re-check `fir --version` before calling it failed.\n",{"name":5,"override":33,"description":7},true,"main","76b360b35f87ec18e1776cf6feafc7a025bdea64","pkg\u002Fresources\u002Fbuiltin_skills\u002Frelease",0,"https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir","https:\u002F\u002Fgithub.com\u002Fkfet","https:\u002F\u002Fgithub.com\u002Fkalin-sa","2026-11-15 03:16:15",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":33},[44,47,50],{"tool":45,"command":46},"npx","npx skills add kfet\u002Ffir --skill release",{"tool":48,"command":49},"bunx","bunx skills add kfet\u002Ffir --skill release",{"tool":51,"command":52},"pnpm","pnpm dlx skills add kfet\u002Ffir --skill release","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Frelease\u002FSKILL.md",[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fi18n_checker.py","SCRIPT","脚本",7715,"https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Fi18n-localization\u002Fscripts\u002Fi18n_checker.py",[62,86,106,129,147,172],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":28},"01M6CS290490SZNX8V35TF3N6X","wt","Spawn a fresh fir agent in its own tmux session on its own git worktree. Use whenever the user wants the work — or the conversation about the work — to happen over there, not here. If the user points at this skill, or has directly loaded it in the context, that alone is the cue — spawn, don't inline.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Fwt\u002FSKILL.md",[],[64,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,25,84,85],"tmux","git","worktree","git worktree","work","context","user","spawn","session","use","conversation","cue","fresh","it","about","at","inline",{"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":28},"01M6CS26KAKJ7VYRQ3RJ31SJ6S","wrap-up","Wrap up work on a project branch — review, fix, and simplify in a loop until clean, then ff-merge to main.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Fwrap-up\u002FSKILL.md",[],[93,94,95,96,97,98,99,100,73,101,102,103,34,104,105,25],"wrap up","up","wrap","review","merge","simplify","loop","work on","branch","fix","clean","merge to main","project",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":28},"01M6CS23P85MSVBX11XMFB29PF","tmux-observer","Attach a tmux window to an already-running fir session — observe its transcript and drive its input via tmux send-keys. Use when you need to watch or steer another fir agent.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-observer\u002FSKILL.md",[],[69,113,114,115,77,78,116,117,118,119,120,121,122,25,123,124,125,126,127,128],"tmux observer","observer","transcript","drive","observe","attach","watch","input","via","you","keys","steer","window","send","when","running",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":28},"01M6CS21ENQ3D7Z08TDKXHJRR6","tmux-driver","Drive interactive CLIs (python, gdb, etc.) via named tmux sessions with multi-window support. Falls back to fir's built-in PTY driver when tmux is unavailable.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftmux-driver\u002FSKILL.md",[],[69,136,137,138,139,140,141,142,116,143,144,121,145,146,25,125,127],"tmux driver","driver","python","support","sessions","interactive","PTY","back","gdb","multi","with",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":28},"01M6CS1YWSAH2TQ7S4VK7VKJT6","telegram-bot-setup","Set up a new Telegram bot channel for a fir project — install the telegram MCP, create a per-project state dir, drop in the bot token, wire .fir\u002Fmcp.json with TELEGRAM_STATE_DIR, pair the user, and verify. Use when the user asks to add, configure, or onboard a Telegram bot for a fir worktree\u002Fproject.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Ftelegram-bot-setup\u002FSKILL.md",[],[154,155,156,157,158,159,160,161,71,162,163,164,165,166,167,168,169,78,94,170,105,146,25,171,127,27],"bot","setup","telegram bot","telegram","telegram bot setup","MCP","create","state","SET","verify","onboard","configure","json","pair","install","channel","drop","for",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":28},"01M6CS1VSW4C1W1QED8NDHBHZ9","sync","Sync with an upstream source repo — detect changed files, apply equivalent downstream edits, update the baseline, and report any new features or non-trivial changes picked up.","https:\u002F\u002Fgithub.com\u002Fkfet\u002Ffir\u002Fblob\u002Fmain\u002Fpkg\u002Fresources\u002Fbuiltin_skills\u002Fsync\u002FSKILL.md",[],[174,179,180,181,182,94,183,184,185,146,25,186,187,188,189,27],"update","report","baseline","repo","files","upstream","detect","source","changes","features","apply"]