[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AJ3H3864E1P2JW9HJSTG83":3,"skill-same:01M7AJ3H3864E1P2JW9HJSTG83":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},"01M7AJ3H3864E1P2JW9HJSTG83","refresh",null,"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).","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.opencode\u002Fskills\u002Frefresh\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: refresh\ndescription: 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).\n---\n\n# Refresh\n\nA **Catalog refresh** (the model snapshot) plus a **Deals catalog** refresh\nupdates the generated catalogs so the plugin's bundled data matches Command\nCode's live catalog (see `CONTEXT.md`). It happens on demand (typically before\na release), never at runtime; the pipeline also refreshes at release time —\nthis skill is the manual, local, commit-ready version of the same work.\n\n## What gets refreshed\n\n| File                                   | Source                                                                                       | Script                         |\n| -------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------ |\n| `src\u002Fcatalog\u002Fsnapshot.ts`              | catalog endpoint client view `?view=client` (decides which models ship) + enrichment ladders | `scripts\u002Frefresh-snapshot.mjs` |\n| `src\u002Fcatalog\u002Ffacts.ts`                 | same catalog payload (efforts, rates, modalities)                                            | `scripts\u002Frefresh-snapshot.mjs` |\n| `src\u002Frates-usage\u002Fcatalog.ts`           | docs pages \u002F `tests\u002Ffixtures\u002F*.html`                                                         | `scripts\u002Frefresh-deals.mjs`    |\n| `tests\u002Ffixtures\u002Fgoat.html`, `pro.html` | live docs capture (deals source)                                                             | manual `fetch`                 |\n\n`src\u002Fcatalog\u002F*.ts`, `src\u002Frates-usage\u002Fcatalog.ts` — **generated, never hand-edit**\n(AGENTS.md).\n\n## Quick start\n\n```bash\nnpm run refresh            # snapshot + facts (live) + deals (offline fixtures)\nnode scripts\u002Fcheck-deals-coverage.mjs   # gate: every snapshot model has a deal\nnpm test                   # full suite (unit + integration + contract + format)\n```\n\n## Workflows\n\n### A. Full refresh (recommended)\n\n1. **Refresh the model catalog** (snapshot + facts, live):\n   `npm run refresh:snapshot` — hits the API + npm registry. Fails hard on\n   network\u002Fparse problems.\n2. **Refresh the deals catalog** (offline, from fixtures):\n   `npm run refresh:deals -- --fixtures`.\n   If the snapshot gained models the fixtures lack, **this aborts with exit 1**\n   naming them — that is the coverage gate doing its job.\n3. **Re-capture the fixtures** when the gate (or a review) shows the docs have\n   new models (Workflow B), then re-run step 2.\n4. **Verify** — `node scripts\u002Fcheck-deals-coverage.mjs` (OK line), then\n   `npm test`. `npm run build` needs `bun` on PATH only when rebuilding the TUI.\n5. **Review the diff** — `git diff` should show additive entries: new snapshot\n   ids, new `MODEL_DEALS` entries, small fixture deltas. Date stamps\n   (`FACTS_LAST_REFRESHED`, `DEAL_LAST_REFRESHED`) change by design.\n6. **Commit** — conventional style, e.g. `chore(catalog): refresh to\ncommand-code@X.Y.Z`.\n\n### B. Re-capturing the deals fixtures\n\nThe fixtures must stay in sync with the snapshot: a model in the snapshot but\nmissing from the docs pages silently loses its \"Command Code\" sidebar section\n(issue: Ox Alpha \u002F DeepSeek V4 Flash Vision (exp) showed no section because the\nfixtures predated them).\n\n1. Fetch the two record-bearing pages (the pricing-limits page carries no\n   embedded records — goat and pro are the sources):\n   ```bash\n   curl -sL -H 'accept: text\u002Fhtml' https:\u002F\u002Fcommandcode.ai\u002Fdocs\u002Fplans\u002Fgoat -o tests\u002Ffixtures\u002Fgoat.html\n   curl -sL -H 'accept: text\u002Fhtml' https:\u002F\u002Fcommandcode.ai\u002Fdocs\u002Fplans\u002Fpro  -o tests\u002Ffixtures\u002Fpro.html\n   ```\n2. Regenerate and gate:\n   `npm run refresh:deals -- --fixtures` — must write 58+ entries, not abort.\n3. `git diff --stat tests\u002Ffixtures\u002F` — expect a small, noisy delta (the\n   Next.js flight payload embeds a build hash on every capture; the _record_\n   changes are what matter). Spot-check that only intended models\u002Frates\n   changed.\n4. Run the deals tests:\n   `npx tsx tests\u002Fparse-docs.test.ts && npx tsx tests\u002Frefresh-deals.test.ts && npx tsx tests\u002Fdeals-coverage.test.ts`.\n\n### C. Deals data stale but gate passed\n\nThe gate only proves coverage. If deal _values_ (allowances, discounts,\nbenchmarks) are stale, re-capture the fixtures (B), re-run\n`refresh:deals -- --fixtures`, and eyeball the diff for rate changes.\n\n## Failure recovery\n\n- **`refresh:deals` aborts with \"N snapshot model(s) have no deals record\"** —\n  fixtures (or live scrape) are behind the snapshot. Re-capture fixtures (B),\n  re-run. Do **not** pass `--allow-partial` to ship a partial catalog; that\n  flag is reserved for the release pipeline's non-blocking check.\n- **`refresh:snapshot` fails** (\"could not parse ... view=client\", or an\n  unshippable-row failure after the full ladders) — the catalog payload shape\n  changed (`scripts\u002Fparse-catalog.mjs` needs updating), or a record has no\n  context\u002Fcost after every enrichment step. The catalog **decides which models\n  ship**, so unlike enrichment sources a fetch failure is a real failure — there\n  is no fallback source for the model list. Resolve on main, re-refresh.\n- **Network down \u002F docs changed shape** — offline still works:\n  `npm run refresh:deals -- --fixtures` from the committed fixtures; only the\n  fixture re-capture (B) needs the live docs.\n- **A stale catalog fails the release run** — nothing shipped. Refresh locally,\n  commit, land on main, re-tag (see the release skill).\n\n## Reference\n\n- `CONTEXT.md` (vocabulary), ADR-0002\u002F0003 (release gates), ADR-0004 (Rates &\n  usage slice), AGENTS.md (\"Generated files — do not hand-edit\").\n- Mechanics: `scripts\u002Frefresh-deals.mjs`, `scripts\u002Frefresh-snapshot.mjs`,\n  `scripts\u002Fcheck-deals-coverage.mjs`, `tests\u002Fdeals-coverage.test.ts`.\n","# Refresh\n\nA **Catalog refresh** (the model snapshot) plus a **Deals catalog** refresh\nupdates the generated catalogs so the plugin's bundled data matches Command\nCode's live catalog (see `CONTEXT.md`). It happens on demand (typically before\na release), never at runtime; the pipeline also refreshes at release time —\nthis skill is the manual, local, commit-ready version of the same work.\n\n## What gets refreshed\n\n| File                                   | Source                                                                                       | Script                         |\n| -------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------ |\n| `src\u002Fcatalog\u002Fsnapshot.ts`              | catalog endpoint client view `?view=client` (decides which models ship) + enrichment ladders | `scripts\u002Frefresh-snapshot.mjs` |\n| `src\u002Fcatalog\u002Ffacts.ts`                 | same catalog payload (efforts, rates, modalities)                                            | `scripts\u002Frefresh-snapshot.mjs` |\n| `src\u002Frates-usage\u002Fcatalog.ts`           | docs pages \u002F `tests\u002Ffixtures\u002F*.html`                                                         | `scripts\u002Frefresh-deals.mjs`    |\n| `tests\u002Ffixtures\u002Fgoat.html`, `pro.html` | live docs capture (deals source)                                                             | manual `fetch`                 |\n\n`src\u002Fcatalog\u002F*.ts`, `src\u002Frates-usage\u002Fcatalog.ts` — **generated, never hand-edit**\n(AGENTS.md).\n\n## Quick start\n\n```bash\nnpm run refresh            # snapshot + facts (live) + deals (offline fixtures)\nnode scripts\u002Fcheck-deals-coverage.mjs   # gate: every snapshot model has a deal\nnpm test                   # full suite (unit + integration + contract + format)\n```\n\n## Workflows\n\n### A. Full refresh (recommended)\n\n1. **Refresh the model catalog** (snapshot + facts, live):\n   `npm run refresh:snapshot` — hits the API + npm registry. Fails hard on\n   network\u002Fparse problems.\n2. **Refresh the deals catalog** (offline, from fixtures):\n   `npm run refresh:deals -- --fixtures`.\n   If the snapshot gained models the fixtures lack, **this aborts with exit 1**\n   naming them — that is the coverage gate doing its job.\n3. **Re-capture the fixtures** when the gate (or a review) shows the docs have\n   new models (Workflow B), then re-run step 2.\n4. **Verify** — `node scripts\u002Fcheck-deals-coverage.mjs` (OK line), then\n   `npm test`. `npm run build` needs `bun` on PATH only when rebuilding the TUI.\n5. **Review the diff** — `git diff` should show additive entries: new snapshot\n   ids, new `MODEL_DEALS` entries, small fixture deltas. Date stamps\n   (`FACTS_LAST_REFRESHED`, `DEAL_LAST_REFRESHED`) change by design.\n6. **Commit** — conventional style, e.g. `chore(catalog): refresh to\ncommand-code@X.Y.Z`.\n\n### B. Re-capturing the deals fixtures\n\nThe fixtures must stay in sync with the snapshot: a model in the snapshot but\nmissing from the docs pages silently loses its \"Command Code\" sidebar section\n(issue: Ox Alpha \u002F DeepSeek V4 Flash Vision (exp) showed no section because the\nfixtures predated them).\n\n1. Fetch the two record-bearing pages (the pricing-limits page carries no\n   embedded records — goat and pro are the sources):\n   ```bash\n   curl -sL -H 'accept: text\u002Fhtml' https:\u002F\u002Fcommandcode.ai\u002Fdocs\u002Fplans\u002Fgoat -o tests\u002Ffixtures\u002Fgoat.html\n   curl -sL -H 'accept: text\u002Fhtml' https:\u002F\u002Fcommandcode.ai\u002Fdocs\u002Fplans\u002Fpro  -o tests\u002Ffixtures\u002Fpro.html\n   ```\n2. Regenerate and gate:\n   `npm run refresh:deals -- --fixtures` — must write 58+ entries, not abort.\n3. `git diff --stat tests\u002Ffixtures\u002F` — expect a small, noisy delta (the\n   Next.js flight payload embeds a build hash on every capture; the _record_\n   changes are what matter). Spot-check that only intended models\u002Frates\n   changed.\n4. Run the deals tests:\n   `npx tsx tests\u002Fparse-docs.test.ts && npx tsx tests\u002Frefresh-deals.test.ts && npx tsx tests\u002Fdeals-coverage.test.ts`.\n\n### C. Deals data stale but gate passed\n\nThe gate only proves coverage. If deal _values_ (allowances, discounts,\nbenchmarks) are stale, re-capture the fixtures (B), re-run\n`refresh:deals -- --fixtures`, and eyeball the diff for rate changes.\n\n## Failure recovery\n\n- **`refresh:deals` aborts with \"N snapshot model(s) have no deals record\"** —\n  fixtures (or live scrape) are behind the snapshot. Re-capture fixtures (B),\n  re-run. Do **not** pass `--allow-partial` to ship a partial catalog; that\n  flag is reserved for the release pipeline's non-blocking check.\n- **`refresh:snapshot` fails** (\"could not parse ... view=client\", or an\n  unshippable-row failure after the full ladders) — the catalog payload shape\n  changed (`scripts\u002Fparse-catalog.mjs` needs updating), or a record has no\n  context\u002Fcost after every enrichment step. The catalog **decides which models\n  ship**, so unlike enrichment sources a fetch failure is a real failure — there\n  is no fallback source for the model list. Resolve on main, re-refresh.\n- **Network down \u002F docs changed shape** — offline still works:\n  `npm run refresh:deals -- --fixtures` from the committed fixtures; only the\n  fixture re-capture (B) needs the live docs.\n- **A stale catalog fails the release run** — nothing shipped. Refresh locally,\n  commit, land on main, re-tag (see the release skill).\n\n## Reference\n\n- `CONTEXT.md` (vocabulary), ADR-0002\u002F0003 (release gates), ADR-0004 (Rates &\n  usage slice), AGENTS.md (\"Generated files — do not hand-edit\").\n- Mechanics: `scripts\u002Frefresh-deals.mjs`, `scripts\u002Frefresh-snapshot.mjs`,\n  `scripts\u002Fcheck-deals-coverage.mjs`, `tests\u002Fdeals-coverage.test.ts`.\n",{"name":5,"description":7},"main","76402b20ca0f8f914058e48c3eedb1b06ae4b9e4",".opencode\u002Fskills\u002Frefresh",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 refresh",{"tool":38,"command":39},"bunx","bunx skills add rashidrazak\u002Fopencode-cmd-provider --skill refresh",{"tool":41,"command":42},"pnpm","pnpm dlx skills add rashidrazak\u002Fopencode-cmd-provider --skill refresh","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frashidrazak\u002Fopencode-cmd-provider\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Frefresh\u002FSKILL.md",true,[],[47,54],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7AJ3QEXPAY7TMY5VE7WDM9G","release","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.","https:\u002F\u002Fgithub.com\u002Frashidrazak\u002Fopencode-cmd-provider\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Frelease\u002FSKILL.md",[],[],{"skillNo":55,"name":49,"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":56,"categories":57,"keywords":58,"publishedAt":19},"01M7AJ3PHAX99NDBA1CBNGJA14","https:\u002F\u002Fgithub.com\u002Frashidrazak\u002Fopencode-cmd-provider\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Frelease\u002FSKILL.md",[],[]]