Skip to content
Back to skills

X9 Performance

ASecurity

Use when software is too slow, cannot hold its load, or spends too much memory, CPU, size, or money — to audit where it wastes time or resources, or to find and fix a named problem with measurements — slow pages, requests, queries, jobs, cold starts, local dev feedback, throughput limits, memory growth, high cloud or model bills — «тормозит», «проведи аудит оптимизации», «почему так долго», «не держит нагрузку», «жрёт память», "performance audit", "why is this slow". Not for test or CI speed ...

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgodatabaseperformance

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add xonika9/agent-skills --skill x9-performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X9 Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for X9 Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonika9-x9-performance/badge)](https://www.skillsdirectory.com/skills/xonika9-x9-performance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: x9-performance
description: Use when software is too slow, cannot hold its load, or spends too much memory, CPU, size, or money — to audit where it wastes time or resources, or to find and fix a named problem with measurements — slow pages, requests, queries, jobs, cold starts, local dev feedback, throughput limits, memory growth, high cloud or model bills — «тормозит», «проведи аудит оптимизации», «почему так долго», «не держит нагрузку», «жрёт память», "performance audit", "why is this slow". Not for test or CI speed (x9-test-quality), readability refactors, or implementing an already chosen change when the person does not ask whether it helps.
---

# Performance

Find where a system spends time or resources it does not need to, prove why, and remove the waste without weakening correctness. The method does not depend on the stack.

## Modes

- **Audit:** the person does not know what is wrong. Follow [audit](references/audit.md). An audit leaves no code change behind. When the request also asks to fix, the run closes every item in the report as [audit and fix](references/audit.md#audit-and-fix) describes.
- **Optimize:** the person names a problem. Name the metric, find where it goes per [locate](references/locate.md), then change and verify per [measurement](references/measurement.md). A question without a request to fix, such as «почему так долго?», stops after locating and leaves no code change behind.

Route by where the wait is paid: test runs and pipelines belong to x9-test-quality; a developer's machine — dev server, hot reload, local build — belongs here.

Both modes start by reading the project's performance notes and end by updating them as [notes](references/notes.md) describes.

## Name the metric

People describe symptoms, not metrics. Find what the person notices from code, logs, or a quick measurement; when that is not enough, ask what they do and what they see then. Settle the metric in plain words — what is measured, from which event to which, in which scenario and conditions — who pays for it (a person waiting, the system at its load, or a budget), the smallest gain worth keeping, the guard metrics that must not get worse, and the budget. Correctness is always a guard; add what a change could shift, such as memory spent by a cache or money spent by idle capacity. Use values already supplied or agreed in the task. Before changing code, ask in one stop only about a remaining load-bearing ambiguity that context or a safe stated assumption cannot resolve, as [the message that ends a turn](#the-message-that-ends-a-turn) describes; a question that only locates proceeds on the available values and names them in its answer.

When the owner cannot give a value, propose one with its reason and label it `assumed`: the minimum gain is the larger of 10% and the spread of at least three baseline runs taken before any change, where spread is (max − min) / median; expected load is the observed peak times two, or `NOT_PROVEN` without data; the budget is 30 minutes of local runs per metric and no paid runs. Keep the work inside the agreed scenario and budget.

## Evidence

In worker replies, notes, and the saved report, label every claim `measured` (a number from data, with its conditions), `code` (a cause at a file and line, size estimated), `assumed`, or `NOT_PROVEN`; the message to the person translates them as [the message that ends a turn](#the-message-that-ends-a-turn) describes. A number proves size, not cause; a static finding is a hypothesis that names the measurement that would confirm it. Report time and money spent inside a model or external provider as a separate part the project cannot shorten; the calls, payloads, and ordering around it remain levers. Measure browser behaviour through x9-browser-session when it is available.

## Delegation

The orchestrator talks to the person, agrees on the metric, holds permissions and decisions, and keeps the journal. Fresh workers read the project, locate causes, run measurements, and make larger edits, so the orchestrator's context holds conclusions rather than files. Give each worker the metric, scenario, conditions, what it must not do, and the reply format: findings with evidence labels, file and line, numbers with their conditions, and the path to raw data instead of the data itself. Use workers whenever the runtime offers them; stay in the main context only for a single search or a small edit, and when a whole step stays there, say so in the report.

- Reading and searching workers may run in parallel; measurements run one worker at a time, because parallel runs on one machine distort each other.
- A worker never asks the person and never takes an action from the ask-first list; it stops and returns the request.
- Before reporting a verdict or a decisive number, the orchestrator checks it against the raw data.

Worker model and effort follow the runtime and the user's own policy. Without subagents, do the work in the main context, keep only short summaries, and say that the run used the reduced mode.

## Authority

Audit and locating read code, logs, traces, metrics, and databases without changing them. Reads of a non-local system stay within what the owner allowed; on a non-local database, only statistics and catalog views such as `pg_stat_statements` are read without asking. Both may add temporary timing marks, measure, profile, or load-test locally, and write the notes as [notes](references/notes.md) describes. Local means the process and every dependency it calls are local or stubbed. A request to fix or optimize authorizes local edits and local measurements, including reversible local trials of larger options such as pre-started instances.

Ask first, naming the target, the number of runs, and the budget in runs or money, before paid runs; any load, profiler, or memory snapshot that touches a non-local system; changes to a cluster, shared environment, shared cache, or the project's verification harness; and executing statements such as `EXPLAIN ANALYZE` on a non-local database. Deploying any change is outside this skill's authority; for a change that alters cost, isolation, or operations, draft the decision under the project's decision rules and ask.

Never buy performance by weakening a test, check, coverage threshold, timeout policy, isolation, or architecture rule, by deleting a wait without replacing the condition it stood in for, or by serving stale data as fresh. Keep credentials, tokens, personal data, and request contents out of worker replies, notes, and reports.

## Stop

Missing data limits the conclusion: name what stayed unmeasured and mark the report `DEGRADED`. A comparison the budget cannot afford is not started; report what it would need.

## The message that ends a turn

The person reads only the message that ends a turn, so everything they must know or answer goes there; progress updates are not needed. Write it in the person's language and plain words: translate evidence labels and marks such as `DEGRADED` into ordinary phrases — measured, seen in the code, a guess, not checked — give a number only when it changes the decision, and leave thresholds, raw data, and rejected candidates to the notes, linking the file.

Stop to wait only for an unauthorized action from the ask-first list or a load-bearing fact or decision without a safe default, such as how to start a project that needs credentials or data. An already agreed metric, guards, and budget need no further confirmation. In an audit that also fixes, these questions come in one stop after independent authorized fixes are complete. Everything else proceeds on stated defaults, and the result names the ones it used. A stop gives one or two sentences on what is already known, then every question it needs, numbered, each with a proposed answer and its reason, so a plain yes accepts them all.

A result gives:

- Audit: [audit](references/audit.md#reply-to-the-owner).
- Question: what takes the time and where, how sure, what is still a guess, then the next step to choose — fix it, measure further, or leave it — and whether to record the finding in the notes.
- Fix, including fixes after an audit: what improved, for whom, and by how much in the agreed scenario; what changed, and what was tried and reverted; what was not verified and the person should check; any item left open and why.

## Done

- Audit: the report in [audit](references/audit.md#report) and the reply in [audit](references/audit.md#reply-to-the-owner); after fixes, every item closed as [audit and fix](references/audit.md#audit-and-fix) describes.
- Optimize: [locate](references/locate.md#done) for a question and [measurement](references/measurement.md#done) for a fix, each with its result as [the message that ends a turn](#the-message-that-ends-a-turn) describes.
- The notes record this run per [notes](references/notes.md), and temporary timing marks are gone from the diff.

The [onboarding declaration](references/onboarding.json) lists the optional companion skills.

Files in this skill

  • SKILL.md9 KB
  • references/audit.md5.2 KB
  • references/locate.md3.2 KB
  • references/measurement.md3.5 KB
  • references/notes.md5.6 KB
  • references/onboarding.json653 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.