AI-Gateway: Skill for Claude Code

.github/skills/apim-bicep/SKILL.md

apim-bicep is a skill for Claude Code, Codex from Azure-Samples/AI-Gateway. It costs 86 tokens per session (2,536 once invoked), scanned A, original, MIT.

A guide to writing Bicep templates for Azure API Management, Microsoft’s service for publishing and controlling APIs. It covers API gateways, APIs, backends, subscriptions, policies, products, logging, diagnostics, and MCP servers.

In plain words
What is it for?
Use it when building or changing Bicep files for Azure API Management and related Azure resources.
Why use it?
It helps you create or understand the infrastructure code needed to set up and manage these API services without guessing at the required syntax and resource patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is Azure-Samples/AI-Gateway's own configuration. It tells Claude Code and Codex how to work on AI-Gateway itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AI-Gateway configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Azure-Samples/AI-Gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Azure-Samples/AI-Gateway/main/.github/skills/apim-bicep/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Azure-Samples/AI-Gateway

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apim-bicep

README.md
[![agentmods](https://agentmods.dev/badge/skills/azure-samples/ai-gateway/apim-bicep/github.svg)](https://agentmods.dev/skills/azure-samples/ai-gateway/apim-bicep)
Your own site
<a href="https://agentmods.dev/skills/azure-samples/ai-gateway/apim-bicep"><img src="https://agentmods.dev/badge/skills/azure-samples/ai-gateway/apim-bicep/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for apim-bicep

Your own site · 80×15
<a href="https://agentmods.dev/skills/azure-samples/ai-gateway/apim-bicep"><img src="https://agentmods.dev/badge/skills/azure-samples/ai-gateway/apim-bicep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,536 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.02536
Opus 5 $0.00043 $0.01268
Sonnet 5 $0.00017 $0.00507
Haiku 4.5 $0.00009 $0.00254

Measured 9d ago against content hash 0340aa9c7661, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

apim-bicep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/apim-bicep/SKILL.md · 378 lines

How it starts

The opening of the file, as written. The whole thing — 378 lines — stays where its author put it; the contents beside it link to each section on GitHub.

APIM Bicep

This skill provides guidance for creating Azure Bicep templates for API Management and related services.

Quick Start - Basic APIM Instance

@description('The name of the API Management service instance')
param apiManagementServiceName string = 'apim-${uniqueString(resourceGroup().id)}'

@description('The email address of the publisher')
param publisherEmail string

@description('The name of the publisher')
param publisherName string

@description('The pricing tier of this API Management service')
@allowed(['Consumption', 'Developer', 'Basic', 'Basicv2', 'Standard', 'Standardv2', 'Premium'])
param sku string = 'Basicv2'

@description('Location for all resources')
param location string = resourceGroup().location

resource apimService 'Microsoft.ApiManagement/service@2024-06-01-preview' = {
  name: apiManagementServiceName
  location: location
  sku: {
    name: sku
    capacity: 1
  }
  identity: {
    type: 'SystemAssigned'
  }
  properties: {
    publisherEmail: publisherEmail
    publisherName: publisherName
  }
}

output apimId string = apimService.id
output apimName string = apimService.name
output gatewayUrl string = apimService.properties.gatewayUrl
output principalId string = apimService.identity.principalId

Resource Types Reference

Resource Type API Version Purpose
Microsoft.ApiManagement/service 2024-06-01-preview APIM service instance
Microsoft.ApiManagement/service/apis 2024-06-01-preview API definitions
Microsoft.ApiManagement/service/apis/operations 2024-06-01-preview API operations
Microsoft.ApiManagement/service/apis/policies 2024-06-01-preview API-level policies
Microsoft.ApiManagement/service/backends 2024-06-01-preview Backend services
Microsoft.ApiManagement/service/subscriptions 2024-06-01-preview API subscriptions
Microsoft.ApiManagement/service/products 2024-06-01-preview API products
Microsoft.ApiManagement/service/loggers 2024-06-01-preview Logging configuration
Microsoft.ApiManagement/service/apis/diagnostics 2024-06-01-preview API diagnostics

Read the full file on GitHub · 378 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 378 lines · 86 tokens per session scan A 0340aa9c7661

Subscribe to this mod's changes

apim-bicep is a skill published in the GitHub repository Azure-Samples/AI-Gateway (983 stars, last pushed 1mo ago), licensed MIT. It adds 86 tokens to every session and 2,536 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

azure-eventhub-dotnet

Azure Event Hubs SDK for .NET. Use for high-throughput event streaming: sending events (EventHubProducerClient, EventHubBufferedProducerClient), receiving events (EventProcessorClient with checkpointing), partition management, and real-time data ingestion. Triggers: "Event Hubs", "event streaming"…

microsoft/skills · 94 tokens

azure-mgmt-apimanagement-dotnet

Azure Resource Manager SDK for API Management in .NET. Use for MANAGEMENT PLANE operations: creating/managing APIM services, APIs, products, subscriptions, policies, users, groups, gateways, and backends via Azure Resource Manager. Triggers: "API Management", "APIM service", "create APIM", "manage APIs"…

microsoft/skills · 97 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

azure-servicebus-dotnet

Azure Service Bus SDK for .NET. Enterprise messaging with queues, topics, subscriptions, and sessions. Use for reliable message delivery, pub/sub patterns, dead letter handling, and background processing. Triggers: "Service Bus", "ServiceBusClient", "ServiceBusSender", "ServiceBusReceiver", "ServiceBusProcessor"…

microsoft/skills · 86 tokens

python-appservice-deploy

Deploy Python (Flask/Django/FastAPI) code to Azure App Service Linux. WHEN: "Flask App Service", "Django App Service", "FastAPI App Service", "deploy Python to App Service". DO NOT USE FOR: Container Apps, Functions, non-Python, Terraform/Bicep/IaC, full infra — use azure-prepare.

microsoft/skills · 81 tokens

azure-reliability

Assess and improve the reliability posture of PaaS Applications (Azure Functions and Azure App Service). Scans deployed resources for zone redundancy, ZRS storage, health probes, and multi-region failover. Presents a feature-pivoted checklist, then drives staged remediation (CLI or IaC patches) end-to-end with user…

microsoft/skills · 118 tokens