vvkit-rebase
Use when explicitly asked to rebase the current branch.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- vvkit-rebase
- description
- Use when explicitly asked to rebase the current branch.
02 资源文件 1
- 参考文档agents/openai.yaml43 B
03 SKILL.md 正文
Rebase the current branch.
REQUIRED BACKGROUND: $vvkit-resolving-conflicts — reading what the base did, which side is
which in a rebase, and the code a clean rebase still leaves wrong.
Codex runtime
Load referenced skills by reading their SKILL.md. Surveyor, reviewer and runner
skills are role instructions, not registered agent types or enforced tool allowlists.
Use a generic subagent only when delegation is available and permitted; otherwise
perform the role inline. Follow the active session's model, context and permission
rules. User authorization takes precedence over imported workflow approval gates.
Claude hooks and plugin commands are not active in this package. Existing
.claude/context/ paths refer to project documents, not Codex configuration.
Arguments: use the arguments in the user request.
| Argument | Target | Fetch first |
|---|---|---|
| none | the local default branch | no |
<branch> |
that local branch | no |
<remote> |
<remote>/<default branch> |
git fetch <remote> |
<remote>/<branch> |
that remote branch | git fetch <remote> |
An argument is a remote when git remote lists it. The default branch is the target of
git symbolic-ref --short refs/remotes/origin/HEAD without its origin/ prefix, or whichever of
main and master exists when that ref is unset.
A fetch happens only when the argument names a remote. Rebasing onto a remote nobody asked for moves the branch onto commits the local base does not have yet.
1. Before rebasing
A rebase needs a clean working tree. When there are uncommitted changes, say so and stop; stashing them unasked hides work the human may not remember to restore.
When the branch has been pushed, say that the rebase rewrites published commits and the next push
will need --force-with-lease. Do not push.
Read what the target did since the fork point, and list old names beside new ones, as
$vvkit-resolving-conflicts describes.
2. Rebase
git -c merge.conflictStyle=zdiff3 rebase <target>
On each stop: resolve from the base's side, git add the file, git rebase --continue. Remember
that the sides are swapped — HEAD is the target, and the commit being replayed is REBASE_HEAD.
git rebase --abort returns the branch to where it started. Use it, and ask, when a resolution is
unclear; a rebase finished on a guess has no merge commit to point at later.
3. After the rebase
Grep for every old name on the list and fix the stale code in the commit it belongs to — fixup and
autosquash, as in $vvkit-resolving-conflicts. Then run the checks the change needs:
$vvkit-verifying-changes.
Report the target, the commits replayed, each conflict and how it was resolved, and anything adapted to a refactor.
04 同仓库更多 Skills
no-heading
Use when proving that the validator rejects a body with no H1 and a force-loading @-link.
wrong-name-does-not-match-dir
Dispatches a subagent per task and reviews between each one.
writing-tests
Use when adding or changing behavior, fixing a bug, or judging whether an existing or generated test earns its place.
writing-skills
Use when authoring or editing a skill, agent, command or hook for this kit, or when deciding whether a piece of guidance belongs in a skill at all.
writing-project-instructions
Use when creating or editing a CLAUDE.md or AGENTS.md, when it has grown long, or when a rule in it also exists in an installed skill.
writing-logs
Use when adding or reviewing log statements, or when deciding what level a message belongs at.