Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计提醒

openclaw-config-opsOpenClaw 配置 OPS

Agent Skill

openclaw-config-ops 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,791

周安装

114

GitHub Stars

公开资料未说明

下载量

894
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:openclaw-config-ops(OpenClaw 配置 OPS)
来源仓库:https://github.com/astralwaveorg/openclaw-config-ops
安装命令:
openclaw skills install openclaw-config-ops
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-config-ops

简介

提供安全的 openclaw.json 读、分析和修改操作接口。

  • 适用于强制模式验证和官方文档驱动的合规配置。
  • 安装后可在 OpenClaw 中执行标准化配置运维动作。
  • 使用前需确认模式验证规则和网络文档访问权限。
  • 建议启用强制验证模式以确保配置合法性。openclaw-config-ops 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
openclaw-ops
description
Safe OpenClaw gateway configuration operations. Use when reading, analyzing, or modifying openclaw.json. Enforces schema validation + official documentation verification before every change.

OpenClaw Ops

Safe, documented, schema-validated gateway configuration operations.

When to Use

  • Any interaction with openclaw.json: read, analyze, modify
  • config.get, config.schema.lookup, config.patch, config.apply
  • Adding/removing models, plugins, channels, agents, MCP servers, tools config
  • Troubleshooting config validation errors
  • Analyzing current config for optimization opportunities

Two Modes

Determine mode before starting any config work.

Mode A: Analysis Only (no config change)

Trigger: user asks to check, review, compare, optimize, or analyze config, without providing a specific target value.

Flow:

  1. config.schema.lookup for relevant keys
  2. Official doc verification (see Step 2)
  3. Present findings with schema + doc evidence
  4. Stop. Wait for user instruction.

Output format:

## Config Analysis

**Finding**: what was found
**Current state**: relevant config values (from config.get)
**Schema evidence**: what schema.lookup confirmed
**Doc evidence**: source URL or QMD reference
**Recommendation**: suggested change (if any), or "no action needed"

Transitioning to Mode B: if user responds with explicit approval to execute a recommended change (e.g. "do it", "apply", "yes, modify it"), switch to Mode B. Start from Step 3 (Form Change Proposal) — Steps 1 and 2 evidence from Mode A can be reused.

Mode B: Modification (config change)

Trigger: user explicitly requests a change AND provides sufficient detail (target key + intended value or clear intent). Examples:

  • "add model X with id Y"
  • "set thinkingDefault to medium"
  • "remove the minimax plugin"
  • Responding to a Mode A recommendation with "do it" / "apply" / "确认修改"

Insufficient for Mode B (fall back to Mode A + ask):

  • "帮我改一下配置" without specifying what to change
  • "优化一下" without target values
  • Vague instructions without concrete config keys or values

Flow: all 6 steps below, in strict order. No step may be skipped.

Mode Switching Rules

SituationAction
Mode A analysis done, user says "do it"→ Mode B, start from Step 3 (reuse Steps 1-2)
Mode B Step 3 proposal rejected→ Back to Mode A, re-analyze
User intent unclear→ Mode A, ask for clarification
Emergency config fix needed→ Still Mode B, but note "emergency" in log

Mandatory Process — Mode B (6 Steps)

Step 1: Schema Lookup

config.schema.lookup(path="target.config.key")

Verify:

  • Key exists in schema (not invented)
  • Type matches intended value
  • enum values present → only use values from the enum
  • additionalProperties: false → no extra sub-fields allowed
  • Free-form objects (additionalProperties: {}) → still verify field names from docs

Schema has key + config doesn't: this means the key can be created. Proceed to Step 2. Schema lookup fails or key doesn't exist: STOP. Do not proceed. Report to user.

Step 2: Official Documentation Verification

This step is mandatory for both Mode A and Mode B.

Priority order (use first that works):

PriorityMethodWhen to use
1qmd__queryQMD has OpenClaw docs indexed → fastest, saves tokens
2web_fetch("https://docs.openclaw.ai/<path>")QMD unavailable or no results
3exec("openclaw <command> --help")Docs site unreachable; last resort only

What to verify:

  • Correct parameter names and values
  • Required vs optional fields
  • Known limitations, version requirements, provider-specific behavior
  • Example configurations

If no documentation source covers the target config:

  • Note explicitly: "No documentation found for <key>"
  • Rely on schema alone (type + enum + children)
  • Do NOT guess. If schema is ambiguous, ask user.

Step 3: Form Change Proposal

Present to user:

## Config Change Proposal

**Target**: full config key path
**Action**: add / modify / remove
**Current value**: (from config.get, or "does not exist")
**Proposed value**: exact new value
**Schema evidence**: type, enum, constraints from schema.lookup
**Doc evidence**: URL or "QMD:collection/doc-id" confirming correctness
**Impact**: what changes for the user
**Risk**: version constraints, provider limitations, side effects

Step 4: User Confirmation

Wait for explicit user approval. Quote the exact change.

