Build a CAST AI REST client that respects endpoint-specific throttling, bounded retries, and an explicit request budget.

MITAuto-check passedBackend & APIs

Install Castai Rate Limits

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill castai-rate-limits -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace castai-rate-limits --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/castai-rate-limits .claude/skills/castai-rate-limits && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
castai-rate-limits
GitHub stars
2.8k
Token cost
~1.1k tokens
SKILL.md length
437 words
Files
2 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Build a CAST AI REST client that respects endpoint-specific throttling, bounded retries, and an explicit request budget.

  • Works in 6 steps: Inventory request producers → Classify operations → Define the budget → …
  • A job receives 429 responses
  • SKILL.md covers Overview, Prerequisites, Instructions and Tool Discipline, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Castai Rate Limits is an agent skill from jeremylongshore/tons-of-skills-marketplace. Build a CAST AI REST client that respects endpoint-specific throttling, bounded retries, and an explicit request budget. Use when a job receives 429 responses, polls CAST AI, or fans out across clusters and organizations. Trigger with: "handle CAST AI rate limits", "stop CAST AI 429s", "make CAST AI polling safe".

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/official-docs.md`). Compatibility notes: Requires the current CAST AI API specification and observability for the client; limits vary by endpoint and upstream edge controls

It sits in Backend & APIs, covering Rate limiting and Third-party API integration. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • A job receives 429 responses
  • Fans out across clusters and organizations
  • With: handle CAST AI rate limits
  • Stop CAST AI 429s

Example prompts

  • “handle CAST AI rate limits”
  • “stop CAST AI 429s”
  • “make CAST AI polling safe”
  • “/castai-rate-limits”

Requirements

  • Compatibility (from SKILL.md): Requires the current CAST AI API specification and observability for the client; limits vary by endpoint and upstream edge controls
  • Pre-approved tools (allowed-tools): Read, Grep, Write, Edit

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Inventory request producers
  2. Classify operations
  3. Define the budget
  4. Handle throttling
  5. Reduce demand
  6. Test the failure envelope

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Write
    • Edit

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.cast.ai
    • api.cast.ai

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires the current CAST AI API specification and observability for the client; limits vary by endpoint and upstream edge controls

    From compatibility in the SKILL.md frontmatter.

Context cost

Castai Rate Limits loads about 1.1k tokens when it runs, and up to ~1.3k if it reads all its reference files. Until then it costs about 84 tokens; SKILL.md has 437 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~84
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 437 words, ~1,127 tokens.

Download SKILL.mdSave it as .claude/skills/castai-rate-limits/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
castai-rate-limits
description
Build a CAST AI REST client that respects endpoint-specific throttling, bounded retries, and an explicit request budget. Use when a job receives 429 responses, polls CAST AI, or fans out across clusters and organizations. Trigger with: "handle CAST AI rate limits", "stop CAST AI 429s", "make CAST AI polling safe".
allowed-tools
Read, Grep, Write, Edit
compatibility
Requires the current CAST AI API specification and observability for the client; limits vary by endpoint and upstream edge controls
version
2.0.0
argument-hint
[client-or-job-path]
model
inherit
effort
high
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, kubernetes, cast-ai, rate-limits, reliability

CAST AI Request-Budget Control

Overview

Treat rate capacity as an endpoint-specific runtime signal, not a single invented requests-per-second number. Bound concurrency, retries, polling, and total work while preserving correct authentication and organization scope.

Prerequisites

  • Client path, CAST AI region, organization scope, endpoints, and workload volume
  • Current API specification and observed response headers
  • Idempotency classification and business deadline for every operation

Instructions

Step 1: Inventory request producers

Use Read and Grep to identify direct API calls, Terraform operations, polling loops, scheduled jobs, retries, pagination, and per-cluster fan-out. Calculate worst-case attempts, not only successful requests.

Step 2: Classify operations

Separate reads, idempotent updates, and non-idempotent mutations. Only retry operations whose semantics are proven safe. Keep auth failures, permission denials, malformed requests, and policy rejections outside the retry path.

Step 3: Define the budget

Use Write or Edit to set per-endpoint concurrency, maximum attempts, maximum elapsed time, request timeout, queue capacity, and global job ceiling. Because CAST AI documents endpoint-dependent limits plus an upstream edge limiter, derive values from current specification and observed behavior.

Step 4: Handle throttling

On 429, honor a valid server-provided delay signal when present; otherwise use capped exponential backoff with jitter. Coordinate workers through one limiter, stop adding retries after the deadline, and avoid synchronized polling at fixed boundaries.

Step 5: Reduce demand

Cache stable reads within their acceptable staleness window, collapse duplicate requests, paginate deliberately, query only required organizations and clusters, and replace rapid status polling with a slower bounded schedule or documented notification path when suitable.

Show full SKILL.md (188 more words)Show less
Step 6: Test the failure envelope

Add deterministic tests for 429 with and without delay metadata, repeated 5xx, timeout, cancellation, queue overflow, deadline exhaustion, non-idempotent mutation, and mixed-region credentials. Assert no infinite loop and no duplicate unsafe mutation.

Tool Discipline

Use Read and Grep for client and specification analysis. Use Write and Edit for limiter logic, tests, and operational documentation. This skill does not send live requests or guess undocumented quota values.

Output

  • Request inventory and idempotency map
  • Endpoint-specific concurrency and retry budget
  • Deterministic throttling and exhaustion tests
  • Metrics for attempts, delay, queue depth, 429s, and dropped work

Examples

A nightly collector shares one limiter across cluster workers and stops at its batch deadline. A policy mutation returns 429 but is not replayed until its idempotency contract is established.

Error Handling

FailureResponse
No endpoint limit is documentedStart conservatively and calibrate from observed responses
Delay metadata exceeds deadlineFail with a resumable checkpoint
Queue reaches its boundShed or defer low-priority work
Mutation outcome is unknownReconcile state before any retry

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/.curated/castai-rate-limits of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/official-docs.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Castai Rate Limits next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Castai Rate Limits compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Castai Rate Limits this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT
Bfl APIblack-forest-labs/skills1281 repos~2.5kAutomated safety check: NotesMIT
Venice API Keysveniceai/skills144—~3.8kAutomated safety check: PassMIT
Venice API Overviewveniceai/skills144—~3.5kAutomated safety check: PassMIT
API IntegrationHack23/cia239—~1.9kAutomated safety check: PassApache-2.0
Frappe Core APIImpertio-Studio/Frappe_Claude_Skill_Package189—~3.2kAutomated safety check: PassMIT

Similar skills

  • Bfl API

    black-forest-labs/skills

    BFL FLUX API integration guide covering endpoints, async polling patterns, rate limiting, error handling, webhooks, and regional endpoints with Python and TypeScript code examples.

    128 GitHub starsUsed in 1 repo~2.5k tokens
    Backend & APIsAuto-check: notes
  • Venice API Keys

    veniceai/skills

    Manages Venice API keys through the /api_keys endpoints: create, list, update and revoke keys, set spending limits, and read rate limits.

    144 GitHub stars~3.8k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • Venice API Overview

    veniceai/skills

    High-level map of the Venice.ai API: base URL, auth modes per endpoint, endpoint categories, response headers, pricing model, error shape and versioning.

    144 GitHub stars~3.5k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • API Integration

    Hack23/cia

    External API integration patterns, retry logic, circuit breakers, caching, rate limiting for government data APIs

    239 GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Frappe Core API

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when building ERPNext/Frappe API integrations (v14/v15/v16) including REST API, RPC API, authentication, webhooks, and rate limiting.

    189 GitHub stars~3.2k tokensUpdated 24 days ago
    Backend & APIsAuto-check passed
  • Implementing API Patterns

    ancoleman/ai-design-components

    API design and implementation across REST, GraphQL, gRPC, and tRPC patterns.

    525 GitHub stars~3k tokensUpdated 10 mo ago
    Backend & APIsAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Categories

Questions about Castai Rate Limits

What does Castai Rate Limits do?

Build a CAST AI REST client that respects endpoint-specific throttling, bounded retries, and an explicit request budget. Castai Rate Limits is an agent skill from jeremylongshore/tons-of-skills-marketplace. Build a CAST AI REST client that respects endpoint-specific throttling, bounded retries, and an explicit request budget.

When should I use Castai Rate Limits?

Castai Rate Limits fits situations like: A job receives 429 responses; fans out across clusters and organizations; with: handle CAST AI rate limits; stop CAST AI 429s.

How do I install Castai Rate Limits in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill castai-rate-limits -a claude-code`. Or copy the skill folder (skills/.curated/castai-rate-limits in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/castai-rate-limits in your project. Claude Code loads it when a task matches its description.

How do I install Castai Rate Limits in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill castai-rate-limits -a codex`. Or copy the skill folder (skills/.curated/castai-rate-limits in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/castai-rate-limits in your project. Codex loads it when a task matches its description.

Can I use Castai Rate Limits in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill castai-rate-limits -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/castai-rate-limits, .gemini/skills/castai-rate-limits, .github/skills/castai-rate-limits and .opencode/skills/castai-rate-limits in your project.

What does Castai Rate Limits need to run?

SKILL.md names no scripts, command-line tools or credentials: Castai Rate Limits is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Grep, Write, Edit. Compatibility (from SKILL.md): Requires the current CAST AI API specification and observability for the client; limits vary by endpoint and upstream edge controls.

Does Castai Rate Limits access the network?

SKILL.md names 2 domains. As links in the text: docs.cast.ai and api.cast.ai. This is read from the text; nothing was executed.

Is Castai Rate Limits safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Castai Rate Limits use?

Castai Rate Limits is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Castai Rate Limits use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 151 tokens, read only when the agent opens those files.

What are the alternatives to Castai Rate Limits?

Skills that share tags, products or a category with Castai Rate Limits: Bfl API (black-forest-labs/skills, 128 stars), Venice API Keys (veniceai/skills, 144 stars), Venice API Overview (veniceai/skills, 144 stars) and API Integration (Hack23/cia, 239 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Castai Rate Limits?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.