Process textual and multimedia files with various LLM providers using the llm CLI. Supports both non-interactive and interactive modes with model selection, config persistence, and file input handling.
npx skills add https://github.com/glebis/claude-skills --skill llm-cli
This skill enables seamless interaction with multiple LLM providers (OpenAI, Anthropic, Google Gemini, Ollama) through the llm CLI tool. It processes textual and multimedia information with support for both one-off executions and interactive conversation modes.
Trigger this skill when:
Example user requests:
gpt-5 - Most advanced modelgpt-4-1 / gpt-4.1 - Latest high-performancegpt-4-1-mini / gpt-4.1-mini - Smaller, faster versiongpt-4o - Multimodal omni modelgpt-4o-mini - Lightweight multimodalo3 - Advanced reasoningo3-mini / o3-mini-high - Reasoning variantsAliases: openai, gpt
claude-sonnet-4.5 - Latest flagship modelclaude-opus-4.1 - Complex task specialistclaude-opus-4 - Coding specialistclaude-sonnet-4 - Balanced performanceclaude-3.5-sonnet - Previous generationclaude-3.5-haiku - Fast & efficientAliases: anthropic, claude
gemini-2.5-pro - Most advancedgemini-2.5-flash - Default fast modelgemini-2.5-flash-lite - Speed optimizedgemini-2.0-flash - Previous generationgemini-2.5-computer-use - UI interactionAliases: google, gemini
llama3.1 - Meta's latest (8b, 70b, 405b)llama3.2 - Compact versions (1b, 3b)mistral-large-2 - Mistral flagshipdeepseek-coder - Code specialiststarcode2 - Code modelsAliases: ollama, local
User Input (with optional model)
↓
Check Available Providers (env vars)
↓
Determine Model to Use:
- If specified: Use provided model
- If ambiguous: Show selection menu
- Otherwise: Use last remembered choice
↓
Load/Create Config (~/.claude/llm-skill-config.json)
↓
Detect Input Type:
- stdin/piped
- file path
- inline text
↓
Execute llm CLI:
- Non-interactive: Process & return
- Interactive: Keep conversation loop
↓
Save Model Choice to Config
OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, OLLAMA_BASE_URLgpt-4o, claude-opus, gemini-2.5-pro)openai, anthropic, google, ollama)~/.claude/llm-skill-config.jsonllm "Your prompt here"
llm --model gpt-4o "Process this text"
llm < file.txt
cat document.md | llm "Summarize"
llm --interactive
llm -i
llm --model claude-opus --interactive
Persistent config location: ~/.claude/llm-skill-config.json
{
"last_model": "claude-sonnet-4.5",
"default_provider": "anthropic",
"available_providers": ["openai", "anthropic", "google", "ollama"]
}
llm_skill.py - Main skill orchestrationproviders.py - Provider detection & configmodels.py - Model definitions & aliasesexecutor.py - Execution logic (interactive/non-interactive)input_handler.py - Input type detectiondetect_providers()get_model_selector(input_text, provider=None)last_model config preferenceload_input(input_source)execute_llm(content, model, interactive=False)llm CLI with appropriate parametersWhen user invokes this skill, Claude should:
--model gpt-4o)pip install llmUsers can pre-configure preferences:
{
"last_model": "claude-sonnet-4.5",
"default_provider": "anthropic",
"interactive_mode": false,
"available_providers": ["openai", "anthropic"]
}
Support /llm command:
/llm process this text
/llm --interactive
/llm --model gpt-4o analyze this
Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code. Use when porting AT_DISPATCH_ALL_TYPES_AND*, AT_DISPATCH_FLOATING_TYPES*, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations.
Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.
Statistical models library for Python. Use when you need specific model classes (OLS, GLM, mixed models, ARIMA) with detailed diagnostics, residuals, and inference. Best for econometrics, time series, rigorous inference with coefficient tables. For guided statistical test selection with APA reporting use statistical-analysis.
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
Create an llms.txt file from scratch based on repository structure following the llms.txt specification at https://llmstxt.org/
Use when working directly with the `esm` Python SDK, ESM3 or ESMC model IDs, Forge/Biohub inference clients, or ESMFold2 folding workflows.
Modal is a serverless cloud platform for running Python on demand, including on-demand GPUs. Use when deploying or serving AI/ML models, running GPU-accelerated workloads (training, fine-tuning, inference), serving web endpoints, scheduling batch jobs, or scaling Python code to cloud containers with the Modal SDK.
Use Therapeutics Data Commons through the PyTDC Python package for registry discovery, approved dataset access, task-aware splits, evaluator metrics, benchmark groups, and bounded molecular-oracle workflows.
Take glebis/llm-cli from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.