intuitive-port-worktreelisted
Install: claude install-skill MiaoDX/intuitive-flow
# Intuitive Port Worktree
Use this skill to move a change set from a source worktree into the target
default repo checkout while preserving the target checkout's current branch.
The operation name depends on the method:
- **cherry-pick**: replay one or more source commits directly.
- **apply a patch**: apply a diff generated from the source.
- **manual patch port** or **manual cherry-pick**: map the same intent into a
target branch whose files or APIs have diverged.
- **port changes** or **transplant changes**: generic phrasing for this workflow.
## Operating Rule
Do not switch the target repo to the source branch unless the user explicitly
asks. The target repo's current branch is the destination.
If source and target paths are explicit, execute autonomously. Ask only when the
source payload or target repo is ambiguous enough that the wrong choice would
overwrite unrelated work.
## Discovery
Collect this before editing:
```bash
git -C <source> status --short --branch
git -C <target> status --short --branch
git -C <source> rev-parse --show-toplevel
git -C <target> rev-parse --show-toplevel
git -C <target> worktree list --porcelain
git -C <source> log --oneline --decorate -10
git -C <target> log --oneline --decorate -10
```
Confirm whether the source and target share a git object database:
```bash
git -C <source> rev-parse --path-format=absolute --git-common-dir
git -C <target> rev-parse --path-format=absolute --git-common-dir
```
If they do not share a git commo