diagnosing-ci-and-merge-bottlenecks
하는 일
이 스킬은 엔지니어링 분석을 사용해 풀 리퀘스트가 열림에서 병합까지 어떻게 진행되는지, CI가 어디서 지연시키는지 보여 줍니다. 팀의 전달 속도를 명확히 보려는 엔지니어링 리드를 위한 것입니다.
사용하는 경우
- ✓CI가 시간이 지나며 빨라지는지 느려지는지 알고 싶을 때.
- ✓가장 느리거나 가장 불안정한 GitHub Actions 워크플로를 찾아야 할 때.
- ✓풀 리퀘스트가 열림에서 병합까지 얼마나 걸리는지 알고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/engineering_analytics/skills/diagnosing-ci-and-merge-bottlenecks/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 CI가 점점 느려지고 있나요? 어떤 GitHub 워크플로가 지연을 일으키나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
시간 창에 걸쳐 풀 리퀘스트 데이터와 워크플로별 상태를 읽고, 중앙값과 95번째 백분위수 시간을 보고합니다. 쿼리를 직접 쓸 필요는 없습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
SQL을 써야 하나요?
아니요. 이름이 지정된 도구를 쓰므로 일상적인 말로 물을 수 있습니다.
평균 대신 중앙값을 쓰는 이유는 무엇인가요?
아주 느린 풀 리퀘스트 몇 개가 평균을 왜곡할 수 있으므로, 중앙값과 95번째 백분위수가 더 공정한 그림을 줍니다.
실패한 테스트 하나를 조사할 수 있나요?
아니요. 테스트나 실행 하나의 실패는 별도의 조사 스킬을 씁니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 41k
- 순위
- #6864
- 라이선스
- —
- 업데이트
- 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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.