/service-mesh-gateway-skills:apigee-api-management-and-governancefrom service-mesh-gateway-skills
Governs the full API lifecycle in Google Apigee — API proxy design, policy attachment (OAuth2, API key, quota, spike arrest, transformation), developer portal publishing, product-based monetization, and semantic versioning/deprecation of published APIs at organizational scale.
Ships in service-mesh-gateway-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Apigee (and enterprise API-management platforms like it) solves a different problem than a gateway like Kong or Ingress-NGINX: instead of "route this HTTP request to that upstream with a few plugins," it governs an API's entire lifecycle across an organization — who's allowed to design and publish a new proxy, how a backend service is packaged into a sellable/consumable API product, how a breaking change gets versioned without stranding existing consumers, and how usage is measured for monetization or internal chargeback. The operational risk here isn't a misrouted request; it's organizational — an API published without a deprecation plan, a proxy with no quota that lets one consumer degrade a shared backend for everyone, or a versioning scheme that forces every consumer to migrate on the platform team's schedule instead of their own. This skill covers designing Apigee API proxies and policies, structuring API products for governance and monetization, and versioning/deprecating APIs deliberately — not general gateway routing/plugin mechanics, which are covered for the open-source case in kong-api-gateway-configuration.
/v1//v2, header-based, or
proxy-basePath-based) without breaking consumers still on the
previous version, and planning a deprecation timeline.eval, test, prod, or
custom-named environments) provisioned, with environment groups
configured to route hostnames to the correct environment.apigeecli CLI or Apigee's Maven/Gradle deployment plugins (for
CI-driven proxy deployment) — or the Apigee UI for interactive
design, though anything reaching production should go through a
reviewable, version-controlled deployment path rather than
UI-only edits.Design the API proxy as a facade, not a passthrough — separate
the proxy's public-facing contract (ProxyEndpoint) from the
backend's actual implementation (TargetEndpoint), so the backend
can change without breaking the published contract:
<ProxyEndpoint name="default">
<HTTPProxyConnection>
<BasePath>/v1/payments</BasePath>
</HTTPProxyConnection>
<RouteRule name="default">
<TargetEndpoint>payments-backend</TargetEndpoint>
</RouteRule>
</ProxyEndpoint>
Attach verification and quota policies at the proxy's request flow, ordered so authentication happens before quota is checked (an unauthenticated request shouldn't consume a legitimate consumer's quota):
<PreFlow name="PreFlow">
<Request>
<Step><Name>Verify-API-Key</Name></Step>
<Step><Name>Verify-Quota</Name></Step>
<Step><Name>Spike-Arrest</Name></Step>
</Request>
</PreFlow>
<VerifyAPIKey name="Verify-API-Key">
<APIKey ref="request.queryparam.apikey"/>
</VerifyAPIKey>
<Quota name="Verify-Quota">
<Interval>1</Interval>
<TimeUnit>month</TimeUnit>
<Allow countRef="verifyapikey.Verify-API-Key.apiproduct.developer.quota.limit"/>
<Identifier ref="request.queryparam.apikey"/>
</Quota>
<SpikeArrest name="Spike-Arrest">
<Rate>100ps</Rate>
</SpikeArrest>
SpikeArrest protects the backend from short traffic bursts even
within an allowed monthly quota — the two policies solve different
problems (burst smoothing vs. total allowance) and are not
substitutes for each other. See
api-gateway-rate-limiting-and-quota-management
for the deeper strategy distinguishing rate-limiting from quota
management.
Bundle proxy operations into API products, not raw proxies, so governance (which consumer segment gets which quota/scope) is expressed at the product level rather than duplicated per proxy:
# apiproduct definition (conceptual; actual config is via Apigee UI/API)
name: payments-api-partner-tier
proxies: [payments-api-v1]
operationGroup:
operationConfigs:
- apiSource: payments-api-v1
operations:
- resource: /charges
methods: [GET, POST]
quota: 10000
quotaInterval: 1
quotaTimeUnit: month
A partner-tier product and an internal-tier product can wrap the same underlying proxy with different quotas/scopes, rather than maintaining separate proxy deployments per consumer segment.
Version by contract, not by convenience — a breaking change (a
removed field, an incompatible response shape) requires a new major
version (/v2) deployed alongside the still-supported /v1; a
backward-compatible addition (a new optional field) does not:
payments-api-v1 → BasePath: /v1/payments (existing consumers, supported)
payments-api-v2 → BasePath: /v2/payments (new contract, new consumers)
Never rewrite /v1's existing behavior in place for a breaking
change — that silently breaks every consumer still pointed at /v1
with no opportunity to migrate on their own schedule.
Publish a deprecation timeline before removing an old version, not just a announcement after the fact:
Sunset: Sat, 31 Oct 2026 00:00:00 GMT, per RFC
8594) as soon as the replacement is available.Set up monetization deliberately, treating rate-plan changes like a financial-system change, not an ordinary config edit:
Establish and enforce organization-wide governance conventions before proxy sprawl makes retrofitting them painful:
Verify-API-Key
or OAuth2 verification, Spike-Arrest, structured error handling)
enforced via a proxy template or a CI lint step, not left to each
team's discretion.<api-name>-v<major>) across all proxies, so a consumer or
platform team can infer a proxy's version from its name alone.Publish to a developer portal for external/partner consumers, giving self-service discovery, API-key registration, and documentation rather than manual key provisioning over email/ticket:
ProxyEndpoint/BasePath)
and the backend implementation (TargetEndpoint) as independently
changeable — the whole point of a facade is that the backend can be
replaced, re-platformed, or scaled without a consumer-visible change,
as long as the contract doesn't change.Symptom: A backend service is re-platformed (new host, changed
internal response format) and every consumer of the published API
breaks simultaneously.
Fix: The proxy was treated as a passthrough rather than a facade —
the TargetEndpoint change should have been absorbable without
touching the ProxyEndpoint contract. Add a transformation policy at
the proxy layer to keep the public contract stable across the backend
change, and going forward, always design the proxy so the backend can
change independently of the published response shape.
Symptom: A quota policy is in place per API product, but a single
misbehaving consumer still manages to degrade the shared backend
during a traffic spike well within their monthly quota allowance.
Fix: Quota alone limits total volume over a long window (e.g.
10,000/month); it does nothing to prevent a short, sharp burst.
Add a SpikeArrest policy sized to the backend's real per-second
capacity, independent of the quota policy — they protect against
different failure modes and are both needed.
Symptom: A breaking change is deployed as an in-place update to
the existing /v1 proxy "since most consumers wanted the new
behavior anyway," and a subset of consumers start failing
immediately with no warning.
Fix: This is exactly the scenario versioning exists to prevent.
Roll back the in-place change, deploy the new behavior as /v2
instead, and give existing /v1 consumers an explicit, published
deprecation timeline to migrate on their own schedule rather than
being broken without notice.
Symptom: A monetization rate-plan change goes live and a batch of customers are billed incorrectly for a full cycle before anyone notices. Fix: The change skipped test-transaction validation and second-reviewer sign-off before going live. Treat any future rate-plan change as requiring the same pre-production validation as the initial worked example below, and build an automated reconciliation check comparing expected vs. actual billed amounts for a sample of transactions immediately after any rate-plan change ships.
Symptom: During an incident, someone disables the Verify-API-Key
or quota policy on a production proxy "to rule out auth/quota as the
cause of an error spike," confirms traffic flows, and it's still
disabled days later.
Fix: This removes both access control and abuse protection for
every consumer of that proxy, not just the one being debugged — and
for a monetized product, it also means usage stops being metered for
billing purposes during that window. Treat disabling either policy as
a strictly time-boxed diagnostic step on a non-production
environment/revision where possible, and restore it (with a tracked
follow-up if the real cause was something else entirely) before
closing the incident.
Scenario: Publish payments-api as a governed, monetized product:
a /v1 proxy in front of the existing backend, bundled into two API
products (internal-tier, unlimited quota, no billing; partner-tier,
10,000 requests/month, billed per 1,000 requests over a base
allowance), with spike-arrest protection and a planned /v2 migration
path already scoped for a future breaking change.
<!-- ProxyEndpoint (default.xml) -->
<ProxyEndpoint name="default">
<HTTPProxyConnection>
<BasePath>/v1/payments</BasePath>
</HTTPProxyConnection>
<PreFlow name="PreFlow">
<Request>
<Step><Name>Verify-API-Key</Name></Step>
<Step><Name>Verify-Quota</Name></Step>
<Step><Name>Spike-Arrest</Name></Step>
</Request>
</PreFlow>
<RouteRule name="default">
<TargetEndpoint>payments-backend</TargetEndpoint>
</RouteRule>
</ProxyEndpoint>
<SpikeArrest name="Spike-Arrest">
<Rate>50ps</Rate>
</SpikeArrest>
API products (conceptual definitions, created via the Apigee UI/ management API):
- name: payments-api-internal-tier
proxies: [payments-api-v1]
quota: null # unlimited for internal consumers
monetized: false
- name: payments-api-partner-tier
proxies: [payments-api-v1]
quota: 10000
quotaInterval: 1
quotaTimeUnit: month
monetized: true
ratePlan:
ratePlanName: partner-standard-2026
baseAllowance: 5000 # included free
rateAboveAllowance: "$0.01 per request"
Rollout sequence:
payments-api-v1 to a non-production environment; run a
fixed set of test transactions against the partner-tier product
and confirm the computed charge for a known request count matches
baseAllowance + rateAboveAllowance math exactly before enabling
the rate plan in production.Spike-Arrest at 50ps doesn't reject legitimate expected
peak load (load-test against staging) before promoting.payments-api-partner-tier.payments-api-v2 alongside the still-running v1, publish a
Sunset header and portal deprecation notice for v1, and track
v1 traffic in Apigee Analytics until it reaches zero before
undeploying it.Quota/SpikeArrest policy distinction used here.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
apigee, api-proxy, api-product, monetization, api-governance, api-lifecycle
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin service-mesh-gateway-skills11 skills in this plugin
/api-gateway-rate-limiting-and-quota-managementDesigns rate-limiting and quota strategy that applies across gateway tools — token bucket vs. sliding/fixed window algorithm choice, per-client vs. global vs. tiered limit scoping, burst allowance design, and distributed counter consistency — as the vendor-neutral layer underneath tool-specific plugins like Kong's `rate-limiting` or Apigee's `Quota`/`SpikeArrest`. Use when a user asks to "design a rate-limiting strategy," "choose between token bucket and sliding window," "set per-client vs. global API limits," "size a burst allowance," "why is my distributed rate limit inconsistent across nodes," or "protect a backend from one noisy client without punishing everyone else."
/cilium-configuration-validationValidates CiliumNetworkPolicy, CiliumClusterwideNetworkPolicy, and Hubble observability configuration before a production rollout — syntax-checking policy files offline, confirming which endpoints and identities a policy actually selects, and using Hubble flow data to prove a policy enforces what it's meant to instead of trusting the YAML. Use when a user asks to "validate a CiliumNetworkPolicy before applying it," "check if this policy will actually match my pods," "confirm kube-proxy replacement is healthy before a rollout," "test an egress FQDN policy before merging," or "why is Hubble showing drops I didn't expect."
/cilium-ebpf-cni-and-mesh-configurationConfigures Cilium as an eBPF-based Kubernetes CNI — kube-proxy replacement, CiliumNetworkPolicy for L3/L4/L7 network policy, and Cilium's ambient-style service mesh capability built on the same eBPF datapath rather than per-pod sidecars. Use when a user asks to "install Cilium," "replace kube-proxy with Cilium," "write a CiliumNetworkPolicy," "compare Cilium's sidecar-less mesh to Istio ambient or Linkerd," "reduce per-pod proxy overhead with eBPF," or "troubleshoot Cilium connectivity after install."
/consul-configuration-validationValidates Consul service definitions, config entries, and intentions (mesh-level authorization) before applying them to a production datacenter — syntax-checking agent config, dry-running catalog changes, and confirming intentions produce the intended allow/deny decisions. Use when a user asks to "validate a Consul service definition," "check my Consul config before applying," "test an intention before it goes live," "why did my Consul config entry not take effect," or "lint Consul HCL/JSON in CI."
/consul-service-mesh-and-discovery-configurationConfigures HashiCorp Consul as a combined service mesh and service discovery layer, especially across multi-cloud or hybrid (VM + Kubernetes, multi-datacenter) environments where a Kubernetes-only mesh doesn't reach. Covers Consul Connect sidecar injection, intentions, config entries (service-splitter, service-resolver, service-router), and cluster peering / WAN federation for cross-datacenter service discovery. Use when a user asks to "set up Consul service mesh," "federate Consul across datacenters," "register a VM service with Consul alongside Kubernetes services," "configure Consul Connect sidecars," or "do service discovery across cloud providers."
/grpc-service-troubleshootingDiagnoses gRPC-specific failure modes — DEADLINE_EXCEEDED, connection and keepalive/GOAWAY issues, HTTP/2 multiplexing problems behind L4/L7 load balancers, and protobuf/proto-compatibility breakage across client/server versions — distinct from generic HTTP ingress troubleshooting. Use when a user asks to "why is my gRPC call hanging or returning DEADLINE_EXCEEDED," "gRPC keepalive pings disconnecting my clients," "gRPC load balancing isn't spreading traffic across pods," "a proto field changed and now some clients fail," or "gRPC streaming call drops after N minutes."
Other plugins' skills for the same job