Index of every page on this site: llms.txt
All skills
soderlind avatar

/add-apim-api

@ba09e3b
Run it yourself

Scaffold a new API in Azure API Management. Use when user asks to add, create, or expose a new API through APIM, or needs to wire up a backend service to the gateway.

Use this Skill: https://skilld.dev/gh/soderlind/skills/add-apim-api

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈45 tokens for metadata: the name and description. ≈686 when used: this file. ≈2.4k more on demand in 1 file.

Description uses 2.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈181 characters, or 2.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Add APIM API

Scaffold a new API in Azure API Management with Bicep infrastructure.

Determinism checklist

Before declaring this skill run complete:

  1. Scope fixed: inputs and target files are explicit.
  2. Read-first: inspect current state before edits.
  3. Plan-first: preview actions before writes when tooling supports it.
  4. Confirm-before-write: get user confirmation before destructive or broad writes.
  5. One step, one done-test: each step has a checkable completion criterion.
  6. Verify outcomes: run the smallest available validation commands.
  7. Report skips: list what was skipped and why.
  8. Stop on blockers: capture exact failing command and error summary.

Steps

1. Gather requirements

Collect from user or infer from context:

  • API name — display name and kebab-case identifier (e.g., speeches-api)
  • Backend URL — the upstream service endpoint
  • Path prefix — gateway path (e.g., /speeches)
  • Access — open (no subscription) or protected (subscription key required)
  • Operations — method, URL template, parameters per operation

If protected, determine whether backend needs an API key from Key Vault.

Done when: all five fields known.

2. Scaffold files

Create in order:

  1. infra/modules/api-management/apis/{api-name}.bicep — API definition with CORS, rate limiting, caching policies
  2. infra/modules/api-management/operations/{api-name}-operations.bicep — operation definitions following naming conventions below

Follow patterns in references/bicep-patterns.md for Bicep structure.

If backend API key needed:

  • infra/modules/api-management/named-values/{api-name}-key.bicep — Key Vault reference
  • infra/modules/api-management/policies/{api-name}-policy.bicep — policy injecting the key

Done when: all files created and compile with az bicep build.

3. Wire up

Update existing modules:

  1. infra/modules/api-management/api-management.bicep — add module references
  2. infra/modules/api-management/products/{product-name}.bicep — associate API with product (if applicable)
  3. infra/main.bicepparam — add Front Door route (if new path prefix)

Done when: az bicep build --file infra/main.bicep succeeds.


Operation naming conventions

Verb Use Example
list collection listMinistries, listConsultations
get single item getResponse, getCatalog
create new item createSubscription
update modify updateDocument
delete remove deleteComment

Rules:

  • English identifiers, lowerCamelCase
  • list + plural (listMinistries), get + singular (getResponse)
  • Never fetch or retrieve — use list or get

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    The skill scaffolds Azure API Management (APIM) infrastructure using Bicep templates and performs local validation using the Azure CLI. It follows security best practices by utilizing Azure Key Vault for secret management and including rate-limiting and CORS policies in its templates.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at ba09e3b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 4 months ago
version
1.1.0
Other metadata
compatibility
Azure CLI with the Bicep extension, and an existing APIM Bicep infrastructure project. No live Azure deployment is performed.

README badge

README badge for soderlind/skills/add-apim-api