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

gha

하는 일

이 스킬은 링크를 바탕으로 실패한 GitHub Actions 실행을 조사합니다. 실패의 정확한 원인을 찾은 뒤, 최근 실행을 확인해 문제가 반복되는지 봅니다. 실패하는 빌드를 자주 보는 개발자를 위한 것입니다.

사용하는 경우

  • ✓GitHub Actions 실행이 실패해서 정확한 원인을 알고 싶을 때.
  • ✓워크플로의 작업이 가끔 실패해서 얼마나 자주 실패하는지 알고 싶을 때.
  • ✓어떤 작업이 처음 실패하기 시작했는지 만든 커밋을 찾고 싶은 경우.

스킬 링크

https://github.com/ykdojo/claude-code-tips/blob/main/skills/gha/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/ykdojo/claude-code-tips/blob/main/skills/gha/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 실행을 보고, 무엇이 원인인지, 계속 발생하는지 알려 주세요.”

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

작동 방식

스킬은 gh 명령줄 도구를 사용해 실행 로그를 읽고 실패 원인을 찾습니다. 그다음 같은 작업의 최근 실행을 확인해 성공률과 마지막으로 통과한 시점을 봅니다.

기술 내용 (원본 SKILL.md)

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

Investigate this GitHub Actions URL: $ARGUMENTS

Use the gh CLI to analyze this workflow run. Your investigation should:

  1. Get basic info & identify actual failure:

    • What workflow/job failed, when, and on which commit?
    • CRITICAL: Read the full logs carefully to find what SPECIFICALLY caused the exit code 1
    • Distinguish between warnings/non-fatal errors vs actual failures
    • Look for patterns like "failing:", "fatal:", or script logic that determines when to exit 1
    • If you see both "non-fatal" and "fatal" errors, focus on what actually caused the failure
  2. Check flakiness: Check the past 10-20 runs of THE EXACT SAME failing job:

    • IMPORTANT: If a workflow has multiple jobs, you must check history for the SPECIFIC JOB that failed, not just the workflow
    • Use gh run list --workflow=<workflow-name> to get run IDs, then gh run view <run-id> --json jobs to check the specific job's status
    • Is this a one-time failure or recurring pattern for THIS SPECIFIC JOB?
    • What's the success rate for THIS JOB recently?
    • When did THIS JOB last pass?
  3. Identify breaking commit (if there's a pattern of failures for the specific job):

    • Find the first run where THIS SPECIFIC JOB failed and the last run where it passed
    • Identify the commit that introduced the failure
    • Verify by checking: does THIS JOB fail in ALL runs after that commit? Does it pass in ALL runs before?
    • If verified, report the breaking commit with high confidence
  4. Root cause: Based on logs, history, and any breaking commit, what's the likely cause?

    • Focus on what ACTUALLY caused the failure (not just any errors you see)
    • Verify your hypothesis against the logs and failure logic
  5. Check for existing fix PRs: Search for open PRs that might already address this issue:

    • Use gh pr list --state open --search "<keywords>" with relevant error messages or file names
    • Check if any open PR modifies the failing file/workflow
    • If a fix PR exists, note it in your report and skip the recommendation section

Write a final report with:

  • Summary of failure (what specifically triggered the exit code 1)
  • Flakiness assessment (one-time vs recurring, success rate)
  • Breaking commit (if identified and verified)
  • Root cause analysis (based on the ACTUAL failure trigger)
  • Existing fix PR (if found - include PR number and link)
  • Recommendation (skip if fix PR already exists)
자주 묻는 질문

GitHub 접근 권한이 필요한가요?

네. gh 명령줄 도구를 사용하므로, 저장소에 접근 권한이 있는 계정으로 로그인되어 있어야 합니다.

워크플로의 모든 작업을 확인하나요?

아닙니다. 워크플로 전체가 아니라 실패한 특정 작업을 확인하므로, 기록이 올바른 작업에 대한 것입니다.

실패를 대신 고쳐 주나요?

스킬은 원인과 그것을 도입한 커밋을 찾는 데 집중합니다.

상세 정보

작성자의 원본 설명

Analyze GitHub Actions failures and identify root causes

repo: ykdojo/claude-code-tips

인기도

GitHub 스타
10k
순위
#11898
라이선스
—
업데이트
2026. 9. 25.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