AI-Gateway: Skill for Claude Code

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

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

A guide to writing Terraform configuration for Azure API Management, Microsoft’s service for publishing and controlling APIs. It covers APIM instances, APIs, operations, backends, subscriptions, products, policies, logging, diagnostics, and related infrastructure.

In plain words
What is it for?
Use it when creating, changing, or understanding Terraform files for Azure API Management and its supporting Azure resources.
Why use it?
It helps you define and manage API infrastructure as code using Terraform, without having to determine the resource names, relationships, and configuration patterns yourself.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/azure-samples/ai-gateway/apim-terraform/github.svg)](https://agentmods.dev/skills/azure-samples/ai-gateway/apim-terraform)
Your own site
<a href="https://agentmods.dev/skills/azure-samples/ai-gateway/apim-terraform"><img src="https://agentmods.dev/badge/skills/azure-samples/ai-gateway/apim-terraform/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-terraform

Your own site · 80×15
<a href="https://agentmods.dev/skills/azure-samples/ai-gateway/apim-terraform"><img src="https://agentmods.dev/badge/skills/azure-samples/ai-gateway/apim-terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,883 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.00087 $0.02883
Opus 5 $0.00044 $0.01442
Sonnet 5 $0.00017 $0.00577
Haiku 4.5 $0.00009 $0.00288

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

Security

Grade A, and why

apim-terraform 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 10d 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-terraform/SKILL.md · 401 lines

How it starts

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

APIM Terraform Skill

Guide for creating Terraform files for Azure API Management and related Azure services.

Quick Start

Minimum Viable APIM Deployment

terraform {
  required_version = ">=1.0"
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "~>4.0"
    }
  }
}

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "rg" {
  name     = "example-resources"
  location = "westeurope"
}

resource "azurerm_api_management" "apim" {
  name                = "example-apim"
  location            = azurerm_resource_group.rg.location
  resource_group_name = azurerm_resource_group.rg.name
  publisher_name      = "My Company"
  publisher_email     = "[email protected]"
  sku_name            = "Developer_1"
}

Resource Types

Core APIM Resources

Resource Description
azurerm_api_management APIM service instance
azurerm_api_management_api API definition
azurerm_api_management_api_operation API operation
azurerm_api_management_backend Backend service
azurerm_api_management_subscription Subscription for API access
azurerm_api_management_product Product grouping APIs
azurerm_api_management_product_api Link product to API

Policy Resources

Resource Description
azurerm_api_management_policy Global policy
azurerm_api_management_api_policy API-level policy
azurerm_api_management_api_operation_policy Operation-level policy
azurerm_api_management_product_policy Product-level policy
azurerm_api_management_policy_fragment Reusable policy fragment

Monitoring Resources

Resource Description
azurerm_api_management_logger Logger (App Insights/Event Hub)
azurerm_api_management_diagnostic Service-level diagnostics
azurerm_api_management_api_diagnostic API-level diagnostics

Configuration Resources

Read the full file on GitHub · 401 lines

Files

What ships with it

2 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. 10d ago First seen · 401 lines · 87 tokens per session scan A 023fc3003efb

Subscribe to this mod's changes

apim-terraform is a skill published in the GitHub repository Azure-Samples/AI-Gateway (983 stars, last pushed 1mo ago), licensed MIT. It adds 87 tokens to every session and 2,883 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