agentleFS
Human-Agent-SocietyHuman-Agent-Society/CORAL/.claude/skills/promoting-dev-to-main/SKILL.md

promoting-dev-to-main

Skill1k 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.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 30 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 2 mentionsSep 2026: 1 mentionOct 2026: 2 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the Human-Agent-Society/CORAL repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about Human-Agent-Society/CORAL

The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 36

Talked about on GitHub (36 times).

On GitHub · 36

31 more on GitHub

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
  1. Very specific:

    Keep the long-lived dev branch.

    line 30
  2. Very specific:

    Do not force-rebase the shared dev branch.

    line 45
  3. Very specific:

    If an earlier release was squash-merged, main may have the same tree as an earlier dev commit without sharing its ancestry.

    line 48
  4. Distinctive:

    Stop when any red flag appears and return to the workflow above.

    line 61

≈ “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

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

  1. Confirm the PR is exactly base=main, head=dev and no duplicate release PR is open.
  2. Review main..dev, required CI, and deployment checks.
  3. 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
  4. Keep the long-lived dev branch. Do not delete or force-push it.
  5. Fetch both branches and verify the released dev tip is an ancestor of main:

    git fetch origin dev main
    git merge-base --is-ancestor origin/dev origin/main

    Exit status 0 is required.

  6. 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

PRAllowed merge method
Feature/fix/docs branch → devRepository default; usually squash
dev → main release promotionMerge commit only

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.