Agent skill

Castai Performance Tuning

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Tune CAST AI node and workload autoscaling against application SLOs, scheduling constraints, and recommendation confidence.

MITAuto-check passedDevOps & Cloud

Install Castai Performance Tuning

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

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

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

At a glance

Tune CAST AI node and workload autoscaling against application SLOs, scheduling constraints, and recommendation confidence.

  • Works in 6 steps: Build the timeline → Inspect effective workload policy → Choose application mode → …
  • Optimization causes latency
  • 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 Performance Tuning is an agent skill from jeremylongshore/tons-of-skills-marketplace. Tune CAST AI node and workload autoscaling against application SLOs, scheduling constraints, and recommendation confidence. Use when optimization causes latency, disruption, slow provisioning, or unstable replica and resource behavior. Trigger with: "tune CAST AI performance", "stabilize CAST AI autoscaling", "fix CAST AI scaling latency".

Its SKILL.md is about 1.2k 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 workload telemetry, SLOs, and read access to effective CAST AI and Kubernetes scaling configuration

It sits in DevOps & Cloud, covering Site reliability engineering. 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

  • Optimization causes latency
  • Slow provisioning
  • Unstable replica and resource behavior
  • With: tune CAST AI performance

Example prompts

  • “tune CAST AI performance”
  • “stabilize CAST AI autoscaling”
  • “fix CAST AI scaling latency”
  • “/castai-performance-tuning”

Requirements

  • Compatibility (from SKILL.md): Requires workload telemetry, SLOs, and read access to effective CAST AI and Kubernetes scaling configuration
  • Pre-approved tools (allowed-tools): Read, Grep, Write, Edit, Bash(kubectl:*)

Workflow steps

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

  1. Build the timeline
  2. Inspect effective workload policy
  3. Choose application mode
  4. Reconcile horizontal scaling
  5. Reconcile node capacity
  6. Change one variable

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
    • Bash(kubectl:*)

    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

    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 workload telemetry, SLOs, and read access to effective CAST AI and Kubernetes scaling configuration

    From compatibility in the SKILL.md frontmatter.

Context cost

Castai Performance Tuning loads about 1.2k tokens when it runs, and up to ~1.4k if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 442 words of instructions outside code blocks.

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

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). 442 words, ~1,155 tokens.

Download SKILL.mdSave it as .claude/skills/castai-performance-tuning/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
castai-performance-tuning
description
Tune CAST AI node and workload autoscaling against application SLOs, scheduling constraints, and recommendation confidence. Use when optimization causes latency, disruption, slow provisioning, or unstable replica and resource behavior. Trigger with: "tune CAST AI performance", "stabilize CAST AI autoscaling", "fix CAST AI scaling latency".
allowed-tools
Read, Grep, Write, Edit, Bash(kubectl:*)
compatibility
Requires workload telemetry, SLOs, and read access to effective CAST AI and Kubernetes scaling configuration
version
2.0.0
argument-hint
[cluster-and-workload]
model
inherit
effort
high
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, kubernetes, cast-ai, performance, autoscaling

CAST AI Performance Guardrail Tuning

Overview

Tune from evidence across workload demand, requests, replicas, scheduling, and nodes. Keep vertical, horizontal, and node changes separate so a lower bill never hides degraded service.

Prerequisites

  • Workload SLOs, error budget, traffic profile, and representative observation window
  • Effective scaling policy, annotations, HPA, PDB, node templates, and cluster limits
  • Metrics-server and healthy CAST AI components

Instructions

Step 1: Build the timeline

Use Read and Grep to align request rate, latency, errors, pod requests, replicas, pending time, evictions, node provisioning, and policy changes. Identify whether the symptom precedes or follows CAST AI action.

Step 2: Inspect effective workload policy

Check policy assignment, recommendation percentile, overhead, optimization threshold, minimum and maximum resources, confidence, and automation state. Invalid annotation YAML is ignored; an invalid policy name can fall back to a system policy, so verify effective state rather than intended text.

Step 3: Choose application mode

Use Immediate mode only when evictions are acceptable and PDB behavior is proven. Use Deferred mode when recommendations should apply at natural recreation. Account for recommendation confidence and gradual behavior on newly onboarded clusters.

Step 4: Reconcile horizontal scaling

Inspect the native autoscaling/v2 HPA, metric targets, replica bounds, stabilization, and ownership. Avoid competing HPA controllers. When CAST AI takes ownership, treat that as a configuration migration with explicit rollback.

Step 5: Reconcile node capacity

Use Bash(kubectl:*) to examine pending reasons, affinities, topology, taints, resource shape, and scheduling events. Review node templates and maximum CPU limits. More permissive capacity is not automatically safer or cheaper.

Show full SKILL.md (190 more words)Show less
Step 6: Change one variable

Use Write or Edit to record one hypothesis, one configuration change, performance and cost guardrails, observation window, and rollback. Compare the same traffic class and retain SLO evidence before expanding.

Tool Discipline

Use Read and Grep for metrics, policy, and configuration evidence. Use Write and Edit for the tuning experiment and decision. Use Bash(kubectl:*) for bounded, non-secret inspection of workloads, HPAs, PDBs, events, and nodes.

