بنقرة واحدة
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