Goal
Data-settled performance goal: metric command, drift-immune counter, realistic/ideal target, and floor computed before work so a target below floor surfaces…
от melodic-software★ 34 звезды на GitHub
Установить Goal в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Goal
Arguments. [<target>]. e.g. /performance:goal the destructive-guard PreToolUse hook
Purpose
Answers "what would count as done, and is it reachable at all?"
Compute the floor before the goal is agreed: a goal of p50 <= 250 ms on a host that charges 0.3-2.8 s for one irreducible process spawn is unreachable by any code change, and the task becomes "remove the spawn or accept the floor", not "make it fast".
Human-gated, always
This phase requires the user, under any autonomy setting; /performance:snapshot and
/performance:verify may run unattended. Choosing between a reframed goal, a different target and
accepting the floor is a judgment about what the work is for, and an agent resolving it turns a
surfaced constraint back into a silent one. If the user is unavailable, stop and say what is
blocked; do not pick a target and proceed.
What a goal must contain
0. Inputs: the ranked candidate
Read the ranking /performance:target produced and quote the chosen candidate's row verbatim
(rank, tier, what is known, the settling counter, the cheapest next instrument). That row is the
object this goal is about, and its tier is the one the Output's Target line carries.
- The ranking says to instrument this candidate first (tier E3 or E4, or its closing line
recommends instrumenting, not optimizing): Stop. A goal cannot be set on a cost nobody has
measured. Run the named instrument, then
/performance:targetagain. - No ranking exists (the user came straight here with a chosen, measured target): record the
evidence the user names and the tier it earns under
/performance:target's tier table. Never leave the tier blank or use the baseline's tier, which answers a different question.
1. The metric, and the exact command that produces it
Not "latency". The literal command, its arguments, and the field of its output that is the number. A metric nobody can re-run is not a metric.
Name the drift-immune counter alongside it (spawns, syscalls, queries, allocations, round trips) and rank the counter above the duration. On a host that cannot support a wall-clock claim, the counter survives: a spawn census of 4 -> 1 still reproduces when the milliseconds behind it do not, because a verifier an hour later meets different load.
Correlation, required. Record the evidence that moving the counter moved the duration; a counter
that does not track the duration is a hill nobody should climb. unproven is a legal value and
travels to the verify report beside the headline counter. The two-rig recipe is in
/performance:snapshot; see prove the proxy.
Measurement boundary. Name the start event, the end event, and which side of any process or network split each falls on. Name the start state too (cold start, fresh load, warm path): each is a different measurement. End at the moment the user or caller can act, not when loading finishes. See goal and boundary.
Parallel units on one event. When units run in parallel behind one user-visible event, the user
waits for the slowest, not the sum. Record the event's wall-clock time (Event:) and the unit's
marginal cost over the next-slowest peer (Unit:); an event-level target sits beside the unit-level
ones, and summed CPU or syscall totals never replace it. Procedure and the hooks example:
parallel units.
Scaling arm when state grows with use. When the subject reads state that grows with real use
(transcripts, logs, queues, caches, databases), measure at two or more sizes spanning realistic use
and record each size and result (Scaling:). Done when states a bound on growth; when the human
has not stated one, the goal is not locked: stop and say what is blocked, and do not pick the bound.
/performance:verify fails a bound not demonstrated at every recorded size. Procedure:
scaling arm.
Code path under test, required. Name the code path(s) the metric exercises and the observable
that identifies each: a marker file, an exit code, the set of processes spawned. A goal that names no
path is not locked. A harness can sit on a rare branch without erroring: a stale bench.launched
marker once sent every Stop-hook sample down the rare interpreter path while the common skip path
went unmeasured. /performance:snapshot step 2b resets or records the path-selecting state before
each arm and reports which path ran.
2. The floor, computed before any work
The irreducible cost this target cannot go below whatever the code does. Compute it by measuring the cheapest possible version of the operation: the empty hook, the no-op spawn, the single round trip, the query returning one row.
lib/spawn_noise.py's spawn_probe() gives the process-spa
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
FAQ
Что делает скилл Goal?
Data-settled performance goal: metric command, drift-immune counter, realistic/ideal target, and floor computed before work so a target below floor surfaces up front (human-gated, never unattended). Use when: 'set a performance target', 'define done for this optimization', 'what is the floor here'. Not for capture: /performance:snapshot.
Как установить скилл Goal?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Goal запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…