Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    karote00

    git-operations

    karote00/git-operations
    DevOps
    5
    1 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Enforce git/gh CLI separation rule for version control operations

    SKILL.md

    Git/gh CLI Separation Rule

    Core Principle: Use git CLI for local operations, gh CLI only for GitHub PR operations

    When to use git CLI

    • git add - Stage changes
    • git commit - Create commits
    • git checkout / git switch - Branch operations
    • git push / git pull - Remote synchronization
    • git status / git log - Status and history
    • git merge / git rebase - Integration operations
    • git diff - View changes

    When to use gh CLI

    • gh pr create - Create pull requests
    • gh pr list - List pull requests
    • gh pr view - View pull request details
    • gh pr merge - Merge pull requests
    • gh pr checkout - Checkout PR branch
    • gh issue create / gh issue list - Issue operations

    Enforcement Guidelines

    1. Never use gh for: commits, staging, branching, pushing/pulling
    2. Never use git for: PR creation, PR management, issue operations
    3. Always prefer git for core version control operations
    4. Use gh only for GitHub-specific web UI operations

    Examples

    ✅ 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
    

    Validation

    Before executing any git/gh command, verify:

    • Is this a local operation? → Use git
    • Is this a PR/web operation? → Use gh
    • Am I unsure? → Default to git for core operations
    Recommended Servers
    GitHub
    GitHub
    Gitlab
    Gitlab
    Bitbucket
    Bitbucket
    Repository
    karote00/asyra
    Files