dependency-check
БесплатноБез исполняемых скриптовНе проверенCheck for required dependencies (Chrome DevTools MCP, OpenRouter API) before running commands that need them. Use at the start of /implement, /review…
Об этом скилле
Dependency Check Skill
This skill provides standardized dependency checking for frontend plugin commands that require external tools and services.
When to Use This Skill
Claude should invoke this skill at the start of commands that require:
Chrome DevTools MCP - For automated UI verification, screenshot capture, DOM inspection
- Commands:
/implement(UI validation),/validate-ui, browser-debugger skill
- Commands:
OpenRouter API Key - For multi-model orchestration with external AI models
- Commands:
/implement(multi-model code review),/review
- Commands:
Dependency Check Protocol
Phase 1: Check Chrome DevTools MCP
When to check: Before any command that needs browser automation (screenshots, UI testing, DOM inspection)
How to check:
# Check if chrome-devtools MCP tools are available
# Try to list pages - if MCP is available, this will work
mcp__chrome-devtools__list_pages 2>/dev/null
If MCP is NOT available, show this message:
## Chrome DevTools MCP Not Available
For automated UI verification (screenshots, DOM inspection, visual regression testing),
this command requires the **chrome-devtools-mcp** server.
### Why You Need It
- Capture implementation screenshots for design comparison
- Inspect DOM structure and computed CSS values
- Run automated UI tests in real browser
- Debug responsive layout issues
- Monitor console errors and network requests
### Easy Installation (Recommended)
Install `claudeup` - a CLI tool for managing Claude Code plugins and MCP servers:
\`\`\`bash
npm install -g claudeup@latest
claudeup mcp add chrome-devtools
\`\`\`
### Manual Installation
Add to your `.claude.json` or `.claude/settings.json`:
\`\`\`json
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
\`\`\`
### Continue Without It?
You can continue, but:
- UI validation will be **skipped** (no design fidelity checks)
- Browser testing will be **unavailable**
- Manual verification will be required for UI changes
Do you want to continue without Chrome DevTools MCP?
Use AskUserQuestion:
Chrome DevTools MCP is not available. What would you like to do?
Options:
- "Continue without UI verification" - Skip automated UI checks, proceed with implementation
- "Cancel and install MCP first" - I'll install the MCP and restart
Phase 2: Check OpenRouter API Key
When to check: Before any command that uses external AI models via Claudish
How to check:
# Check if OPENROUTER_API_KEY is set
if -z "${OPENROUTER_API_KEY}"; then
echo "OPENROUTER_API_KEY not set"
else
echo "OPENROUTER_API_KEY available"
fi
# Also check if Claudish is available
npx claudish --version 2>/dev/null || echo "Claudish not installed"
If OpenRouter API key is NOT set, show this message:
## OpenRouter API Key Not Configured
For multi-model AI orchestration (parallel code reviews, multi-expert validation),
this command uses external AI models via OpenRouter.
### Why You Need It
- Run multiple AI models in parallel for 3-5x faster reviews
- Get diverse perspectives from different AI experts (Grok, Gemini, GPT-5, DeepSeek)
- Consensus analysis highlights issues flagged by multiple models
- Catch more bugs through AI diversity
### Getting Started with OpenRouter
1. **Sign up** at [https://openrouter.ai](https://openrouter.ai)
2. **Get your API key** from the dashboard
3. **Set the environment variable:**
\`\`\`bash
# Add to your shell profile (.bashrc, .zshrc, etc.)
export OPENROUTER_API_KEY="your-api-key-here"
\`\`\`
### Cost Information
OpenRouter is **affordable** and even has **free models**:
| Model | Cost | Notes |
|-------|------|-------|
| openrouter/polaris-alpha | **FREE** | Good for testing |
| x-ai/grok-code-fast-1 | ~$0.10/review | Fast coding specialist |
| google/gemini-2.5-flash | ~$0.05/review | Fast and affordable |
| deepseek/deepseek-chat | ~$0.05/review | Reasoning specialist |
Typical code review session: **$0.20 - $0.80** for 3-4 external models
### Easy Setup (Recommended)
Install `claudeup` for easy API key management:
\`\`\`bash
npm install -g claudeup@latest
claudeup config set OPENROUTER_API_KEY your-api-key
\`\`\`
### Continue Without It?
You can continue, but:
- Only **embedded Claude Sonnet** will be used for reviews
- No parallel multi-model validation
- Fewer diverse perspectives on code quality
- Still functional, just less comprehensive
Do you want to continue without external AI models?
Use AskUserQuestion:
OpenRouter API key is not configured. What would you like to do?
Options:
- "Continue with embedded Claude only" - Use only Claude Sonnet for reviews (still good!)
- "Cancel and configure API key first" - I'll set up OpenRouter and restart
Implementation Patterns
Pattern 1: Check Both Dependencies (for /implement command)
# At the start of /implement comman
Установить dependency-check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashAskUserQuestionFAQ
Что делает скилл dependency-check?
Check for required dependencies (Chrome DevTools MCP, OpenRouter API) before running commands that need them. Use at the start of /implement, /review, /validate-ui commands to provide helpful setup guidance.
Как установить скилл dependency-check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dependency-check запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic