← 返回 Skills 市场
wljmmx

Model Switch Notify

作者 wljmmx · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
278
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install model-switch-notify
功能描述
模型切换通知。当agent使用的模型发生变化时,第一时间通知当前会话用户。支持心跳检测机制,消息中断时下次会话自动通知。使用 SQLite 存储。
安全使用建议
Do not install or enable this skill until you confirm and fix the data-path discrepancy. Specifically: (1) Inspect scripts/check_model.py and change DATA_DIR to a path that uses the running user's home directory (e.g. Path.home()/'.openclaw/data' or Path('~/.openclaw/data').expanduser()). (2) Verify the script's behavior in a sandboxed environment to confirm it creates the database where you expect and only accesses that DB. (3) Ensure permissions on the data directory are appropriate so other users/processes cannot read or tamper with the DB. (4) After patching, run a few test invocations to confirm the JSON output and pending-notify behavior match the docs. If you cannot modify the script yourself, treat the hardcoded path as a blocker and avoid installing.
功能分析
Type: OpenClaw Skill Name: model-switch-notify Version: 1.0.1 The skill is designed to track and notify users of AI model changes within an OpenClaw session. It uses a local SQLite database (`model-switch.db`) to persist model states and pending notifications. The Python script `check_model.py` implements standard argument parsing and safe, parameterized SQL queries. While the script contains a hardcoded absolute path (`/home/wljmmx/`) which limits portability and suggests a development oversight, there is no evidence of data exfiltration, malicious execution, or prompt injection. The behavior is entirely consistent with the stated purpose.
能力评估
Purpose & Capability
Functionality (detect model changes, heartbeat, pending notifications) matches the skill description and the script uses a local SQLite DB which is reasonable for this purpose. However the code hardcodes DATA_DIR = /home/wljmmx/.openclaw/data while the docs and integration examples use ~/.openclaw/data — this mismatch is unusual and not justified by the documentation.
Instruction Scope
SKILL.md instructs the agent to invoke the included Python script as a subprocess and pass agent/model/session/channel — that scope is appropriate. But the instructions expect storage under the invoking user's home (~/.openclaw/data) while the script will create and use /home/wljmmx/.openclaw/data. That means the script will read/write a different filesystem location than the documentation claims, which is unexpected behavior and could lead to silent failures or files written to another user's path.
Install Mechanism
No install spec is provided (instruction-only with an included script). This is lower risk than fetching arbitrary remote code; the code is bundled locally so nothing is downloaded at install time.
Credentials
The skill requires no environment variables or credentials, which is appropriate. The remaining concern is the hardcoded absolute data path in the script — it implicitly requires filesystem write access at /home/wljmmx/.openclaw/data (or will create that path), which is disproportionate and inconsistent with the documented ~/.openclaw/data location.
Persistence & Privilege
The skill does persist state to a local SQLite database and is not marked always:true. It does not request elevated privileges or modify other skills. Persistence is limited to its own data file (though the exact path is the aforementioned concern).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install model-switch-notify
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /model-switch-notify 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
**Major update: Switch to SQLite storage, add heartbeat detection, and interruption handling.** - Replaced JSON file storage with SQLite for improved data management. - Introduced heartbeat detection: checks model status and pending notifications on every reply. - Added interruption handling: if notification fails, it's stored and sent at the next available opportunity. - Expanded command-line tools for state check, heartbeat update, interrupt set, state fetch/list/reset. - Updated integration and usage instructions for improved reliability and cross-session continuity.
v1.0.0
model-switch-notify v1.0.0 - Notifies users when the agent's model changes, at the first reply, after a model switch, or upon user request. - Stores and checks previous model information to prevent redundant notifications. - Provides customizable notification templates and format. - Allows configuration of notification preference per agent via USER.md. - Includes scripts and integration guide for easy adoption by all agents.
元数据
Slug model-switch-notify
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Model Switch Notify 是什么?

模型切换通知。当agent使用的模型发生变化时,第一时间通知当前会话用户。支持心跳检测机制,消息中断时下次会话自动通知。使用 SQLite 存储。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 278 次。

如何安装 Model Switch Notify?

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

Model Switch Notify 是免费的吗?

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

Model Switch Notify 支持哪些平台?

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

谁开发了 Model Switch Notify?

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

💬 留言讨论