[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C2068YGZ7S95EXKDA45ANJ":3,"skill-same:01M7C2068YGZ7S95EXKDA45ANJ":86},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7C2068YGZ7S95EXKDA45ANJ","provider-apis",null,"Use when building or changing a Mercury model-provider road, or choosing its request shapes, streaming, tools, caching or usage reader. Not for account sign-in, choosing a model in the UI or unrelated SDKs.","Whq02\u002FMercuryCLI","Whq02","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F178854749?v=4","01M7C1ZT8JW1WPAQ9DE7GRP4TA","dubs-dev","01M7C1ZT9ND6KTHKCMM50YCP28",31,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: provider-apis\ndescription: Use when building or changing a Mercury model-provider road, or choosing its request shapes, streaming, tools, caching or usage reader. Not for account sign-in, choosing a model in the UI or unrelated SDKs.\nargument-hint: \"[provider road or task]\"\n---\n# Provider APIs\n\nAccount sign-in and account choice are the `\u002Flogins` and `\u002Faccounts` surfaces, not this skill. Start with the symptom and the identity it depends on: account kind, endpoint, selected and served model. Follow `src\u002Fservices\u002Fproviders\u002FcallModelRouter.ts` to the owning implementation; a provider label alone does not identify the wire. Read the changed request, replay, transport or usage owner, not every subsystem.\n\n## Choose the relevant reference\n\nCheckout paths start at the repository; references start at this skill's supplied base. Read only the relevant section.\n\n- Identity, capabilities and prices: [models](references\u002Fmodels.md).\n- Messages: [Anthropic](references\u002Fanthropic-messages.md).\n- Responses, including carrier\u002Faccount variants: [Responses](references\u002Fopenai-responses.md).\n- Shared runtime: [chat index](references\u002Fchat-completions.md). Family\u002Faccount detail: [native providers](references\u002Fchat-native.md), [hosted providers](references\u002Fchat-hosted.md), [local and rented engines](references\u002Fchat-local.md).\n- Verification: [proof road](references\u002Fproof-road.md). Dated source readings and refresh limits: [vendor index](references\u002Flive-sources.md).\n\n## Invariants\n\n- Keep credential and endpoint together across refresh. Resolve identity through the classifier and pins, not a copied prefix list; an unknown ID is not an Anthropic identity and a failed route never falls through to another provider.\n- The provider decides on usage. A reading is information, never a door that prevents sending. Retry\u002Fresume refreshes the sign-in and reading as needed, then asks the provider; a served request clears the remembered refusal. Follow explicit `Retry-After` first; call it a plan window only when the response body identifies that window.\n- Every family must show a meter. Inspect management, billing and admin APIs before declaring one unavailable; separate optional billing credentials from inference credentials. Unknown is not zero.\n- Preserve selected effort, output capability and supported signed\u002Fencrypted replay. No thinking-time guard or silent downgrade. `src\u002Fservices\u002Fproviders\u002FtoolEconomy.ts` restores the recorded roster; `src\u002Futils\u002Fattachments\u002FtoolSchemaDelta.ts` carries bound-tool changes without moving that prefix. Under the local prompt profile (`src\u002Fconstants\u002FlocalPromptProfile.ts`), local models load the core tools in full and defer the rest behind `ToolSearch`.\n- `src\u002Fservices\u002Fproviders\u002FtoolCallGate.ts` answers malformed calls with an error tool result when ID\u002Fname are pairable, otherwise a visible refusal note. Preserve tool\u002Fresult identity, ordered replay and the operator's verbatim turn (`src\u002Futils\u002Fmessages\u002FapiPlan.ts`); do not merge resume text into tool results.\n- A missing terminal event is not success. Keep partial content, fault and measured usage distinct. Read the road's event\u002Ffault union and `src\u002Fservices\u002Fproviders\u002FstreamIdleBudget.ts` before changing settlement.\n- API dispatchers retain `allowH2: false` in `src\u002Futils\u002Fproxy.ts` and `src\u002Futils\u002Fmtls.ts`; this is Mercury policy, not a vendor protocol requirement.\n\nReproduce the defect on the base, then capture the changed route over a loopback fixture with a scratch home. A fixture is not live compatibility; a live model call needs the operator's explicit authorisation. Report observed outcomes and unverified limits, not just valid request JSON.\n","# Provider APIs\n\nAccount sign-in and account choice are the `\u002Flogins` and `\u002Faccounts` surfaces, not this skill. Start with the symptom and the identity it depends on: account kind, endpoint, selected and served model. Follow `src\u002Fservices\u002Fproviders\u002FcallModelRouter.ts` to the owning implementation; a provider label alone does not identify the wire. Read the changed request, replay, transport or usage owner, not every subsystem.\n\n## Choose the relevant reference\n\nCheckout paths start at the repository; references start at this skill's supplied base. Read only the relevant section.\n\n- Identity, capabilities and prices: [models](references\u002Fmodels.md).\n- Messages: [Anthropic](references\u002Fanthropic-messages.md).\n- Responses, including carrier\u002Faccount variants: [Responses](references\u002Fopenai-responses.md).\n- Shared runtime: [chat index](references\u002Fchat-completions.md). Family\u002Faccount detail: [native providers](references\u002Fchat-native.md), [hosted providers](references\u002Fchat-hosted.md), [local and rented engines](references\u002Fchat-local.md).\n- Verification: [proof road](references\u002Fproof-road.md). Dated source readings and refresh limits: [vendor index](references\u002Flive-sources.md).\n\n## Invariants\n\n- Keep credential and endpoint together across refresh. Resolve identity through the classifier and pins, not a copied prefix list; an unknown ID is not an Anthropic identity and a failed route never falls through to another provider.\n- The provider decides on usage. A reading is information, never a door that prevents sending. Retry\u002Fresume refreshes the sign-in and reading as needed, then asks the provider; a served request clears the remembered refusal. Follow explicit `Retry-After` first; call it a plan window only when the response body identifies that window.\n- Every family must show a meter. Inspect management, billing and admin APIs before declaring one unavailable; separate optional billing credentials from inference credentials. Unknown is not zero.\n- Preserve selected effort, output capability and supported signed\u002Fencrypted replay. No thinking-time guard or silent downgrade. `src\u002Fservices\u002Fproviders\u002FtoolEconomy.ts` restores the recorded roster; `src\u002Futils\u002Fattachments\u002FtoolSchemaDelta.ts` carries bound-tool changes without moving that prefix. Under the local prompt profile (`src\u002Fconstants\u002FlocalPromptProfile.ts`), local models load the core tools in full and defer the rest behind `ToolSearch`.\n- `src\u002Fservices\u002Fproviders\u002FtoolCallGate.ts` answers malformed calls with an error tool result when ID\u002Fname are pairable, otherwise a visible refusal note. Preserve tool\u002Fresult identity, ordered replay and the operator's verbatim turn (`src\u002Futils\u002Fmessages\u002FapiPlan.ts`); do not merge resume text into tool results.\n- A missing terminal event is not success. Keep partial content, fault and measured usage distinct. Read the road's event\u002Ffault union and `src\u002Fservices\u002Fproviders\u002FstreamIdleBudget.ts` before changing settlement.\n- API dispatchers retain `allowH2: false` in `src\u002Futils\u002Fproxy.ts` and `src\u002Futils\u002Fmtls.ts`; this is Mercury policy, not a vendor protocol requirement.\n\nReproduce the defect on the base, then capture the changed route over a loopback fixture with a scratch home. A fixture is not live compatibility; a live model call needs the operator's explicit authorisation. Report observed outcomes and unverified limits, not just valid request JSON.\n",{"name":5,"description":7,"argument-hint":24},"[provider road or task]","main","ef6b9952a5d9ef3fc31d163f465054247ffb7776","mercury-skills\u002Fprovider-apis",3,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI","https:\u002F\u002Fmercury-cli.ai","https:\u002F\u002Fgithub.com\u002FWhq02","https:\u002F\u002Fmercury-cli.ai ","2026-11-12 16:51:52",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Whq02\u002FMercuryCLI --skill provider-apis",{"tool":40,"command":41},"bunx","bunx skills add Whq02\u002FMercuryCLI --skill provider-apis",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Whq02\u002FMercuryCLI --skill provider-apis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002FSKILL.md",true,[48,54,58,62,66,70,74,78,82],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fanthropic-messages.md","REFERENCE","参考文档",3463,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Fanthropic-messages.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fchat-completions.md",2048,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Fchat-completions.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fchat-hosted.md",4681,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Fchat-hosted.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fchat-local.md",2633,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Fchat-local.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fchat-native.md",6015,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Fchat-native.md",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Flive-sources.md",12318,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Flive-sources.md",{"path":75,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fmodels.md",1960,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Fmodels.md",{"path":79,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fopenai-responses.md",3813,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Fopenai-responses.md",{"path":83,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fproof-road.md",3149,"https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fmercury-skills\u002Fprovider-apis\u002Freferences\u002Fproof-road.md",[87,94,101,106,113,119],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7C21E71TW6RBT8GC1ZV8MT2","skill-forge","Use when writing or fixing a Mercury SKILL.md and its discovery rules. Not for \u002Fskillify session capture or extension packaging.","https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fskill-forge\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7C21B82ENRJDPS7T80XH3NR","research","Use when researching papers or a document corpus and producing a cited report with document deliverables. Not for a quick factual lookup or editing application code.","https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fresearch\u002FSKILL.md",[],[],{"skillNo":102,"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":103,"categories":104,"keywords":105,"publishedAt":19},"01M7C21818X54PYH5J53YWJVCD","https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fprovider-apis\u002FSKILL.md",[],[],{"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":19},"01M7C2152JY4JJMWQZDEM1KSCK","mcp-smithy","Use when building an MCP server for a Mercury session and proving its tool contract. Not for configuring an existing server.","https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fmcp-smithy\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"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":116,"categories":117,"keywords":118,"publishedAt":19},"01M7C213CRHRBQ8YZ1MNFFMQDP","image-generation","https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fimage-generation\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M7C2117WTY1V5XGK6VEQH55P","extension-maker","Use when building or repairing a Mercury extension or catalogue. Not for installing or approving one for the operator.","https:\u002F\u002Fgithub.com\u002FWhq02\u002FMercuryCLI\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fbundled\u002Fextension-maker\u002FSKILL.md",[],[]]