🤖
Jasper ConfigGuard
Safely apply OpenClaw config changes with backup, automatic rollback on failure, health checks, and commands for patching, restoring, listing, diffing, valid...
安全通过
技能说明
name: jasper-configguard version: 1.0.0 description: Safe config changes for OpenClaw with automatic rollback. Backs up before patching, health-checks after restart, auto-rolls back on failure. Commands: patch, restore, list, diff, validate, doctor.
Jasper ConfigGuard v1.0.0
Safe config changes for OpenClaw with automatic rollback. Never brick your gateway again.
Setup
npm install -g jasper-configguard
Usage
Apply a config change safely
jasper-configguard patch '{"gateway":{"bind":"tailnet"}}'
The tool will:
- Back up your current config
- Apply the patch (deep merge)
- Restart the gateway
- Wait for health check
- Auto-rollback if gateway fails
Preview changes
jasper-configguard patch --dry-run '{"agents":{"defaults":{"model":{"primary":"opus"}}}}'
Restore from backup
jasper-configguard restore
List backups
jasper-configguard list
Check health
jasper-configguard doctor
Agent Integration
Use from your agent to safely modify OpenClaw config:
# Safe model switch
jasper-configguard patch '{"agents":{"defaults":{"model":{"primary":"anthropic/claude-opus-4-5"}}}}'
# Enable a plugin safely
jasper-configguard patch '{"plugins":{"entries":{"my-plugin":{"enabled":true}}}}'
# If something breaks, restore
jasper-configguard restore
API
const { ConfigGuard } = require('jasper-configguard');
const guard = new ConfigGuard();
// Safe patch
const result = await guard.patch({ gateway: { bind: 'tailnet' } });
if (!result.success) console.log('Rolled back:', result.error);
// Dry run
const preview = guard.dryRun({ agents: { defaults: { model: { primary: 'opus' } } } });
console.log(preview.diff);
如何使用「Jasper ConfigGuard」?
- 打开小龙虾AI(Web 或 iOS App)
- 点击上方「立即使用」按钮,或在对话框中输入任务描述
- 小龙虾AI 会自动匹配并调用「Jasper ConfigGuard」技能完成任务
- 结果即时呈现,支持继续对话优化