brightdigit/mistkit/rebase-integration-branches
Claude Code and agent skill by brightdigit/mistkit
- community
Checking that the SKILL.md file is still in the repository.
Rebase mistkit and subrepo integration branches onto a release branch in this git-trees repo. Squashes each branch to one commit ahead of the release branch with CI-only integration changes. Use when rebasing integration branches, squashing mistkit/subrepo onto v1.0.0-dev.1, or syncing path-dependency CI for MistKit/CelestraKit.
Install
npx vskill@latest install brightdigit/mistkit/rebase-integration-branchesSKILL.md
Rebase Integration Branches (git-trees)
Squash mistkit and subrepo so each is exactly one commit ahead of the release branch. Integration commits change CI/workflow files only unless the user explicitly asks to change Package.swift / Package.resolved.
Prerequisites
- Read
AGENTS.mdat the container root (sibling of worktree directories). - Run git commands from the container root (parent of this worktree),
not from inside a worktree, unless editing files.
- Confirm
RELEASE_BRANCHwith the user if unsure.
Project config
Read projects.md. Defaults for this repo:
| Key | Value | |
|---|---|---|
RELEASE_BRANCH | v1.0.0-dev.1 | |
MAIN_BRANCH | main | |
MISTKIT_REF | 1.0.0-beta.4 | |
KIT_PACKAGE | CelestraKit | |
KIT_PATH | ../CelestraKit | |
| Primary workflow | .github/workflows/CelestraCloud.yml | |
| Feed update workflow | .github/workflows/update-feeds.yml | |
| MistKit path (if used) | ../.. |
Target end state
Verify after push:
Workflow checklist
Step 0: Pre-flight
Stop and ask if force-push was not requested, backups don't exist, or the user wants to preserve full branch history.
Step 1: Backup branches
Existing backups mistkit-backup / subrepo-backup may also be present — update or create backup/*-pre-squash for consistency with BushelCloud.
Step 2: Squash mistkit onto release branch
mistkit — CI changes
- Delete
.github/workflows/dependency-policy.yml.
- Primary workflow (
.github/workflows/CelestraCloud.yml) — release branch
may already have setup-mistkit. Add only where missing:
env:MISTKIT_BRANCH: 1.0.0-beta.4(match existing tag format in repo)- After checkout in each build job (
build-ubuntu,build-macos,
build-macos-platforms):
```yaml
- name: Setup MistKit
uses: brightdigit/MistKit/.github/actions/setup-mistkit@main with: branch: ${{ env.MISTKIT_BRANCH }} ```
- Feed update workflow (
.github/workflows/update-feeds.yml) — add
setup-mistkit after checkout in the build job if missing (needed when Package.swift uses a local MistKit path).
- Do not carry over stale drift: source changes, Swift version
downgrades, etc.
mistkit — Package changes (only if user requests)
Remove the mistkit pin from Package.resolved.
Commit and push mistkit
Step 4: Squash subrepo onto release branch
subrepo — CI changes
- Delete
.github/workflows/dependency-policy.yml.
- After checkout in each build job of
CelestraCloud.yml, add sed override
before setup-mistkit / swift-build:
Ubuntu: ```yaml
- name: Update Package.swift to use remote CelestraKit branch
run: | sed -i 's|\.package(path: "\.\./CelestraKit")|.package(url: "https://github.com/brightdigit/CelestraKit.git", branch: "subrepo")|g' Package.swift rm -f Package.resolved ```
macOS: ```yaml
- name: Update Package.swift to use remote CelestraKit branch
run: | sed -i '' 's|\.package(path: "\.\./CelestraKit")|.package(url: "https://github.com/brightdigit/CelestraKit.git", branch: "subrepo")|g' Package.swift rm -f Package.resolved ```
subrepo — Package changes (only if user requests)
Remove the celestrakit pin from Package.resolved.
Commit and push subrepo
Step 6: Cleanup
Optional: revert Package files only
Warn: subrepo sed steps require .package(path: "../CelestraKit") in Package.swift.
Rules
- Never modify
CelestraCloud.git/directly. - Never touch the release-branch worktree while rebasing integration branches.
- Use
git trees add --no-push. - Always
--force-with-lease. - Ask before force-push if not confirmed in this session.
Related
BushelCloud carries the same skill pattern with BushelKit and BushelCloud.yml. See brightdigit/BushelCloud .agents/skills/rebase-integration-branches/.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingExamples/CelestraCloud/.agents/skills/rebase-integration-branches/SKILL.md
Popularity
- 7-day trend score
- 0
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/brightdigit/mistkit/rebase-integration-branches)