MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
DevOps & Cloud
🔀

GitHub PR Workflow

End-to-end pull request automation: create branches, commit changes, open PRs, monitor CI, auto-fix failures, and merge — all from your terminal.

by v1.0.0
Connecting to VM...
Connecting to VM...
npx clawhub@latest install github-pr-workflow
12Current Installs
📦
v1.0.0Version

GitHub PR Workflow Skill Overview

GitHub PR Workflow automates the full pull request lifecycle on GitHub — from branch creation and commit drafting through CI monitoring, auto-fixing failing checks, and final merge with branch cleanup. Install it if you want to ship code changes without manually juggling git commands, gh CLI flags, or the GitHub web UI. It works with the gh CLI when available and falls back to git plus the GitHub REST API via curl.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install github-pr-workflow
or

Click the Install button at the top of this page for one-click setup

When to Use GitHub PR Workflow

Best Fit

  • You have local changes ready to ship and want a branch created, commits staged, and a PR opened with a structured description in one flow.
  • You need to monitor CI check runs on an open PR and want failing logs surfaced automatically without watching the GitHub UI.
  • You want an auto-fix loop: detect a failing lint or test check, apply a fix, push, and re-poll until all checks go green.
  • You're ready to merge and want a specific strategy (squash, rebase, or merge commit) applied and the source branch deleted afterward.

When Not to Use

  • You are not working in a git repository with GitHub as a remote — this skill assumes that setup throughout.
  • You do not have the gh CLI authenticated or a GitHub PAT available; without one of those, API calls will fail.
  • You need to manage GitLab, Bitbucket, or other non-GitHub remotes — the skill is GitHub-specific.

Key Features

Branch Creation & Conventional Commit Drafting

Automatically creates a feature branch with a conventionally named slug and stages your changes with a generated commit message. Keeps your commit history clean without requiring you to write messages manually.

PR Opening with Structured Description

Pushes the branch to origin and opens a pull request using a built-in description template (references/pr-template.md). Supports reviewer requests, label assignment, and issue linking in the same step.

CI Check Polling & Failing Log Surfacing

Polls GitHub check runs via scripts/watch_ci.sh and prints the logs of any failing checks directly to your session. No more clicking through the Actions UI to find the error.

Auto-Fix Loop Until Green

When a check fails, the skill can apply a fix, push the new commit, and re-poll checks — repeating the cycle until all required checks pass. Saves back-and-forth pushes when dealing with linting or formatting failures.

Flexible Merge Strategies & Branch Cleanup

Supports squash merge, rebase merge, and standard merge commits. After merging, it deletes the source branch to keep the remote tidy.

gh CLI + REST API Fallback

Uses the gh CLI as the primary driver when it is authenticated. If gh is unavailable, references/api-fallback.md and curl-based scripts handle all operations against the GitHub REST API using $GITHUB_TOKEN.

Use Cases

Shipping a Feature Branch End-to-End

A developer has local changes and asks: "Open a PR titled 'Add rate limiting to /api/search' targeting main." The skill creates the branch, stages commits, pushes, and opens the PR with a description — no manual git commands needed.

Watching CI and Auto-Fixing Lint Failures

After opening a PR, a developer asks: "Watch the PR checks, and if lint fails, fix and push again." The skill polls check runs, detects the lint failure, applies the fix, pushes, and re-checks until the suite is green.

Merging and Cleaning Up a Ready PR

When review is approved, a developer asks: "Squash-merge PR #142 and delete the branch." The skill executes the squash merge and removes the remote branch in one action.

Reviewing Branch Status Before Merging

A developer asks: "Review my branch — what checks are failing and who hasn't approved yet?" The skill surfaces current CI status and outstanding reviewer approvals from the GitHub API.

Requirements

Required on the host machine:

  • git installed and configured with user identity
  • Either the gh CLI authenticated via gh auth login or a GitHub Personal Access Token (PAT) exported as $GITHUB_TOKEN
  • curl (used by the REST API fallback scripts when gh is unavailable)

Repository requirements:

  • Must be a git repository with GitHub set as a remote
  • The authenticated user or token must have write access to the target repository

Optional / environment tuning:

  • Set GH_PAGER=cat in large monorepos to avoid pager interference with script output
Connecting to VM...
npx clawhub@latest install github-pr-workflow
12Current Installs
📦
v1.0.0Version

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!