Command Palette

Search for a command to run...

Назад к скиллам
скилл № 95206

Target

Rank optimization targets by evidence quality (when code feels slow, session pain, named path, telemetry, slow git hooks or CI checks), yielding 'instrument…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

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

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

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

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

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

Target

Arguments. [<path|component|'session'|'telemetry'>]. e.g. /performance:target plugins/disk-hygiene/hooks

Purpose

Answers "what should we optimize, and how much do we actually know about it?"

Never pick a target because its mechanism sounds expensive. A diagnosis blaming WDAC code-integrity enforcement for slow process spawns is wrong when the data says otherwise, even with the policy enabled: a spread of min 180.5 ms / median 1107.7 ms / max 2841.3 ms across identical no-op spawns is a contention signature, because a fixed policy check cannot produce a 15x spread. The bimodality is the diagnosis; the plausible mechanism is a distraction.

Rank by evidence, and say so when there is none.

Inputs it accepts

Source What to do
The current session's own pain Name the operation that felt slow and what was observed. A screenshot or recording counts. Anecdote is a valid candidate source and an invalid ranking basis.
A named path or component Enumerate the layers it spans before choosing one (see "Measure the layers first").
A telemetry store /harness-ops:observability (if enabled) for Claude Code's own; otherwise the project's. Prefer it over every other source, after checking its accuracy and coverage.
Slow checks: git hooks, a local check script or CI jobs Rank per check and lane (see "Slow checks, hooks and CI"). Claude Code's own hooks are the go-faster hooks area, not this row.
Open-ended "what is slow here" The open-ended sweep belongs to /performance:go-faster; this skill ranks what that sweep, or the user, brings. With nothing brought, expect "instrument this first".

Evidence tiers

Rank every candidate into exactly one. A lower tier never outranks a higher one, regardless of how compelling the mechanism sounds.

Tier Means Example
E1, attributed measurement A measurement that isolates this component's cost from its neighbors' A spawn census showing this hook costs 4 of the 7 spawns per tool call
E2, aggregate measurement A real measurement that includes this component but does not isolate it "The whole pre-tool path takes 1.2 s"
E3, structural inference No measurement; a documented cost model predicts expense "This is a 125-line shell wrapper that runs per tool call"
E4, suspicion A plausible mechanism and nothing else "WDAC is probably slowing spawns"

Nothing above E3 exists means the top recommendation is "instrument this first", naming the cheapest instrument that would reach E2. That is the answer; do not substitute a ranked guess.

Cheap instruments: a census of what runs on the hot interaction, and events tagged with the region and phase the symptom hits.

Measure the layers before choosing one

When a candidate spans layers (a wrapper script around a larger program; a request through a data access layer through a driver), attribute cost across the layers before picking one to optimize.

Do not pick the largest layer by size: a 125-line wrapper can carry roughly 88% of the cost while the 1903-line program it execs is not the bottleneck. Layer attribution is cheap and reorders the candidate list.

Trace past the headline event too: work no metric covers (background reloads, idle-state work) still costs. For a field report with a recording, follow the diagnosis ladder before theorizing. See diagnose.

To name a candidate's mechanism, find the row of the profile-to-family table in optimization patterns that the evidence matches; a mechanism with no matching row is not named. A deletion candidate is the exception: it comes from reading the path's callers, so it ranks E3 until a measurement covers it.

Slow checks, hooks and CI

A repository's checks run in lanes: a commit hook, a push hook, the pre-PR check (run once per head before a pull request opens) and CI. Treat each lane as a layer and attribute before choosing.

  1. Inventory each check and its lane from the repository's hook-manager config, its check scripts and its CI workflows. For hook timings, the git-hooks installer's read-only inspect inventory, run through a format plugin's setup check inspect (if enabled), lists every hook per stage and times the plugin's own entries. Read the repository's own placement record and budgets first (rules, conventions, agent instructions); they override this skill. This repository's worked case is the check-placement contract, Duration budgets; borrow no number from it. With no recorded budget, setting one is /performance:goal's job.
  2. **One candidate
Полный SKILL.md на GitHub

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

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

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

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

  • evals/evals.json

FAQ

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

Rank optimization targets by evidence quality (when code feels slow, session pain, named path, telemetry, slow git hooks or CI checks), yielding 'instrument this first' instead of a guess. Use when: 'what should we optimize', 'find the bottleneck', 'is X worth optimizing'. Not for whole-process sweeps: /performance:go-faster.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Target с