agentleFS
shirenchuangshirenchuang/agentbro/skills/agentbro-pr-merge/SKILL.md

agentbro-pr-merge

Skill203 starsChanged 4 months agoApache-2.0View on GitHub

Use when reviewing, fixing CI for, approving workflows for, or merging AgentBro pull requests into dev/main, especially external contributor PRs where contributor attribution matters.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use this skill for AgentBro pull request triage and merge work.

    line 8
  2. Distinctive:

    Do not merge while required checks are failing or missing.

    line 14
  3. Very specific:

    Do not squash dev into main during release.

    line 16
  4. Very specific:

    If a fork PR has maintainerCanModify: true, small mechanical fixes may be pushed to the contributor branch.

    line 17
  5. Distinctive:

    If commit authors do not map to the PR author, squash merge is the safer path.

    line 35
  6. Very specific:

    If GitHub Actions is action_required, approve it only after checking that the PR did not modify workflows or sensitive release/signing …

    line 37
  7. Distinctive:

    If CI fails, fix only narrow mechanical issues unless the user asks for deeper review.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AgentBro PR Merge

Use this skill for AgentBro pull request triage and merge work.

Rules

  • Start with git status --short --branch.
  • PRs should target dev unless the maintainer explicitly says otherwise.
  • Do not merge while required checks are failing or missing.
  • For external contributor PRs, prefer Squash and merge into dev so GitHub can attribute the squash commit to the PR author.
  • Do not squash dev into main during release. Release merges should preserve commits with git merge --no-ff origin/dev.
  • If a fork PR has maintainerCanModify: true, small mechanical fixes may be pushed to the contributor branch. Keep them scoped and explain them.

Standard Flow

  1. Inspect the PR:
gh pr view <number> --repo shirenchuang/agentbro \
  --json number,title,author,baseRefName,headRefName,headRepositoryOwner,maintainerCanModify,isDraft,mergeable,mergeStateStatus,statusCheckRollup,commits,files
  1. Confirm contribution attribution:
gh pr view <number> --repo shirenchuang/agentbro --json author,commits \
  --jq '{author:.author.login, commits:[.commits[] | {oid:.oid[0:7], authors:.authors}]}'

If commit authors do not map to the PR author, squash merge is the safer path.

  1. If GitHub Actions is action_required, approve it only after checking that the PR did not modify workflows or sensitive release/signing files:
gh api --method POST repos/shirenchuang/agentbro/actions/runs/<run-id>/approve
  1. If CI fails, fix only narrow mechanical issues unless the user asks for deeper review. For fork PRs:
gh pr checkout <number> --repo shirenchuang/agentbro
# make the small fix
git push https://github.com/<fork-owner>/agentbro.git HEAD:<head-branch>
  1. Wait for checks:
gh run watch <run-id> --repo shirenchuang/agentbro --interval 10 --exit-status
gh pr checks <number> --repo shirenchuang/agentbro
  1. Merge only when clean:
gh pr merge <number> --repo shirenchuang/agentbro --squash
  1. Verify:
gh pr view <number> --repo shirenchuang/agentbro --json state,mergedAt,mergeCommit
gh api repos/shirenchuang/agentbro/commits/<merge-sha> --jq '{author:.author.login, raw_author:.commit.author}'

The repository homepage may not show the contributor until the commit reaches the default branch (main) and GitHub updates its cache.

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.