一键导入
git-operations
Enforce git/gh CLI separation rule for version control operations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforce git/gh CLI separation rule for version control operations
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run synchronized app visual-review tests, generate screenshots from the same live app state the user sees, and inspect those screenshots before completion claims.
Use when unit or integration tests emit source-space failure manifests and the user needs browser replay screenshots with markers showing where each failure appears in the app. Applies to canonical stroke tests and future geometry/UI tests that can map failures to fixture-local coordinates.
Centralize and refactor constants/events/feature IDs, replace ad-hoc string literals, and maintain grouped+flattened constants contracts. Use when requests mention adding events/tools/features or reorganizing constants.
Apply deprecation lifecycle rules while preserving compatibility and documenting replacement owners/paths. Use when requests deprecate packages/APIs or retire legacy runtimes.
Synchronize implementation changes with framework/app docs contracts across API surfaces, behavior specs, and constraints. Use when code changes must be reflected in docs.
Author or refactor features with explicit priority/exclusive/session semantics and boundary-safe common-API usage. Use when requests add/fix feature behavior or session flow.
| name | git-operations |
| description | Enforce git/gh CLI separation rule for version control operations |
| license | MIT |
| compatibility | opencode |
| metadata | {"category":"version-control","workflow":"git"} |
Core Principle: Use git CLI for local operations, gh CLI only for GitHub PR operations
git CLIgit add - Stage changesgit commit - Create commitsgit checkout / git switch - Branch operationsgit push / git pull - Remote synchronizationgit status / git log - Status and historygit merge / git rebase - Integration operationsgit diff - View changesgh CLIgh pr create - Create pull requestsgh pr list - List pull requestsgh pr view - View pull request detailsgh pr merge - Merge pull requestsgh pr checkout - Checkout PR branchgh issue create / gh issue list - Issue operationsgh for: commits, staging, branching, pushing/pullinggit for: PR creation, PR management, issue operationsgit for core version control operationsgh only for GitHub-specific web UI operationsdocs/ai/workflows/git-commit-push-policy.md as the project-wide
source of truth.✅ Correct:
git add .
git commit -m "feat: add new feature"
git push origin feature-branch
gh pr create --title "Add new feature" --body "Description here"
❌ Incorrect:
gh repo clone owner/repo # Use git clone instead
gh release create # Use git tag + gh release create is fine
Before executing any git/gh command, verify:
gitghgit for core operations