foundation-devices/envoy/branch-policy
Claude Code and agent skill by foundation-devices/envoy
- community
Checking that the SKILL.md file is still in the repository.
Check that all commits from release branches have been forward-ported, and open PRs for missing ones
Install
npx vskill@latest install foundation-devices/envoy/branch-policySKILL.md
Branch Policy Check
Run the branch policy check, summarize the results, and open cherry-pick PRs for any missing commits.
Policy
Commits must flow forward through the release branches:
- 2.2.x → 2.3 and main: All non-trivial commits from
2.2.xbranches (>= 2.2.13, including future 2.2.14, 2.2.15, etc.) must land in both2.3andmain(currently version 2.4). - 2.3 → main: All non-trivial commits on
2.3must also land inmain.
Ignore these commits:
- Version bumps (
chore: bump build number,Bump version,Fix version) - Merge commits
Steps
1. Discover missing commits
- Run
git fetch --all --quietto get latest state.
- Check 2.2.x → 2.3 and main. For each
origin/2.2.Nbranch where N >= 13, run:
`` git cherry origin/main origin/2.2.N git cherry origin/2.3 origin/2.2.N ` Lines starting with +` are commits NOT present in the target branch.
- Check 2.3 → main. Run:
`` git cherry origin/main origin/2.3 ` Lines starting with + are commits on 2.3 NOT present in main`.
- For each missing commit (marked with
+), check if it's a merge commit (skip those) or matches an ignore pattern (skip those too). For the remaining ones, get the subject withgit log --format='%s' -1 <sha>and the diffstat withgit show --stat --format="" <sha>.
- Present a clear natural language summary:
- Which branches were checked and against which targets
- How many real commits are missing from each target
- For each missing commit: its short SHA, subject line, and which files it touches (from diffstat)
- If everything is clean, say so
2. Create cherry-pick PRs
If there are missing commits, create a PR for each (source, target) pair that has missing commits. The pairs to check are:
2.2.N→2.32.2.N→main2.3→main
For each pair with missing commits:
- Create a branch from the target:
`` git checkout -b cherry-pick/<source>-to-<target> origin/<target> ` Use the highest 2.2.N branch number if multiple 2.2.x branches exist. If the branch already exists remotely, append a date suffix (e.g., cherry-pick/2.2.13-to-main-20260324`).
- Cherry-pick each missing commit (in the order they appear on the source branch):
`` git cherry-pick <sha> ``
- If a cherry-pick conflicts, abort (
git cherry-pick --abort), skip that commit, and note it in the PR body as needing manual resolution. - Continue with the remaining commits.
- Push the branch:
`` git push -u origin <branch-name> ``
- Create a PR using
gh pr create:
- Title:
cherry-pick: <source> commits into <target> - Base: the target branch
- Body: use a HEREDOC and include:
- A list of all cherry-picked commits (short SHA + subject)
- A list of any skipped commits (conflicts) with instructions to resolve manually
- The source branch
- Return to the original branch after creating all PRs:
`` git checkout - ``
- Print the PR URL(s) at the end.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbranch_policy/SKILL.md
Popularity
- Repository stars
- 56
- Repository forks
- 13
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/foundation-devices/envoy/branch-policy)