Agent skill

Gh Merge

by AgentsMesh in AgentsMesh/AgentsMesh

Completes the AgentsMesh GitHub pull-request workflow: commits scoped changes, rebases on the authoritative GitHub branch, opens or reuses a PR, monitors required checks, fixes failures, and merges…

Custom licenceAuto-check passedAgent Workflows

Install Gh Merge

skills CLI
$ npx skills add AgentsMesh/AgentsMesh --skill gh-merge -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AgentsMesh/AgentsMesh gh-merge --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AgentsMesh/AgentsMesh.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/skills/gh-merge .claude/skills/gh-merge && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gh-merge
GitHub stars
2.4k
Token cost
~715 tokens
SKILL.md length
333 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Custom licence

At a glance

Completes the AgentsMesh GitHub pull-request workflow: commits scoped changes, rebases on the authoritative GitHub branch, opens or reuses a PR, monitors required checks, fixes failures, and merges…

  • Works in 9 steps: Inspect repository state → Identify the GitHub remote by URL… → Review all dirty files. Stage only files… → …
  • The user asks to merge
  • SKILL.md covers Workflow and Result
  • Calls git and gh

What it does

Gh Merge is an agent skill from AgentsMesh/AgentsMesh. Completes the AgentsMesh GitHub pull-request workflow: commits scoped changes, rebases on the authoritative GitHub branch, opens or reuses a PR, monitors required checks, fixes failures, and merges only after verification. Use when the user asks to merge, submit, or land repository changes.

Its SKILL.md is about 720 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. It works with GitHub. The repository describes itself as: The AI Agent Workforce Platform. Run a hundred AI coding agents across your own machines — schedule, isolate, and steer them all from one console.

When your agent uses it

  • The user asks to merge
  • Land repository changes

