merge
Skill79 starsChanged 5 months agoMITView on GitHub
Merge all open pull requests, close linked issues, delete feature branches, and clean up local and remote refs. Use when completing features, merging PRs after review, or finalizing a release cycle.
54 other projects use a version of this.
Adopted by
Most recently taken up by
- ryanportfolio/HarnessFirmware.comtheir own version, first seen Nov 8, 2026
- ryanportfolio/winuse-mcptheir own version, first seen Nov 8, 2026
- blamechris/chroxytheir own version, first seen Nov 8, 2026
- toy-crane/claude-code-playbook-templatetheir own version, first seen Nov 8, 2026
- ryanportfolio/Corewise.Academytheir own version, first seen Nov 5, 2026
- Openpanel-dev/openpaneltheir own version, first seen Nov 1, 2026
Used with
Projects with it also use addskill, apply-firmware and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ryanportfolioSkilladdskill
Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.
Also in 6 projects that use this
ryanportfolioSkillapply-firmware
Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.
Also in 6 projects that use this
- +10 more from ryanportfolio
Other versions54 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 54
- microsoft/vscode★ 195ksame name
- remotion-dev/remotion★ 72ksame name
- withastro/astro★ 64ksame name
- ToolJet/ToolJet★ 41ksame name
- Openpanel-dev/openpanel★ 7.3ksame name
- raine/workmux★ 3ksame name
- jtenniswood/espcontrol★ 1.2ksame name
- K9i-0/ccpocket★ 1.1ksame name
- r1n7aro/Locus★ 759same name
- automagik-dev/genie★ 351same name
44 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- checkpointSkill
- flowSkill
- prd-breakdownSkill
- setupSkill
- startSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 48 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Get GitHub owner/repo: use the cached values from the session context (injected at SessionStart).
- Very specific: line 22
Check features array for linked issue/PR numbers
- Distinctive: line 30
If PR A base is PR B head branch, merge B first
- Distinctive: line 46
Check PR body for "Closes #XX" or "Fixes #XX" (these auto-close on merge)
- Very specific: line 47
Check .claude-harness/features/active.json for linked issues.
- Very specific: line 50
Add comment to original feature issue: gh issue comment {number} --body "Related fix merged: #{fix-issue} - {description}"
- Very specific: line 51
Delete the local branch if it remains: git branch -d {branch} (safe delete)
- Distinctive: line 60
Delete local feature branches that were merged
- Distinctive: line 61
Verify remote branches were deleted (list any that remain)
“Common” is measured: kept by at least 6 in 10 of the 48 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Merge - Merge PRs, Close Issues, Clean Up Branches
Merge all open PRs and close related issues. Requires the gh CLI to be authenticated (gh auth status).
Phase 0: Get Repository Info
- Get GitHub owner/repo: use the cached values from the session context (injected at SessionStart). Only if absent, parse once from
git remote get-url origin(SSH:git@github.com:owner/repo.git, HTTPS:https://github.com/owner/repo.git). Use the owner/repo for ALL GitHub calls in this command.
Phase 1: Gather State
- Gather state:
- List all open PRs:
gh pr list --json number,title,headRefName,baseRefName,url,body - List all open issues with "feature" or "bugfix" labels:
gh issue list --label feature --label bugfix --json number,title - Read
.claude-harness/features/active.json:- Check
featuresarray for linked issue/PR numbers - Check
fixesarray for linked issue/PR numbers
- Check
- List all open PRs:
Phase 2: Build Dependency Graph
- Build dependency graph:
- For each PR, check if its base branch is another feature branch (not main/master)
- Order PRs so that dependent PRs are merged after their base PRs
- If PR A base is PR B head branch, merge B first
Phase 3: Pre-merge Validation
- Pre-merge validation for each PR (
gh pr view {number} --json state,mergeable,reviewDecision,statusCheckRollup):- CI status passes
- No merge conflicts
- Has required approvals (if any)
- Report any PRs that cannot be merged and why
Phase 4: Execute Merges
- Execute merges in dependency order:
- Merge the PR:
gh pr merge {number} --squash --delete-branch(--delete-branchremoves the remote branch and, when the repo is checked out on it, moves you back to the default branch) - Find and close any linked issues:
- Check PR body for "Closes #XX" or "Fixes #XX" (these auto-close on merge)
- Check
.claude-harness/features/active.jsonfor linked issues; close stragglers withgh issue close {number}
- For fix PRs:
- Close the fix issue
- Add comment to original feature issue:
gh issue comment {number} --body "Related fix merged: #{fix-issue} - {description}"
- Delete the local branch if it remains:
git branch -d {branch}(safe delete) - Update
.claude-harness/features/active.json:- For features: Set status="passing" in features array
- For fixes: Set status="passing" in fixes array
- Merge the PR:
Phase 5: Cleanup
- Cleanup:
- Prune local branches:
git fetch --prune - Delete local feature branches that were merged
- Verify remote branches were deleted (list any that remain)
- Switch to main/master branch
- Pull latest:
git pull
- Prune local branches:
Phase 6: Report Summary
- Report summary:
- PRs merged (with commit hashes)
- Issues closed
- Branches deleted (local and remote)
- Any failures or skipped items
Note: Version tagging and GitHub releases should be managed separately using git commands or GitHub's release UI directly.
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.

