promoting-dev-to-main
Skill981 starsChanged 5 months agoApache-2.0View on GitHub
Use when preparing, reviewing, resolving conflicts for, or merging a CORAL release pull request from the long-lived dev branch into main.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- plugin/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- coral-debugSkill
- coral-extendSkill
- coral-new-taskSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
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 30
Keep the long-lived dev branch.
- Very specific: line 45
Do not force-rebase the shared dev branch.
- Very specific: line 48
If an earlier release was squash-merged, main may have the same tree as an earlier dev commit without sharing its ancestry.
- Distinctive: line 61
Stop when any red flag appears and return to the workflow above.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Promoting dev to main
Core rule
Merge dev → main release PRs with a merge commit. Never squash or rebase
these promotions.
Ordinary contribution PRs still target dev and may be squash-merged. The
release promotion is the exception because main must retain dev in its
ancestry. Squashing a promotion makes the next release re-present old commits
and can create large false conflicts.
Workflow
- Confirm the PR is exactly
base=main,head=devand no duplicate release PR is open. - Review
main..dev, required CI, and deployment checks. In GitHub, open the merge-method dropdown and choose Create a merge commit. With the CLI, use:
gh pr merge <number> --repo Human-Agent-Society/CORAL --merge- Keep the long-lived
devbranch. Do not delete or force-push it. Fetch both branches and verify the released
devtip is an ancestor ofmain:git fetch origin dev main git merge-base --is-ancestor origin/dev origin/mainExit status
0is required.- Confirm post-merge CI, release automation, deployments, and production smoke checks.
If GitHub reports conflicts
Do not force-rebase the shared dev branch. First inspect the topology and
reproduce conflicts with git merge-tree.
If an earlier release was squash-merged, main may have the same tree as an
earlier dev commit without sharing its ancestry. Verify tree equivalence
before choosing a repair. Prefer merging main back into dev and pushing
normally; use an ancestry-only ours merge only when exact tree equality
proves main contains no unique content to preserve.
Red flags
- GitHub's primary button says Squash and merge.
- A command uses
--squash,--rebase, or a force-push. - The release workflow proposes deleting
dev. - Conflict resolution starts before checking commit topology and tree equality.
Stop when any red flag appears and return to the workflow above.
Quick reference
| PR | Allowed merge method |
Feature/fix/docs branch → dev | Repository default; usually squash |
dev → main release promotion | Merge commit only |
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.

