github avatar

Typespec Create Api Plugin

The typespec-create-api-plugin skill generates complete TypeSpec API plugin files configured for Microsoft 365 Copilot, including REST operations, authentication schemes, and Adaptive Card responses. It serves developers who need to integrate external REST APIs with Microsoft 365 Copilot by automating the creation of TypeSpec agent definitions and action files with proper decorators and models. The skill solves the problem of manually structuring complex TypeSpec configurations by providing templated files that support multiple authentication options and response formatting capabilities.

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

Install

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

Installs into .claude/skills of the current project.

Files

Create TypeSpec API Plugin

Create a complete TypeSpec API plugin for Microsoft 365 Copilot that integrates with external REST APIs.

Requirements

Generate TypeSpec files with:

main.tsp - Agent Definition

import "@typespec/http";
import "@typespec/openapi3";
import "@microsoft/typespec-m365-copilot";
import "./actions.tsp";

using TypeSpec.Http;
using TypeSpec.M365.Copilot.Agents;
using TypeSpec.M365.Copilot.Actions;

@agent({
  name: "[Agent Name]",
  description: "[Description]"
})
@instructions("""
  [Instructions for using the API operations]
""")
namespace [AgentName] {
  // Reference operations from actions.tsp
  op operation1 is [APINamespace].operationName;
}

actions.tsp - API Operations

import "@typespec/http";
import "@microsoft/typespec-m365-copilot";

using TypeSpec.Http;
using TypeSpec.M365.Copilot.Actions;

Sponsors

Details

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

More from github/awesome-copilot

All 318
1affaan-m avatarbackend-patternsaffaan-m/eccBackend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.7.2Kskills.sh installs
2jeffallan avatarapi-designerjeffallan/claude-skillsUse when designing REST or GraphQL APIs, creating OpenAPI specifications, or planning API architecture. Invoke for resource modeling, versioning strategies, pag6.9Kskills.sh installs
3affaan-m avatardatabase-migrationsaffaan-m/eccDatabase migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prism6.4Kskills.sh installs
4jeffallan avatardatabase-optimizerjeffallan/claude-skillsOptimizes database queries and improves performance across PostgreSQL and MySQL systems. Use when investigating slow queries, analyzing execution plans, or opti6.3Kskills.sh installs
5aws avataraws-lambda-microvmsaws/agent-toolkit-for-awsBuilds, runs, debugs, and operates applications on AWS Lambda MicroVMs — Firecracker-isolated, snapshot-resumable serverless compute environments running inside6.1Kskills.sh installs
6qianwen-ai avatarqianwen-ops-authqianwen-ai/qianwen-ai[QianWen] Configure authentication (API keys, endpoints). TRIGGER when: setting up QIANWEN_API_KEY, troubleshooting 401/auth errors, when another skill reports 5.8Kskills.sh installs