github-actions-debugger
Skill0 starsChanged 2 months agoMITView on GitHub
Guides agents through diagnosing and resolving failing GitHub Actions CI/CD workflows, runner errors, and matrix job failures.
- Reads credentials
In this repository49 other files it gives its agents.
- bug-reproducerSkill
- claim-checkerSkill
- command-failure-diagnoserSkill
- config-risk-reviewerSkill
- csv-validatorSkill
- deployment-checklist-makerSkill
- diff-reviewerSkill
- factual-summarizerSkill
- field-extractorSkill
- api-contract-testerSkill
- database-migration-helperSkill
- security-vulnerability-fixerSkill
- git-commit-stagerSkill
- git-conflict-resolverSkill
- github-issue-triagerSkill
- github-pr-creatorSkill
- github-pr-reviewerSkill
- go-code-qualitySkill
- go-lint-and-vetSkill
- go-testingSkill
- json-schema-converterSkill
- lint-and-typecheckSkill
- meaning-preserving-editorSkill
- meeting-notes-to-actionsSkill
- minimal-bug-fixSkill
- option-comparatorSkill
- py-code-qualitySkill
- py-lint-and-typecheckSkill
- py-testingSkill
- readme-writerSkill
- regression-test-writerSkill
- release-notes-drafterSkill
- repo-inspectorSkill
- research-briefSkill
- reversible-cleanup-plannerSkill
- rust-clippy-checkSkill
- rust-code-qualitySkill
- rust-testingSkill
- small-refactorSkill
- status-updateSkill
- step-by-step-tutorialSkill
- step-decomposerSkill
- tabular-analyzerSkill
- task-briefSkill
- test-runner-debuggerSkill
- ts-code-qualitySkill
- ts-lint-and-typecheckSkill
- ts-testingSkill
- skill-templateSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 14
Use this skill when:
- Very specific: line 20
Do not use for local CLI command diagnostics.
- Very specific: line 27
If log is missing: inspect .github/workflows/ and ask for the failing step name and error output.
- Very specific: line 28
Never commit plaintext secrets to workflow files.
- Distinctive: line 31
Follow these numbered actions:
- Distinctive: line 45
If failure happens on pull requests from forks: check if secrets are inaccessible (fork security boundary).
- Very specific: line 46
Always pin actions to full commit SHA or trusted major tag (actions/checkout@v4).
- Distinctive: line 77
Stop and ask the user when:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 Debugger
Diagnoses failed GitHub Actions CI/CD runs. Analyzes runner logs, step syntax, matrix jobs, dependency caching, and environment secret injection.
1. Purpose
Pinpoint why a GitHub Actions pipeline failed and provide the exact .github/workflows/*.yml patch.
2. When to Use
Use this skill when:
- A GitHub Actions CI run turns red (
exit code 1). - Steps fail due to missing dependencies, invalid secrets, or runner environment differences.
- Optimizing workflow run times with caching.
3. When Not to Use
- Do not use for local CLI command diagnostics; use
command-failure-diagnoser.
4. Required Inputs
workflow_file: Path to.github/workflows/<name>.yml.failure_log: Excerpt from the failing GitHub Actions job step.
5. Missing-Input Behavior
- If log is missing: inspect
.github/workflows/and ask for the failing step name and error output. - Never commit plaintext secrets to workflow files; always use
${{ secrets.NAME }}.
6. Procedure
Follow these numbered actions:
- Action 1: Identify Failing Step
- Find the exact step in the YAML file where the runner exited non-zero.
- Action 2: Classify Failure Mechanism
Missing Tool / Setup: Needsactions/setup-nodeoractions/setup-python.Permission Issue: Needspermissions: contents: writeorpull-requests: write.Secret Missing: Environment variable empty in runner.Matrix Mismatch: Fails on specific OS/Node version combination.
- Action 3: Apply Targeted Patch
- Edit the workflow file cleanly.
- Action 4: Emit Debug Report
- Format per Section 8.
7. Decision Rules
- If failure happens on pull requests from forks: check if secrets are inaccessible (fork security boundary).
- Always pin actions to full commit SHA or trusted major tag (
actions/checkout@v4).
8. Output Format
Emit the report using this template:
### GitHub Actions Debug Report: [Workflow Name]
- **Failing Step**: `[Step name]`
- **Root Cause**: [e.g. Missing setup-python step before poetry install]
- **File**: `.github/workflows/[file].yml`
#### Fix Applied
```diff
[Diff of workflow file]Verification Instructions
- Push commit or re-run workflow to verify green checkmark.
## 9. Verification Checklist
- [ ] Workflow YAML is syntactically valid.
- [ ] No plaintext secrets added.
- [ ] Permissions use least privilege.
## 10. Common Failures and Recovery
| Failure Symptom | Cause | Recovery Action |
| :--- | :--- | :--- |
| `Resource not accessible by integration` | GITHUB_TOKEN lacks write permission | Add `permissions: pull-requests: write`. |
## 11. Stop or Escalation Conditions
Stop and ask the user when:
- Workflow requires organizational repository secrets only repository admins can set.
## 12. Examples
### Example 1: Successful Execution
**Input:**
```text
File: .github/workflows/ci.yml
Error: pnpm: command not found in step 'Install dependencies'Output:
### GitHub Actions Debug Report: ci.yml
- **Failing Step**: `Install dependencies`
- **Root Cause**: `pnpm` is not installed on the GitHub-hosted runner by default.
- **File**: `.github/workflows/ci.yml`
#### Fix Applied
```diff
+ - uses: pnpm/action-setup@v3
+ with:
+ version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
+ cache: 'pnpm'Verification Instructions
- Re-run CI job; pnpm will be installed before
pnpm installexecutes.
### Example 2: Ambiguous or Missing Input
**Input:**
```text
Fix actions.Output:
### GitHub Actions Debug Report: Halted - Missing Log
- **Status**: Halted
Please provide the failing workflow file name and error log excerpt.Example 3: Expected Final Output
Output:
### GitHub Actions Debug Report: test.yml
- **Failing Step**: `Run tests`
- **Root Cause**: Node version matrix missing dependencies on Node 18.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.

