Command Palette

Search for a command to run...

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

bottleneck-map

Map the current "what is limiting us right now?" state across the running agent fleet and the live GitHub issue backlog. Runs fleet bottleneck detection plus…

БесплатноБез исполняемых скриптов
anthony-chaudharyот anthony-chaudhary★ 50 звёзд на GitHub

Установить bottleneck-map в Claude Code и Claude Desktop

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

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

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

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

/bottleneck-map - system + backlog limiter map

Wraps tools/fleet_bottleneck.py and tools/issue_triage.py. The point is one operator answer: what is the actual limiter right now, what issue work is blocked behind it, and which durable loop should run next?

This skill is a read-mostly coordination pass. It may write local evidence artifacts and a dated note, but it must never mutate GitHub state. Labeling, closing, assigning, or commenting on issues stays in /issue-triage and still requires operator approval.

Project Contract

Read .claude/project.yaml from the repo root. Required keys:

  • python - interpreter path, default python.
  • helpers.fleet_bottleneck - fleet/system bottleneck helper.
  • helpers.issue_triage - open-issue triage helper.
  • audits_dir - ignored operator snapshots, default docs/_audits/.

If either helper is absent, print one line naming the missing key and stop. Do not reconstruct these scans by hand from ad hoc gh issue list pages.

Step 1 - Refresh System Bottlenecks

If the tools lane is safe to mutate, run the cheap registry-only CLI pass:

<p> <h.fleet_bottleneck> report --no-audit
<p> <h.fleet_bottleneck> json --no-audit --out tools/_registry/bottleneck-map-latest.json

The CLI refreshes tools/_registry/BOTTLENECKS.txt, bottlenecks.json, and fleet_bottleneck.prom as a side effect. If tools is held by another worker, do not run the CLI. Use a read-only import of collect() + rank_bottlenecks() instead and write only the human note under docs/notes/:

PowerShell form:

@'
import importlib.util, json
from pathlib import Path
p = Path("tools/fleet_bottleneck.py")
spec = importlib.util.spec_from_file_location("fleet_bottleneck", p)
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
snap = m.collect(audit=False)
ranked = m.rank_bottlenecks(snap)
r = snap.get("registry") or {}
print(json.dumps({
    "generated_utc": snap.get("generated_utc"),
    "health": ranked.get("health"),
    "headline": ranked.get("headline"),
    "counts": r.get("counts"),
    "top_bottlenecks": ranked.get("bottlenecks", [])[:8],
}, indent=2, default=str))
'@ | python -

Use --audit only when the question is specifically about token/cache waste or top spenders; it reads transcripts and is slower:

<p> <h.fleet_bottleneck> report

Extract only the load-bearing fields:

  • health and registry age.
  • headline bottleneck.
  • top 3-6 ranked bottlenecks with score/severity/symptom/fix.
  • active slot counts: active, workers_on_throttled, rate_limited, auth_blocked, auto_resume, hanging.
  • classification: evidence scope, horizon, and weight.

Interpretation rule: if any system bottleneck is CRITICAL, do not recommend launching more workers as the first move. Name the recovery/account fix first, but do not confuse a transient gate with the most important durable problem.

Step 2 - Refresh Issue/Open-Work Bottlenecks

Run the same read-only issue pass /issue-triage uses:

<p> <h.issue_triage> --markdown --out <audits_dir>/issue-triage-<YYYY-MM-DD>.md
<p> <h.issue_triage> --actions  --out <audits_dir>/issue-actions-<YYYY-MM-DD>.json

Read the markdown report and actions manifest. Extract:

  • open issue count and missing-label counts.
  • orphan P0/P1 count.
  • mechanical action count vs review-only count.
  • top P0 rows and the top P1 rows if they explain the bottleneck.

Interpretation rule: if mechanical actions are zero and review-only actions are large, the backlog bottleneck is judgment/ownership, not stale cleanup. Do not invent automatic closes.

Step 3 - Decide The Next Loop

First classify each bottleneck:

Field Values Rule
Evidence scope public, operator-private Public evidence is GitHub issue numbers/titles/labels, public docs, and commit refs. Operator-private evidence is account names/dirs, auth state, session IDs, transcript details, reset times, private host paths, and token/cost details. Tracked public notes should aggregate or redact private evidence.
Horizon transient, semi-durable, structural Rate limits, auth failures, temporary API errors, and at-cap pressure are transient unless repeated across passes. Watchdog absence, auto-resume backlog, stale telemetry, and surfacing backlog are semi-durable operating-loop problems. Missing labels, orphan P0/P1, broken routing, and missing ownership are structural open-work problems.
Weight dispatch-gating, process-debt, strategic Transient CRITICAL/HIGH rows gate dispatch now but should be rechecked before becoming strategy. Semi-durable rows become process debt if still present next pass. Structural rows carry strategic weight because they do not clear with time.

Keep two outputs: stop/continue dispatch now and what durable loop should improve next. They are allowed to differ.

Use this table. The first true row wins.

| Evidence | Bottleneck | Next durabl

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

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

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

  1. 01Read
  2. 02Bash
  3. 03Write
  4. 04Grep
  5. 05Glob

FAQ

Что делает скилл bottleneck-map?

Map the current "what is limiting us right now?" state across the running agent fleet and the live GitHub issue backlog. Runs fleet bottleneck detection plus issue triage, records the dominant system bottlenecks, open-work bottlenecks, and the durable process loop to run next. Use when the operator asks for bottlenecks, open-work constraints, fleet health, issue/backlog limits, or a durable ongoing process for keeping both visible.

Как установить скилл bottleneck-map?

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

Скилл bottleneck-map запускает скрипты?

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

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

Сравнить bottleneck-map с