Command Palette

Search for a command to run...

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

thundering-herd-investigation

Investigate CloudWatch cache stampedes using local source to interpret logs. Use for daily thundering-herd checks, a cache key or burst window, saved-log…

БесплатноЗапускает вложенные скрипты
dejanrот dejanr★ 15 звёзд на GitHub

Установить thundering-herd-investigation в Claude Code и Claude Desktop

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

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

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

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

Thundering herd investigation

Use the bundled CLI for collection and arithmetic. Explain its evidence rather than rebuilding queries or analysis scripts.

Resolve SKILL_DIR to the directory containing this file. Commands below work from any repository. Supported flags live in python3 "$SKILL_DIR/scripts/herd.py" <command> --help.

1. Select scope

For online collection, ask which AWS profile to use unless the user explicitly selected one for this investigation. Ask for the region and log group if not already supplied. Use only explicitly selected connection settings; there are no environment-specific defaults. Set AWS_PROFILE, AWS_REGION, and LOG_GROUP to those selections for the commands below. Offline analysis needs no AWS settings.

Read references/interpretation.md for the local source walkthrough and generic JSON event contract. Complete step 2 before running a collection command below. The CLI is not a universal log parser: daily discovery requires that contract in the selected log group. For other formats, agree on a source-grounded private conversion outside repositories and analyze the converted downloads offline.

Choose one branch:

Daily review: scan the requested range and investigate the top candidate windows. Use one hour unless the user requests a full day.

python3 "$SKILL_DIR/scripts/herd.py" daily \
  --profile "$AWS_PROFILE" --region "$AWS_REGION" --log-group "$LOG_GROUP" \
  --since 1h --top 3

For a daily retrospective, replace 1h with 1d. Discovery scans the selected log group and incurs CloudWatch query charges. It ranks five-second miss buckets; the top limit and bucket boundaries make this screening, not an exhaustive fleet audit.

Known key and times: use timezone-qualified timestamps. Repeat --at for multiple windows.

python3 "$SKILL_DIR/scripts/herd.py" investigate \
  --profile "$AWS_PROFILE" --region "$AWS_REGION" --log-group "$LOG_GROUP" \
  --key <64-character-hash> \
  --at 2026-01-01T09:16:30Z \
  --at 2026-01-01T09:21:57Z

Saved logs: analyze offline without credentials. Accept a saved run directory or one or more filter-log-events JSON files.

python3 "$SKILL_DIR/scripts/herd.py" analyze --input /path/to/saved-run

Add --key when selecting a key from manually downloaded full-window files. A saved run directory preserves its original scope and key selection.

Done: environment, time range, key selection, and collection cost are explicit.

2. Ground the logs in local source

Start from the active harness instance's working directory and resolve its repository/worktree root. This is the application source candidate, distinct from SKILL_DIR and the dotfiles repository publishing this skill. Follow that checkout's agent instructions and relevant domain docs. If it is unrelated to the logged service, use an explicitly supplied local checkout or ask for its path; avoid guessing a sibling repository.

Follow the interpretation reference's Local source walkthrough to derive log format and semantics from emitters, callers, middleware, and proxy configuration. Use source to explain the records, and captured records to establish what happened. Record the checkout revision, dirty state, deployment match, field mappings, and path:line evidence in private source-notes.md alongside the run artifacts. This is a manually maintained companion, not CLI-generated metadata. Recheck relevant mappings when the revision, log format, or environment changes.

If source or the deployed revision is unavailable, continue with observational analysis only where the event contract is established. Label source-derived explanations as unverified for deployment; leave unsupported mappings and causes unresolved.

Done: the log contract and causal claims have source citations or explicit evidence gaps; collection/parsing compatibility is established before using the CLI.

3. Collect once

The CLI checks credentials for the selected profile before collection, downloads paginated events, and writes private artifacts outside Git repositories. It has no expected account ID and does not retain the caller account. Read the printed report.md path.

If AWS reports expired credentials, ask the user to refresh the selected profile. Resume after confirmation. Once scope and source availability are established, credential refresh is the only interactive prerequisite; use the selected profile. Keep authentication material outside artifacts and replies.

Start with key-filtered downloads. Use --context when investigating broader service pressure; this includes unrelated requests. Increase --padding, for example --padding 30s, when requests lack final access records or approach capture boundaries. Each online run creates a new artifact directory. Reuse completed downloads through analyze instead of rescanning AWS.

Done: raw downloads and scope.json exist, AWS operations completed, an

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

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

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

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

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

  • references/interpretation.md
  • scripts/analysis.py
  • scripts/artifacts.py
  • scripts/herd.py
  • scripts/test_herd.py

FAQ

Что делает скилл thundering-herd-investigation?

Investigate CloudWatch cache stampedes using local source to interpret logs. Use for daily thundering-herd checks, a cache key or burst window, saved-log analysis, or correlated cache misses, SSR overlap, pressure rejections, and conditional headers.

Как установить скилл thundering-herd-investigation?

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

Скилл thundering-herd-investigation запускает скрипты?

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

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

Сравнить thundering-herd-investigation с