ci-triage
Skill này làm gì
Skill này giúp bạn hiểu một bản build hoặc quy trình bị lỗi trong GitHub Actions. Dành cho lập trình viên muốn biết lỗi là do họ, do test chập chờn hay do hạ tầng.
Khi nào nên dùng
- ✓Khi các kiểm tra trên một pull request báo lỗi và bạn muốn biết vì sao.
- ✓Khi một quy trình bị lỗi và bạn cần tìm lỗi thật đầu tiên trong nhật ký.
- ✓Khi bạn nghi một test không ổn định và muốn phân biệt nó với lỗi thật.
Liên kết skill
https://github.com/ParadevAI/Paradev/blob/main/plugins/github/skills/ci-triage/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Các kiểm tra pull request của tôi đang báo lỗi. Bạn có thể cho biết job nào bị lỗi và đó có phải lỗi của tôi không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent liệt kê các job trong lần chạy và tìm job lỗi sớm nhất, sau đó là lỗi đầu tiên trong nhật ký của job đó. Nó phân loại lỗi đó thành lỗi thật, vấn đề môi trường, test chập chờn hoặc vấn đề đã tồn tại từ trước.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Diagnose a failing CI run
The goal is one sentence a human can act on: which job failed, on what, and whether it is this PR's fault. A screenshot of red checks is not a diagnosis.
1. Find the first failure, not the loudest one
List the run's jobs and take the earliest failing one. Later jobs usually fail because an earlier one did, and their logs are longer and more alarming — which is why people diagnose the wrong job.
Within that job, find the first error, not the last. Build tooling prints a summary at the end that names the last thing to fail; the first error is what actually broke.
Skip past the noise that always appears in failing logs: deprecation warnings, peer dependency notices, cache misses. None of them fail a build on their own.
2. Classify before investigating
Read the first error and put it in one of four buckets. They have different fixes and mixing them up wastes the most time.
| Bucket | Signal | What to do |
|---|---|---|
| Real failure | Assertion, type error, or compile error naming code this PR touched | Report the file and line |
| Environment | Network timeout, registry 5xx, disk full, runner image change | Re-run; if it persists, it is infrastructure |
| Flake | Timing, ordering, or concurrency; passes on re-run | See step 4 — do not stop at "re-run passed" |
| Pre-existing | Fails identically on the base branch | Not this PR's problem; say so explicitly |
Check pre-existing early. Fetch the most recent run on the base branch and compare the failing job. A PR blamed for a failure it inherited burns an afternoon.
3. Attribute it to a change
For a real failure, connect the error to a diff. Get the PR's changed files and check whether the failing test or module is among them, or imports something that is.
If the failing area is untouched by the PR, the likely causes in order are: a dependency that moved, a merge with a base that already broke, or a genuine action-at-a-distance bug — which is the most interesting outcome and worth saying out loud.
4. Do not launder a flake into a pass
A re-run that goes green proves the failure is intermittent. It does not prove the code is correct, and intermittent failures in CI are usually real race conditions that will also happen in production.
When you re-run and it passes, say that plainly, name the test, and check whether it has failed before on other PRs. A test that flakes on many PRs is a bug report about that test. Re-running until green and reporting success is how a real concurrency bug survives review.
5. Report
Give the requester, in this order: the job, the first error with its file and line, the bucket from step 2, and what you recommend. Link the specific failing step, not the run — the run page makes them hunt for what you already found.
If the fix is small and obvious, say what it is. If the failure is pre-existing or infrastructural, say who needs to know, since the PR author usually cannot fix it.
Anti-patterns
- Pasting the whole log. If you could not find the relevant twenty lines, the diagnosis is not finished.
- Reporting the last error in the file.
- "CI is flaky" without naming the test.
- Re-running more than twice without reading the log in between.
Câu hỏi thường gặp
Vì sao không xem lỗi cuối cùng?
Các job sau thường lỗi vì job trước đó lỗi, nên lỗi đầu tiên thường cho thấy nguyên nhân thật.
Test chập chờn là gì?
Đó là lỗi do thời gian hoặc thứ tự chạy, có thể qua ở lần chạy khác, và skill không dừng lại ở việc chạy lại đơn giản.
Nó có sửa lỗi không?
Skill tập trung vào chẩn đoán, nhằm chỉ ra job, lỗi đầu tiên và commit gây ra lỗi.
Chi tiết
Mô tả gốc của tác giả
Diagnose a failing GitHub Actions run — find the first real error in the logs, tell a flake apart from a genuine failure, and identify the commit that broke it. Use when checks are red on a PR, a workflow failed, the build is broken, CI is flaky, or the user asks why a run failed or whether a failure is real.
repo: ParadevAI/Paradev
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10828
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
decide
16kHướng dẫn bạn từng quyết định về thiết kế hoặc code, mỗi lần một việc, có lựa chọn rõ ràng và khuyến nghị. Ghi lại mọi câu trả lời và đưa ra bản tóm tắt cuối.
mobile-demo-film
16kBiến video quay màn hình điện thoại thành video demo gọn gàng, có thẻ tiêu đề, khung điện thoại và thẻ kết thúc. Hợp với demo tính năng và clip ra mắt.
redesign
16kXem xét một thành phần giao diện và đề xuất cách sửa cụ thể về khoảng cách, độ tương phản, thứ bậc và bố cục. Cũng có thể áp dụng thay đổi.
superset-settings
16kCho phép agent xem và thay đổi cài đặt ứng dụng desktop Paradev, như giao diện, phông chữ và thông báo, từ dòng lệnh.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.