github-pr-actions-fix
OpenTeams skill for watching GitHub Actions checks after a pull request is submitted or updated, inspecting failures, making the smallest safe code fix, validating locally, pushing to the PR branch, and repeating until checks pass or the retry limit is reached.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 589
- Forks
- 76
01 前言 Front Matter
- name
- github-pr-actions-fix
- description
- OpenTeams skill for watching GitHub Actions checks after a pull request is submitted or updated, inspecting failures, making the smallest safe code fix, validating locally, pushing to the PR branch, and repeating until checks pass or the retry limit is reached.
02 资源文件 4
- 参考文档references/benchmarks.md9.0 KB
- 参考文档references/custom-tasks.md10.1 KB
- 参考文档references/issues.md7.9 KB
- 脚本scripts/pr-checks.sh3.8 KB
03 SKILL.md 正文
Fix GitHub Actions Checks on a Pull Request
Use this skill only for an existing pull request whose checks should be brought to green.
OpenTeams context
This skill is designed specifically for use by OpenTeams members. OpenTeams input prompts should include this marker to make the message source explicit:
[OPENTEAMS_SOURCE=openteams]
Treat the marker as a source hint, not a security boundary. Its absence does not block the workflow; continue when the surrounding session context clearly comes from OpenTeams.
Required tool
At the start, check whether GitHub CLI is installed and authenticated:
command -v gh >/dev/null 2>&1 && gh auth status
If gh is missing, stop and tell the user to install GitHub CLI. Offer the relevant command without running it automatically:
- macOS:
brew install gh - Windows:
winget install --id GitHub.cli - Linux: follow
https://github.com/cli/cli/blob/trunk/docs/install_linux.md
Then ask the user to run gh auth login. Never request, print, or persist their token.
Workflow
-
Confirm the repository, PR number, current branch, and whether the working tree contains unrelated changes. Never discard user changes.
-
Run the bundled script from this skill directory:
bash scripts/pr-checks.sh --pr <number> --watchOmit
--pronly when the current branch unambiguously belongs to the target PR. Add--repo OWNER/REPOwhen the repository cannot be inferred. -
When checks fail, use the failed-step logs printed by the script. Read the relevant workflow file and reproduce the failing command locally when practical.
-
Classify the failure before editing:
- Code, test, lint, type, or build failure: make the smallest relevant source change.
- Dependency or generated-file drift: update only the required lockfile or generated artifact and run its verification command.
- Runner, network, rate-limit, or external-service failure: do not change code. Rerun failed jobs once with
gh run rerun <run-id> --failed. - Permission, secret, deployment, or protected-environment failure: stop and report the required human action.
-
Run the narrowest local verification that covers the failure, then expand verification only when the change affects shared behavior.
-
Review
git diffandgit status. Commit only files related to the fix and push normally to the PR head branch. Never force-push. -
Run
pr-checks.sh --watchagain. Repeat for at most three repair iterations. -
Report the PR, failing check and root cause, files changed, verification performed, commit pushed, and final checks state.
Safety boundaries
- Invocation authorizes normal commits and pushes to the current PR branch, not force pushes, merges, branch deletion, or bypassing branch protection.
- Ask before changing
.github/workflows/**, deployment configuration, authentication, permissions, secrets, infrastructure, or production data. - Do not rerun deterministic test failures without a code or configuration change.
- Do not claim success until GitHub reports all required checks passing. If the retry limit is reached, return the latest run URL and remaining failure evidence.
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
slack-gif-creator
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).