/gabbe-coding:performant-pythonfrom gabbe-coding
Speeds up Python services using async I/O, FastAPI, Pydantic v2, connection pooling, memory optimization, and profiling with py-spy and load tests. Use when a Python service is slow, blocks the event loop, or uses too much memory.
Ships in gabbe-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Building high-concurrency, low-latency Python services by leveraging asynchronous patterns, optimized runtimes, and efficient memory management.
async/await for all network and disk I/O. Use run_in_executor for CPU-bound tasks to avoid blocking the event loop.uvloop as the drop-in replacement for the default asyncio loop for significant speedups.asyncio.gather() or asyncio.TaskGroup (Python 3.11+) for parallel I/O operations.asyncpg for PostgreSQL or aiomysql. Use SQLAlchemy/Tortoise with async support.ORJSONResponse or UJSONResponse in FastAPI for faster JSON encoding/decoding..model_dump(include={...}) to minimize data transfer.__slots__ in frequently instantiated classes to reduce memory footprint and increase attribute access speed.generators and yield for processing large datasets to keep memory usage constant (O(1)).gc thresholds if necessary, but prioritize object reuse to minimize pressure.UvicornWorker to scale across CPU cores.httpx instead of requests).cProfile for code path analysis.Py-Spy or Scalene for production-safe, low-overhead profiling.Py-Spy to find the hot paths in a running process.requests or standard psycopg2) are used in an async context.Locust or k6 to verify speed improvements under load.ARCHITECTURE_REVIEW_TEMPLATE.md: Analysis of blocking calls and memory architecture.SCALABILITY_ANALYSIS_TEMPLATE.md: Roadmap for converting sync logic to async.BENCHMARK_REPORT_TEMPLATE.md: Response time comparisons (Before/After load testing).Locust or k6) before and after each change.requests, psycopg2) inside async code.time.sleep(), heavy computation); guard shared state with asyncio.Lock or avoid it.py-spy to a production process only with the human's go-ahead.asyncio.TaskGroup needs 3.11).cython or numba only when profiling shows the pure Python path is still too slow.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-coding30 skills in this plugin
/agent-trajectory-evalScore an agent's run by its tool calls and state transitions, not only its final answer: tool and parameter F1, in-order match, legal transitions, pass^k. Use when you evaluate how an agent reached an answer or need a reliability figure over repeated runs./artisan-commandsRun Laravel Artisan commands safely: check the project and environment, run the command, verify the result. Use when the user asks to scaffold a controller or model, run migrations or manage a Laravel app with php artisan./browser-tddWrite Playwright tests that check a UI in a real browser (DOM, computed styles, scroll, screenshots) before the code. Use when a UI task is about layout, sticky or fixed elements, modals, animations or anything that only works when it renders correctly./chaos-fault-injectionProduce a fault-injection matrix: each fault (dropped connection, corrupt write, latency, bad response, resource exhaustion) with its expected recovery and an assertion. Use when you must show that a system recovers, rolls back or stops safely when a dependency fails./ci-autofixFix a failing CI run: read the log, find the first root cause (lint, types, test, build), apply a minimal change and verify it locally. Use when CI is red, a build is broken, or a lint, type or test job fails./design-by-contractState preconditions, postconditions and invariants at module boundaries and make them runnable checks. Use at S03/S05 for level 1 code with logic, public module interfaces, or when a requirement says what must always hold. Use when: design by contract, preconditions, postconditions, invariants, contract at boundary, icontract, assert contracts, module boundary checks.Other plugins' skills for the same job