OpenParable
Skip to content
← Back to skills

Tool Selection

Agent Building
tool-selection

Tool Selection is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

CLI-first tool selection policy for Claude Code. Use when choosing between CLI tools and MCP servers, designing new agents, or reviewing agent tool configurations. Do NOT use for executing commands or running tools -- this is for tool selection decisions during agent/config design only.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/agent/tool-selection-cooldaemon-dotfiles/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/tool-selection, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Tool Selection Policy

CLI-First Principle

Prefer CLI tools over MCP servers when a CLI equivalent exists. CLI tools are more token-efficient and avoid MCP server startup overhead.

Tool NeedCLI (Preferred)MCP (When CLI Insufficient)
Screenshots & screen analysispeekaboo CLI via BashN/A (removed)
Web researchWebSearch, WebFetch (built-in)N/A
Library API docsSee web-research skillcontext7 MCP (see web-research skill)
Interactive browser controlN/APlaywright MCP
E2E testingPlaywright CLI (npx playwright test)N/A
Slack communicationN/ASlack MCP (no CLI substitute)
Confluence wikiN/AConfluence MCP (no CLI substitute)

Playwright MCP vs CLI

Use Playwright MCP (mcp__playwright__*) ONLY for:

  • Interactive browser inspection (snapshots, clicking, form filling)
  • Live debugging of web pages
  • Visual verification requiring human-in-the-loop

Use Playwright CLI for:

  • E2E test execution (npx playwright test)
  • Test report generation
  • CI/CD pipeline testing

Playwright MCP Output Management

The .playwright-mcp/ directory in the project root is gitignored. All Playwright MCP artifacts belong there.

  • Screenshots: Use .playwright-mcp/ prefix in the filename parameter (e.g., .playwright-mcp/screenshot.png). Without a filename, screenshots go to .playwright-mcp/ automatically via --output-dir. With a filename, the path is resolved relative to cwd, so the prefix is required
  • Cleanup: Delete .playwright-mcp/ when Playwright MCP work is complete for the session
  • Never commit: .playwright-mcp/ is gitignored

MCP Graceful Degradation

If an MCP server is unavailable, do not fail the workflow. Fall back to CLI alternatives or skip the MCP-dependent step with a note to the user.

Anti-Patterns

Anti-PatternCorrect Approach
Using MCP when CLI existsUse CLI — lower token cost, no server overhead
Adding MCP tools to agent frontmatter when CLI worksUse Bash tool with CLI commands
Proposing new MCP servers without CLI evaluationAlways check for CLI alternative first