Build a production REST adapter for CAST AI from the current OpenAPI contract without inventing an unofficial SDK surface.

MITAuto-check passedBackend & APIs

Install Castai SDK Patterns

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

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

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace castai-sdk-patterns --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-sdk-patterns .claude/skills/castai-sdk-patterns && 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-sdk-patterns
GitHub stars
2.8k
Token cost
~1.1k tokens
SKILL.md length
439 words
Files
2 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Build a production REST adapter for CAST AI from the current OpenAPI contract without inventing an unofficial SDK surface.

  • Works in 6 steps: Choose API versus Terraform → Pin the contract → Build the transport boundary → …
  • Wrapping CAST AI operations in TypeScript
  • 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 SDK Patterns is an agent skill from jeremylongshore/tons-of-skills-marketplace. Build a production REST adapter for CAST AI from the current OpenAPI contract without inventing an unofficial SDK surface. Use when wrapping CAST AI operations in TypeScript, Python, or another service. Trigger with: "build a CAST AI client", "wrap the CAST AI API", "integrate CAST AI in code".

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; declarative infrastructure should use the supported Terraform provider where appropriate

It sits in Backend & APIs, covering OpenAPI specifications. It works with OpenAPI, Python and TypeScript. 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

  • Wrapping CAST AI operations in TypeScript
  • Another service
  • With: build a CAST AI client
  • Wrap the CAST AI API

Example prompts

  • “build a CAST AI client”
  • “wrap the CAST AI API”
  • “integrate CAST AI in code”
  • “/castai-sdk-patterns”

Requirements

  • Compatibility (from SKILL.md): Requires the current CAST AI API specification; declarative infrastructure should use the supported Terraform provider where appropriate
  • Pre-approved tools (allowed-tools): Read, Grep, Write, Edit

Workflow steps

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

  1. Choose API versus Terraform
  2. Pin the contract
  3. Build the transport boundary
  4. Normalize domain operations
  5. Classify failures
  6. Test without CAST AI

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; declarative infrastructure should use the supported Terraform provider where appropriate

    From compatibility in the SKILL.md frontmatter.

Context cost

Castai SDK Patterns 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 79 tokens; SKILL.md has 439 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
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). 439 words, ~1,114 tokens.

Download SKILL.mdSave it as .claude/skills/castai-sdk-patterns/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
castai-sdk-patterns
description
Build a production REST adapter for CAST AI from the current OpenAPI contract without inventing an unofficial SDK surface. Use when wrapping CAST AI operations in TypeScript, Python, or another service. Trigger with: "build a CAST AI client", "wrap the CAST AI API", "integrate CAST AI in code".
allowed-tools
Read, Grep, Write, Edit
compatibility
Requires the current CAST AI API specification; declarative infrastructure should use the supported Terraform provider where appropriate
version
2.0.0
argument-hint
[adapter-or-client-root]
model
inherit
effort
high
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, kubernetes, cast-ai, api-client, integration

CAST AI Contract-First API Adapter

Overview

Create a narrow adapter around approved CAST AI operations. Treat the OpenAPI description, regional base URL, organization scope, response schemas, and endpoint-specific rate behavior as explicit dependencies.

Prerequisites

  • Named operations and business purpose
  • CAST AI region, organization boundary, and least-privilege service identity
  • Current OpenAPI contract pinned or checksummed for generation
  • Error, retry, telemetry, and secret-handling policy

Instructions

Step 1: Choose API versus Terraform

Use Read and Grep to determine whether the work is declarative infrastructure or runtime integration. Prefer the supported Terraform provider for owned desired state; use REST for bounded runtime reads or operations that the chosen provider does not own.

Step 2: Pin the contract

Record the current API specification origin, retrieval time, checksum, selected operation IDs, and generated-client tool version. Do not copy guessed paths from examples or expose the entire generated surface to application code.

Step 3: Build the transport boundary

Use Write or Edit to implement injected regional base URL, X-API-Key header handling, optional enterprise organization header, request timeout, cancellation, bounded response size, structured redaction, and correlation metadata. Never place keys in URLs or exception messages.

Step 4: Normalize domain operations

Expose small intent-oriented methods with validated identifiers and typed results. Keep raw provider payloads behind the adapter, retain unknown fields safely, and distinguish absent data from zero values.

Step 5: Classify failures

Map transport failures, 401, 403, 404, 409, endpoint-specific 429, 5xx, schema mismatch, deadline exhaustion, and uncertain mutation outcome. Retry only proven idempotent operations within a shared request budget.

Show full SKILL.md (187 more words)Show less
Step 6: Test without CAST AI

Add fixtures for every status class, regional mismatch, enterprise header omission, pagination, unknown fields, redaction, timeout, cancellation, and throttling. Keep an optional live smoke test read-only and separately protected.

