Apim Policy Authoring

Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.

206 stars 54 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add thomast1906/github-copilot-agent-skills --skill apim-policy-authoring
Manual install
git clone --depth 1 https://github.com/thomast1906/github-copilot-agent-skills.git /tmp/github-copilot-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/github-copilot-agent-skills/.github/skills/apim-policy-authoring ~/.claude/skills/apim-policy-authoring

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# APIM Policy Authoring Skill

Generates production-ready Azure API Management policy XML with authentication, rate limiting, CORS, error handling, correlation IDs, and security headers.

## When to Use This Skill

Activate this skill when users need:

- **Authentication policies**: OAuth 2.0, JWT validation, hybrid auth with subscription keys
- **Rate limiting**: Per-user or per-subscription throttling
- **CORS configuration**: Cross-origin access for browser-based clients
- **Error handling**: Standardized error responses with correlation IDs
- **Request/response transformation**: Header manipulation, body transformations
- **Security headers**: X-Content-Type-Options, X-Frame-Options, etc.

---

## Policy Templates

**See [references/POLICY_TEMPLATES.md](references/POLICY_TEMPLATES.md) for complete production-ready XML templates:**

1. **Hybrid Authentication** - OAuth + subscription key fallback for public APIs
2. **OAuth Only** - Internal corporate APIs with Entra ID
3. **Subscription Key Only** - Simple public read-only APIs

---

## Policy Execution Flow

```
INBOUND → BACKEND → OUTBOUND → ON-ERROR

1. INBOUND: Authentication, rate limiting, CORS, headers
2. BACKEND: Forwarding, retry, circuit breaker
3. OUTBOUND: Response transform, security headers, cleanup
4. ON-ERROR: Structured errors, logging, correlation ID
```

---

## Important: MCP Tools (ALWAYS Use Before Writing Policies)

### 1. Call Best Practices FIRST

**Before ANY policy generation**, call:
Read the full skill on GitHub

Details

Skill name
apim-policy-authoring
Path
.github/skills/apim-policy-authoring/SKILL.md
Repo updated
22 October 2026

FAQ

What does the Apim Policy Authoring skill do?

Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.

How do I install the Apim Policy Authoring skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add thomast1906/github-copilot-agent-skills --skill apim-policy-authoring. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Apim Policy Authoring popular?

It lives in thomast1906/github-copilot-agent-skills, which has 206 GitHub stars and 54 forks.

Related skills

API Security Review

206

thomast1906/github-copilot-agent-skills

Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.

Security54

Apiops Deployment

206

thomast1906/github-copilot-agent-skills

Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep/Terraform), CI/CD pipelines (GitHub Actions/Azure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.

DevOps & Cloud54

Apm Package Author

206

thomast1906/github-copilot-agent-skills

Create, maintain, and troubleshoot APM (Agent Package Manager) manifests for distributing GitHub Copilot skills, agents, and MCP servers. USE FOR: creating apm.yml root manifests; creating packages/* sub-manifests; bundling MCP server config into a package; installing packages from a GitHub repo; troubleshooting APM install errors (missing .vscode/mcp.json, Codex CLI warnings, cached installs). DO NOT USE FOR: general GitHub Copilot customization questions; creating SKILL.md files (use skill-creator); writing MCP server code.

Git & Code Review54

Architecture Design

206

thomast1906/github-copilot-agent-skills

Design Azure cloud architectures from requirements and generate High-Level Design (HLD) documentation with service selection, patterns, cost estimates, and WAF alignment. Use this when asked to design or architect Azure solutions.

Software Development54

Ts2moonbit Migration

423

mizchi/skills

Migrate a TypeScript codebase to MoonBit on the `js` target while keeping the same JavaScript API contract, using the mizchi/js split binding modules, mizchi/x (cross-target async backend: process/fs/http/ws), and mizchi/npm_typed (npm bindings). Use when porting a TS library, Node service, npm package, or Cloudflare Worker to MoonBit and the existing JS/TS consumers, `.d.ts`, and tests must keep working unchanged.

Software Development

Azure Apim Architecture

206

thomast1906/github-copilot-agent-skills

Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.

Software Development54

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.