gh-fix-ci
- Verify
gh auth status. If unauthenticated, ask user to rungh auth login. - Identify PR using
gh pr view --json number,urlor$ARGUMENTS. If no PR is found on the current branch and no number was given, stop and ask the user to specify one. - If
rtkis available, preferrtk gh ...,rtk read, andrtk grepfor exploratory steps. Use rawghor the bundled script when another command needs machine-friendly JSON or uncompressed logs. - Run
python "$SKILL_DIR/scripts/inspect_pr_checks.py" --repo "." [--pr "$ARGUMENTS"] --jsonto collect failing checks, log snippets, and local reproduction hints. If the script exits non-zero, fall back to the manual workflow in references/BACKGROUND.md. - Branch on the result:
- All checks pass → report "all checks green" and stop.
- Checks still in progress → report running checks and suggest waiting, or offer to inspect already-failed ones.
- Only external provider failures (e.g. Buildkite) → report URLs and mark out-of-scope unless the user explicitly asks.
- GitHub Actions failures exist → continue to step 6.
- Summarize failures with: check name, the smallest useful log snippet (cap at 50 lines; if logs exceed this, extract only the error block), and the suggested local repro command.
- Propose a concise fix plan and request explicit approval before editing when the user asked only for diagnosis. Otherwise proceed to fix.
- Implement the approved fix and rerun the relevant local repro commands. If the local repro still fails, diagnose the new error and iterate (max 2 retries) before reporting back. After local success, re-run
gh pr checksto confirm.
References
- references/BACKGROUND.md for detailed workflow and manual fallbacks
- scripts/inspect_pr_checks.py for the automated check inspector
More from bahayonghang/my-claude-code-settings
tech-design-doc
Generate technical design documents with proper structure, diagrams, and implementation details. Use when designing a new feature, documenting architecture decisions, or planning refactoring work. Default language is English.
106bidwriter
智能标书编写专家,专精工程咨询、建筑设计、市政工程领域的投标文件编写。
70article-cover
Generate article cover images as SVG. Use when creating cover/banner/header graphics for blogs, documentation, social media cards, or OG images. Trigger this skill whenever the user mentions article covers, blog banners, post thumbnails, social sharing images, or any visual header for written content — even if they don't explicitly say 'SVG'. Do not use it for full-scene illustrations, photo editing, or slide theme work.
63tech-blog
Write technical blog posts with source code analysis OR doc-driven research. Use when user wants to explain system internals, architecture, implementation details, or technical concepts with citations.
53git-commit-cn
Safely orchestrate Chinese Conventional Commits for staged Git changes, or for all working-tree changes when the user explicitly asks to include everything. Use when the user asks to write a commit message, split staged changes, split all changes, commit everything regardless of stage state, include untracked files in the commit set, organize a messy index before committing, prepare a Chinese commit, draft a Conventional Commit, or generate structured commit text without pushing by default.
47gemini-image
>-
46