Skip to content

Commit ce16a58

Browse files
authored
Prefer git and gh CLI for repo operations (#380)
1 parent 71a6704 commit ce16a58

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

AGENTS.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,9 @@ ______________________________________________________________________
497497

498498
### c. **More Specific Tips**
499499

500-
- **Use MCP for git operations** (commits, pushes, PRs) instead of CLI.
500+
- **Use standard git and gh CLI first** for commits, pushes, PRs, and other
501+
git/GitHub operations. Use git/GitHub MCP tools only when the CLI has a gap,
502+
the CLI is unavailable, or the user explicitly requests MCP usage.
501503
- **When in doubt, prefer explicit, readable code over cleverness.**
502504
- **Never use non-ASCII characters or the em dash.**
503505
- **If stuck, suggest opening a new chat with latest context.**
@@ -543,7 +545,8 @@ ______________________________________________________________________
543545
- **Workflow:** Issue → Feature branch → GitHub PR
544546
- **Branch naming:** `feature/<desc>`, `bugfix/<desc>`, etc.
545547
- **PRs:** Reference relevant issue, link to tests/docs as needed.
546-
- **Commits:** Use MCP tools, not direct git CLI.
548+
- **Commits:** Use standard `git` CLI first. Use git MCP tools only when the CLI
549+
has a gap, the CLI is unavailable, or the user explicitly requests MCP usage.
547550

548551
______________________________________________________________________
549552

CLAUDE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ ______________________________________________________________________
508508

509509
### c. **Claude-Specific Tips**
510510

511-
- **Use MCP for git operations** (commits, pushes, PRs) instead of CLI.
511+
- **Use standard git and gh CLI first** for commits, pushes, PRs, and other
512+
git/GitHub operations. Use git/GitHub MCP tools only when the CLI has a gap,
513+
the CLI is unavailable, or the user explicitly requests MCP usage.
512514
- **When in doubt, prefer explicit, readable code over cleverness.**
513515
- **Never use non-ASCII characters or the em dash.**
514516
- **If stuck, suggest opening a new chat with latest context.**
@@ -554,7 +556,8 @@ ______________________________________________________________________
554556
- **Workflow:** Issue → Feature branch → GitHub PR
555557
- **Branch naming:** `feature/<desc>`, `bugfix/<desc>`, etc.
556558
- **PRs:** Reference relevant issue, link to tests/docs as needed.
557-
- **Commits:** Use MCP tools, not direct git CLI.
559+
- **Commits:** Use standard `git` CLI first. Use git MCP tools only when the CLI
560+
has a gap, the CLI is unavailable, or the user explicitly requests MCP usage.
558561

559562
______________________________________________________________________
560563

0 commit comments

Comments
 (0)