← 返回 Skills 市场
Agent Advisor
作者
MrKangZuBin
· GitHub ↗
· v0.1.1
· MIT-0
265
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-advisor
功能描述
模型推荐 + OpenClaw 安全系数分析工具。当用户询问"用哪个模型"、"推荐模型"、"适合什么模型"、"安全系数"、"openclaw 安全"、"根据历史"时触发。功能:(1) 根据历史会话自动分析任务类型并推荐最优的 Claude 模型(auto 模式),(2) 根据用户描述的任务推荐最优模型(recom...
使用说明 (SKILL.md)
Model Advisor Skill
根据历史任务或用户描述推荐最优模型,并输出当前 OpenClaw 的安全系数。
使用流程
场景一:根据历史任务自动推荐(推荐首选)
无需用户描述任务,直接分析历史会话中的高频任务类型:
node "C:\Users\zane\.openclaw\workspace\skills\model-advisor\scripts\advisor.js" auto
脚本会读取最近 5 个 session 的用户消息,统计任务类型分布(代码架构/日常问答/简单格式化), 自动推荐命中率最高的模型,并展示各模型的历史使用频率柱状图。
场景二:根据用户描述任务推荐
若用户描述了具体任务,使用关键词匹配推荐:
node "C:\Users\zane\.openclaw\workspace\skills\model-advisor\scripts\advisor.js" recommend "\x3C用户的任务描述>"
场景三:用户询问安全系数
node "C:\Users\zane\.openclaw\workspace\skills\model-advisor\scripts\advisor.js" security
将结果输出给用户,并对低分项目给出改进建议。
场景四:完整报告(安全系数 + 模型推荐)
# 有任务描述时:安全系数 + 关键词推荐
node "C:\Users\zane\.openclaw\workspace\skills\model-advisor\scripts\advisor.js" full "\x3C任务描述>"
# 无任务描述时:安全系数 + 历史自动推荐
node "C:\Users\zane\.openclaw\workspace\skills\model-advisor\scripts\advisor.js" full
模型选择参考
| 模型 | 适用场景 | 速度 |
|---|---|---|
| claude-opus-4-6 | 复杂代码架构、多步骤推理、系统设计、深度分析、技术文档、性能优化、分布式系统 | 较慢 |
| claude-sonnet-4-6 | 日常编码、问答、摘要翻译、内容生成、简单分析、git操作、脚本工具 | 中等 |
| claude-haiku-4-5 | 简单问答、格式化、分类标注、快速响应 | 极快 |
安全系数评分维度
| 维度 | 满分 | 说明 |
|---|---|---|
| 认证模式 | 30分 | token > password > none |
| 网络绑定 | 25分 | loopback > local > tailscale > 公网 |
| Tailscale 状态 | 15分 | off > on |
| 命令黑名单 | 20分 | 覆盖高危命令的比例 |
| Gateway 模式 | 10分 | local > 其他 |
安全等级:85分以上为高安全,60-84分为中等安全,60分以下为低安全。
改进建议模板
若安全系数低,给出以下方向的建议:
- 认证模式 \x3C 30分:建议在
openclaw.json中将gateway.auth.mode设置为"token" - 网络绑定 \x3C 25分:建议将
gateway.bind设置为"loopback"(仅本机访问) - 命令黑名单 \x3C 15分:建议在
gateway.nodes.denyCommands中添加camera.snap、screen.record、contacts.add等高危命令
安全使用建议
This skill reads your OpenClaw configuration and recent session files in your home directory (~/.openclaw/openclaw.json, models.json, and session .jsonl files) to compute a security score and recommend models. That behaviour matches its description, but be aware the session files contain user messages (potentially sensitive). Before installing or running, you may: (1) inspect the full scripts/advisor.js file yourself (search for any 'http', 'fetch', 'net', or 'child_process' uses) to confirm there are no network exfiltration calls; (2) back up or redact sensitive sessions you don't want analyzed; and (3) ensure you trust the source since the script will read local chat contents. If you want extra caution, run the script in a restricted environment or inspect output locally rather than granting any additional credentials.
功能分析
Type: OpenClaw Skill
Name: agent-advisor
Version: 0.1.1
The skill bundle is a legitimate utility designed to recommend AI models based on task descriptions or session history and to audit the security configuration of the OpenClaw environment. The script `scripts/advisor.js` reads local configuration files (`openclaw.json`) and session logs to calculate a security score and match keywords for model selection. It does not contain any network-reaching code, obfuscation, or unauthorized execution logic. While `SKILL.md` contains hardcoded file paths specific to a developer's environment (e.g., 'C:\Users\zane'), this is a functional bug rather than a security threat, as the underlying script correctly uses cross-platform path resolution via `os.homedir()`.
能力评估
Purpose & Capability
The name/description (model recommendation + OpenClaw security analysis) matches the implementation: the script reads ~/.openclaw/openclaw.json, optional models.json, and recent session files to compute a security score and recommend Claude models. No unrelated services, binaries, or credentials are required.
Instruction Scope
SKILL.md and the runtime script instruct the agent to run the local Node script which reads local OpenClaw configuration and session history and prints results. The instructions reference only local OpenClaw paths and do not direct data to external endpoints or request unrelated system files. Note: reading session files means user messages are processed locally (privacy-sensitive but expected for the stated purpose).
Install Mechanism
There is no install spec or external download. The skill is implemented as a local Node script and is intended to be run with the system's node binary; nothing is written to disk by an installer. This is a low-risk install footprint.
Credentials
No environment variables or credentials are requested, which is appropriate. The script does read files under the user's home directory (~/.openclaw/*), including sessions.json/.jsonl and openclaw.json — these contain user conversation text and configuration and are necessary for the feature but are privacy-sensitive. The access is proportionate to the stated functionality.
Persistence & Privilege
The skill does not request persistent/always-on privileges, does not modify other skills, and does not require system-wide changes. Autonomous invocation is allowed by default but is not combined with other concerning privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-advisor - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-advisor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
- Renamed the skill to "model-advisor" and updated the description for clearer scope.
- Improved documentation with detailed usage instructions for model recommendation and OpenClaw security score analysis.
- Clarified usage scenarios: automatic recommendation from session history, task-based recommendation, security analysis, and combined reports.
- Added model selection reference table and security scoring system with actionable improvement tips.
元数据
常见问题
Agent Advisor 是什么?
模型推荐 + OpenClaw 安全系数分析工具。当用户询问"用哪个模型"、"推荐模型"、"适合什么模型"、"安全系数"、"openclaw 安全"、"根据历史"时触发。功能:(1) 根据历史会话自动分析任务类型并推荐最优的 Claude 模型(auto 模式),(2) 根据用户描述的任务推荐最优模型(recom... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 265 次。
如何安装 Agent Advisor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-advisor」即可一键安装,无需额外配置。
Agent Advisor 是免费的吗?
是的,Agent Advisor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agent Advisor 支持哪些平台?
Agent Advisor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Advisor?
由 MrKangZuBin(@mrkangzubin)开发并维护,当前版本 v0.1.1。
推荐 Skills