push
Skill4 starsChanged 58 days agoMITView on GitHub
Push seamux's local main to GitHub once this worktree's work has landed. Checks the branch is already on main and stops if not, makes sure every user-facing change has a changeset, pulls origin/main in first, resolves conflicts if there are any, then pushes. Use when asked to "push", "push main", or "/push", usually right after landing.
- Commits and pushes
20 other projects use a version of this.
Adopted by
Most recently taken up by
- GavinGreenwood/agentic-workflow-templatetheir own version, first seen Oct 2, 2026
- egregore-labs/egregoretheir own version, first seen Oct 1, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Sep 30, 2026
- tyler-berggren/tb-claude-kittheir own version, first seen Sep 29, 2026
- lklimek/claudiustheir own version, first seen Sep 23, 2026
- toy-crane/claude-code-playbook-templatetheir own version, first seen Sep 16, 2026
Used with
Projects with it also use test, plan and 1 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.
Microsoft AzureSkilltest
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 4 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- openai/symphony★ 28ksame name
- cashew-labs/libretto★ 904same name
- kdlbs/kandev★ 899same name
- egregore-labs/egregore★ 291same name
- sterlingcrispin/claude_slash_commands★ 200same name
- kv0906/pm-kit★ 138same name
- atherio-danp/cde-dotnetcc★ 109same name
- AsiaOstrich/universal-dev-standards★ 76same name
- toy-crane/claude-code-playbook-template★ 73same name
- aymericbeaumet/dotfiles★ 15same name
10 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 repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- tasklessSkill
- tasklessSkill
- seamux-dispatchSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
If either fails, stop. Tell the user what hasn't landed (git log --oneline main..HEAD, or the uncommitted files) and that it needs …
- Very specific: line 52
If BRANCH is main (a session running in the main checkout), stop and ask the user instead: merging there edits what the board serves.
“Common” is measured: kept by at least 6 in 10 of the 17 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
Push main
npm run land fast-forwards the local main but never pushes it. This pushes it, for collaborators on thecodedrift/seamux. Run each step from the current worktree; never edit the main checkout directly, since it is what the board serves.
REPO=$(git worktree list --porcelain | head -1 | sed 's/^worktree //') # the main checkout
BRANCH=$(git branch --show-current)1. Check this worktree is on main. Stop if not.
git status --porcelain --untracked-files=nomust be empty.- Unless
BRANCHismain,git merge-base --is-ancestor HEAD mainmust succeed, meaning every commit here has landed.
If either fails, stop. Tell the user what hasn't landed (git log --oneline main..HEAD, or the uncommitted files) and that it needs committing and landing (npm run land) first. Do not land it yourself as part of this skill.
2. Check the changesets
git fetch origin main
git log --stat origin/main..main # what this push would publishGo through those commits against CLAUDE.md's Release notes. A commit needs a changeset when someone running seamux would notice it: a fix, a new or changed feature, setting or command, or a change to where seamux keeps its state. Docs, CI, refactors, tests, and tooling for working on seamux (such as .claude/skills/) need none. Many pushes need none; don't add one just to be safe.
A commit is covered when it, or another unpushed commit on the same change, adds or edits a .changeset/*.md that describes it. For each noticeable change that isn't covered:
- In a worktree: write the changeset by hand (
patchorminor, nevermajor; extend an existing changeset for the same change rather than adding a second), commit it, andnpm run land. Then continue. If land refuses because main is missing GitHub's commits, leave the changeset committed and go on to step 3: the merge there lands it along with them. - In the main checkout: stop, and tell the user which change needs one.
Say in a line each which commits you judged noticeable and which not, so the user can overrule you.
3. Pull the latest main
git log --oneline main..origin/main # what GitHub has that local main lacks- Nothing listed: local main already contains origin/main. Skip to step 5.
Commits listed: bring them in on this branch, so a conflict never touches the main checkout:
git merge --ff-only main # this branch = main git merge --no-edit origin/mainIf
BRANCHismain(a session running in the main checkout), stop and ask the user instead: merging there edits what the board serves.
npm run land does this check too: it fetches origin/main and refuses to land anything while local main lacks some of its commits, and points here. A branch that contains origin/main, such as this merge, is the exception, so this is also how to unblock a land refused that way.
4. Resolve conflicts, if any
If the merge conflicts, resolve it when the right answer is clear from both sides (git diff, and git log -p of the commits involved): keep both intents, then git add and git commit --no-edit. If the right resolution is a judgement call, git merge --abort and ask the user; main is still untouched.
Then land the merge, which typechecks it, fast-forwards main, and restarts the board if it needs to:
npm run landLand lets this branch past its origin/main check, since main has everything GitHub has once it lands. It never rebases a merge, or any branch carrying origin's commits, since that would turn them into copies that main could never be pushed over. If main moved since the merge, land stops and says so: git merge --no-edit main on this branch, and land again. Land never merges or pulls by itself.
5. Push
git push origin mainThis pushes the local main ref, whichever worktree it runs from. It only fast-forwards; if GitHub rejects it because origin moved again, go back to step 3. Never force-push.
Report what was pushed: git log --oneline <old origin/main>..main, or say main was already up to date.
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.

