azure/openai-typespec-update
Update the `@azure-tools/openai-typespec` package that supplies OpenAI TypeSpec definitions and views used by this repo. WHEN: "update OpenAI TypeSpec definitions", "bump openai-typespec", "refresh OpenAI TypeSpec models/views", "upgrade @azure-tools/openai-typespec". DO NOT USE FOR: general `.tsp` authoring, changing service APIs, or SDK generation. ALWAYS install with `npm i @azure-tools/openai-typespec --save-exact` (or `npm i @azure-tools/openai-typespec@<version> --save-exact`). WARN the user if the dependency version spec contains a caret (`^`).
npx skills add https://github.com/Azure/azure-rest-api-specs --skill openai-typespec-update
Use this skill when the task is specifically about updating the
@azure-tools/openai-typespec dependency that provides imported OpenAI
models and views consumed from tspconfig.yaml files in this repo.
package.json.tspconfig.yaml files,such as:
@azure-tools/openai-typespec/models/...@azure-tools/openai-typespec/views/client-emitters/...min-release-age=7 inthe global npm config at C:\nvm4w\nodejs\etc\npmrc. This blocks
same-day package versions unless the lock file already pins them.
Always install the dependency with an exact version:
npm i @azure-tools/openai-typespec --save-exact
If the user asks for a specific version, pin that exact version:
npm i @azure-tools/openai-typespec@<version> --save-exact
Do not use a caret range. Exact pins prevent accidental drift in the
OpenAI definition package.
package.json.@azure-tools/openai-typespec --save-exact (or append @<version>` if
the user specified a version).
for @azure-tools/[email protected] with a date before
2026-06-30, 10:37:15 a.m., check npm config get min-release-age`
and the global npm config path with npm config get globalconfig.
this age gate, rerun the exact install with --min-release-age=0,
for example:
npm i @azure-tools/openai-typespec@<version> --save-exact --min-release-age=0
package.json.^), warn the user thatthe package is not pinned exactly and should be changed to an exact
version.
package.json and package-lock.json together.package-lock.json.tspconfig.yaml files whenthe package update is meant to refresh models or views used by Azure
AI Foundry specs.
@azure-tools/openai-typespec and make sure it is pinnedexactly."
@azure-tools/openai-typespec dependency uses acaret."
^<version>, explicitly warn the user thatcaret ranges are not allowed for this package update flow.
.tsp API shapes rather than update thepackage dependency, use the azure-typespec-author skill instead.
Take azure/openai-typespec-update from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm.
Without those the skill loads but fails at the first command.