Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

consultant

БесплатноЗапускает вложенные скриптыНе проверен

Consults external AI models (100+ via LiteLLM) for complex analysis. Use for architectural review, security audit, deep code understanding, or when extended…

doodledoodот doodledood★ 40 звёзд на GitHub17 установок в других каталогах

Об этом скилле

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:

  1. Execute with background mode enabled
  2. Wait at least 30 seconds, then check the background command output
  3. If still running, wait another 30 seconds and check again - repeat until completion
  4. The script will print output as it completes each step
  5. 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:

  1. Query http://localhost:8000/v1/models to get available models
  2. 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:

  1. Use known models list (OpenAI, Anthropic, Google)
  2. 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: `

Полный SKILL.md на GitHub

Установить consultant в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/glob-patterns.mdscripts/__init__.pyscripts/config.pyscripts/consultant_cli.pyscripts/file_handler.pyscripts/litellm_client.pyscripts/model_selector.pyscripts/pyproject.tomlscripts/response_strategy.pyscripts/session_manager.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить consultant с