API7 Docs

AI Agent Skills for Apache APISIX

Manage Apache APISIX with AI coding agents like Claude Code and Cursor. Browse open-source agent skills that configure your API gateway from natural language.

Agent skills for Apache APISIX are open-source SKILL.md knowledge packs that teach an AI coding agent — such as Claude Code, Cursor, or GitHub Copilot — how to configure and operate a live APISIX gateway. Each skill covers one plugin, recipe, or operator workflow, with the exact commands to run. Install them once, then describe the outcome you want:

"Add key-auth to my /orders route and rate-limit it to 100 requests per minute."

The agent loads the matching skills and runs the real a6 CLI commands against your gateway's Admin API.

The skills below use a6, an open-source (Apache-2.0) command-line tool for Apache APISIX maintained in the api7/a6 repository. a6 wraps the APISIX Admin API; it is not part of an official Apache Software Foundation release. Agents can call the Admin API directly — these skills simply make that ergonomic.

The SKILL.md format is understood by any agent that supports the Agent Skills convention — including Claude Code, Cursor, GitHub Copilot, Windsurf, and OpenCode.

Browse the skills

Personas

  • a6-persona-developer — v1.0.0, APISIX >=3.11.0. Persona skill for API developers building and testing APIs on APISIX using the a6 CLI. Provides decision frameworks for API design, route configuration, plugin selection, testing workflows, local development setup, and CI/CD integration patterns.
  • a6-persona-operator — v1.0.0, APISIX >=3.0.0. Persona skill for platform operators and DevOps engineers managing APISIX instances using the a6 CLI. Provides decision frameworks for day-to-day operations including deployment, monitoring, troubleshooting, scaling, security hardening, and disaster recovery workflows.

