mcpbeat Sign in

Openai Typespec Update Agent Skill

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 (`^`).

3k tokens
context cost
the whole folder, loaded on every use
7
files
instructions only
0
copies elsewhere
how many repositories repackaged it
3087
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Azure/azure-rest-api-specs --skill openai-typespec-update

What comes with it

6 364 bytes besides the instruction
eval.yaml
evals/eval.yaml
evals/trigger.eval.yaml
tasks/anti-trigger.yaml
tasks/basic-usage.yaml
tasks/warn-on-caret.yaml

The instruction itself

6 sections, as written by the author

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.

Repo-Specific Context

  • The dependency is managed from the repo-root package.json.
  • OpenAI TypeSpec definitions are imported from tspconfig.yaml files,

such as:

  • @azure-tools/openai-typespec/models/...
  • @azure-tools/openai-typespec/views/client-emitters/...
  • In this environment, npm may be configured with min-release-age=7 in

the global npm config at C:\nvm4w\nodejs\etc\npmrc. This blocks

same-day package versions unless the lock file already pins them.

Required Update Rule

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.

Steps

  • Inspect the current pin in the repo-root package.json.
  • Update with an exact install using `npm i

@azure-tools/openai-typespec --save-exact (or append @<version>` if

the user specified a version).

  • If npm fails with an age-gate error like `No matching version found

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.

  • For a targeted install of a known-published version blocked only by

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
  • Check the resulting version spec in package.json.
  • If the dependency value contains a caret (^), warn the user that

the package is not pinned exactly and should be changed to an exact

version.

  • Keep package files aligned.
  • Update package.json and package-lock.json together.
  • Do not hand-edit package-lock.json.
  • Review affected imports in relevant tspconfig.yaml files when

the package update is meant to refresh models or views used by Azure

AI Foundry specs.

Examples

  • "Update the OpenAI TypeSpec definitions to the latest version."
  • "Bump @azure-tools/openai-typespec and make sure it is pinned

exactly."

  • "Refresh the OpenAI TypeSpec package for Foundry."
  • "Check whether our @azure-tools/openai-typespec dependency uses a

caret."

Warnings

  • If the dependency spec is ^<version>, explicitly warn the user that

caret ranges are not allowed for this package update flow.

  • If the request is to modify .tsp API shapes rather than update the

package dependency, use the azure-typespec-author skill instead.

Other skills for the same job

different authors, same section of the catalogue
MCP Builder
by anthropics
vendor ×13

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

30k tokens scripts
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
MCP Builder
by JayZeeDesign
×7

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

37k tokens scripts
Vercel React Native Skills
by vercel-labs
vendor ×6

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

39k tokens
Vercel React Best Practices
by ratacat
×5

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

34k tokens
Next Best Practices
by vercel-labs
vendor ×4

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

20k tokens
Using Git Worktrees
by ZhanlinCui
×4

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

1k tokens

How to use it

Copy the folder

Take azure/openai-typespec-update from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

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.

Install what it needs

The instructions reference npm. Without those the skill loads but fails at the first command.