Tool Discipline

Use Read and Grep for contract and repository discovery. Use Write and Edit for the adapter, fixtures, tests, and contract receipt. This skill does not fetch credentials, call production, or claim an unofficial library is vendor-supported.

Output

  • API-versus-Terraform ownership decision
  • Pinned contract receipt and selected operations
  • Narrow authenticated adapter with normalized failures
  • Offline contract suite and protected smoke-test boundary

Examples

A reporting service wraps two read operations and hides generated types behind its own domain model. The same repository leaves cluster policy desired state in Terraform to avoid competing authorities.

Error Handling

FailureResponse
OpenAPI operation changesFail generation or contract tests for review
Region and identity disagreeStop before sending the request
Mutation result is uncertainReconcile state before retry
Response contains an unknown fieldPreserve compatibility and log only its schema path

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-sdk-patterns of jeremylongshore/tons-of-skills-marketplace.

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

Open the folder on GitHubat commit cfae287

Compare with similar skills

Castai SDK Patterns 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 SDK Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Castai SDK Patterns this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT
E2a Integratetokencanopy/e2a193—~840Automated safety check: PassApache-2.0
Code Documenterzebbern/claude-code-guide4.7k—~1kAutomated safety check: PassMIT
Code DocumenterJeffallan/claude-skills12k—~1.5kAutomated safety check: PassMIT
MCP Server Builderalirezarezvani/claude-skills28k—~985Automated safety check: PassMIT
Generating Documentationancoleman/ai-design-components525—~3kAutomated safety check: PassMIT

Similar skills

  • E2a Integrate

    tokencanopy/e2a

    A skill your agent uses when adding e2a email capabilities to an application or codebase: outbound sending, inbound signed webhooks, REST polling, or SDK integration.

    193 GitHub stars~840 tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • Code Documenter

    zebbern/claude-code-guide

    A skill your agent uses when adding docstrings, creating API documentation, or building documentation sites.

    4.7k GitHub stars~1k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Code Documenter

    Jeffallan/claude-skills

    Generates and validates docstrings, OpenAPI specs, JSDoc annotations and user guides, running every code example through a real compiler or linter before reporting coverage.

    12k GitHub stars~1.5k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • MCP Server Builder

    alirezarezvani/claude-skills

    Design and ship production-ready MCP (Model Context Protocol) servers from OpenAPI contracts instead of hand-written tool wrappers.

    28k GitHub stars~985 tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Generating Documentation

    ancoleman/ai-design-components

    Generate comprehensive technical documentation including API docs (OpenAPI/Swagger), code documentation (TypeDoc/Sphinx), documentation sites (Docusaurus/MkDocs), Architecture Decision Records…

    525 GitHub stars~3k tokensUpdated 10 mo ago
    DevelopmentAuto-check passed
  • OpenAPI to MCP Server

    mcp-use/mcp-use

    Turns an OpenAPI or Swagger spec into an MCP server with the mcp-use TypeScript SDK, mapping each operation to a tool, wiring auth, testing and deploying.

    11k GitHub stars~5.2k tokensUpdated yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    Auto-check passed

Categories

Questions about Castai SDK Patterns

What does Castai SDK Patterns do?

Build a production REST adapter for CAST AI from the current OpenAPI contract without inventing an unofficial SDK surface. Castai SDK Patterns is an agent skill from jeremylongshore/tons-of-skills-marketplace. Build a production REST adapter for CAST AI from the current OpenAPI contract without inventing an unofficial SDK surface.

When should I use Castai SDK Patterns?

Castai SDK Patterns fits situations like: wrapping CAST AI operations in TypeScript; another service; with: build a CAST AI client; wrap the CAST AI API.

How do I install Castai SDK Patterns in Claude Code?

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

How do I install Castai SDK Patterns in Codex?

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

Can I use Castai SDK Patterns 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-sdk-patterns -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-sdk-patterns, .gemini/skills/castai-sdk-patterns, .github/skills/castai-sdk-patterns and .opencode/skills/castai-sdk-patterns in your project.

What does Castai SDK Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Castai SDK Patterns 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; declarative infrastructure should use the supported Terraform provider where appropriate.

Does Castai SDK Patterns 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 SDK Patterns 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 SDK Patterns use?

Castai SDK Patterns 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 SDK Patterns 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 183 tokens, read only when the agent opens those files.

What are the alternatives to Castai SDK Patterns?

Skills that share tags, products or a category with Castai SDK Patterns: E2a Integrate (tokencanopy/e2a, 193 stars), Code Documenter (zebbern/claude-code-guide, 4.7k stars), Code Documenter (Jeffallan/claude-skills, 12k stars) and MCP Server Builder (alirezarezvani/claude-skills, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Castai SDK Patterns?

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.