typespec-api-operations
Add GET, POST, PATCH, and DELETE operations to a TypeSpec API plugin with proper routing, parameters, and adaptive cards
npx skills add github/awesome-copilot --skill typespec-api-operations --agent copilot
Same command for any agent — swap --agent for claude-code, codex, cursor.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Add TypeSpec API Operations Add RESTful operations to an existing TypeSpec API plugin for Microsoft 365 Copilot. ## Adding GET Operations ### Simple GET - List All Items ```typescript /** * List all items. */ @route("/items") @get op listItems(): Item[]; ``` ### GET with Query Parameter - Filter Results ```typescript /** * List items filtered by criteria. * @param userId Optional user ID to filter items */ @route("/items") @get op listItems(@query userId?: integer): Item[]; ``` ### GET with Path Parameter - Get Single Item ```typescript /** * Get a specific item by ID. * @param id The ID of the item to retrieve */ @route("/items/{id}") @get op getItem(@path id: integer): Item; ``` ### GET with Adaptive Card ```typescript /** * List items with adaptive card visualization. */ @route("/items") @card(#{ dataPath: "$", title: "$.title", file: "item-card.json" }) @get op listItems(): Item[]; ``` **Create the Adaptive Card** (`appPackage/item-card.json`): ```json { "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.5", "body": [ { "type": "Container", "$data": "${$root}", "items": [ { "type": "TextBlock", "text": "**${if(title, title,
- Adding GET Operations
- Simple GET - List All Items
- GET with Query Parameter - Filter Results
- GET with Path Parameter - Get Single Item
- GET with Adaptive Card
- Adding POST Operations
- Simple POST - Create Item
- POST with Confirmation
- Adding PATCH Operations
- Simple PATCH - Update Item
- PATCH with Confirmation
- Adding DELETE Operations
- Simple DELETE
- DELETE with Confirmation
What does the typespec-api-operations skill do?
Add GET, POST, PATCH, and DELETE operations to a TypeSpec API plugin with proper routing, parameters, and adaptive cards
How do I install it?
Run `npx skills add github/awesome-copilot --skill typespec-api-operations --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.