github-actions-debugger
Skill này làm gì
Agent này giúp tìm và sửa lỗi trong các workflow GitHub Actions. Nó đọc nhật ký lỗi và gợi ý chính xác những thay đổi cần thiết để khắc phục vấn đề.
Khi nào nên dùng
- ✓Khi một workflow GitHub Actions thất bại và lỗi không rõ ràng.
- ✓Khi cần sửa các vấn đề về secret, dependency hoặc cấu hình môi trường.
- ✓Khi tối ưu các workflow chạy quá lâu.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github-actions-debugger/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
“Workflow GitHub Actions của tôi bị lỗi với thông báo 'Node.js 16 actions are deprecated'. Tôi nên thay đổi gì?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Nó phân tích nhật ký lỗi và định nghĩa workflow (tệp .yml) của bạn. Sau đó, nó xác định nguyên nhân gốc rễ của vấn đề và chỉ ra chính xác dòng mã hoặc cấu hình nào cần sửa.
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.
GitHub Actions Pipeline Debugger
Overview
This skill is designed to act as an expert CI/CD diagnostician. It focuses specifically on reading raw logs from failed GitHub Actions, identifying the root cause of the crash or failure, and outputting the precise YAML or code changes required to fix the pipeline.
When to Use
- Use when a GitHub Actions workflow fails unexpectedly and the error log is long, obscure, or misleading.
- Use when debugging dependency mismatch errors, missing secrets, caching issues, or runner environment problems in CI.
- Use to optimize slow pipelines by identifying bottlenecks in workflow steps.
- Use to update and modernize deprecated actions or workflow syntax.
How It Works
- Log Ingestion & Redaction: Analyze the provided GitHub Actions workflow log (often exported as a raw text file or pasted directly). CRITICAL SAFETY REQUIREMENT: The user/agent must redact all sensitive credentials, secrets, tokens, private keys, and internal system paths from the logs before pasting or uploading them.
- Context Mapping: Cross-reference the failure point with the specific step and job in the
.github/workflows/*.ymldefinition. - Root Cause Analysis: Identify if the failure is due to:
- Missing or misconfigured secrets (
${{ secrets.API_KEY }}). - Node/Python/OS environment version mismatches.
- Flaky tests or timeout limits.
- Syntax errors in bash scripts run within the
run:block. - Invalid action versions or deprecated actions.
- Missing or misconfigured secrets (
- Resolution Proposal: Provide a direct
diffof the.ymlfile or the underlying script that needs to be modified.
Best Practices
- Provide Full Context: Always review both the workflow definition (
.ymlfile) and the failure log simultaneously to ensure accurate diagnosis. - Check Action Versions: Many failures are caused by deprecated runtime versions (e.g., Node.js 16) in older third-party actions (e.g.,
actions/checkout@v2). Inspect the installed runner requirements and supported action release, verify upstream changes, and pin the reviewed full commit SHA. Do not assume a historical v4 example is latest. - Permissions Audit: Ensure the workflow has the correct
permissions:block if it's attempting to write to the repository, packages, or deploy environments. - Reproducibility: If a test fails in CI but passes locally, investigate environment differences such as timezone, headless browser state, memory limits, or parallel execution race conditions.
Examples
Example 1: Fixing a Deprecated Node.js Action Version Error
Failing Log:
Warning: The Go/Node.js/Python version used by this action is deprecated.
Error: Node.js 16 actions are deprecated. Please update to use Node.js 20.
Proposed Fix Diff:
- name: Checkout Code
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
Example 2: Diagnosing and Fixing a Missing Repository Secret
Failing Log:
Run npm run deploy
npm run deploy
shell: /usr/bin/bash -e {0}
Error: API Key is required for deployment. Process exited with code 1.
Proposed Fix Diff:
- name: Deploy App
run: npm run deploy
+ env:
+ DEPLOY_API_KEY: ${{ secrets.DEPLOY_API_KEY }}
Exact Run Binding
Record repository, run ID, attempt, event, head SHA, runner and failing step. Read the workflow and referenced scripts from that same commit, not merely current main. Separate source errors, permissions, missing tools and observation timeouts. Never weaken tests or required checks to obtain a green badge.
Security & Safety Notes
- Credential Exposure & Raw Log Redaction: Under no circumstances should raw logs containing unmasked secrets, private URLs, deployment targets, or tokens be processed without prior redaction. Always ensure the user or agent redacts all sensitive info before ingestion.
- Dry-Run Mode: When recommending modifications to bash script steps inside workflows, ensure you suggest adding flags like
--dry-runor staging execution where possible to prevent unintended side effects in downstream environments during debugging.
Limitations
- The skill cannot securely read repository secrets. It can only infer missing or malformed secrets if the log complains about undefined environment variables or authentication failures.
…
Câu hỏi thường gặp
GitHub Actions là gì?
Đây là các tác vụ tự động chạy khi có sự kiện xảy ra trong kho mã của bạn, như push mã mới. Chúng giúp kiểm thử và triển khai phần mềm tự động.
Nhật ký lỗi (failure logs) là gì?
Đây là bản ghi mọi thứ đã xảy ra trong quá trình chạy một tác vụ. Khi tác vụ thất bại, nhật ký cho thấy thông báo lỗi và các bước dẫn đến thất bại.
Tệp .yml là gì?
Đây là tệp cấu hình nơi bạn định nghĩa cách GitHub Actions hoạt động, các bước cần làm và cách tự động hóa tác vụ.
Chi tiết
Mô tả gốc của tác giả
Specialized skill for diagnosing, analyzing, and fixing failing GitHub Actions workflows by parsing run logs and pipeline definitions.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4744
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
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.