Output

  • Joined performance and scaling timeline
  • Effective vertical, horizontal, and node control map
  • One-variable experiment with SLO and cost guardrails
  • Expand, hold, or rollback decision

Examples

A workload oscillates because replica stabilization and vertical requests changed together. The team freezes vertical automation, tunes the managed HPA in a canary, and restores rightsizing only after replica behavior is stable.

Error Handling

FailureResponse
Metrics are missing or misalignedStop tuning and repair observability
Effective policy differs from annotationCorrect YAML or policy assignment before experimentation
PDB blocks needed replacementPrefer Deferred mode or review disruption with the owner
SLO regressesRoll back immediately even if cost improves

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-performance-tuning of jeremylongshore/tons-of-skills-marketplace.

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

Open the folder on GitHubat commit cfae287

Compare with similar skills

Castai Performance Tuning 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 Performance Tuning compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Castai Performance Tuning this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.2kAutomated safety check: PassMIT
Inference Autopilotrednote-machine-learning/Inference-autopilot144—~4.5kAutomated safety check: PassApache-2.0
Executing Distributed System Testsshenli/distributed-system-testing231—~5.1kAutomated safety check: NotesMIT
Alerting Irmgrafana/skills2821 repos~1.9kAutomated safety check: PassApache-2.0
Slo Implementationwshobson/agents40k11 repos~1.7kAutomated safety check: PassMIT
Agentforce D360 Analyzeforcedotcom/sf-skills1.1k—~3.4kAutomated safety check: PassApache-2.0

Similar skills

  • Inference Autopilot

    rednote-machine-learning/Inference-autopilot

    Analyze, benchmark, diagnose, and optimize large-model inference deployments from hardware inventory, model details, workload traces, and latency or throughput SLOs.

    144 GitHub stars~4.5k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Executing Distributed System Tests

    shenli/distributed-system-testing

    A skill your agent uses when running a previously designed distributed-systems test plan against a real or simulated cluster — driving fault injection, workload, chaos scenarios, linearizability /…

    231 GitHub stars~5.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check: notes
  • Alerting Irm

    grafana/skills

    Official

    Configure Grafana Alerting, Incident Response Management (IRM), and SLOs end-to-end — provisions Grafana-managed and data-source-managed alert rules, contact points (Slack/PagerDuty/email/webhook)…

    282 GitHub starsUsed in 1 repo~1.9k tokens
    DevOps & CloudAuto-check passed
  • Slo Implementation

    wshobson/agents

    Define and implement Service Level Indicators (SLIs) and Service Level Objectives (SLOs) with error budgets and alerting.

    40k GitHub starsUsed in 11 repos~1.7k tokens
    DevOps & CloudAuto-check passed
  • Agentforce D360 Analyze

    forcedotcom/sf-skills

    Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.

    1.1k GitHub stars~3.4k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Promql

    grafana/skills

    Official

    Write, validate, and optimize PromQL for Prometheus / Grafana Mimir / Grafana Cloud Metrics.

    282 GitHub starsUsed in 1 repo~1.1k tokens
    DevOps & CloudAuto-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 Performance Tuning

What does Castai Performance Tuning do?

Tune CAST AI node and workload autoscaling against application SLOs, scheduling constraints, and recommendation confidence. Castai Performance Tuning is an agent skill from jeremylongshore/tons-of-skills-marketplace. Tune CAST AI node and workload autoscaling against application SLOs, scheduling constraints, and recommendation confidence.

When should I use Castai Performance Tuning?

Castai Performance Tuning fits situations like: optimization causes latency; slow provisioning; unstable replica and resource behavior; with: tune CAST AI performance.

How do I install Castai Performance Tuning in Claude Code?

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

How do I install Castai Performance Tuning in Codex?

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

Can I use Castai Performance Tuning 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-performance-tuning -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-performance-tuning, .gemini/skills/castai-performance-tuning, .github/skills/castai-performance-tuning and .opencode/skills/castai-performance-tuning in your project.

What does Castai Performance Tuning need to run?

SKILL.md names no scripts, command-line tools or credentials: Castai Performance Tuning is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Grep, Write, Edit, Bash(kubectl:*). Compatibility (from SKILL.md): Requires workload telemetry, SLOs, and read access to effective CAST AI and Kubernetes scaling configuration.

Does Castai Performance Tuning access the network?

SKILL.md names 1 domain. As links in the text: docs.cast.ai. This is read from the text; nothing was executed.

Is Castai Performance Tuning 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 Performance Tuning use?

Castai Performance Tuning 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 Performance Tuning use?

About 1.2k tokens (SKILL.md is roughly 4.6k 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 262 tokens, read only when the agent opens those files.

What are the alternatives to Castai Performance Tuning?

Skills that share tags, products or a category with Castai Performance Tuning: Inference Autopilot (rednote-machine-learning/Inference-autopilot, 144 stars), Executing Distributed System Tests (shenli/distributed-system-testing, 231 stars), Alerting Irm (grafana/skills, 282 stars) and Slo Implementation (wshobson/agents, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Castai Performance Tuning?

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.