From claude-optimize
Use when running /optimize:mcp to analyze MCP server configuration, recommend new servers based on detected project stack, perform health checks, and assess security. Triggers on MCP server optimization, MCP recommendations, or MCP health checking. Do NOT trigger on MCP server development or general coding tasks.
npx claudepluginhub btcdlabs/btcd-cc-marketplace --plugin claude-optimizeThis skill uses the workspace's default tool permissions.
Analyzes MCP server configuration and recommends improvements based on project stack. Powers `/optimize:mcp` and the MCP configuration dimension of `/optimize:audit`.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Designs, implements, and audits WCAG 2.2 AA accessible UIs for Web (ARIA/HTML5), iOS (SwiftUI traits), and Android (Compose semantics). Audits code for compliance gaps.
Analyzes MCP server configuration and recommends improvements based on project stack. Powers /optimize:mcp and the MCP configuration dimension of /optimize:audit.
ALWAYS use the bundled script. Do NOT manually read .mcp.json, parse ~/.claude/settings.json, run which, command -v, jq, or any ad-hoc shell commands.
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/mcp_health_check.py --json
The script automatically:
.mcp.json (project) and ~/.claude/settings.json (global)which)Cross-reference detected project stack (from codebase-analyzer) with MCP server catalog.
Reference: ${CLAUDE_PLUGIN_ROOT}/skills/mcp-advisor/references/mcp-catalog.md
The MCP health check script (Step 2) includes token impact estimates. It uses a built-in catalog of known MCP servers to estimate tool counts and calculates:
Delegate to security-auditor skill's MCP security checks, or inline:
enableAllProjectMcpServers## MCP Configuration Report
**Overall Grade**: [A-F] ([score]/100)
### Configured Servers ([count])
| Server | Status | Tools (est.) | Security | Impact |
|--------|--------|-------------|----------|--------|
| [name] | Healthy/Error | XX | OK/Warning | ~XXX tokens |
### Health Issues
| Server | Issue | Fix |
|--------|-------|-----|
| [name] | [description] | [action] |
### Recommended Servers (based on stack)
| Server | Why | Install |
|--------|-----|---------|
| [name] | [detected stack reason] | [install command] |
### Context Impact
- Total always-loaded tools: [count] (~XXX tokens)
- Recommended: Move [count] tools to deferred loading
### Security Summary
[From security-auditor MCP checks]
MCP configuration dimension (10% of total score):