All Mode B operations require confirmation. There are no exceptions — if the user already said "do it", that triggered Mode B, but Step 3 proposal must still be presented and acknowledged.

When in doubt: ask. Over-confirming is better than wrong changes.

Step 5: Backup + Execute

5a. Backup first (always, before any modification):

exec("cp ~/.openclaw/openclaw.json ~/.openclaw/backups/openclaw-$(date +%Y%m%d%H%M%S).json")

If backup fails: STOP. Do not proceed without backup.

5b. Apply change (in preference order):

  1. config.patch — partial updates, preferred
  2. config.apply — only for replacing entire config sections
  3. exec + Python JSON edit — only when config.patch cannot achieve the change (e.g. removing keys)

One logical change per operation — see definition below.

Step 6: Verify + Log

1. config.get(path="target.key") → confirm value applied correctly
2. exec("openclaw config validate") → confirm config is valid
3. If gateway restart triggered → confirm restart succeeded
4. Record change to logs/config-changes.log

Change log format (append to ~/.openclaw/workspace/logs/config-changes.log):

## YYYY-MM-DDTHH:MM:SS+08:00
- action: add|modify|remove
- target: config.key.path
- old_value: <previous value or "N/A">
- new_value: <new value>
- reason: <brief justification>
- schema_verified: true
- doc_source: <URL or "QMD:collection/doc-id">
- user_approved: true
- backup: <backup file path>

Definition: "One Logical Change"

A logical change = changes to keys within the same config subtree that serve a single user intent.

ExampleCountReason
Add one model entry1Single intent, one subtree
Add model + set it as fallback1Same intent (add fallback model), same subtree
Add model + add plugin + change channel3Different subtrees, different intents
Modify 3 unrelated fields in tools.*3Different intents, must be separate patches

Rule of thumb: if you need to mention two different top-level config sections in one proposal, split it.

If in doubt, split. Smaller patches are safer and easier to roll back.

Hard Prohibitions

  • Guess field names or values — always verify via schema + docs
  • Skip schema.lookup — even for "obvious" or "previously used" keys
  • Skip doc verification — even when you "already know" the config
  • Use external blogs/GitHub issues as config source — clues only, never evidence
  • Bundle unrelated changes — one logical change per patch
  • Modify config without backup — Step 5a is mandatory
  • Modify config without logging — every change must go to config-changes.log
  • Proceed after schema lookup failure — STOP and report
  • Assume prior knowledge replaces verification — "I've done this before" is not evidence
  • Skip user confirmation — all Mode B operations require Step 4

Documentation Quick Reference

TopicURL
Config referencehttps://docs.openclaw.ai/gateway/configuration-reference
Config exampleshttps://docs.openclaw.ai/gateway/configuration-examples
Modelshttps://docs.openclaw.ai/models/
Pluginshttps://docs.openclaw.ai/plugins/
Channelshttps://docs.openclaw.ai/channels/
Toolshttps://docs.openclaw.ai/tools/
MCPhttps://docs.openclaw.ai/tools/mcp
CLI referencehttps://docs.openclaw.ai/cli/
Securityhttps://docs.openclaw.ai/gateway/security
Sandboxhttps://docs.openclaw.ai/gateway/sandboxing
Skillshttps://docs.openclaw.ai/tools/skills
Multi-agenthttps://docs.openclaw.ai/concepts/multi-agent
CLI backendshttps://docs.openclaw.ai/gateway/cli-backends
Thinking levelshttps://docs.openclaw.ai/tools/thinking
apply_patchhttps://docs.openclaw.ai/tools/apply-patch
Web searchhttps://docs.openclaw.ai/tools/web-search
TTShttps://docs.openclaw.ai/tools/tts
Image genhttps://docs.openclaw.ai/tools/image-generation
Music genhttps://docs.openclaw.ai/tools/music-generation
Providershttps://docs.openclaw.ai/providers/<provider-name>

Schema Drill-Down

For nested structures, lookup sub-paths incrementally:

config.schema.lookup(path="agents.defaults.cliBackends")
config.schema.lookup(path="agents.defaults.cliBackends.*")
config.schema.lookup(path="agents.defaults.cliBackends.*.sessionMode")

Each level returns type, enum, children, and hints.

Error Recovery

ProblemAction
Gateway won't startopenclaw config validate --json → find specific errors
Unknown key errorRestore from backup → openclaw config unset <path>
Type mismatchSchema lookup for expected type → fix value → re-verify
Plugin fails to loadCheck plugin docs for required config fields
config.patch rejectedCheck schema for additionalProperties: false → verify all sub-fields
Patch succeeds but wrong valueRestore from backup → redo with correct value

Scope

This skill covers openclaw.json configuration only.

  • Workspace files (SOUL.md, AGENTS.md, etc.): follow workspace rules
  • Skill creation: use the skill-creator skill
  • Plugin development: follow plugin docs

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

74.99%
按下载量换算670

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills