Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

performances

БесплатноЗапускает вложенные скриптыНе проверен

Performance refactoring behind one command: parallelize async calls, load-test the DB schema, add OTel tracing, wide-event logging, narrow selects, drop…

shipshitdevот shipshitdev★ 39 звёзд на GitHub

Об этом скилле

Performances

One entry point for measured, behavior-preserving performance work on any codebase. Every action detects the stack first, adapts to it, says what does not apply, then follows the same loop: measure before, fix, measure after, ship one PR. The first word of the arguments picks the action; everything after it goes to that action unchanged.

Action Playbook What it does
parallel references/parallel.md Finds sequential awaits on hot paths that are independent and runs them concurrently. Keeps authz gates, transactions, ordered writes, and ordered events sequential. Alias parallel-async.
dbload references/dbload.md Builds a load-test suite for the DB schema: seeds real relationships at 1x/10x/100x/1000x, runs the code's real queries, finds what fails at scale, fixes it, and charts before/after with confidence intervals. Never touches prod. Alias db-load-test.
otel references/otel.md Adds OpenTelemetry tracing to the vendor already in use, applied at function definitions, enforced by a lint rule, with request context on every span and traceparent in and out. Alias otel-tracing.
logging references/logging.md Replaces scattered log lines with one wide, context-rich event per request or job, tail-sampled, sharing trace ids with tracing. Alias wide-event-logging.
select references/select.md Finds whole-row loads that read a few fields and selects only what is needed. Alias select-fields.
url references/url.md Removes new URL() style parsing that does no validation or normalization of untrusted input. Alias url-parsing.
regex references/regex.md Hoists regexes out of functions and loops, handling g/y state and dynamic patterns. Alias hoist-regex.
jsonb references/jsonb.md Promotes a hot-path single key of a large jsonb column to a real column, with migration and backfill that a human approves for prod. Alias jsonb-columns.
all references/all.md Runs the eight actions in that order as separate workstreams, each with its own branch and PR.

Every action also follows references/protocol.md: the shared stack-detection, evidence, behavior-preservation, safety, and PR rules.

Dispatch

  1. Read the first word of the arguments. Accept only the nine actions above or an alias from the table.
  2. Bare /performances, or an unknown first word: print the table above and stop. Do not guess an action and do not run any command. Running everything is /performances all.
  3. Otherwise read references/protocol.md and the action's playbook in full and follow them as if they were the skill, passing the remaining arguments as the scope. Each playbook keeps its own scope, confirmation gates, and final report. For all, also read the eight action playbooks, since all runs each one.

Examples:

/performances parallel                 # sequential awaits across the whole app
/performances parallel src/billing     # limit the scan to one area
/performances dbload                   # load-test the schema at 1x/10x/100x/1000x
/performances otel                     # tracing to the observability vendor already in use
/performances logging                  # wide events with tail sampling
/performances jsonb                    # promote hot jsonb keys, never applies to prod itself
/performances all                      # all eight, separate branch and PR each

Scope

Loading this router authorizes nothing by itself. Only the selected playbook's contract applies, and its confirmation gates stay in force. Never chain to a second action unless the user asks for it (all is that ask) or the selected playbook names that step as part of its own workflow; recommend it instead.

Helper

scripts/compare.py compares before/after samples with bootstrap confidence intervals, a Mann-Whitney test, Holm correction across scenarios, and writes a self-contained HTML chart. Run it from the installed skill directory:

python3 <skill-dir>/scripts/compare.py samples.json --out .tmp/report.html

Input and exit codes are documented at the top of the script. Pass --higher-is-better for throughput-like metrics, so an increase counts as an improvement. Use it for every before/after claim in every action.

Полный SKILL.md на GitHub

Установить performances в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/all.mdreferences/dbload.mdreferences/jsonb.mdreferences/logging.mdreferences/otel.mdreferences/parallel.mdreferences/protocol.mdreferences/regex.mdreferences/select.mdreferences/url.mdscripts/compare.py

FAQ

Что делает скилл performances?

Performance refactoring behind one command: parallelize async calls, load-test the DB schema, add OTel tracing, wide-event logging, narrow selects, drop needless URL parsing, hoist regexes, and promote hot jsonb keys. One PR per action.

Как установить скилл performances?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл performances запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить performances с