mcpbeat Sign in

Azure Typespec Author Agent Skill

Authors and modifies Azure TypeSpec (.tsp) API specifications. MUST BE USED FOR ALL TypeSpec changes regardless of complexity — even adding a single property or enum value requires this skill's validation workflow. USE FOR: any TypeSpec/tsp change — api versions (add, bump, preview, stable, promote), resources, operations, models, properties, decorators, visibility, constraints, breaking changes, LRO, suppressions, operationId, spread model. Covers both ARM resource-manager (Azure.ResourceManager) and data-plane (Azure.Core) services. DO NOT USE FOR: SDK generation, releasing SDK packages, or single MCP tool calls. INVOKES: azure-sdk-mcp:azsdk_typespec_generate_authoring_plan, azure-sdk-mcp:azsdk_run_typespec_validation.

204k tokens
context cost
the whole folder, loaded on every use
257
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
136
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 azure-typespec-author

What comes with it

217 680 bytes besides the instruction
evaluate/.vally.yaml
evaluate/README.md
evaluate/evals/001001.eval.yaml
evaluate/evals/001002.eval.yaml
evaluate/evals/001003.eval.yaml
evaluate/evals/001004.eval.yaml
evaluate/evals/001005.eval.yaml
evaluate/evals/001006.eval.yaml
evaluate/evals/001007.eval.yaml
evaluate/evals/001008.eval.yaml
evaluate/evals/001009.eval.yaml
evaluate/evals/001010.eval.yaml
evaluate/evals/001011.eval.yaml
evaluate/evals/001013.eval.yaml
evaluate/evals/002001.eval.yaml
evaluate/evals/002002.eval.yaml
evaluate/evals/002003.eval.yaml
evaluate/evals/002004.eval.yaml
evaluate/evals/002005.eval.yaml
evaluate/evals/002006.eval.yaml
evaluate/evals/002007.eval.yaml
evaluate/evals/002008.eval.yaml
evaluate/evals/002009.eval.yaml
evaluate/evals/002010.eval.yaml
evaluate/evals/002011.eval.yaml
evaluate/evals/003001.eval.yaml
evaluate/evals/003002.eval.yaml
evaluate/evals/004001.eval.yaml
evaluate/evals/004002.eval.yaml
evaluate/evals/004003.eval.yaml
evaluate/evals/005001.eval.yaml
evaluate/evals/006001.eval.yaml
evaluate/evals/006002.eval.yaml
evaluate/evals/006003.eval.yaml
evaluate/evals/006004.eval.yaml
evaluate/evals/006005.eval.yaml
evaluate/evals/006006.eval.yaml
evaluate/evals/006007.eval.yaml
evaluate/evals/006008.eval.yaml
evaluate/evals/006009.eval.yaml

The instruction itself

13 sections, as written by the author

Azure TypeSpec Author

This skill authors and modifies Azure TypeSpec (.tsp) API specifications for ARM resource-manager and data-plane services, covering versioning, resources, operations, models, decorators, constraints, and other schema changes that must follow the repository's TypeSpec authoring workflow.

Triggers

USE FOR: any TypeSpec/tsp change — api versions (add, bump, preview, stable, promote), resources, operations, models, properties, decorators, visibility, constraints, breaking changes, LRO, suppressions, operationId, spread model

WHEN: "add TypeSpec API version", "modify .tsp file", "change TypeSpec decorators", "update TypeSpec models or operations", "author Azure TypeSpec"

DO NOT USE FOR: SDK generation, releasing SDK packages, or single MCP tool calls

The azure-typespec-author skill must be invoked immediately in all modes (including plan mode) for any task that involves creating and modifying TypeSpec (.tsp) files except for client.tsp under the specification directory in this repository. This skill MUST be used regardless of how simple the task appears — there are no "simple" TypeSpec edits. Even trivial-seeming changes (adding a single enum value, one property, one operation) require the full workflow because versioning decorators, validation, and compliance checks are mandatory.

This includes but is not limited to:

  • Adding, bumping, or promoting API versions (preview, stable) for ARM or data-plane services
  • Adding or modifying resources, operations, models, properties, or decorators
  • Changing visibility, constraints, breaking changes, LRO patterns, or suppressions
  • Defining or updating operationId, spread models, or extension resources
  • Converting Swagger to TypeSpec (post-conversion edits)

MCP Tools

| Tool | Purpose |

| ------------------------------------------------------ | --------------------------------------------------------- |

| azure-sdk-mcp:azsdk_typespec_generate_authoring_plan | Generate a grounded authoring plan for cases not covered by reference-document-links.md / agentic search. Cases that are covered — e.g. API version evolution (Case 3) — ground via agentic search (web_fetch) instead. |

| azure-sdk-mcp:azsdk_run_typespec_validation | Validate TypeSpec |

Prerequisite: azure-sdk-mcp server must be running.

