Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Separate a messy working tree with multiple tangled features into clean, focused PRs.
$ npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divinevideo/divine-mobile git-separate-tangled-changes-into-prs --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/git-separate-tangled-changes-into-prs .claude/skills/git-separate-tangled-changes-into-prs && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "git-separate-tangled-changes-into-prs" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-separate-tangled-changes-into-prs into .claude/skills/git-separate-tangled-changes-into-prs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-separate-tangled-changes-into-prs", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-separate-tangled-changes-into-prsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divinevideo/divine-mobile git-separate-tangled-changes-into-prs --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/git-separate-tangled-changes-into-prs .agents/skills/git-separate-tangled-changes-into-prs && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "git-separate-tangled-changes-into-prs" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-separate-tangled-changes-into-prs into .agents/skills/git-separate-tangled-changes-into-prs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-separate-tangled-changes-into-prs", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divinevideo/divine-mobile git-separate-tangled-changes-into-prs --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/git-separate-tangled-changes-into-prs .cursor/skills/git-separate-tangled-changes-into-prs && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "git-separate-tangled-changes-into-prs" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-separate-tangled-changes-into-prs into .cursor/skills/git-separate-tangled-changes-into-prs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-separate-tangled-changes-into-prs", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/divinevideo/divine-mobile.git --path .agents/skills/git-separate-tangled-changes-into-prs--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divinevideo/divine-mobile git-separate-tangled-changes-into-prs --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/git-separate-tangled-changes-into-prs .gemini/skills/git-separate-tangled-changes-into-prs && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "git-separate-tangled-changes-into-prs" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-separate-tangled-changes-into-prs into .gemini/skills/git-separate-tangled-changes-into-prs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-separate-tangled-changes-into-prs", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install divinevideo/divine-mobile git-separate-tangled-changes-into-prsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/git-separate-tangled-changes-into-prs .github/skills/git-separate-tangled-changes-into-prs && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "git-separate-tangled-changes-into-prs" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-separate-tangled-changes-into-prs into .github/skills/git-separate-tangled-changes-into-prs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-separate-tangled-changes-into-prs", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install divinevideo/divine-mobile git-separate-tangled-changes-into-prs --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/git-separate-tangled-changes-into-prs .opencode/skills/git-separate-tangled-changes-into-prs && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "git-separate-tangled-changes-into-prs" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/git-separate-tangled-changes-into-prs into .opencode/skills/git-separate-tangled-changes-into-prs/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "git-separate-tangled-changes-into-prs", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
git-separate-tangled-changes-into-prsSeparate a messy working tree with multiple tangled features into clean, focused PRs.
Git Separate Tangled Changes Into PRs is an agent skill from divinevideo/divine-mobile. Separate a messy working tree with multiple tangled features into clean, focused PRs. Use when: (1) Working tree has uncommitted changes from multiple features mixed together, (2) Need to create a PR for just one feature from a mixed working tree, (3) "git stash pop" fails with "already exists, no checkout" for untracked files, (4) Pre-commit hooks block commits due to unrelated untracked files with errors, (5) Interface changes in one feature break consumer files from another feature in the same working tree…
Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Git workflow. It works with Git. The licence is MPL-2.0.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4c622be. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitdartghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Git Separate Tangled Changes Into PRs loads about 2.3k tokens when it runs. Until then it costs about 173 tokens; SKILL.md has 918 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from divinevideo/divine-mobile at commit 4c622be, republished under its MPL-2.0 licence (© divinevideo). 918 words, ~2,302 tokens.
.claude/skills/git-separate-tangled-changes-into-prs/SKILL.md (or your agent's skills folder).A working tree accumulates uncommitted changes from multiple features over
time. When you need to create focused PRs, the changes are tangled together
— some files have changes from multiple features, generated files (like
.mocks.dart) reflect all features combined, and pre-commit hooks fail on
unrelated WIP code.
git diff --name-only shows files from clearly different featuresdart analyze / eslint / etc. on ALL files (not
just staged), so untracked WIP files block commitsgit stash -u -m "descriptive-name-for-safety"The -u flag includes untracked files. This is your safety net.
git checkout main # or the appropriate base
git pull
git checkout -b feature/clean-branchgit stash popCommon issue: "already exists, no checkout" — happens when untracked files from the stash already exist in the working tree. The tracked file changes still apply, but the stash is preserved (not dropped). This is safe; the files you need are already there.
Merge conflicts: Resolve each one. For files belonging to OTHER features, take the base version:
git checkout --theirs path/to/other-feature-file.dartFor files belonging to THIS feature, take the stash version or resolve manually.
Some files have changes from BOTH features. For these:
git checkout main -- path/to/file.dartIf your pre-commit hook analyzes ALL files (not just staged), untracked WIP files from other features will block your commit.
Workaround: Temporarily move problematic untracked files:
mkdir -p /tmp/other-features-backup
mv lib/unrelated_feature/ /tmp/other-features-backup/
mv test/unrelated_feature/ /tmp/other-features-backup/Commit, then restore:
cp -r /tmp/other-features-backup/* .If the project uses code generation (Mockito, Riverpod, Freezed, etc.), restore generated files to base and regenerate:
git checkout main -- **/*.mocks.dart **/*.g.dart
dart run build_runner build --delete-conflicting-outputsThis ensures generated files only reflect YOUR feature's changes.
When Feature A changes an interface (renames a method, changes parameter types), consumer files that weren't modified by Feature A will break. The analyzer catches these. Fix them before committing.
Common pattern:
CompleteParameters? to Map<String, dynamic>.colorFilters on what's now a MapNever create a PR that targets another PR's branch instead of main.
Stacked PRs cause real problems in this project: rebases cascade, reviewer
context fragments, merge order becomes load-bearing, CI runs against the
wrong base, and "fix on parent" forces a re-review of the child.
If Feature B depends on Feature A, ship them as ONE combined PR.
# Both features live on a single branch, targeting main
git checkout main && git pull
git checkout -b feature-a-and-b
# ... commit Feature A changes ...
# ... commit Feature B changes (separate commits are fine) ...
gh pr create --base main # one PR, both featuresWrite the PR description so the two features are clearly delineated — separate sections, separate test plans. Reviewers can read it as a single unit, and the merge story is one click. This is the default when changes are interdependent.
The only time to split is when the features are truly independent —
in which case they each get their own PR targeting main, in any order.
If you find yourself wanting "B based on A," that's the signal to combine
them, not to stack.
git diff main...HEAD --stat shows only files for YOUR featuredart analyze (or equivalent) passesgit stash listSession where model-dedup changes and collaborator/watermark feature changes were tangled in 140+ modified files. The model-dedup work was independent of the collab/watermark feature, so they split cleanly:
fix/profile-copy-shares-urlchore/model-deduplication from main, popped stash/tmp/feat/collabs-watermark-inspired-by from main, popped stashIf the two features had been interdependent, they would have shipped as one combined PR — never stacked.
When changes are split between commits AND stash (not just stash), use this approach instead:
# 1. Create branches from origin/main
git branch feature-a origin/main
git branch feature-b origin/main
# 2. Cherry-pick commits to appropriate branches
git checkout feature-a
git cherry-pick <commit-hash-for-feature-a>
# 3. Apply stashed files selectively (see gotchas below)git checkout stash@{0} -- <path> FAILS for files that were DELETED in the
stash — they don't exist in the stash tree. Handle deletions separately:
# For MODIFIED files — checkout from stash works
git checkout stash@{0} -- path/to/modified_file.dart
# For DELETED files — must use git rm instead
git rm path/to/deleted_file.dart
# Check which are deletions vs modifications first:
git stash show stash@{0} --name-status
# D = deleted (use git rm), M = modified (use checkout)When git root is a parent directory but you work in a subdirectory, stash paths include the subdirectory prefix:
# Working in: /project/mobile/
# Git root: /project/
# Stash shows: mobile/lib/file.dart (NOT lib/file.dart)
# Must run checkout from repo root:
cd $(git rev-parse --show-toplevel)
git checkout stash@{0} -- mobile/lib/file.dartIf a commit was already merged to main via a different PR (different hash), cherry-pick will produce an empty commit:
# "The previous cherry-pick is now empty"
git cherry-pick --skip # Skip it, it's already on mainWhen cherry-picking onto branches from origin/main, the analyzer may find
pre-existing errors on main unrelated to your changes. Use --no-verify
only when you've confirmed the errors aren't yours:
git commit --no-verify -m "feat: your changes"Compare stash contents against all branch diffs:
git stash show stash@{0} --name-only | sort > /tmp/stash_files.txt
git diff --name-only origin/main..feature-a
git diff --name-only origin/main..feature-b
# Every stash file should appear in exactly one branch-u to capture untracked filesmain. If features depend on each
other, combine them into one bigger PR — see Step 8.pop fails on untracked files — don't
panic, your data is safe© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/git-separate-tangled-changes-into-prs of divinevideo/divine-mobile.
Open the folder on GitHubat commit 4c622be
Git Separate Tangled Changes Into PRs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Git Separate Tangled Changes Into PRs this skilldivinevideo/divine-mobile | 266 | — | ~2.3k | Automated safety check: Pass | MPL-2.0 | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Code Design Rationale Investigatorcursor/plugins | 10k | 9 repos | ~2.6k | Automated safety check: Pass | None | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Migrate Internal Package into GhostTryGhost/Ghost | 55k | — | ~3.8k | Automated safety check: Pass | MIT | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
cursor/plugins
Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
TryGhost/Ghost
Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
tailcallhq/forgecode
Resolves Git merge conflicts with a plan-first workflow that keeps both sides' intent, regenerates lock files and backs up deleted-but-modified files.
divinevideo/divine-mobile
Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".
divinevideo/divine-mobile
Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.
divinevideo/divine-mobile
Fix "Null check operator used on a null value" errors when an object is set to null during an async await.
divinevideo/divine-mobile
Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.
divinevideo/divine-mobile
Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.
divinevideo/divine-mobile
Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).
Works with
Categories
Separate a messy working tree with multiple tangled features into clean, focused PRs. Git Separate Tangled Changes Into PRs is an agent skill from divinevideo/divine-mobile. Separate a messy working tree with multiple tangled features into clean, focused PRs.
Git Separate Tangled Changes Into PRs fits situations like: working tree has uncommitted changes from multiple features mixed together; need to create a PR for just one feature from a mixed working tree; Git stash pop fails with already exists; no checkout for untracked files.
Run `npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a claude-code`. Or copy the skill folder (.agents/skills/git-separate-tangled-changes-into-prs in divinevideo/divine-mobile) into .claude/skills/git-separate-tangled-changes-into-prs in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a codex`. Or copy the skill folder (.agents/skills/git-separate-tangled-changes-into-prs in divinevideo/divine-mobile) into .agents/skills/git-separate-tangled-changes-into-prs in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divinevideo/divine-mobile --skill git-separate-tangled-changes-into-prs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-separate-tangled-changes-into-prs, .gemini/skills/git-separate-tangled-changes-into-prs, .github/skills/git-separate-tangled-changes-into-prs and .opencode/skills/git-separate-tangled-changes-into-prs in your project.
Going by SKILL.md and its folder, Git Separate Tangled Changes Into PRs needs the command-line tools its instructions call (git, dart and gh).
SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Git Separate Tangled Changes Into PRs is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Git Separate Tangled Changes Into PRs: Finishing a Development Branch (obra/superpowers, 296k stars), Code Design Rationale Investigator (cursor/plugins, 10k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Migrate Internal Package into Ghost (TryGhost/Ghost, 55k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 266 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 8, 2026.
Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.