Plugins

  • a6-plugin-ai-content-moderation — v1.0.0, APISIX >=3.9.0. Skill for configuring APISIX AWS and Aliyun AI content moderation via the a6 CLI. Covers request and response checks, streaming, deny_code, and ai-proxy.
  • a6-plugin-ai-prompt-decorator — v1.0.0, APISIX >=3.9.0. Skill for configuring the Apache APISIX ai-prompt-decorator plugin via the a6 CLI. Covers prepending and appending system/user/assistant messages to LLM requests, setting conversation context, enforcing safety guidelines, and combining with ai-proxy and ai-prompt-template in a pipeline.
  • a6-plugin-ai-prompt-template — v1.0.0, APISIX >=3.9.0. Skill for configuring the Apache APISIX ai-prompt-template plugin via the a6 CLI. Covers defining reusable prompt templates with variable placeholders, enforcing prompt structure, accepting user inputs for specific fields only, and combining with ai-proxy for a complete AI gateway pipeline.
  • a6-plugin-ai-proxy — v1.0.0, APISIX >=3.9.0. Skill for configuring the Apache APISIX ai-proxy plugin via the a6 CLI. Covers proxying requests to LLM providers (OpenAI, Azure OpenAI, DeepSeek, Anthropic, Gemini, Vertex AI, Amazon Bedrock, and more), authentication per provider, model configuration, streaming, logging, and load balancing with ai-proxy-multi.
  • a6-plugin-basic-auth — v1.0.0, APISIX >=3.11.0. Skill for configuring the Apache APISIX basic-auth plugin via the a6 CLI. Covers HTTP Basic Authentication setup on routes, consumer credential binding with username/password, hide_credentials, anonymous consumer fallback, and common operational patterns.
  • a6-plugin-consumer-restriction — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX consumer-restriction plugin via the a6 CLI. Covers restricting access by consumer name, consumer group ID, service ID, or route ID using whitelist/blacklist modes and per-consumer HTTP method restrictions.
  • a6-plugin-cors — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX cors plugin via the a6 CLI. Covers Cross-Origin Resource Sharing setup on routes, allow_origins, allow_methods, allow_headers, credentials handling, regex origin matching, preflight caching, and common operational patterns.
  • a6-plugin-datadog — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX datadog plugin via the a6 CLI. Covers pushing custom metrics to Datadog via DogStatsD, metric tags, batching, plugin metadata for global DogStatsD server config, and Datadog Agent integration.
  • a6-plugin-ext-plugin — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX external plugin system (ext-plugin-pre-req, ext-plugin-post-req, ext-plugin-post-resp) via the a6 CLI. Covers Plugin Runner architecture, configuration for Go/Java/Python runners, RPC protocol, graceful degradation, and performance considerations.
  • a6-plugin-fault-injection — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX fault-injection plugin via the a6 CLI. Covers injecting delays and HTTP aborts for chaos engineering, percentage-based sampling, conditional injection via vars expressions, custom response headers and body with Nginx variable interpolation.
  • a6-plugin-grpc-transcode — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX grpc-transcode plugin via the a6 CLI. Covers converting RESTful HTTP requests to gRPC, proto file management, pb_option settings for data type conversion, error detail decoding, and common operational patterns.
  • a6-plugin-hmac-auth — v1.0.0, APISIX >=3.11.0. Skill for configuring the Apache APISIX hmac-auth plugin via the a6 CLI. Covers HMAC signature authentication, consumer credential binding with key_id/secret_key, allowed algorithms, clock skew handling, request body validation, signed headers, and common operational patterns.
  • a6-plugin-http-logger — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX http-logger plugin via the a6 CLI. Covers pushing access logs to HTTP/HTTPS endpoints in batches, custom log formats with NGINX variables, conditional request/response body logging, batch processing tuning, and integration with external logging systems.
  • a6-plugin-ip-restriction — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX ip-restriction plugin via the a6 CLI. Covers IP whitelist/blacklist setup on routes, CIDR range support, IPv4/IPv6, real client IP extraction behind proxies, custom error messages, and common operational patterns.
  • a6-plugin-jwt-auth — v1.0.0, APISIX >=3.11.0. Skill for configuring the Apache APISIX jwt-auth plugin via the a6 CLI. Covers JWT token authentication, HS256/RS256 algorithm selection, consumer credential binding, token lookup from header/query/cookie, claims handling, clock skew, secret management, and common operational patterns.
  • a6-plugin-kafka-logger — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX kafka-logger plugin via the a6 CLI. Covers pushing access logs to Apache Kafka topics, broker configuration, SASL authentication (PLAIN, SCRAM-SHA-256/512), custom log formats, producer tuning, and batch processing.
  • a6-plugin-key-auth — v1.0.0, APISIX >=3.11.0. Skill for configuring the Apache APISIX key-auth plugin via the a6 CLI. Covers API key authentication setup on routes, consumer credential binding, key lookup from header/query/cookie, hide_credentials, anonymous consumer fallback, and common operational patterns.
  • a6-plugin-limit-count — v1.0.0, APISIX >=3.0.0. Skill for configuring the APISIX limit-count plugin via the a6 CLI. Covers fixed and sliding windows, Redis Sentinel, delayed sync, and shared quotas.
  • a6-plugin-limit-req — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX limit-req plugin via the a6 CLI. Covers leaky-bucket rate limiting, rate/burst configuration, nodelay behavior, key types, Redis policies for distributed limiting, traffic smoothing, and common operational patterns including combination with limit-count.
  • a6-plugin-openid-connect — v1.0.0, APISIX >=3.0.0. Skill for configuring the APISIX openid-connect plugin via the a6 CLI. Covers authorization-code and bearer flows, PAR, DPoP, and session validation.
  • a6-plugin-prometheus — v1.0.0, APISIX >=3.0.0. Skill for configuring APISIX prometheus via the a6 CLI. Covers HTTP, LLM, and AI cache metrics, latency type labels, and Grafana dashboards.
  • a6-plugin-proxy-rewrite — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX proxy-rewrite plugin via the a6 CLI. Covers rewriting request URI, host, method, headers, and scheme before forwarding to upstream. Includes regex URI rewriting, header manipulation, and common operational patterns.
  • a6-plugin-redirect — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX redirect plugin via the a6 CLI. Covers URI redirects, HTTP-to-HTTPS redirection, regex-based URI rewriting, query string handling, and common operational patterns.
  • a6-plugin-response-rewrite — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX response-rewrite plugin via the a6 CLI. Covers rewriting response status codes, headers, and body before returning to clients. Includes conditional execution with vars, regex body filters, base64 body decoding, and common operational patterns.
  • a6-plugin-serverless — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX serverless-pre-function and serverless-post-function plugins via the a6 CLI. Covers inline Lua function execution in configurable request phases, function signature, closure patterns, available Lua APIs, and execution ordering.
  • a6-plugin-skywalking — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX skywalking plugin via the a6 CLI. Covers distributed tracing with Apache SkyWalking OAP, sampling configuration, service topology, and integration with skywalking-logger for trace-log correlation.
  • a6-plugin-traffic-split — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX traffic-split plugin via the a6 CLI. Covers weighted traffic splitting between upstreams with conditional match rules. Includes canary release, blue-green deployment, A/B testing patterns, and common operational workflows.
  • a6-plugin-wolf-rbac — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX wolf-rbac plugin via the a6 CLI. Covers integration with the Wolf RBAC server for role-based access control, token management, login/user-info/change-password API endpoints, permission checking flow, and multi-application setup.
  • a6-plugin-zipkin — v1.0.0, APISIX >=3.0.0. Skill for configuring the Apache APISIX zipkin plugin via the a6 CLI. Covers distributed tracing with Zipkin, Jaeger, or any Zipkin-compatible collector, B3 propagation headers, sampling, span versions, and trace variable logging.

