github-issue-resolver
Skill1 starsChanged 10 months agoMITView on GitHub
name: github-issue-resolver description: Strategically resolves GitHub Actions failures, failed pull requests, and Dependabot issues using the gh CLI. Use when asked to fix CI failures, triage GitHub Actions errors, manage failed PRs, handle Dependabot updates, or perform repository maintenance. allowed-tools: Automates GitHub repository maintenance: diagnosing and fixing CI failures, managing failed PRs, and handling Dependabot updates using the gh CLI. Before starting, verify the environment: If gh is not authenticated, stop and ask the user to run gh auth login.
- Installs packages
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Alteriom/ai-dev-skillstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Alteriom/ai-dev-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/adr-reference.mdcCursor rule
- .cursor/rules/dag-development.mdcCursor rule
- .cursor/rules/diagnostics.mdcCursor rule
- .cursor/rules/infrastructure-services.mdcCursor rule
- .cursor/rules/qubinode-overview.mdcCursor rule
- .cursor/rules/rag-knowledge.mdcCursor rule
- .cursor/rules/system-operations.mdcCursor rule
- .cursor/rules/troubleshooting.mdcCursor rule
- .cursor/rules/vm-operations.mdcCursor rule
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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 23
Before starting, verify the environment:
- Very specific: line 30
If gh is not authenticated, stop and ask the user to run gh auth login.
- Distinctive: line 34
Always process issues in this order:
- Distinctive: line 58
If logs are truncated, download the full log:
- Very specific: line 81
Run local verification when possible (e.g., python3 -m pytest)
- Very specific: line 82
Commit with message: fix(ci): <description of fix>
- Distinctive: line 92
If the rerun fails with the same error, investigate deeper.
- Distinctive: line 114
If the branch is behind base, update it:
- Distinctive: line 174
Needs rebase: - Use Dependabot command:
- Distinctive: line 190
If trivial (import path changes, minor API tweaks): fix in-place
- Distinctive: line 191
If complex (major version breaking changes): comment findings and leave for human review
- Distinctive: line 199
After processing, provide a structured report:
≈ “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
name: github-issue-resolver description: Strategically resolves GitHub Actions failures, failed pull requests, and Dependabot issues using the gh CLI. Use when asked to fix CI failures, triage GitHub Actions errors, manage failed PRs, handle Dependabot updates, or perform repository maintenance. allowed-tools:
- Bash
- Read
- Edit
- Write
- Grep
- Glob
- Task
GitHub Issue Resolver
Automates GitHub repository maintenance: diagnosing and fixing CI failures, managing failed PRs, and handling Dependabot updates using the gh CLI.
Prerequisites
Before starting, verify the environment:
gh auth status
gh repo view --json nameWithOwner -q .nameWithOwnerIf gh is not authenticated, stop and ask the user to run gh auth login.
Priority Triage Order
Always process issues in this order:
- Security vulnerabilities - Dependabot security alerts and CVE-related PRs
- Broken main/master branch - Failures on the default branch
- Blocking PR failures - PRs with failed required checks
- Dependabot updates - Dependency version bumps
- Flaky tests / intermittent failures - Non-deterministic issues
Workflow 1: GitHub Actions Failure Resolution
Step 1: Identify failed runs
gh run list --status failure --limit 20 --json databaseId,displayTitle,headBranch,conclusion,createdAt,workflowNameStep 2: Analyze failure logs
For each failed run:
gh run view <run-id> --log-failed 2>&1 | tail -200If logs are truncated, download the full log:
gh run view <run-id> --log-failed > /tmp/gh-run-<run-id>.logStep 3: Diagnose the root cause
Classify the failure into one of these categories:
| Category | Indicators | Action |
| Test failure | FAILED, AssertionError, pytest exit code | Read test file, understand assertion, fix code or test |
| Build error | ModuleNotFoundError, SyntaxError, compilation errors | Fix imports, syntax, or dependency declarations |
| Lint/format | ruff, black, flake8, shellcheck violations | Run formatter locally, commit fixes |
| Dependency | pip install failures, version conflicts | Update requirements, pin versions |
| Infrastructure | Timeout, runner error, service unavailable | Rerun the workflow - do not change code |
| Permissions | Permission denied, token errors | Flag for manual intervention |
Step 4: Implement fixes
- Checkout the failing branch:
git checkout <branch> - Make targeted fixes based on diagnosis
- Run local verification when possible (e.g.,
python3 -m pytest) - Commit with message:
fix(ci): <description of fix> - Push and verify:
git push
Step 5: Rerun and verify
gh run rerun <run-id> --failed
gh run watch <run-id>If the rerun fails with the same error, investigate deeper. If it fails with a different error, treat it as a new failure.
Workflow 2: Failed Pull Request Management
Step 1: List PRs with failed checks
gh pr list --state open --json number,title,author,headRefName,statusCheckRollup --jq '.[] | select(.statusCheckRollup != null) | select([.statusCheckRollup[] | select(.conclusion == "FAILURE")] | length > 0) | {number, title, author: .author.login, branch: .headRefName}'Step 2: Inspect a specific PR
gh pr checks <pr-number>
gh pr view <pr-number> --json title,body,headRefName,baseRefName,mergeable,mergeStateStatus
gh pr diff <pr-number>Step 3: Fix the PR
- Checkout:
gh pr checkout <pr-number> - Analyze failures using
gh pr checks <pr-number> --jsonandgh run view - If the branch is behind base, update it:
gh pr update-branch <pr-number> - Implement fixes, commit, and push
- Comment on the PR explaining the fix:
gh pr comment <pr-number> --body "Fixed CI failure: <explanation>"
Step 4: Handle merge conflicts
gh pr view <pr-number> --json mergeable -q .mergeableIf CONFLICTING:
- Checkout the PR branch
- Merge or rebase the base branch
- Resolve conflicts
- Push the resolution
- Comment explaining the resolution
Workflow 3: Dependabot Issue Handling
Step 1: List Dependabot PRs
gh pr list --author "app/dependabot" --json number,title,labels,createdAt,headRefName --jq 'sort_by(.createdAt)'Step 2: Categorize updates
Classify each PR by update type:
| Type | Risk | Strategy |
| Security patch (any version) | High priority | Merge immediately after checks pass |
| Patch version (x.y.Z) | Low | Batch and merge |
| Minor version (x.Y.0) | Medium | Review changelog, merge if checks pass |
| Major version (X.0.0) | High | Review breaking changes, test thoroughly |
Step 3: Check for conflicts and failures
For each Dependabot PR:
gh pr checks <pr-number>
gh pr view <pr-number> --json mergeable -q .mergeableStep 4: Handle common Dependabot scenarios
Checks pass, no conflicts - Merge:
gh pr merge <pr-number> --squash --autoNeeds rebase - Use Dependabot command:
gh pr comment <pr-number> --body "@dependabot rebase"Merge conflicts Dependabot cannot resolve:
- Checkout the PR branch
- Resolve conflicts manually
- Push resolution
- Let checks run, then merge
Failed checks on Dependabot PR:
- Analyze what broke (API changes, deprecated features)
- If trivial (import path changes, minor API tweaks): fix in-place
- If complex (major version breaking changes): comment findings and leave for human review
Step 5: Batch compatible updates
Group related dependency updates (e.g., multiple @types/* packages) and merge them together when possible.
Workflow 4: Summary and Reporting
After processing, provide a structured report:
## Repository Maintenance Report
### Resolved
- [#PR] Description - fix applied
### Merged
- [#PR] Dependabot: package x.y.z -> x.y.w
### Needs Manual Attention
- [#PR] Reason it cannot be auto-resolved
### Rerun (Infrastructure Failures)
- [Run ID] Workflow name - rerun triggeredSafety Guidelines
Always confirm before:
- Force-pushing any branch
- Closing or merging PRs
- Deleting branches
- Making changes to workflow files (
.github/workflows/) - Merging major version Dependabot updates
Never:
- Force-push to main/master
- Merge PRs with failing required checks without user approval
- Modify secrets or environment variables
- Skip CI checks with
[skip ci]commits - Dismiss reviews without user approval
When to escalate to the user:
- Security-related failures requiring credential rotation
- Persistent failures after 2 fix attempts
- Major version dependency updates with breaking changes
- Workflow file modifications needed
- Merge conflicts in generated files (lockfiles, compiled assets)
Error Handling
| Error | Recovery |
gh: Not Found | Verify repo permissions: gh repo view |
gh: HTTP 403 | Token lacks required scopes: gh auth status |
| Rate limited | Wait and retry: gh api rate_limit |
| Rerun fails | Download full logs, analyze offline |
| Branch protected | Cannot push directly - create a new PR with fix |
Decision Tree: Should I Auto-Fix?
Is it a test failure?
├─ Yes: Is the fix obvious (typo, import, assertion update)?
│ ├─ Yes → Fix it
│ └─ No → Report to user
└─ No: Is it a lint/format issue?
├─ Yes → Run formatter, commit
└─ No: Is it a dependency issue?
├─ Yes: Is it a patch/minor?
│ ├─ Yes → Update and test
│ └─ No → Report to user
└─ No: Is it infrastructure?
├─ Yes → Rerun workflow
└─ No → Report to userDoes 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.

