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★ 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…