Rules

  • Do NOT skip this skill for "simple" tasks — there are no simple TypeSpec edits. A single property addition can require @added decorators, version gating, and validation. Always invoke this skill.
  • Always follow the full workflow — even seemingly simple changes (e.g. adding a default value) can require complex versioning decorator changes. Never skip steps.
  • Mandatory for ALL .tsp edits — even a single ? change can be breaking.
  • Minimal, scoped edits — only change what the request requires.
  • Always validate — run every steps in validation after every edit.
  • Always cite references — provide links that justify the approach.
  • Ground API version evolution via agentic search only — call web_fetch on the matching versioning doc in reference-document-links.md; never call azsdk_typespec_generate_authoring_plan for a version add, bump, or promote.
  • Follow the authoring plan exactly — code changes in Step 4 MUST follow the authoring plan generated in Step 3. Do not deviate by referring to existing code patterns in the TypeSpec project; the authoring plan is the single source of truth for what to change.

Steps

> Analyze → Intake → Plan → Apply → Validate → Output reference links

  • [ ] Step 1 — Analyze project
  • [ ] Step 2 — Intake
  • [ ] Step 3 — Build authoring plan
  • [ ] Step 4 — Apply changes
  • [ ] Step 5 — Validate
  • [ ] Step 6 — Output reference links

Step 1: Analyze Project

See analyze-project.md.

Step 2: Intake

See intake.md.

Step 3: Build Authoring Plan

See authoring-plan.md.

Step 4: Apply Changes

Make minimal .tsp edits following the plan from Step 3. Confirm uncertainties with the user first.

Step 5: Validate

See validation.md. Always run 5.1 general validation (5.1.1 TypeSpec validation and 5.1.2 tsp compile .); run 5.2 case-specific validation whenever its case matches.

Output the validation results as a checklist. Report one line per check, each marked ✅ (pass) or ❌ (fail) with a short note. Fix every ❌ and re-run until all checks pass. For API version evolution (Case 3) the checklist must cover every §5.2 Case 3 check — including: the new version's examples/ folder exists; no example folder remains for a version absent from the Versions enum; no decorator references a version absent from the enum; every carried-over feature is present with its decorators rebased onto the new version (not reverted); every excluded feature is fully removed.

Output all referenced document URLs from Step 3. This gives the user direct links to the documentation that informed the changes.

Reference Files

| File | Purpose |

| --------------------------------------------------------------------- | ------------------------------------------- |

| analyze-project.md | Step 1: project analysis |

| intake.md | Step 2: general + case-specific intake |

| authoring-plan.md | Step 3: build authoring plan (Option A + B) |

| agentic-search.md | Procedure: fetch URLs → extract guidance |

| reference-document-links.md | Catalog of external guide URLs |

| validation.md | Step 5: validate → compile → verify |

Examples

  • "Add a new preview API version 2026-01-01-preview for widget resource manager"
  • "Add an ARM resource named Asset with CRUD operations"
  • "Add a new property to the Widget model"
  • "Add a list operation for the WidgetSuite resource using Azure.Core templates"
  • "Add a new preview API version to a data-plane service"
  • "Create a data-plane resource interface with full CRUD and list operations"

Other skills for the same job

different authors, same section of the catalogue
Modal
by christophacham
×3

Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.

17k tokens
Github Workflow Automation
by ComeOnOliver
×3

Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management

9k tokens
Gcloud
by Dicklesworthstone
×2

Google Cloud Platform CLI - manage GCP resources including Compute Engine, Cloud Run, GKE, Cloud Functions, Storage, BigQuery, and more.

2k tokens
Backend Architect
by ComeOnOliver
×2

Expert backend architect specializing in scalable API design, microservices architecture, and distributed systems. Masters REST/GraphQL/gRPC APIs, event-driven architectures, service mesh patterns, and modern backend frameworks. Handles service boundary definition, inter-service communication, resilience patterns, and observability. Use PROACTIVELY when creating new backend services or APIs.

7k tokens
Modal
by ComeOnOliver
×2

Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.

37k tokens
Aspire
by github
vendor ×1

Aspire skill covering the Aspire CLI, AppHost orchestration, service discovery, integrations, MCP server, VS Code extension, Dev Containers, GitHub Codespaces, templates, dashboard, and deployment. Use when the user asks to create, run, debug, configure, deploy, or troubleshoot an Aspire distributed application.

21k tokens
Bigquery Pipeline Audit
by github
vendor ×1

Audits Python + BigQuery pipelines for cost safety, idempotency, and production readiness. Returns a structured report with exact patch locations.

1k tokens
Msstore CLI
by github
vendor ×1

Microsoft Store Developer CLI (msstore) for publishing Windows applications to the Microsoft Store. Use when asked to configure Store credentials, list Store apps, check submission status, publish submissions, manage package flights, set up CI/CD for Store publishing, or integrate with Partner Center. Supports Windows App SDK/WinUI, UWP, .NET MAUI, Flutter, Electron, React Native, and PWA applications.

4k tokens

How to use it

Copy the folder

Take azure/azure-typespec-author 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.