github avatar

Typespec Api Operations

The typespec-api-operations skill enables developers to add RESTful operations (GET, POST, PATCH, DELETE) to TypeSpec API plugins for Microsoft 365 Copilot, complete with routing, parameters, and adaptive card visualizations. It serves developers building Copilot extensions who need to define standard API operations with proper request/response handling and user confirmation dialogs. The skill solves the problem of quickly scaffolding common API patterns without writing boilerplate code from scratch.

skills.sh installs
8.8K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill typespec-api-operations --agent claude-code

Installs into .claude/skills of the current project.

Files

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

/**
 * List all items.
 */
@route("/items")
@get op listItems(): Item[];

GET with Query Parameter - Filter Results

/**
 * 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

/**
 * 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

/**
 * List items with adaptive card visualization.
 */
@route("/items")
@card(#{
  dataPath: "$",
  title: "$.title",
  file: "item-card.json"
})
@get op listItems(): Item[];

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Backend & APIs, Git & Pull Requests, AI & Agent Building

More from github/awesome-copilot

All 318
1github avatarswift-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Swift using the official MCP Swift SDK package.8.8Kskills.sh installs
2github avatarkotlin-mcp-server-generatorgithub/awesome-copilotGenerate a complete Kotlin MCP server project with proper structure, dependencies, and implementation using the official io.modelcontextprotocol:kotlin-sdk libr8.7Kskills.sh installs
3aahl avataredge-ttsaahl/skillsText-to-speech conversion using `uvx edge-tts` for generating audio from text. Use when (1) User requests audio/voice output with the "tts" trigger or keyword. 8.6Kskills.sh installs
4github avatarruby-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Ruby using the official MCP Ruby SDK gem.8.6Kskills.sh installs
5google avatargoogle-analytics-data-api-basicsgoogle/skillsManages Google Analytics reporting data, enables the Analytics Data API via the Cloud CLI, and creates reports using the Google Analytics Data API (v1beta). Use8.4Kskills.sh installs
6github avatarcsharp-mcp-server-generatorgithub/awesome-copilotGenerate a complete MCP server project in C# with tools, prompts, and proper configuration8.4Kskills.sh installs