跳到正文
TakoAPI
返回技能列表

jasper-configguard

由 emberdesire 提供

Health & Fitness
1.2k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Safe config changes for OpenClaw with automatic.

描述

该技能的功能

Manages OpenClaw gateway config changes with automatic backup and rollback. Applies patches via deep merge, restarts the gateway, runs a health check, and reverts automatically if the gateway fails to come back up. Also exposes a JavaScript API for use inside agents.

Manual config edits require remembering to back up first and manually reverting on failure, which this automates end-to-end.

何时使用

  • Switching the default model without risking a broken gateway
  • Enabling or disabling a plugin safely in production
  • Previewing a config diff before committing a change
  • Restoring the last known good config after a bad patch
  • Running a health check on the gateway from an agent step

示例工作流

输入

User asks: switch the primary model to claude-opus-4-5 safely

智能体
  1. 1

    Run dry-run to preview the change: jasper-configguard patch --dry-run '{"agents":{"defaults":{"model":{"primary":"anthropic/claude-opus-4-5"}}}}'

  2. 2

    Confirm diff looks correct

  3. 3

    Apply the patch: jasper-configguard patch '{"agents":{"defaults":{"model":{"primary":"anthropic/claude-opus-4-5"}}}}'

  4. 4

    Tool backs up config, applies change, restarts gateway, and runs health check

  5. 5

    If health check fails, tool auto-rolls back and reports the error

输出

Gateway running with updated model, or automatically restored to previous config if restart failed

安装

clawhub install emberdesire/jasper-configguard

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接