performance-scalability

performance-scalability is a skill for Claude Code, Codex from jggomez/expert-ai-developer-skills. It costs 50 tokens per session (965 once invoked), scanned A, original, Apache-2.0.

Identifies, diagnoses, and remediates performance bottlenecks, memory leaks, and architectural scaling limitations. Use this skill when asked to optimize slow queries, configure caching mechanisms, design asynchronous worker systems, or perform load profiling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Install with agentmods
npx agentmods add skills/jggomez/expert-ai-developer-skills/performance-scalability
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.

Any agent
npx skills add jggomez/expert-ai-developer-skills --skill performance-scalability
Clone the repo
git clone --depth 1 https://github.com/jggomez/expert-ai-developer-skills

Made for: Claude Code, Codex.

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 performance-scalability

README.md
[![agentmods](https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/performance-scalability/github.svg)](https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/performance-scalability)
Your own site
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/performance-scalability"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/performance-scalability/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for performance-scalability

Your own site · 80×15
<a href="https://agentmods.dev/skills/jggomez/expert-ai-developer-skills/performance-scalability"><img src="https://agentmods.dev/badge/skills/jggomez/expert-ai-developer-skills/performance-scalability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 965 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00050 $0.00965
Opus 5.5 $0.00020 $0.00386
Sonnet 5.5 $0.00010 $0.00193
Haiku 4.5 $0.00005 $0.00097

Measured today against content hash a249c0bdaeae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-scalability 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/measure_performance.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/antigravity/python-backend/skills/performance-scalability/SKILL.md · 84 lines

How it starts

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

Performance and Scalability Skill

Overview

This skill identifies, measures, and eliminates performance bottlenecks, memory leaks, and architectural scaling limits. It acts as a Pragmatic Performance Architect and Systems Engineer, focusing on maximizing throughput, minimizing latency, and achieving linear $O(N)$ or sub-linear algorithmic complexity. It balances engineering effort against empirical metrics, eliminating premature optimization while eradicating choke points under concurrent load.

When to Use

Trigger Scenarios

  • Profiling slow function execution paths, API endpoints, or batch jobs.
  • Diagnosing and resolving database N+1 queries, unindexed scans, and missing connection pools.
  • Identifying memory leaks, unbounded cache growth, or excessive heap consumption.
  • Refactoring high-complexity algorithms (e.g. converting $O(N^2)$ loops to $O(N)$ or $O(1)$ lookups).
  • Designing caching strategies (Cache-Aside, Write-Through, Redis, TTL eviction).

When NOT to Use

  • Premature optimization on unmeasured prototypes: Implement cleanly first using code-implementer.
  • Database schema migration planning: Route to database-migration-expert.
  • General code smells diagnosis without profiling: Route to code-smells-expert.
  • Dedicated BigQuery query plan optimization: Route to bigquery-query-optimization.

Process

Phase 1: Automated Bottleneck Scanning

Statically scan the codebase to identify nested complexity loops, unbuffered file I/O, or N+1 query signatures:

python3 ./skills/performance-scalability/scripts/measure_performance.py scan [optional_path_to_scan]

Phase 2: Runtime Execution & Memory Profiling

Measure actual runtime execution duration and peak memory footprint of specific functions:

python3 ./skills/performance-scalability/scripts/measure_performance.py profile <path_to_script.py> <function_name>

Phase 3: Scalability Architectural Optimization

Apply proven patterns from the scalability reference:

  1. Database Queries: Eliminate N+1 queries using eager loading (select_related, joinedload). Ensure query filters match composite indexes. Implement database connection pooling.
  2. Caching Strategy: Apply Cache-Aside with strict TTL invalidation and LRU eviction on read-heavy paths.
  3. Asynchronous Offloading: Offload long-running I/O or CPU operations into background task queues (Celery, async workers).
  4. Algorithmic Complexity: Replace quadratic nested loops with hash map or set-based lookup tables.

Read the full file on GitHub · 84 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 84 lines · 50 tokens per session scan A a249c0bdaeae

Subscribe to this mod's changes

performance-scalability is a skill published in the GitHub repository jggomez/expert-ai-developer-skills (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 965 once invoked, about $0.0002 per session on Opus 5.5. 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-11-06.

Related

performance-scalability compared with skills from other repositories

performance-scalability next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
performance-scalabilityjggomez/expert-ai-developer-skillsSkill30yesterdayApache-2.0A50Claude Code, Codex
mem0-statusmem0ai/mem0Skill68k2d agoApache-2.0A44Claude Code, Codex
python-performance-optimizationHarmeet10000/skillsSkill76mo agoMITA40Claude Code, Codex
dotnet-pinvokeHarmeet10000/skillsSkill76mo agoMITA119Claude Code, Codex
api-integration-architectsickn33/agentic-awesome-skillsSkill49kyesterdayMITA33Claude Code
statusmem0ai/mem0Skill68k2d agoApache-2.0A54Claude Code
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex