Skill

Tool Preferences

Guidance for selecting between equivalent tools when multiple options exist. Inject this skill into agents that may interact with GitHub, git, or other systems where both CLI tools and MCP servers are available. This skill ensures consistent, efficient tool selection across all agents.

From aichemist
Install
1
Run in your terminal
$
npx claudepluginhub anras573/aichemist --plugin aichemist
Tool Access

This skill uses the workspace's default tool permissions.

Skill Content

Tool Selection Preferences

This skill provides guidance on choosing between equivalent tools when multiple options are available. Following these preferences ensures consistent behavior, better performance, and predictable output across all agents.

GitHub Operations

Prefer gh CLI (via Bash) over GitHub MCP tools.

OperationPreferredAvoid
View PR detailsgh pr viewGitHub MCP pull_request_read
Get PR diffgh pr diffGitHub MCP get_commit
List PRsgh pr listGitHub MCP list_pull_requests
Search PRsgh pr list --search "query"GitHub MCP search_pull_requests
Post PR commentgh pr commentGitHub MCP add_issue_comment
View issuesgh issue viewGitHub MCP issue_read
List issuesgh issue listGitHub MCP list_issues
Create issuesgh issue createGitHub MCP issue_write
Search codegh search code "query"GitHub MCP search_code

Why Prefer gh CLI

  1. Already authenticated - Uses user's existing git/GitHub credentials
  2. Less indirection - Avoids an extra MCP/tooling hop by talking directly to GitHub APIs
  3. Predictable output - Consistent format with --json flag
  4. Better errors - Clear, actionable error messages
  5. Uses local repo state - Can operate directly on the checked-out repository when appropriate

When GitHub MCP Tools ARE Appropriate

Use GitHub MCP tools only when they provide functionality the CLI lacks:

Use CaseReason
Inline PR review commentsCLI doesn't support line-specific review comments
Pending review managementCreating/submitting pending reviews with multiple comments
File contents at specific refWhen you need content without cloning the repo

Common gh CLI Patterns

# View PR with specific fields
gh pr view --json number,title,body,baseRefName,headRefName

# Get PR diff
gh pr diff

# List PRs with filters
gh pr list --state open --author @me

# View issue details
gh issue view 123 --json title,body,state,labels

# Search issues
gh issue list --search "bug in:title"

# Post comment to PR
gh pr comment 123 --body "Comment text"

# Get repo info
gh repo view --json nameWithOwner,defaultBranchRef

# Search code across repos
gh search code "pattern" --repo owner/repo

Git Operations

Prefer native git commands over any wrapper or MCP tool.

OperationPreferredAvoid
Check statusgit statusAny wrapper
View diffgit diffGitHub MCP diff tools
Create branchgit checkout -b nameGitHub MCP create_branch
Commit changesgit commitAny remote commit API
Push changesgit pushGitHub MCP push_files

Rationale

Git operations should be local-first. Using MCP tools for git operations:

  • Bypasses local hooks (pre-commit, pre-push)
  • Doesn't update local repository state
  • May cause sync issues between local and remote

Atlassian/Jira Operations

Prefer Atlassian MCP tools (the supported integration in this repo).

The Atlassian MCP server (atlassian/* tools) is the preferred choice for Jira and Confluence operations in this environment. See the Jira skill for detailed guidance.

Documentation Lookups

Prefer MCP tools for documentation:

SourceTool
Library docsContext7 (context7/*)
.NET/Microsoft docsMicrosoft Learn (microsoft-docs/*)

These MCP tools provide curated, up-to-date documentation that's more reliable than web searches.

Decision Framework

When unsure which tool to use, apply this framework:

1. Is this a documentation lookup?
   YES → Prefer MCP documentation tools (Context7, Microsoft Learn)
   NO  → Continue to step 2

2. Is there a local CLI tool that does this?
   YES → Use the CLI (gh, git, npm, dotnet, etc.)
   NO  → Continue to step 3

3. Does the MCP tool provide unique functionality?
   YES → Use the MCP tool
   NO  → Prefer CLI if available

4. Does the operation need to respect local state/hooks?
   YES → Must use local tools (git commit, npm install)
   NO  → Either is acceptable
Stats
Stars0
Forks0
Last CommitFeb 4, 2026