一键导入
git-workflow-operation
Use when starting Git work, preparing commits, pushing branches, opening Pull Requests, or coordinating optional git worktrees.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when starting Git work, preparing commits, pushing branches, opening Pull Requests, or coordinating optional git worktrees.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when following the Super Compound BRD -> PRD -> FSD -> GOAL -> IMPLEMENTATION -> VERIFICATION delivery path, artifact traceability, FSD authority, optional ADR handling, zero context bloat issue slicing, or OPEN-* stop conditions.
Use when an approved FSD goal or lightweight issue pointer is ready for implementation.
Use when multi-component work needs cross-component verification of API contracts, data flow, events, auth, config, UI, background jobs, or tests.
Use when /sc-plan needs FSD GOAL-* packets turned into lightweight issue pointers, local Markdown Kanban boards, blocker DAGs, or multi-agent task contracts.
Use when a plan or issue board has 2+ independent execution streams whose time saving exceeds coordination overhead. Dispatches agents in isolated git worktrees only after required delivery gates pass.
Use when an FSD and goal issue board need requirement coverage, goal quality, dependency DAG, sizing, and verification validated before execution.
| name | git-workflow-operation |
| description | Use when starting Git work, preparing commits, pushing branches, opening Pull Requests, or coordinating optional git worktrees. |
Git operations are preview-first. Show safety checks and exact commands before checkout, add, commit, push, PR creation, merge, branch deletion, or worktree removal.
Use for /sc-go, edits beginning through /sc-work or /sc-debug, user-requested branch/commit/push/PR/worktree operations, or isolated parallel work. Skip read-only research, artifact authoring, UI review, and knowledge capture unless they explicitly require Git state.
Load command previews only for the requested operation. Load workflow touchpoints only when coordinating another /sc-* route.
gitWorkflow configuration and show the exact proposed commands before any mutation. Use .agent/tools/git-workflow.mjs for deterministic previews and the PR template for PR text.remote/base, branch availability, and valid prefix/name. Worktrees are optional, not the default.git status and git diff; warn about .env, secrets, credentials, logs, caches, and build output before git add ../sc-review and /sc-audit remain read-only.git push -u origin <branch>. After an approved rebase, use only --force-with-lease, never --force.git reset --hard, git clean -fd, destructive branch deletion, merge, or destructive worktree removal without explicit approval. Validate worktree target paths before cleanup.Used by /sc-go, /sc-work, /sc-debug, /sc-review, /sc-audit, /sc-status, /sc-pause, /sc-launch, executing-plans, and parallel-execution.