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
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agentbro-releaseSkill
- source-command-checkSkill
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
- Very specific: line 8
Use this skill for AgentBro pull request triage and merge work.
- Distinctive: line 14
Do not merge while required checks are failing or missing.
- Very specific: line 16
Do not squash dev into main during release.
- Very specific: line 17
If a fork PR has maintainerCanModify: true, small mechanical fixes may be pushed to the contributor branch.
- Distinctive: line 35
If commit authors do not map to the PR author, squash merge is the safer path.
- Very specific: line 37
If GitHub Actions is action_required, approve it only after checking that the PR did not modify workflows or sensitive release/signing …
- Distinctive: line 43
If CI fails, fix only narrow mechanical issues unless the user asks for deeper review.
≈ “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.
Files
AgentBro PR Merge
Use this skill for AgentBro pull request triage and merge work.
Rules
- Start with
git status --short --branch. - PRs should target
devunless the maintainer explicitly says otherwise. - Do not merge while required checks are failing or missing.
- For external contributor PRs, prefer Squash and merge into
devso GitHub can attribute the squash commit to the PR author. - Do not squash
devintomainduring release. Release merges should preserve commits withgit 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
- Inspect the PR:
gh pr view <number> --repo shirenchuang/agentbro \
--json number,title,author,baseRefName,headRefName,headRepositoryOwner,maintainerCanModify,isDraft,mergeable,mergeStateStatus,statusCheckRollup,commits,files- 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.
- 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- 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>- Wait for checks:
gh run watch <run-id> --repo shirenchuang/agentbro --interval 10 --exit-status
gh pr checks <number> --repo shirenchuang/agentbro- Merge only when clean:
gh pr merge <number> --repo shirenchuang/agentbro --squash- 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.
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
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.