Recipes

  • a6-recipe-api-versioning — v1.0.0, APISIX >=3.0.0. Recipe skill for implementing API versioning strategies using the a6 CLI. Covers URI path versioning with proxy-rewrite, header-based versioning with traffic-split, query parameter versioning, gradual version migration with weighted traffic splitting, and version deprecation with redirect.
  • a6-recipe-blue-green — v1.0.0, APISIX >=3.0.0. Recipe skill for implementing blue-green deployments using the a6 CLI. Covers creating two upstream environments, switching traffic instantly via route updates or traffic-split plugin, rollback procedures, and config sync workflows for declarative blue-green management.
  • a6-recipe-canary — v1.0.0, APISIX >=3.0.0. Recipe skill for implementing canary releases using the a6 CLI. Covers gradual traffic shifting with the traffic-split plugin, header-based canary routing, weight adjustment progression, monitoring checkpoints, and full promotion or rollback workflows.
  • a6-recipe-circuit-breaker — v1.0.0, APISIX >=3.0.0. Recipe skill for implementing circuit breaker patterns using the a6 CLI. Covers the api-breaker plugin for automatic upstream circuit breaking, configuring unhealthy thresholds, healthy recovery, response code classification, and integration with health checks.
  • a6-recipe-graphql-proxy — v1.0.0, APISIX >=3.0.0. Recipe skill for implementing GraphQL proxying patterns using the a6 CLI. Covers operation-based routing with built-in GraphQL variables, per-operation rate limiting, REST-to-GraphQL conversion with the degraphql plugin, and security patterns for GraphQL APIs.
  • a6-recipe-health-check — v1.0.0, APISIX >=3.0.0. Recipe skill for configuring upstream health checks using the a6 CLI. Covers active health checks (HTTP probing), passive health checks (response analysis), combining both, configuring healthy/unhealthy thresholds, and monitoring upstream node status.
  • a6-recipe-mtls — v1.0.0, APISIX >=3.0.0. Recipe skill for configuring mutual TLS (mTLS) using the a6 CLI. Covers SSL certificate management, upstream mTLS to backend services, client certificate verification, and end-to-end mTLS setup from client through APISIX to upstream.
  • a6-recipe-multi-tenant — v1.0.0, APISIX >=3.11.0. Recipe skill for implementing tenant-aware policies on a shared APISIX gateway using the a6 CLI. Covers shared policies through Consumer Groups, host/path/authenticated-consumer routing, per-consumer rate limiting, context forwarding with proxy-rewrite, and declarative configuration workflows.

Core

  • a6-shared — v1.0.0, APISIX >=3.0.0. Core skill for working with the a6 CLI — the Apache APISIX command-line tool. Provides project conventions, command patterns, architecture overview, and development workflow. Load this skill when working on a6 source code, adding new commands, writing tests, or modifying any a6 component.

Install

Install every skill with one command — it downloads the packs into ~/.claude/skills for Claude Code:

curl -fsSL https://raw.githubusercontent.com/api7/a6/main/install.sh | sh

Then ask your agent to configure Apache APISIX in natural language — no slash command to memorize.

Other agents

The same skills work with any agent that reads Markdown skills. Install them into a different directory with --dir (or the SKILLS_DIR environment variable) — for example, a project-local Cursor rules directory:

curl -fsSL https://raw.githubusercontent.com/api7/a6/main/install.sh | sh -s -- --dir ./.cursor/rules

Prefer to install by hand? Clone api7/a6 and copy skills/**/SKILL.md into your agent's skills directory.

Prerequisites

  • The a6 CLI installed and on your PATH (go install github.com/api7/a6/cmd/a6@latest)
  • A reachable Apache APISIX 3.x instance with Admin API access
  • An Admin API key

Example: end to end

A single request like "add key-auth to /orders and rate-limit it to 100 rpm" loads the a6-plugin-key-auth and a6-plugin-limit-count skills. The agent generates the route configuration and applies it with the file-based a6 command:

# route.yaml
uri: /orders
upstream_id: orders-upstream
plugins:
  key-auth: {}
  limit-count:
    count: 100
    time_window: 60
    key: remote_addr
    rejected_code: 429
a6 route update orders -f route.yaml

Frequently asked questions

Learn more