cdn-rate-limiting

cdn-rate-limiting is a skill for Claude Code, Codex from controlplane-com/ai-plugin. It costs 55 tokens per session (2,762 once invoked), scanned A, original, MIT.

A guide to placing a CDN, which caches and delivers web content from edge locations, and request rate limiting in front of Control Plane workloads.

In plain words
What is it for?
Use it to configure Cloudflare or CloudFront origins, cache traffic, limit requests per route or key, and reduce overload or denial-of-service traffic.
Why use it?
It explains how to use external CDN services and a rate-limiting service when the platform has no built-in CDN or rate-limit resource.

Skill for Claude CodeCodex

Part of the cpln plugin — 30 skills, 2 commands, 2 agents, 1 hook, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/controlplane-com/ai-plugin/cdn-rate-limiting
Any agent
npx skills add controlplane-com/ai-plugin --skill cdn-rate-limiting
Clone the repo
git clone --depth 1 https://github.com/controlplane-com/ai-plugin

Made for: Claude Code, Codex.

Or install cpln, the plugin that ships this one along with the rest of its 30 skills, 2 commands, 2 agents, 1 hook, 1 MCP server.

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 cdn-rate-limiting

README.md
[![agentmods](https://agentmods.dev/badge/skills/controlplane-com/ai-plugin/cdn-rate-limiting.svg)](https://agentmods.dev/skills/controlplane-com/ai-plugin/cdn-rate-limiting)
Your own site
<a href="https://agentmods.dev/skills/controlplane-com/ai-plugin/cdn-rate-limiting"><img src="https://agentmods.dev/badge/skills/controlplane-com/ai-plugin/cdn-rate-limiting.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,762 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00055 $0.02762
Opus 5 $0.00028 $0.01381
Sonnet 5 $0.00011 $0.00552
Haiku 4.5 $0.00006 $0.00276

Measured 4d ago against content hash 8a275471320e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cdn-rate-limiting scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Limiting works:** send requests past the limit and expect `429` — with the sample 10/minute rule, the 11th call returns it: `for i in $(seq 1 11); do curl -s -o /dev/null -w "%{http_code}\n" -H "Authorization: test"
plugins/cpln/skills/cdn-rate-limiting/SKILL.md · 150 lines

How it starts

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

CDN & Rate Limiting

Tool availability: some MCP tools named here live in the full toolset profile — if one is not advertised on this connection, tell the user to reconnect the MCP server with ?toolsets=full (or use the cpln CLI fallback). Reads work on every profile via the generic list_resources / get_resource tools; delete_resource is on every profile except readonly.

Two edge concerns, both built from existing primitives — there is no CDN or rate-limit resource kind. A CDN is bring-your-own (Cloudflare / CloudFront) pointed at the workload's canonical endpoint; rate limiting is an Envoy ratelimit service you deploy, enabled per workload by cpln/rateLimit* tags. Assumes the workload primer (firewall deny-by-default, canonical URL rules, create-then-verify).

CDN

The pattern: the CDN proxies your domain and uses the workload's canonical endpoint as origin — read it from status.canonicalEndpoint or mcp__cpln__list_deployments, never construct it. A workload endpoint gives precise geo-routing and per-workload failover; a GVC endpoint serves one CDN route for many domains or wildcard subdomains, but keeps sending traffic to every location even when that location's workload is down.

Cloudflare

  1. DNS at Cloudflare: proxied CNAME (orange cloud on) from your subdomain to the canonical endpoint; SSL/TLS mode Full (strict).
  2. Origin certificate (SSL/TLS, then Origin Server; RSA 2048) becomes a Control Plane TLS secret — created by the user with the cert and key (offer a manifest scaffold; setup-secret skill), TLS chain left empty (the origin cert is self-signed).
  3. Domain at Control Plane: mcp__cpln__create_domain (CNAME DNS mode), mcp__cpln__set_domain_tls with the secret as the custom server certificate, mcp__cpln__add_domain_route to the workload. The apex domain must be verified before configuring a subdomain.

Amazon CloudFront

  1. ACM public certificate in us-east-1 (CloudFront requires that region), DNS validation, covering your subdomain or wildcard.
  2. Distribution: origin = the workload's canonical endpoint (BYOK: the per-location endpoint from mcp__cpln__list_deployments); alternate domain name = your subdomain; attach the ACM cert.
  3. DNS: CNAME your subdomain to the distribution's *.cloudfront.net name.

Read the full file on GitHub · 150 lines

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. 4d ago First seen · 150 lines · 55 tokens per session scan A 8a275471320e

Subscribe to this mod's changes

cdn-rate-limiting is a skill published in the GitHub repository controlplane-com/ai-plugin (10 stars, last pushed 11d ago), licensed MIT. It adds 55 tokens to every session and 2,762 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

openpitrix

KubeSphere OpenPitrix application management Skill. Use when users ask about KubeSphere App Store, OpenPitrix, Helm/YAML application templates, application repositories, app versions, app releases, categories, review states, repository sync, or troubleshooting application installation and upgrade issues.

kubesphere/kubesphere · 60 tokens

whizard-notification

Use when working with WizTelemetry Notification extension for KubeSphere, including installation, configuration, troubleshooting, notification channel setup, alert routing, and silence management.

kubesphere/kubesphere · 36 tokens

whizard-telemetry-ruler

Use when working with WizTelemetry Ruler extension for KubeSphere, including installation, configuration, alerting rules management.

kubesphere/kubesphere · 31 tokens

kubesphere-openkruise

KubeSphere OpenKruise management Skill. Use when user asks to install or enable OpenKruise, check OpenKruise status, view kruise pods/logs/CRDs, create or update SidecarSet, manage sidecar injection, create or update CloneSet, perform in-place update or batch rollout, uninstall or remove OpenKruise, or troubleshoot…

kubesphere/kubesphere · 99 tokens

kubesphere-volcano

KubeSphere Volcano job management Skill. Use when user asks to create, list, update, delete Jobs (Volcano Jobs), manage Queues, create PyTorch/TensorFlow/MPI training jobs, or troubleshoot Volcano scheduling issues in KubeSphere. Includes built-in YAML templates, scheduling policy recommendations, and best practices…

kubesphere/kubesphere · 85 tokens

kubesphere-extension-management

KubeSphere extension management Skill. Use when user requests to install, configure, upgrade, uninstall extensions, or query extension info/troubleshoot issues. Includes extension discovery, dependency management, install configuration, version management.

kubesphere/kubesphere · 49 tokens