/repo-bootstrap:linear-flowfrom repo-bootstrap
Migrates a repo to a linear fast-forward model with dev trunk and main release channel, enforcing no merge commits and signed history. One-shot setup; day-to-day rules live in each repo's CLAUDE.md.
Ships in repo-bootstrap. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Doctrine for repos on the linear model. One linear signed history. dev is the working trunk. main is the release channel consumers use: a delayed pointer on dev's history, moved only by fast-forward. No merge commits anywhere; the server refuses them (required_linear_history).
dev ──●──●──●──●──●──●──●──► the only line of history
↑
main ───────────────┘ release = git push origin dev:main
main is always an ancestor of dev. If a repo has no release channel, main alone is the trunk and every dev rule below applies to main.
dev, atomic and curated. Big work (large feature, large skill), several concerns, or parallel agents: branch or PR stack targeting dev.dev, then git push origin <branch>:dev. The identical SHAs reaching the base marks the PR merged. Never use the GitHub merge button: server-side merge or rebase re-creates commits unsigned and breaks required_signatures.git push origin dev:main when dev has soaked long enough. Nothing else ever touches main.--force-with-lease. Never on dev or main.| Symptom | Fix |
|---|---|
Push to dev/main rejected non-fast-forward | Rebase on the current remote tip, push again. Never force. |
Push rejected required_linear_history | A merge commit slipped in; rebase to flatten it, push again. |
| PR not marked merged after landing | The pushed SHAs differ from the PR head. Push the rebased branch to the PR first, then push it to dev. |
main no longer ancestor of dev | Someone moved main off the line. Fast-forward the lagging ref onto the other; if truly diverged, stop and ask the user which line wins. |
git pull refused on dev | Pull with rebase; the ruleset rejects merge commits from pulls too. |
To migrate or bootstrap a repo onto this model, follow references/setup.md: rulesets, CI ancestor guard, CLAUDE.md section, initial sync, verification.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bengous/claude-code-plugins --plugin repo-bootstrap2 skills in this plugin