diagnosing-ci-and-merge-bottlenecks
Was er macht
Dieser Skill nutzt Engineering-Analysen, um zu zeigen, wie Pull Requests von offen bis zusammengeführt vorankommen und wo die CI sie ausbremst. Er richtet sich an Engineering-Leitungen, die einen klaren Blick auf die Liefergeschwindigkeit ihres Teams wollen.
Wann du ihn nutzt
- ✓Wenn du wissen willst, ob die CI im Laufe der Zeit schneller oder langsamer wird.
- ✓Wenn du den GitHub-Actions-Workflow finden musst, der am langsamsten oder unzuverlässigsten ist.
- ✓Wenn du wissen willst, wie lange Pull Requests von offen bis zum Merge brauchen.
Link zum Skill
https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/diagnosing-ci-and-merge-bottlenecks/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Wird unsere CI langsamer, und welcher GitHub-Workflow verursacht die Verzögerungen?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill liest Pull-Request-Daten und den Zustand jedes Workflows über ein Zeitfenster und berichtet Median- und 95.-Perzentil-Zeiten. Du musst keine Abfragen schreiben.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Diagnosing CI and merge bottlenecks
Engineering analytics treats a pull request like product analytics treats a user: a PR moves through a pipeline
(opened → CI → review → merged → deployed) and the job is to find where it slows down. The surface is named
MCP tools — you call them, you don't write SQL. Dogfooded on PostHog/posthog; the same tools serve
autonomous agents (e.g. PostHog Desktop) reasoning about their own PRs. Scope is aggregate pipeline health:
to take one failing test or red run to a verdict, switch to the investigating-ci-failures skill.
The tools
pull-requests— the PR workhorse. Open PRs plus anything merged or closed sincedate_from(default-30d), newest first. Each row carriesauthor(nested object:handle,display_name,is_bot),repo(nested:owner,name),state,is_draft,labels,open_to_merge_seconds,ready_to_merge_seconds, and acirollup (runs/passing/failing/pending) from the head-SHA join. Answers most PR-level questions: which PRs have failing or pending CI, which are stuck open longest, per-author or per-repo triage, and time-to-merge stats (aggregate over the returned merged rows yourself, median and p95, never a mean; preferready_to_merge_secondswhere non-null, it excludes draft time).workflow-health— per-workflow CI health over a window (date_from/date_to, default last 24 hours):run_count,success_rate,p50_seconds,p95_seconds,last_failure_at. Answers "is CI getting faster or slower" and "which workflow is the slow or flaky long pole". There is no built-in trend — call it over two adjacent windows and compare.success_ratecovers runs that succeeded or ended in a decisive failure (failure,timed_out,startup_failure, orstale), excluding skipped, cancelled, neutral, and action-required runs.p50_seconds/p95_secondscover successful runs only because cancelled and failed runs end early and would bias the duration trend. Each isnullwhen a window has no qualifying runs — guard for null before comparing two windows (a workflow can have runs in one and none in the other).run_scope=pull_requestscopes to PR-attributed runs, excluding master/main (same-repo PRs only — fork runs carry no PR attribution).pr-lifecycle— a single PR's timeline: a header plus ordered events — opened, ready-for-review and converted-to-draft transitions (when the issue-events table is synced), then a CI started/finished pair per workflow run (many on a multi-workflow repo, interleaved by time), then merged/closed. Answers "where is PR N stuck".metric_qualityispartial(no review or comment events).engineering-analytics-flaky-tests— the active test-health queue from the per-test CI spans, over a window (date_fromdefault-7d, max 30 days). Evidence is counted per CI run, never per span or run attempt.classificationisconfirmed_flakeonly where the evidence proves nondeterminism (same_commit_recovery_run_count > 0: one commit both failed and passed the test in the same matrix job, via a "Re-run failed jobs" attempt going green or an in-job retry; a pass in a different leg, such as FOSS against EE, is not recovery);quarantinedmeans a tolerated failure was recorded while masked;suspected_regressionmeans only failures were recorded, which is absence of proof, not proof of a real break. A test qualifies on any same-commit recovery, a quarantined failure, any master/main failure, or failures on ≥min_failed_prsdistinct PRs (failed_pr_count). Answers "what is this failing test costing us" and picks quarantine candidates. It does not answer "which tests are flaky": this queue only sees the main Backend pytest and Frontend Jest suites, and recovery proof only arrives when someone re-runs failed jobs (or a pytest test is hand-marked@pytest.mark.flaky(reruns=N)). Counts are absolute signal, never rates: passing runs are mostly not emitted, so there is no honest denominator. A CI setup break excludes every trial of the attempt, not only its failures: a run attempt whose tests errored in 3 or more jobs or for 3 or more owning teams, or a job attempt with 100 or more distinct failed or errored tests. A real break that wide is left out too, so when a whole suite or job goes red, checkworkflow-healthrather than reading an empty queue as healthy.**`engineering-analytics
Häufige Fragen
Muss ich SQL schreiben?
Nein. Er nutzt benannte Werkzeuge, du kannst also in einfacher Sprache fragen.
Warum nutzt er den Median statt des Mittelwerts?
Einige sehr langsame Pull Requests können einen Mittelwert verzerren. Median und 95. Perzentil zeigen ein faireres Bild.
Kann er einen einzelnen fehlschlagenden Test untersuchen?
Nein. Für einen einzelnen fehlschlagenden Test oder Lauf gibt es einen eigenen Untersuchungs-Skill.
Details
Originalbeschreibung des Autors
Diagnoses CI and pull-request pipeline health for a GitHub repo using the engineering analytics MCP tools — pull-requests (PR list with CI status), workflow-health (per-workflow CI trends), and pr-lifecycle (a single PR's timeline). Use when asked whether CI is getting faster or slower, which GitHub Actions workflow is the slow or flaky long-pole, how long PRs take from open to merge, how an author's merge time compares to the cohort, which open PRs have failing or pending CI, or where a specific pull request is stuck. Triggers on "engineering analytics", "is CI getting slower", "slow workflow
repo: PostHog/posthog
Beliebtheit
- GitHub-Sterne
- 41k
- Platz im Ranking
- #6864
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
depot-ci
41kBringt deinem Agenten bei, Depot-CI-Workflows einzurichten, bestehende Workflows zu migrieren und Laufprotokolle auszuwerten.
depot-container-builds
41kHilft deinem Agenten, Docker-Images auf Depot-Remote-Buildern zu bauen, mit Multi-Plattform-Images, Registry-Push und Fehlerbehebung.
depot-github-runners
41kLässt deinen Agenten GitHub-Actions-Jobs auf Depot-Runnern laufen, mit passender Runner-Größe und Labels, und hilft bei Einrichtungsfehlern.
editing-agents-md
41kHilft deinem Agenten zu entscheiden, ob eine Regel in AGENTS.md oder CLAUDE.md gehört, und sie so zu formulieren, dass sie hält.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.