consultant
БесплатноЗапускает вложенные скриптыНе проверенConsults external AI models (100+ via LiteLLM) for complex analysis. Use for architectural review, security audit, deep code understanding, or when extended…
Об этом скилле
Consultant
Overview
Consultant is a Python-based tool using LiteLLM to provide access to powerful AI models for complex analysis tasks. It accepts file globs and prompts, runs asynchronously, and returns detailed insights after extended reasoning time.
Key advantages:
- Supports 100+ LLM providers through LiteLLM (OpenAI, Anthropic, Google, Azure, local models, etc.)
- Custom base URLs for any provider or local LLM server
- Automatic model discovery and selection
- Async operation with session management
- Token counting and context overflow protection
- Cross-platform Python implementation
Requirements
The CLI uses uvx for automatic dependency management. Dependencies (litellm, requests) are installed automatically on first run via PEP 723 inline script metadata - no explicit installation needed.
If uv is not installed:
curl -LsSf https://astral.sh/uv/install.sh | sh
Getting Started
IMPORTANT: Always run uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli --help first to understand current capabilities.
Where {CONSULTANT_SCRIPTS_PATH} is the path to claude-plugins/consultant/skills/consultant/scripts/
Basic Usage
Start a Consultation
The consultant script runs synchronously (blocking until completion). For long-running analyses, you should run it in the background, then check progress every 30 seconds until completion.
Example: Running in background mode
uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli \
--prompt "Analyze this code for security vulnerabilities" \
--file src/**/*.py \
--slug "security-audit"
When running commands in background mode:
- Execute with background mode enabled
- Wait at least 30 seconds, then check the background command output
- If still running, wait another 30 seconds and check again - repeat until completion
- The script will print output as it completes each step
- Final results appear after "Waiting for completion..." message
What you'll see:
- Token usage summary
- Session ID
- "Waiting for completion..." status
- Streaming output from the LLM
- Final results after completion
Check Session Status
uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli session security-audit
This returns JSON with:
- Current status (running/completed/error)
- Full output if completed
- Error details if failed
List All Sessions
uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli list
Shows all sessions with status, timestamps, and models used.
Advanced Features
Custom Provider with Base URL
# Use custom LiteLLM endpoint
uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli \
--prompt "Review this PR" \
--file src/**/*.ts \
--slug "pr-review" \
--base-url "http://localhost:8000" \
--model "gpt-5.2"
List Available Models
From Custom Provider (with Base URL)
Query models from a custom LiteLLM endpoint:
uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli models \
--base-url "http://localhost:8000"
What happens:
- Sends HTTP GET to
http://localhost:8000/v1/models - Parses JSON response with model list
- Returns all available models from that endpoint
- Example output:
[ {"id": "gpt-5.2", "created": 1234567890, "owned_by": "openai"}, {"id": "claude-opus-4-5", "created": 1234567890, "owned_by": "anthropic"} ]
From Known Providers (without Base URL)
Query known models from major providers:
uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli models
What happens:
- Returns hardcoded list of known models (no API call)
- Includes models from OpenAI, Anthropic, Google
- Example output:
[ {"id": "gpt-5.2", "provider": "openai"}, {"id": "claude-opus-4-5", "provider": "anthropic"}, {"id": "gemini/gemini-2.5-flash", "provider": "google"} ]
Automatic Model Selection
Scenario 1: With Base URL (custom provider)
uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli \
--prompt "Architectural review" \
--file "**/*.py" \
--slug "arch-review" \
--base-url "http://localhost:8000"
# No --model flag
Consultant will:
- Query
http://localhost:8000/v1/modelsto get available models - Select a model based on the task requirements
For model selection guidance: Check https://artificialanalysis.ai for up-to-date model benchmarks and rankings to choose the best model for your use case.
Scenario 2: Without Base URL (default providers)
uvx --from {CONSULTANT_SCRIPTS_PATH} consultant-cli \
--prompt "Code review" \
--file src/*.py \
--slug "review"
# No --model flag, no --base-url flag
Consultant will:
- Use known models list (OpenAI, Anthropic, Google)
- Select a model based on task requirements
For model selection guidance: Check https://artificialanalysis.ai for up-to-date model benchmarks and rankings. Recommended defaults: `
Установить consultant в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл consultant?
Consults external AI models (100+ via LiteLLM) for complex analysis. Use for architectural review, security audit, deep code understanding, or when extended reasoning is needed. Runs async with session management.
Как установить скилл consultant?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл consultant запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic