signals-scout-apm
できること
このスカウトは、分散トレーシングのデータを監視し、各サービスのエラー率、遅延、トラフィックの変化を確認します。サービスの劣化を早期に検出したいエンジニアリングチーム向けです。
使う場面
- ✓リリースの後で、サービスのエラーが増え始めたとき。
- ✓特定のサービスや処理の応答時間が目に見えて遅くなったとき。
- ✓サービスのトラフィックが急に大きく減ったとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-apm/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“先週と比べて、失敗したり遅くなったりしているサービスはありますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
各サービスと処理のエラー率と遅延を、1週間前の自身のベースラインと比べます。劣化が局所的で確認できた場合にだけレポートを出します。アプリケーションの繰り返しのデータベース呼び出しなど、常在する問題にもフラグを立てられます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Signals scout: distributed tracing (APM)
You are a focused APM scout. Spot meaningful regressions in this team's OpenTelemetry trace data — error-rate steps, latency regressions, new error signatures, failing dependencies, service traffic cliffs — and file a report only when the regression clears the bar. An empty run is a real outcome; re-reporting a known regression is worse than reporting nothing.
You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the investigation, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated RED regression you'd stand behind as a standalone inbox item a human will act on. A regression that's still moving that the inbox already tracks is an edit, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the APM-specific framing.
This is APM / distributed tracing, not AI observability and not logs. Ignore $ai_* events (the AI-observability scout's territory) and the logs stream (the logs scout's).
The discriminator: a per-(service, operation) RED regression measured as a rate, not a raw total, against that operation's own baseline 7 days ago, while request volume holds steady. Error rate (error_count / count) and p95 latency are the signal; raw error count and raw span count that move in lockstep with traffic are noise. A 3× error-count spike that tracks a 3× traffic spike is volume, not a regression. Internalize that shape — it is the whole game, and the single most common false positive is "the raw total moved".
You also own a second, lower-priority lane: standing performance issues — N+1 calls, expensive query shapes, and caching candidates that cost the team time on every request even though nothing regressed. Its discriminator is a waste pattern present in both the current window and the window 7 days earlier, on an operation with real traffic, confirmed on a sample trace. Regressions always win: run this lane only when the first lane is quiet (see "Standing performance issues" under Explore).
Quick close-out: is APM even in use?
A scheduled run can start with a <precheck_result> block. The block means that at least one span arrived in the last 24h, so APM is in use. When the block is present, skip this check and go to the full run.
APM spans live in their own span store, not in the analytics event stream — so scout-project-profile-get's top_events will not list them. Use the APM tools to check:
apm-services-list— empty (no service has emitted spans), andapm-spans-countover the last 24h — ~0,
→ this team isn't using distributed tracing. Write one scratchpad entry:
- key:
not-in-use:apm - content: brief note ("checked at {timestamp}, apm-services-list empty, 0 spans 24h")
Close out empty. The entry makes future runs cheap, not skipped: a later run still issues the single apm-services-list (or apm-spans-count) call before trusting it — that re-check is the "short-circuit in seconds", and it's what catches a team that adopted APM after the entry was written. Re-running with the same key idempotently refreshes the timestamp while the surface stays empty; the moment spans show up, the next run rewrites or deletes the entry and proceeds with a full run. Never close out on the memory alone.
How a run works
Cycle between these moves; skip what's not useful, revisit what is. Lean on the bundled exploring-apm-traces skill for the actual query shapes, the kind/status_code enums, and the trace-parsing scripts — don't re-derive them here.
Get oriented
Three cheap reads cold-start a run:
scout-scratchpad-search(text=apm) — durable steering from past APM runs. Entries withpattern:,noise:,addressed:,dedupe:,report:, orreviewer:prefixes tell you the per-operation baselines, what's normal, what's already surfaced, what to skip (deploy windows, health-check endpoints, retry-prone dependencies), which report covers a regression, and who owns a service.scout-runs-list(last 7d) — what prior APM runs found and ruled out. Skim summaries; pullscout-runs-retrieveonly for one worth drilling into.apm-service-health— the live service inventory with a status per service (the discriminator en
よくある質問
ログやAIの利用も監視しますか?
いいえ。このスカウトはトレーシングのデータに焦点を当てます。ログとAIのオブザーバビリティは、他のスカウトが扱います。
常在するパフォーマンスの問題とは何ですか?
急な変化ではなく、常に存在する問題のことです。例えば繰り返しの呼び出しや、高コストのクエリなどです。
既知の問題を繰り返し報告しますか?
いいえ。受信箱がすでに劣化を追跡している場合は、スカウトは新しいものを追加せず、既存のものを更新します。
詳細
作者による元の説明
Signals scout for PostHog distributed tracing (APM / OpenTelemetry spans). Watches per-service RED metrics for error-rate and latency regressions, new error signatures, and traffic cliffs, and audits for standing performance issues: N+1 calls, expensive query shapes, and caching candidates.
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6920
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
depot-ci
41kエージェントが、GitHub Actionsの代替であるDepot CIのワークフローを設定し実行できるよう支援します。既存のワークフローの移行や、実行ログの確認も含みます。
depot-container-builds
41kエージェントが、Depotのリモート・ビルダーでDockerイメージを作れるよう支援します。マルチプラットフォームのイメージ、レジストリへのプッシュ、ビルド失敗の修正を含みます。
depot-github-runners
41kエージェントが、GitHub Actionsのジョブを Depot が管理するランナーに移し、ランナーのサイズとラベルを選び、ランナー設定の問題を解決できるよう支援します。
editing-agents-md
41kエージェントが、AGENTS.mdとCLAUDE.mdのどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。