flipb1t

Lastro — AI skill for Claude Code

AI community

lastro (ballast): keeps the system your AI agent builds stable under load and on modest machines — measure before optimizing, load tests with CPU/memory limits, p95/p99 targets, backpressure, cost che.

How to install Lastro

This entry records only its repository, not the path inside it, so there is no exact command to give. Open flipb1t/lastro and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Lastro does

lastro (ballast): keeps the system your AI agent builds stable under load and on modest machines — measure before optimizing, load tests with CPU/memory limits, p95/p99 targets, backpressure, cost checklist, observability. Claude Code plugin (EN + pt-BR).

Alternatives in AI

  • Claude Code Configs — A comprehensive collection of production-grade Claude Code configurations, specialized agents, and automation 624 ★
  • VibeMeter — A project to measure costs for Cursor and other AI provider 379 ★
  • Ataru — High-performance AI memory retrieval for local agent history — a Rust search core (SDK / API / JSON CLI) plus 351 ★

README

lastro

[Português](README.pt-BR.md)

lastro (ballast) keeps the system you build stable under load and on modest machines. It is a Claude Code plugin about the performance and backpressure of the software the agent writes.

"Lastro" is Portuguese for ballast: the weight that keeps a boat stable in any sea.

Why

Code can be correct and still fall over under load. Typical causes: optimizing by guesswork, queries without an index, lists without a limit, calls without a timeout, unbounded queues, retries that make an outage worse. lastro turns the fix for each into a short, checkable rule. Limiting CPU and memory makes the bottleneck show up early and makes numbers comparable across machines.

The seven sections

  1. Master rule: measure before you touch. No optimization without a measurement; profiler before guesswork; one change at a time; numbers before x after on the same machine and scenario.
  2. Targets in the spec. p95/p99, throughput, error rate and regression tolerance, or an explicit "no performance target".
  3. Load test as a sensor. Only with a target or on request. Versioned k6 or Locust scenario, percentile targets, app limited to 1.5 CPU and 3 GB, load generator outside the limit, realistic data, never against production or third-party APIs.
  4. Baseline and elimination. Start from an endpoint that returns a constant, put the real code back piece by piece; the step that drops the number is the bottleneck.
  5. Backpressure and flow control. Bounded queues, pools and buffers; 429/503 with Retry-After when saturated; timeouts everywhere; retries only when idempotent, with backoff and jitter, in one layer.
  6. Checklist of the costliest patterns. N+1 and missing indexes, unbounded lists, large payloads, heavy work in requests, caches without TTL, no connection pool, blocking I/O, hot-path logging.
  7. Observability. Structured logs with correlation id, traces, metrics for latency, throughput, errors and saturation.

Command