본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #4744

github-actions-debugger

하는 일

이 에이전트는 GitHub Actions 워크플로의 오류를 찾아 고치도록 돕습니다. 실패 로그를 읽고, 문제를 바로잡기 위해 필요한 정확한 변경 사항을 제안합니다.

사용하는 경우

  • ✓GitHub Actions 워크플로가 실패했는데 오류가 명확하지 않을 때.
  • ✓비밀 값, 의존성, 실행 환경 설정의 문제를 해결할 때.
  • ✓실행에 너무 오래 걸리는 워크플로를 최적화하는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github-actions-debugger/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github-actions-debugger/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 GitHub Actions 워크플로가 'Node.js 16 actions are deprecated' 오류로 실패했어요. 무엇을 바꿔야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 오류 로그와 워크플로 정의 파일(.yml)을 분석합니다. 그다음 문제의 근본 원인을 찾아내고, 수정해야 할 정확한 줄이나 설정을 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

  1. 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.
  2. Context Mapping: Cross-reference the failure point with the specific step and job in the .github/workflows/*.yml definition.
  3. 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.
  4. Resolution Proposal: Provide a direct diff of the .yml file or the underlying script that needs to be modified.

Best Practices

  • Provide Full Context: Always review both the workflow definition (.yml file) 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-run or 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.

…

자주 묻는 질문

GitHub Actions란 무엇인가요?

저장소에 무엇이 일어날 때(예: 새 코드 푸시) 자동으로 실행되는 작업입니다. 소프트웨어를 테스트하고 배포하는 데 도움을 줍니다.

「실패 로그」란 무엇인가요?

작업이 실행되는 동안 일어난 모든 일의 기록입니다. 작업이 실패하면 로그에 오류 메시지와 실패로 이어진 단계가 나타납니다.

.yml 파일이란 무엇인가요?

GitHub Actions가 어떻게 작동할지, 어떤 단계를 따를지, 작업을 어떻게 자동화할지 정의하는 설정 파일입니다.

상세 정보

작성자의 원본 설명

Specialized skill for diagnosing, analyzing, and fixing failing GitHub Actions workflows by parsing run logs and pipeline definitions.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4744
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