llm-cli
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.
Security Assessment
Detected risks:
About llm-cli
The llm-cli skill enables users to process textual and multimedia content through multiple large language model providers using the `llm` command-line interface. It addresses the need for a unified, provider-agnostic workflow by allowing users to interact with OpenAI, Anthropic, Google Gemini, and local Ollama models from a single interface. Whether running one-off prompts or maintaining interactive conversations, the skill streamlines model access, input handling, and configuration management. It automatically detects available providers through environment variables and guides model selection when needed, reducing setup friction and simplifying multi-provider usage.
Core capabilities include provider detection via API-related environment variables, flexible model selection using both provider and model aliases, and persistent configuration stored in `~/.claude/llm-skill-config.json`. The skill supports multiple input types, including inline text, piped stdin, and file paths such as `.txt`, `.md`, `.json`, `.pdf`, and image files. It offers both non-interactive execution for single commands and an interactive mode for conversational workflows. When model selection is ambiguous, it presents an interactive menu, and it remembers the last used model to improve efficiency in subsequent sessions.
This skill is well-suited for developers, technical users, and automation workflows that rely on command-line tools. Common use cases include summarizing documents, analyzing files, processing structured data, conducting reasoning tasks, and chatting with remote or local LLM instances. It is especially useful in environments where users need to switch between providers, test different models, or integrate LLM processing into scripts and pipelines.
FAQ
How do I select a specific model or provider?
You can specify a model directly using the `--model` flag (for example, `--model gpt-4o`) or use provider aliases such as `openai`, `anthropic`, `google`, or `ollama`. If the selection is ambiguous, an interactive menu is shown.
Does the skill support interactive conversations?
Yes. Interactive mode can be started using `--interactive` or `-i`, allowing continuous back-and-forth conversation with the selected model.
What types of input are supported?
The skill accepts inline prompts, piped stdin input, and file paths. Supported file types include `.txt`, `.md`, `.json`, `.pdf`, and image files, with appropriate handling for multimedia content.
How does the skill detect available providers?
It checks for environment variables such as `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GOOGLE_API_KEY`, and `OLLAMA_BASE_URL` to determine which providers are available.
Is model selection remembered between sessions?
Yes. The last used model is saved in `~/.claude/llm-skill-config.json`, allowing future executions to default to the previously selected model.
All Files
16 filesInstall llm-cli
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
glebis/claude-skills