actions-debugging
Skill47 starsChanged 4 months agoMITView on GitHub
Use when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix
In this repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- code-tourSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 97
All in one conversational turn — no browser tabs needed.
- Very specific: line 138
Tail the logs: Use tail_lines: 100-300 to focus on the end of the log where errors typically appear.
- Very specific: line 140
Parallel job analysis: When a run has multiple failed jobs, call get_job_logs on each in parallel.
- Very specific: line 144
Combine with PR tools: After fixing a CI failure, use pull_request_read with get_check_runs to verify the fix passes on the PR.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Actions Debugging
Why This is Copilot-Exclusive
Copilot CLI provides structured access to GitHub Actions through its built-in MCP server.
You can list workflows, inspect run details, download job logs, and analyze failures — all via
typed tool calls that return structured data. Claude Code has no GitHub Actions integration
whatsoever; debugging CI requires manually navigating the GitHub web UI or parsing raw
gh run view output.
When to Use
- A CI pipeline fails and you need to understand why — fast
- Investigating flaky tests across multiple workflow runs
- Auditing workflow run times and usage patterns
- Debugging deployment pipeline failures in staging/production
- Comparing successful vs failed runs to find regressions
Workflow
1. List Workflows in a Repository
Tool: github-mcp-server-actions_list
method: "list_workflows"
owner: "my-org"
repo: "my-app"2. List Recent Runs for a Workflow
Tool: github-mcp-server-actions_list
method: "list_workflow_runs"
owner: "my-org"
repo: "my-app"
resource_id: "ci.yml"
workflow_runs_filter: { "status": "completed", "branch": "main" }3. Get Failed Job Logs
This is the killer feature — pull logs directly for analysis:
Tool: github-mcp-server-get_job_logs
owner: "my-org"
repo: "my-app"
run_id: 12345678
failed_only: true
return_content: true
tail_lines: 2004. Inspect a Specific Job
Tool: github-mcp-server-actions_get
method: "get_workflow_job"
owner: "my-org"
repo: "my-app"
resource_id: "98765432"5. Check Run Usage and Timing
Tool: github-mcp-server-actions_get
method: "get_workflow_run_usage"
owner: "my-org"
repo: "my-app"
resource_id: "12345678"Examples
"Why Did My CI Fail?"
"My latest push to feature/auth-refactor failed CI. Show me what went wrong."
Copilot workflow:
list_workflow_runsfiltered by branchfeature/auth-refactor- Takes the most recent failed run
list_workflow_jobsto find which job(s) failedget_job_logswithfailed_only: trueto pull the error output- Analyzes the logs, identifies the root cause, suggests a fix
All in one conversational turn — no browser tabs needed.
Flaky Test Investigation
"The 'integration-tests' workflow has been flaky on main this week. Show me the failure pattern."
Tool: github-mcp-server-actions_list
method: "list_workflow_runs"
owner: "my-org"
repo: "my-app"
resource_id: "integration-tests.yml"
workflow_runs_filter: { "branch": "main" }
per_page: 20Copilot lists the last 20 runs, identifies which failed, pulls logs for each failure, and looks for common error patterns (e.g., timeout, race condition, external service unavailability).
Deployment Pipeline Audit
"Show me all production deployment runs this month and flag any that took longer than 15 minutes."
Copilot lists runs, checks usage/timing for each, and highlights anomalies.
Fix and Verify Loop
- Copilot reads the failure logs
- Identifies the broken test or build step
- Makes the fix in your local codebase
- You push the fix
- Copilot monitors the new run via
list_workflow_runs - Confirms the fix worked or continues debugging
Tips
- Use
failed_only: true: Skip successful job logs and go straight to the failures. Saves context window space. - Tail the logs: Use
tail_lines: 100-300to focus on the end of the log where errors typically appear. - Parallel job analysis: When a run has multiple failed jobs, call
get_job_logson each in parallel. - Compare runs: Pull logs from both a passing and failing run to diff them and isolate what changed.
- Combine with PR tools: After fixing a CI failure, use
pull_request_readwithget_check_runsto verify the fix passes on the PR. - Track flaky tests in SQL: Store failure patterns in the session database to build a flakiness report over time.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

