← 返回 Skills 市场
bshaot

Llmfit Advisor

作者 bshaot · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
118
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install llmfit-advisor
功能描述
基于系统硬件配置和使用场景,智能推荐最适合的本地 LLM 模型及量化方案,支持多运行时环境。
使用说明 (SKILL.md)

llmfit-advisor - OpenClaw Agent 技能

基于 LLMfit 的本地 LLM 模型推荐技能 版本: 0.9.8 类型: Experience/Skill

🎯 功能概述

这个技能让 OpenClaw Agent 能够:

  • 智能推荐 - 根据系统硬件配置推荐最适合的 LLM 模型
  • 场景优化 - 支持通用、编码、推理、聊天等多种使用场景
  • 量化建议 - 推荐最佳量化方案(Q8_0, Q2_K, FP8 等)
  • 硬件感知 - 自动检测 CPU、RAM、GPU 配置
  • 多运行时 - 支持 Ollama、llama.cpp、MLX、Docker Model Runner、LM Studio

🚀 快速开始

使用 llmfit 推荐模型

Agent 可以调用 llmfit 命令获取模型推荐:

llmfit recommend --json --use-case coding --limit 5
llmfit recommend --json --use-case chat --limit 5
llmfit recommend --json --use-case general --limit 5

获取最佳匹配

llmfit fit --perfect -n 5              # 完美匹配的 5 个模型
llmfit fit --good -n 10                # 良好匹配的 10 个模型

系统信息

llmfit --json system                   # 系统硬件信息

💡 使用场景

场景 1: 用户询问适合的设备

用户: "我有什么设备可以运行什么模型?" Agent 回答:

让我检查一下你的系统配置...
llmfit recommend --json --limit 3

场景 2: 编码助手推荐

用户: "我想找一个适合写代码的大模型" Agent 回答:

让我为你推荐一个适合编码场景的模型...
llmfit recommend --json --use-case coding --limit 5

场景 3: 根据硬件配置优化

用户: "我只有 16GB 内存,有什么推荐吗?" Agent 回答:

根据你的硬件配置,我推荐以下模型...
llmfit --ram=16G recommend --json --limit 5

🔧 命令参数详解

llmfit recommend --json

基本用法:

llmfit recommend --json [选项]

选项:

  • --use-case \x3Ctype> - 使用场景:general | coding | reasoning | chat | multimodal | embedding
  • --limit \x3Cn> - 返回数量(默认 5)
  • --force-runtime \x3Ctype> - 强制运行时:llamacpp | mlx | vllm
  • --context \x3Cn> - 上下文长度:2048 | 4096 | 8192 | 16384 | 32768 | 65536 | 131072
  • --json - JSON 格式输出

llmfit fit

基本用法:

llmfit fit --perfect -n 5
llmfit fit --good -n 10

选项:

  • --perfect - 只返回完美匹配的模型
  • --good - 返回良好匹配的模型
  • --marginal - 返回勉强可用的模型
  • -n \x3Cn> - 返回数量

llmfit system --json

基本用法:

llmfit system --json

📊 返回数据格式

推荐模型数据结构

{
  "models": [
    {
      "name": "Qwen/Qwen3-Coder-30B-A3B-Instruct",
      "parameter_count": "30.5B",
      "best_quant": "Q8_0",
      "estimated_tps": 18.4,
      "fit_level": "Marginal",
      "score": 86.5,
      "use_case": "Code generation and completion",
      "run_mode": "CPU",
      "runtime": "llama.cpp"
    }
  ]
}

评分成分

  • quality - 模型质量评分 (0-100)
  • fit - 硬件匹配度 (0-100)
  • speed - 预期速度评分 (0-100)
  • context - 上下文长度评分 (0-100)

🎨 使用技巧

1. 根据场景选择

场景 参数 说明
通用 --use-case general 适合日常使用
编码 --use-case coding 适合代码生成和补全
推理 --use-case reasoning 适合逻辑推理任务
聊天 --use-case chat 适合对话交互

2. 硬件优化

# 指定 RAM 容量
llmfit --ram=16G recommend --json

# 指定 GPU VRAM
llmfit --memory=24G recommend --json

# 指定 CPU 核心数
llmfit --cpu-cores=16 recommend --json

3. 上下文长度

# 长上下文推荐
llmfit --context=131072 recommend --json

# 特定模型定制
llmfit plan "Qwen/Qwen2.5-Coder-14B-Instruct" --context=8192