Example prompts

  • “Use the gh-merge skill to complete the AgentsMesh GitHub pull-request workflow: commits scoped changes, rebases on the authoritative GitHub branch…”
  • “/gh-merge”

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Inspect repository state
  2. Identify the GitHub remote by URL instead of assuming a remote name. Resolve
  3. Review all dirty files. Stage only files belonging to the requested change;
  4. Require a clean index and working tree before rebasing. If unrelated user
  5. Push the current branch. After a rebase, use --force-with-lease, never
  6. Reuse an existing pull request for the branch or create one with `gh pr
  7. Inspect review state and wait for checks
  8. Merge only when all observed checks have completed successfully, reviews and
  9. Verify the remote PR state is MERGED. In a worktree, failure to delete the

What it can do on your machine

Read from SKILL.md and the folder at commit d38e393. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gh Merge loads about 715 tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 333 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~715

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 333 words (~715 tokens).

“GitHub is the development source of truth for this repository. Land changes through a GitHub pull request; do not create a GitLab merge request for product code.”

— opening of SKILL.md by AgentsMesh, Custom licence
name
gh-merge

Read the full SKILL.md on GitHub

Files

Just SKILL.md in agents/skills/gh-merge of AgentsMesh/AgentsMesh.

Open the folder on GitHubat commit d38e393

Compare with similar skills

Gh Merge next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gh Merge compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gh Merge this skillAgentsMesh/AgentsMesh2.4k—~715Automated safety check: PassCustom licence
Diagnosing Superpowers Sessionsobra/superpowers297k3 repos~1.7kAutomated safety check: PassMIT
Auto Skill Buildertradecatlabs/vibe-coding-cn17k1 repos~2.4kAutomated safety check: PassMIT
Agentic Workflow Designerdotnet/Open-XML-SDK4.6k2 repos~3.5kAutomated safety check: PassMIT
Skill Seekers Builderyusufkaraaslan/Skill_Seekers15k—~760Automated safety check: PassMIT
Repomix Codebase Packeryamadashy/repomix29k—~1.3kAutomated safety check: NotesMIT

Similar skills

  • Investigates a session where Superpowers went wrong, reads the transcripts on disk and produces an evidence-cited report, optionally prepared as a bug report for the maintainers.

    297k GitHub starsUsed in 3 repos~1.7k tokens
    Agent WorkflowsAuto-check passed
  • Auto Skill Builder

    tradecatlabs/vibe-coding-cn

    Meta-skill that turns docs, APIs, code or specs into a reusable skill with references and a quality gate, and refactors skills that are unclear or misfire.

    17k GitHub starsUsed in 1 repo~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Agentic Workflow Designer

    dotnet/Open-XML-SDK

    Official

    Interviews you one question at a time about goal, trigger, permissions and data needs, then drafts a single agentic workflow markdown file.

    4.6k GitHub starsUsed in 2 repos~3.5k tokens
    Agent WorkflowsAuto-check passed
  • Skill Seekers Builder

    yusufkaraaslan/Skill_Seekers

    Detects the type of a knowledge source and uses the Skill Seekers MCP tools to turn docs, repos, PDFs or videos into packaged AI skills.

    15k GitHub stars~760 tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Repomix Codebase Packer

    yamadashy/repomix

    Packs a local directory or remote GitHub repository into one AI-friendly file with Repomix, then searches it to explore structure, find patterns and count tokens.

    29k GitHub stars~1.3k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check: notes
  • Context Mode Ops

    mksglu/context-mode

    Runs maintenance for the context-mode project with parallel subagents: issue triage, PR review, releases, bug fixes, announcements and branch syncing.

    26k GitHub stars~6k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from AgentsMesh/AgentsMesh

  • E2E

    AgentsMesh/AgentsMesh

    Selects and runs the appropriate AgentsMesh end-to-end suite for Web, Desktop, MCP, or iOS, including worktree-specific environment setup and browser-level verification.

    2.4k GitHub stars~629 tokensUpdated 16 days ago
    Auto-check: notes
  • Worktree

    AgentsMesh/AgentsMesh

    Creates or reuses an isolated AgentsMesh Git worktree from a verified base branch, preserves existing changes, and optionally starts the worktree-scoped development environment.

    2.4k GitHub stars~553 tokensUpdated 16 days ago
    Auto-check: notes
  • GitHub GitLab Mirror

    AgentsMesh/AgentsMesh

    Audits or synchronizes the authoritative GitHub main branch to the internal GitLab mirror without importing GitLab-only history back into GitHub.

    2.4k GitHub stars~707 tokensUpdated 16 days ago
    Auto-check passed
  • Arch Check

    AgentsMesh/AgentsMesh

    架构与实现审查 —— 基于「概念建模 → 职责划分 → 机制/策略分离 → 因果与不变量 → 属性建模 → 模块化 → SOLID → GRASP → YAGNI」的全维度审查,带置信度门控与假阳性抑制(对抗"过度工程建议"这类 AI slop)。触发于:要求 review/审查架构、检查目录结构/依赖关系/职责划分、重构前评估、技术债盘点、判断是否过度设计,或问「这个设计合理吗 / 该怎么拆…

    2.4k GitHub stars~1.2k tokensUpdated 16 days ago
    Auto-check passed

Works with

Categories

Questions about Gh Merge

What does Gh Merge do?

Completes the AgentsMesh GitHub pull-request workflow: commits scoped changes, rebases on the authoritative GitHub branch, opens or reuses a PR, monitors required checks, fixes failures, and merges…. Gh Merge is an agent skill from AgentsMesh/AgentsMesh. Completes the AgentsMesh GitHub pull-request workflow: commits scoped changes, rebases on the authoritative GitHub branch, opens or reuses a PR, monitors required checks, fixes failures, and merges only after verification.

When should I use Gh Merge?

Gh Merge fits situations like: the user asks to merge; land repository changes.

How do I install Gh Merge in Claude Code?

Run `npx skills add AgentsMesh/AgentsMesh --skill gh-merge -a claude-code`. Or copy the skill folder (agents/skills/gh-merge in AgentsMesh/AgentsMesh) into .claude/skills/gh-merge in your project. Claude Code loads it when a task matches its description.

How do I install Gh Merge in Codex?

Run `npx skills add AgentsMesh/AgentsMesh --skill gh-merge -a codex`. Or copy the skill folder (agents/skills/gh-merge in AgentsMesh/AgentsMesh) into .agents/skills/gh-merge in your project. Codex loads it when a task matches its description.

Can I use Gh Merge in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AgentsMesh/AgentsMesh --skill gh-merge -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gh-merge, .gemini/skills/gh-merge, .github/skills/gh-merge and .opencode/skills/gh-merge in your project.

What does Gh Merge need to run?

Going by SKILL.md and its folder, Gh Merge needs the command-line tools its instructions call (git and gh).

Does Gh Merge access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Gh Merge safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gh Merge use?

Gh Merge has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Gh Merge use?

About 715 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gh Merge?

Skills that share tags, products or a category with Gh Merge: Diagnosing Superpowers Sessions (obra/superpowers, 297k stars), Auto Skill Builder (tradecatlabs/vibe-coding-cn, 17k stars), Agentic Workflow Designer (dotnet/Open-XML-SDK, 4.6k stars) and Skill Seekers Builder (yusufkaraaslan/Skill_Seekers, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gh Merge?

AgentsMesh (a GitHub organization) maintains it in AgentsMesh/AgentsMesh, which has 2,364 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 23, 2026.

Source: AgentsMesh/AgentsMesh on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.