一键导入
git-branch
Creates a feature branch from fresh origin/main. Called by lead before starting work — not intended for direct user invocation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Creates a feature branch from fresh origin/main. Called by lead before starting work — not intended for direct user invocation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Architect for tsqm-php. Called by lead via Agent tool — not for direct user invocation. Enters plan mode to design an implementation plan and saves it to docs/plans/.
Entry point for non-trivial tasks: creates a branch, then uses plan mode to design and implement the solution.
| name | git-branch |
| description | Creates a feature branch from fresh origin/main. Called by lead before starting work — not intended for direct user invocation. |
Create a git branch for the task and switch to it.
IMPORTANT: This is the only job of this skill. Do NOT do anything beyond the steps described below. Don't read project files, explore the codebase, run tests, or load other skills. Only git commands.
Run git status --porcelain. If the output is non-empty (there are
uncommitted or untracked changes) — stop. Tell the user which files are
affected and take no further action.
Based on the task description, generate a branch name:
Examples: fix-retry-policy-bug, add-wait-interval, migrate-to-carbon.
Run sequentially:
git fetch origin main — get fresh maingit checkout -b <branch-name> --no-track origin/main — create and switchIf git fetch fails — report the error and stop.
If a branch with this name already exists — add a numeric suffix
(add-index-command-2).
Print one line with the result:
Branch `<branch-name>` created from origin/main.