🔍 常见问题

Q: 为什么推荐都是 CPU-only?

A: 你的系统 GPU VRAM 无法被自动检测。如果 GPU 正常,可以尝试手动指定:

llmfit --memory=16G --json system

Q: 如何获取已安装的模型?

A: 使用 llmfit list 命令列出已安装模型

Q: 如何刷新模型数据库?

A: 运行更新脚本:

cd C:/Users/admin/.openclaw/workspace/llmfit
./scripts/update_models.sh

Q: 如何在 Docker 中使用?

A: 使用官方 Docker 镜像:

docker run ghcr.io/alexsjones/llmfit --version

📚 更多资源


作者: AlexsJones (llmfit 原作者)
OpenClaw 集成: 基于官方 skill 包
许可证: MIT

安全使用建议
This skill appears to do what it says (recommend local LLMs) but it assumes you have the 'llmfit' CLI and optionally Docker available and suggests running local update scripts and pulling a Docker image. Before installing or invoking it: (1) verify the llmfit project and the ghcr.io/alexsjones image (review their source/repos); (2) inspect any scripts it asks you to run (e.g., update_models.sh) before executing — they can run arbitrary commands; (3) run the skill in a sandbox/VM if you don’t trust the external image or scripts; and (4) if you want automated use, ensure the agent is only permitted to run safe, reviewed commands. If you need more assurance, provide the actual llmfit binary or run the recommended commands manually first.
功能分析
Type: OpenClaw Skill Name: llmfit-advisor Version: 1.0.0 The skill is a wrapper for the 'llmfit' utility, designed to recommend LLM models based on system hardware (CPU, RAM, GPU). The instructions in SKILL.md are consistent with the stated purpose of hardware detection and model recommendation, and no malicious patterns, data exfiltration attempts, or harmful prompt injections were found. The use of shell commands and local scripts is aligned with the tool's functionality.
能力评估
Purpose & Capability
The SKILL.md consistently describes recommending local LLMs, quantization, and hardware-aware fitting and the instructions call the 'llmfit' CLI and reference runtimes (llama.cpp, MLX, Docker). However the skill metadata did not declare the 'llmfit' CLI or Docker as required binaries — a minor mismatch that should be documented so users know prerequisites.
Instruction Scope
Runtime instructions mainly run 'llmfit' commands to probe hardware and recommend models, which is within scope. They also include commands to cd into a user workspace and run ./scripts/update_models.sh and a docker run pulling ghcr.io/alexsjones/llmfit; running such update scripts or containers can execute arbitrary code on the host, so the agent would need to be allowed to run local scripts/containers — this elevates the need for user review before execution.
Install Mechanism
There is no install spec (instruction-only), which is low-risk. The documentation references an external Docker image (ghcr.io) and a GitHub repo; while not an installer in the bundle, pulling/running that image or running repository scripts would fetch and execute remote code and should be verified.
Credentials
The skill does not request environment variables, credentials, or config paths in the registry metadata. The instructions reference a specific user path (C:/Users/admin/.openclaw/workspace/llmfit) and allow passing hardware arguments, but they do not request secrets — access requests are proportionate to the stated purpose.
Persistence & Privilege
always is false and there is no install-time persistence requested. The skill does not request elevated or permanent platform privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install llmfit-advisor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /llmfit-advisor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
llmfit-advisor 1.0.0 - Initial release of LLM model recommendation skill for OpenClaw Agent based on llmfit. - Enables hardware-aware model recommendations for coding, chat, reasoning, and general use cases. - Supports quantization advice, multi-runtime compatibility, and system hardware auto-detection. - Provides CLI recipes for model selection, performance matching, and system info retrieval. - Includes detailed usage examples, parameter explanations, and troubleshooting sections.
元数据
Slug llmfit-advisor
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Llmfit Advisor 是什么?

基于系统硬件配置和使用场景,智能推荐最适合的本地 LLM 模型及量化方案,支持多运行时环境。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 118 次。

如何安装 Llmfit Advisor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install llmfit-advisor」即可一键安装,无需额外配置。

Llmfit Advisor 是免费的吗?

是的,Llmfit Advisor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Llmfit Advisor 支持哪些平台?

Llmfit Advisor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Llmfit Advisor?

由 bshaot(@bshaot)开发并维护,当前版本 v1.0.0。

💬 留言讨论