Token导航 LogoToken导航TokenDH.com
AI 工具敏感数据github未标认证来源可访问clear审计通过

llm-cliLLM CLI 命令行

Agent Skill

llm-cli 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,606

周安装

69

GitHub Stars

141

下载量

563
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:llm-cli(LLM CLI 命令行)
来源仓库:https://github.com/glebis/claude-skills
仓库路径:skills/llm-cli
安装命令:
npx skills add https://github.com/glebis/claude-skills --skill llm-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/glebis/claude-skills --skill llm-cli

简介

llm-cli 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 它可辅助梳理项目结构、依赖关系和协作流程,帮助 Agent 快速定位关键信息。
  • 通过 npx skills add 命令从指定仓库安装,具体用法请参考原始 README。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • llm-cli 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

LLM CLI Skill

Purpose

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.

When to Use This Skill

Trigger this skill when:

  • User wants to process text/files with an LLM
  • User needs to choose between multiple available LLMs
  • User wants interactive conversation with an LLM
  • User needs to pipe content through an LLM for processing
  • User wants to use specific model aliases (e.g., "claude-opus", "gpt-4o")

Example user requests:

  • "Process this file with Claude"
  • "Analyze this text with the fastest available model"
  • "Start an interactive chat with OpenAI"
  • "Use Gemini to summarize this document"
  • "Chat mode with my local Ollama instance"

Supported Providers & Models

OpenAI

  • Latest Models (2025):

- gpt-5 - Most advanced model - gpt-4-1 / gpt-4.1 - Latest high-performance - gpt-4-1-mini / gpt-4.1-mini - Smaller, faster version - gpt-4o - Multimodal omni model - gpt-4o-mini - Lightweight multimodal - o3 - Advanced reasoning - o3-mini / o3-mini-high - Reasoning variants

Aliases: openai, gpt

Anthropic

  • Latest Models (2025):

- claude-sonnet-4.5 - Latest flagship model - claude-opus-4.1 - Complex task specialist - claude-opus-4 - Coding specialist - claude-sonnet-4 - Balanced performance - claude-3.5-sonnet - Previous generation - claude-3.5-haiku - Fast & efficient

Aliases: anthropic, claude

Google Gemini

  • Latest Models (2025):

- gemini-2.5-pro - Most advanced - gemini-2.5-flash - Default fast model - gemini-2.5-flash-lite - Speed optimized - gemini-2.0-flash - Previous generation - gemini-2.5-computer-use - UI interaction

Aliases: google, gemini

Ollama (Local)

  • Popular Models:

- llama3.1 - Meta's latest (8b, 70b, 405b) - llama3.2 - Compact versions (1b, 3b) - mistral-large-2 - Mistral flagship - deepseek-coder - Code specialist - starcode2 - Code models

Aliases: ollama, local

Workflow Overview

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

Features

1. Provider Detection

  • Checks environment variables for API keys
  • Suggests available LLM providers on first run
  • Detects: OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, OLLAMA_BASE_URL

2. Model Selection

  • Accept model aliases (gpt-4o, claude-opus, gemini-2.5-pro)
  • Accept provider aliases (openai, anthropic, google, ollama)
  • Interactive menu when selection is ambiguous
  • Remembers last used model in ~/.claude/llm-skill-config.json

3. Input Processing

  • Accepts stdin/piped input
  • Processes file paths (detects:.txt,.md,.json,.pdf, images)
  • Handles inline text prompts
  • Supports multimedia files with appropriate encoding

4. Execution Modes

Non-Interactive (Default)

llm "Your prompt here"
llm --model gpt-4o "Process this text"
llm < file.txt
cat document.md | llm "Summarize"

Interactive Mode

llm --interactive
llm -i
llm --model claude-opus --interactive

5. Configuration

Persistent config location: ~/.claude/llm-skill-config.json

{
  "last_model": "claude-sonnet-4.5",
  "default_provider": "anthropic",
  "available_providers": ["openai", "anthropic", "google", "ollama"]
}

Implementation Details

Core Files

  • llm_skill.py - Main skill orchestration
  • providers.py - Provider detection & config
  • models.py - Model definitions & aliases
  • executor.py - Execution logic (interactive/non-interactive)
  • input_handler.py - Input type detection

Key Functions

detect_providers()

  • Scans environment for provider API keys
  • Returns dict of available providers

get_model_selector(input_text, provider=None)

  • Returns selected model, showing menu if needed
  • Respects last_model config preference

load_input(input_source)

  • Handles stdin, file paths, or inline text
  • Returns content string

execute_llm(content, model, interactive=False)

  • Calls llm CLI with appropriate parameters
  • Manages stdin/stdout for interactive mode

Usage in Claude Code

When user invokes this skill, Claude should:

  1. Parse input for model specification (e.g., --model gpt-4o)
  2. Call skill with content and optional model parameter
  3. Wait for provider/model selection if needed
  4. Execute and return results
  5. For interactive mode, maintain conversation loop

Error Handling

  • If no providers available: Suggest installing API keys
  • If model not found: Show available models for chosen provider
  • If llm CLI not installed: Suggest installation via pip install llm
  • If file not readable: Fall back to treating as inline text

Configuration

Users can pre-configure preferences:

{
  "last_model": "claude-sonnet-4.5",
  "default_provider": "anthropic",
  "interactive_mode": false,
  "available_providers": ["openai", "anthropic"]
}

Slash Command Integration

Support /llm command:

/llm process this text
/llm --interactive
/llm --model gpt-4o analyze this

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.28%
按下载量换算154

windsurf

23.77%
按下载量换算134

OpenCode

19.44%
按下载量换算109

Codex

13.06%
按下载量换算74

Antigravity

8.93%
按下载量换算50

Gemini CLI

3.46%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills