[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AJ3QEXPAY7TMY5VE7WDM9G":3,"skill-same:01M7AJ3QEXPAY7TMY5VE7WDM9G":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7AJ3QEXPAY7TMY5VE7WDM9G","release",null,"Cut a release of opencode-cmd-provider — bump the version, write the CHANGELOG entry, refresh the catalog snapshot, tag, and verify the pipeline's publish. Use when the user says \"cut a release\", \"release\", \"bump to X\", \"tag vX.Y.Z\", \"publish to npm\", or asks to ship a version. Not for editing the workflows or ADRs (plain code work) — for the release ritual itself.","rashidrazak\u002Fopencode-cmd-provider","rashidrazak","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F53707277?v=4","01M7AJ3FEYBJZVM07CE3SWCSEH","Rashid Razak","01M7AJ3FG0MTSJBXXMBTMK1YSM",137,"MIT","https:\u002F\u002Fgithub.com\u002Frashidrazak\u002Fopencode-cmd-provider\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Frelease\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: release\ndescription: Cut a release of opencode-cmd-provider — bump the version, write the CHANGELOG entry, refresh the catalog snapshot, tag, and verify the pipeline's publish. Use when the user says \"cut a release\", \"release\", \"bump to X\", \"tag vX.Y.Z\", \"publish to npm\", or asks to ship a version. Not for editing the workflows or ADRs (plain code work) — for the release ritual itself.\n---\n\n# Release\n\nA **Release** is a versioned publication: a git tag `vX.Y.Z` matching\n`package.json`, a GitHub Release, and an npm publish (see `CONTEXT.md`,\nADRs 0002 and 0003). The pipeline owns the mechanics; this skill is the\npre-tag ritual and post-push verification.\n\n## Version choice\n\n- `patch` for fixes and chores, `minor` for features, `major` for breaking\n  changes.\n- Prereleases: `X.Y.Z-beta.N` — the pipeline publishes them with `--tag beta`,\n  never touching `latest`.\n\n## Pre-tag steps (all manual, in order)\n\n1. **Bump** `package.json` — it is the single source of truth for the version.\n2. **Sync `package-lock.json`** — `package-lock.json` mirrors `package.json`'s\n   `version` field at the top of the file and inside the root `packages.\"\"`\n   entry. A pure version bump in `package.json` does **not** touch the\n   lockfile on its own. Run `npm install --package-lock-only --no-audit --no-fund`\n   to refresh the lockfile's `version` lines to match (no dependency\n   resolution, no `node_modules` changes). **Never hand-edit `package-lock.json`** —\n   let npm write it. Include the regenerated lockfile in the release commit\n   alongside the `package.json` bump so the two stay in lockstep (this is\n   how the 1.6.0 release commit looked).\n3. **CHANGELOG.md** — add a `## X.Y.Z - YYYY-MM-DD` section (promote\n   `## Unreleased` when it exists). This exact section becomes the GitHub\n   Release body; without it the pipeline falls back to generated notes.\n4. **Commit** — conventional style: `chore(release): X.Y.Z`. The commit\n   should include `package.json`, `package-lock.json`, and `CHANGELOG.md`.\n   If the lockfile sync was missed, amend the commit (force-push the\n   release branch) before the PR merges — once the PR lands, the tag\n   has to be moved instead.\n5. **Land on main** — main is protected (required `test` check, PR review), so\n   open a PR and merge it. The pipeline refuses tags whose commit is not on\n   main; the tag must point at a commit that contains the bump.\n6. **Tag**: `git tag vX.Y.Z && git push origin vX.Y.Z` — the tag push triggers\n   `release.yml`. Push the tag only; main is already up to date.\n\nCatalog freshness (`src\u002Fcatalog\u002Fsnapshot.ts` \u002F `facts.ts` \u002F `classification.ts` \u002F `src\u002Frates-usage\u002Fcatalog.ts`) is a **gate, not an auto-fix**:\nthe pipeline regenerates each catalog and fails loudly if any drifted — it never\nmoves the tag or pushes to `main` itself (see ADR 0003). Date-stamp lines are\nignored (`-I 'FACTS_LAST_REFRESHED'` \u002F `-I 'DEAL_LAST_REFRESHED'`), so a\nsame-day tag passes as long as the data is fresh. Running `npm run refresh`\n(both catalogs at once, offline from `tests\u002Ffixtures\u002F*.html`) or the individual\n`npm run refresh:snapshot` \u002F `npm run refresh:deals` (add `-- --fixtures` for\noffline) locally beforehand is optional — do it if you want the diff visible\nbefore tagging. `npm run build` needs `bun` on PATH (TUI solid transform).\n\n## What the pipeline does (no action needed)\n\nAsserts the tag's commit is on `origin\u002Fmain` → asserts tag ==\n`v\u003Cpackage.json.version>` → build + full test suite (`bun` required) →\nrefreshes the catalog snapshot + capability facts (including input modalities\nfrom the CLI bundle) + deals catalog (tier\u002Fbenchmarks\u002Fdeals from docs) and fails\nwith instructions if any drifted (never moving the tag or pushing to main\nitself) → OIDC npm publish (trusted publishing, provenance automatic) → GitHub\nRelease from the CHANGELOG section. Provenance requires the repository to be\npublic.\n\n## Verify after push\n\n1. `gh run list --limit 3` — find the Release run for the tag; watch with\n   `gh run watch \u003Crun-id> --exit-status --interval 15`.\n2. `npm view opencode-cmd-provider@\u003Cversion> dist-tags.latest` — must be the\n   new version.\n3. `gh release view vX.Y.Z` — exists, with the changelog as its body.\n4. Provenance: `curl -s https:\u002F\u002Fregistry.npmjs.org\u002F-\u002Fnpm\u002Fv1\u002Fattestations\u002Fopencode-cmd-provider@\u003Cversion>`\n   returns attestations (only from a public repository).\n\n## Failure recovery\n\n- **A stale catalog fails the run** — nothing shipped. Refresh locally\n  (`npm run refresh` for both, or `npm run refresh:snapshot` \u002F\n  `npm run refresh:deals -- --fixtures`), commit the changed\n  `src\u002Fcatalog\u002F{snapshot,facts,classification}.ts` and `src\u002Frates-usage\u002Fcatalog.ts`\n  (and `tests\u002Ffixtures\u002F*.html` if you\n  re-captured docs pages), land on main via PR, then re-tag.\n- **The refresh cannot generate facts** (\"could not parse ... cli.mjs\" or an\n  unshippable-row failure) — nothing shipped. Unlike a stale\n  snapshot, this cannot be fixed by refreshing locally: `npm run\nrefresh:snapshot` fails the same way. It means the CLI bundle shape\n  changed and `scripts\u002Fparse-modalities.mjs` needs updating, or a package\n  row is unshippable after the full enrichment ladders. (A CLI _outage_\n  degrades to pending notes, never a failure.) Resolve that on\n  main via PR, then re-tag.\n- **Publish fails** — nothing shipped (npm rejects before writing) → fix, then\n  `gh run rerun \u003Crun-id>`.\n- **Workflow file changes** — if a fix touches `.github\u002Fworkflows\u002Frelease.yml`,\n  rerunning is not enough: the run executes the workflow from the tag's tree.\n  Move the tag (`git push origin :refs\u002Ftags\u002FvX.Y.Z`, re-tag at the fixed\n  commit, push) so a fresh run uses the new file.\n- **Pre-publish failure** (tests, build, snapshot guard) — fix on main via PR,\n  re-tag at the new commit; the old tag's run cannot be salvaged by rerun if\n  the tag commit itself is at fault.\n","# Release\n\nA **Release** is a versioned publication: a git tag `vX.Y.Z` matching\n`package.json`, a GitHub Release, and an npm publish (see `CONTEXT.md`,\nADRs 0002 and 0003). The pipeline owns the mechanics; this skill is the\npre-tag ritual and post-push verification.\n\n## Version choice\n\n- `patch` for fixes and chores, `minor` for features, `major` for breaking\n  changes.\n- Prereleases: `X.Y.Z-beta.N` — the pipeline publishes them with `--tag beta`,\n  never touching `latest`.\n\n## Pre-tag steps (all manual, in order)\n\n1. **Bump** `package.json` — it is the single source of truth for the version.\n2. **Sync `package-lock.json`** — `package-lock.json` mirrors `package.json`'s\n   `version` field at the top of the file and inside the root `packages.\"\"`\n   entry. A pure version bump in `package.json` does **not** touch the\n   lockfile on its own. Run `npm install --package-lock-only --no-audit --no-fund`\n   to refresh the lockfile's `version` lines to match (no dependency\n   resolution, no `node_modules` changes). **Never hand-edit `package-lock.json`** —\n   let npm write it. Include the regenerated lockfile in the release commit\n   alongside the `package.json` bump so the two stay in lockstep (this is\n   how the 1.6.0 release commit looked).\n3. **CHANGELOG.md** — add a `## X.Y.Z - YYYY-MM-DD` section (promote\n   `## Unreleased` when it exists). This exact section becomes the GitHub\n   Release body; without it the pipeline falls back to generated notes.\n4. **Commit** — conventional style: `chore(release): X.Y.Z`. The commit\n   should include `package.json`, `package-lock.json`, and `CHANGELOG.md`.\n   If the lockfile sync was missed, amend the commit (force-push the\n   release branch) before the PR merges — once the PR lands, the tag\n   has to be moved instead.\n5. **Land on main** — main is protected (required `test` check, PR review), so\n   open a PR and merge it. The pipeline refuses tags whose commit is not on\n   main; the tag must point at a commit that contains the bump.\n6. **Tag**: `git tag vX.Y.Z && git push origin vX.Y.Z` — the tag push triggers\n   `release.yml`. Push the tag only; main is already up to date.\n\nCatalog freshness (`src\u002Fcatalog\u002Fsnapshot.ts` \u002F `facts.ts` \u002F `classification.ts` \u002F `src\u002Frates-usage\u002Fcatalog.ts`) is a **gate, not an auto-fix**:\nthe pipeline regenerates each catalog and fails loudly if any drifted — it never\nmoves the tag or pushes to `main` itself (see ADR 0003). Date-stamp lines are\nignored (`-I 'FACTS_LAST_REFRESHED'` \u002F `-I 'DEAL_LAST_REFRESHED'`), so a\nsame-day tag passes as long as the data is fresh. Running `npm run refresh`\n(both catalogs at once, offline from `tests\u002Ffixtures\u002F*.html`) or the individual\n`npm run refresh:snapshot` \u002F `npm run refresh:deals` (add `-- --fixtures` for\noffline) locally beforehand is optional — do it if you want the diff visible\nbefore tagging. `npm run build` needs `bun` on PATH (TUI solid transform).\n\n## What the pipeline does (no action needed)\n\nAsserts the tag's commit is on `origin\u002Fmain` → asserts tag ==\n`v\u003Cpackage.json.version>` → build + full test suite (`bun` required) →\nrefreshes the catalog snapshot + capability facts (including input modalities\nfrom the CLI bundle) + deals catalog (tier\u002Fbenchmarks\u002Fdeals from docs) and fails\nwith instructions if any drifted (never moving the tag or pushing to main\nitself) → OIDC npm publish (trusted publishing, provenance automatic) → GitHub\nRelease from the CHANGELOG section. Provenance requires the repository to be\npublic.\n\n## Verify after push\n\n1. `gh run list --limit 3` — find the Release run for the tag; watch with\n   `gh run watch \u003Crun-id> --exit-status --interval 15`.\n2. `npm view opencode-cmd-provider@\u003Cversion> dist-tags.latest` — must be the\n   new version.\n3. `gh release view vX.Y.Z` — exists, with the changelog as its body.\n4. Provenance: `curl -s https:\u002F\u002Fregistry.npmjs.org\u002F-\u002Fnpm\u002Fv1\u002Fattestations\u002Fopencode-cmd-provider@\u003Cversion>`\n   returns attestations (only from a public repository).\n\n## Failure recovery\n\n- **A stale catalog fails the run** — nothing shipped. Refresh locally\n  (`npm run refresh` for both, or `npm run refresh:snapshot` \u002F\n  `npm run refresh:deals -- --fixtures`), commit the changed\n  `src\u002Fcatalog\u002F{snapshot,facts,classification}.ts` and `src\u002Frates-usage\u002Fcatalog.ts`\n  (and `tests\u002Ffixtures\u002F*.html` if you\n  re-captured docs pages), land on main via PR, then re-tag.\n- **The refresh cannot generate facts** (\"could not parse ... cli.mjs\" or an\n  unshippable-row failure) — nothing shipped. Unlike a stale\n  snapshot, this cannot be fixed by refreshing locally: `npm run\nrefresh:snapshot` fails the same way. It means the CLI bundle shape\n  changed and `scripts\u002Fparse-modalities.mjs` needs updating, or a package\n  row is unshippable after the full enrichment ladders. (A CLI _outage_\n  degrades to pending notes, never a failure.) Resolve that on\n  main via PR, then re-tag.\n- **Publish fails** — nothing shipped (npm rejects before writing) → fix, then\n  `gh run rerun \u003Crun-id>`.\n- **Workflow file changes** — if a fix touches `.github\u002Fworkflows\u002Frelease.yml`,\n  rerunning is not enough: the run executes the workflow from the tag's tree.\n  Move the tag (`git push origin :refs\u002Ftags\u002FvX.Y.Z`, re-tag at the fixed\n  commit, push) so a fresh run uses the new file.\n- **Pre-publish failure** (tests, build, snapshot guard) — fix on main via PR,\n  re-tag at the new commit; the old tag's run cannot be salvaged by rerun if\n  the tag commit itself is at fault.\n",{"name":5,"description":7},"main","76402b20ca0f8f914058e48c3eedb1b06ae4b9e4",".pi\u002Fskills\u002Frelease",17,"https:\u002F\u002Fgithub.com\u002Frashidrazak\u002Fopencode-cmd-provider","https:\u002F\u002Fgithub.com\u002Frashidrazak","https:\u002F\u002Fnodejs.my","2026-11-14 10:33:46",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add rashidrazak\u002Fopencode-cmd-provider --skill release",{"tool":38,"command":39},"bunx","bunx skills add rashidrazak\u002Fopencode-cmd-provider --skill release",{"tool":41,"command":42},"pnpm","pnpm dlx skills add rashidrazak\u002Fopencode-cmd-provider --skill release","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frashidrazak\u002Fopencode-cmd-provider\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Frelease\u002FSKILL.md",true,[],[47,52],{"skillNo":48,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7AJ3PHAX99NDBA1CBNGJA14","https:\u002F\u002Fgithub.com\u002Frashidrazak\u002Fopencode-cmd-provider\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Frelease\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7AJ3H3864E1P2JW9HJSTG83","refresh","Refresh the bundled catalogs of opencode-cmd-provider — model snapshot, capability facts, and deals catalog — including re-capturing the docs fixtures and running the coverage gate. Use when the user says \"refresh\", \"refresh the catalogs\", \"update the models\", \"re-sync the snapshot\", \"re-capture fixtures\", or asks to update model list\u002Fpricing\u002Fdeals data. Not for cutting a release (use the release skill) or for editing the refresh scripts themselves (plain code work).","https:\u002F\u002Fgithub.com\u002Frashidrazak\u002Fopencode-cmd-provider\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Frefresh\u002FSKILL.md",[],[]]