一键导入
dev-update-working-branch
Update the current working branch with the latest main. Fetches origin/main, updates local main, and rebases the current branch onto main.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update the current working branch with the latest main. Fetches origin/main, updates local main, and rebases the current branch onto main.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | dev-update-working-branch |
| description | Update the current working branch with the latest main. Fetches origin/main, updates local main, and rebases the current branch onto main. |
| user-invokable | true |
Update the current working branch with the latest changes from main.
Fetches origin/main, fast-forwards local main, and rebases the
current feature branch onto main for clean linear history.
/dev-review-pr when the branch is behind/dev-resolve-feedback (must update before resolving)BRANCH=$(git branch --show-current)
If on main, report "Already on main — use git pull instead" and stop.
Check for uncommitted or untracked changes:
test -z "$(git status --porcelain=v1 --untracked-files=all)"
If the output is non-empty, report "Uncommitted changes detected — commit or stash before updating" and stop. This catches tracked modifications, staged changes, and untracked files (which can cause "would be overwritten by rebase" errors).
git fetch origin main
git branch -f main origin/main
This updates local main to match origin/main without switching
branches. The -f flag forces the update (safe because we are not on
main).
git rebase main
If there are conflicts, report them and stop — the user must resolve
manually with git rebase --continue or git rebase --abort.
Updated <branch-name> with latest main.
- Fetched origin/main
- Local main updated to <commit>
- Rebased <branch-name> onto main
- <N> new commits from main
Rebase rewrites history — push with: git push --force-with-lease
If the rebase was a no-op (already up to date), report that instead.
main (nothing to rebase)Add PBR texture loading with separate roughness/metallic support to an SDL GPU project using forge_scene.h
Add Cook-Torrance PBR shading with GGX, Schlick-GGX, and Schlick Fresnel to an SDL GPU project alongside forge_scene.h
Add instanced grass rendering with segmented blades, wind animation, LOD density rings, and terrain LOD with geomorphing to an SDL GPU project
Add procedural noise texture generation to the asset pipeline — C tool, Python plugin, web UI with live preview
Add an asset pipeline lesson — hybrid Python + C track for asset processing, procedural geometry, and web frontend
Add an audio lesson — sound playback, mixing, spatial audio, DSP effects, with SDL GPU scenes and forge UI