auto-scale

auto-scale is a command for Claude Code from TheLobbi/claude. It costs 0 tokens per session (4,135 once invoked), scanned A, original, MIT.

A collection of commands for automatically adjusting cloud resources as workload changes.

In plain words
What is it for?
Use it to analyse workload and traffic patterns, design scaling policies, tune resource use, monitor performance, and optimise cloud costs.
Why use it?
It helps plan scaling rules that balance performance, reliability, and infrastructure cost instead of relying on fixed capacity.

Command for Claude Code

Part of the claude-orchestration plugin — 49 commands, 9 agents 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 commands/thelobbi/claude/auto-scale
Clone the repo
git clone --depth 1 https://github.com/TheLobbi/claude

Made for: Claude Code.

Or install claude-orchestration, the plugin that ships this one along with the rest of its 49 commands, 9 agents.

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 auto-scale

README.md
[![agentmods](https://agentmods.dev/badge/commands/thelobbi/claude/auto-scale.svg)](https://agentmods.dev/commands/thelobbi/claude/auto-scale)
Your own site
<a href="https://agentmods.dev/commands/thelobbi/claude/auto-scale"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/auto-scale.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.04135
Opus 5 $0.00000 $0.02067
Sonnet 5 $0.00000 $0.00827
Haiku 4.5 $0.00000 $0.00413

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

Security

Grade A, and why

auto-scale scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/auto-scale.md · 467 lines

How it starts

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

Auto-Scaling Optimization

Dynamic scaling operations with auto-scaling policies, cost optimization, performance tuning, and intelligent resource management for cloud infrastructure.

Purpose

Design, implement, and optimize auto-scaling policies for cloud infrastructure to ensure optimal performance, cost efficiency, and reliability through intelligent resource management, predictive scaling, and automated cost optimization.

Multi-Agent Coordination Strategy

Uses adaptive optimization pattern combining workload analysis, predictive modeling, policy optimization, and continuous tuning for intelligent auto-scaling.

Auto-Scaling Architecture

``` ┌──────────────────────────────────────────────────┐ │ Auto-Scaling Orchestrator │ │ (scaling-orchestrator) │ └────────────┬─────────────────────────────────────┘ │ ┌────────┼────────┬────────┬────────┬─────────┐ ▼ ▼ ▼ ▼ ▼ ▼ Analyze Predict Optimize Monitor Tune Cost ```

Execution Flow

Phase 1: Workload Analysis (0-25 mins)

  1. workload-analyzer - Analyze historical workload patterns
  2. traffic-pattern-detector - Identify traffic patterns (daily, weekly, seasonal)
  3. peak-identifier - Identify peak usage periods
  4. baseline-calculator - Calculate baseline resource needs
  5. variability-assessor - Assess workload variability
  6. anomaly-detector - Detect workload anomalies

Phase 2: Resource Analysis (25-50 mins)

  1. resource-profiler - Profile current resource utilization
  2. bottleneck-identifier - Identify resource bottlenecks
  3. capacity-planner - Calculate capacity requirements
  4. rightsizing-analyzer - Identify oversized/undersized instances
  5. waste-detector - Detect resource waste
  6. reservation-optimizer - Optimize reserved instances

Phase 3: Predictive Modeling (50-80 mins)

  1. demand-forecaster - Forecast future demand
  2. time-series-analyst - Time series analysis of metrics
  3. ml-predictor - Machine learning-based prediction
  4. seasonality-modeler - Model seasonal patterns
  5. event-anticipator - Anticipate special events (Black Friday, etc.)
  6. confidence-interval-calculator - Calculate prediction confidence

Read the full file on GitHub · 467 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. 3d ago First seen · 467 lines · 0 tokens per session scan A 2d739296adac

Subscribe to this mod's changes

auto-scale is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,135 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.