返回顶部
o

openclaw-cfg-safe-editOpenClaw配置校验

OpenClaw 配置文件修改前的验证规则。用于在修改 openclaw.json 或任何配置文件之前查询文档确认配置项可用性,避免因 OpenClaw 版本更新导致配置不兼容的问题。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
148
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

openclaw-cfg-safe-edit

配置验证规则

触发条件

当用户请求修改以下内容时自动触发:

  • - openclaw.json
  • config/*.json
  • 任何 OpenClaw 配置文件

验证流程

1. 查询本地文档

在修改配置前,先查询文档目录:

bash

列出文档结构


ls /home/root1/.npm-global/lib/node_modules/openclaw/docs

搜索相关配置项

grep -r <配置项名称> /home/root1/.npm-global/lib/node_modules/openclaw/docs/ --include=*.md

2. 查阅配置 schema

查询配置 schema 确认字段定义:

bash

查看配置 schema 目录


ls /home/root1/.npm-global/lib/node_modules/openclaw/docs/cli/

或使用 gateway 工具查询 schema

openclaw gateway config.schema.lookup

3. 验证后再修改

确认配置项:

  • - 存在于当前版本的文档中
  • 用法正确
  • 类型匹配

如果文档中没有该配置项:

  • - 查看在线文档: https://docs.openclaw.ai
  • 或检查 OpenClaw 更新日志

常见配置项参考

  • - gateway. - 网关配置
  • plugins. - 插件配置
  • channels. - 通道配置
  • models. - 模型配置
  • storage.* - 存储配置

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-cfg-safe-edit-1776121561 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-cfg-safe-edit-1776121561 技能

通过命令行安装

skillhub install openclaw-cfg-safe-edit-1776121561

下载

⬇ 下载 openclaw-cfg-safe-edit v1.0.0(免费)

文件大小: 1.44 KB | 发布时间: 2026-4-17 15:37

v1.0.0 最新 2026-4-17 15:37
Initial release: Adds safety validation for editing OpenClaw config files.

- Automatically checks documentation and schema before modifying any OpenClaw configuration (e.g., openclaw.json).
- Ensures all config changes are compatible with the current OpenClaw version.
- Prevents use of unknown or outdated options by verifying existence, correct usage, and type from local and online docs.
- Provides clear validation steps for safer configuration management.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部