360 Secure SkillHub
360 安全技能中心

Claude Settings Editor

这是Claude专属配置编辑工具,核心是按用户/项目/本地范围,最小化修改其设置、钩子、权限、MCP开关等JSON配置,确保语法合法且保留无关设置,敏感变更会预警。典型场景:更新项目钩子不破坏现有配置、调整权限与MCP开关。输入为变更需求、范围、现有配置;输出为校验后的JSON修改、范围说明、风险提示,避免全量替换。

wimi321
wimi321
热度 42.75
最近更新 2026-05-11 17:39:34
分类:开发依赖:读写文件 / 内部调用大模型应用场景:DevOps / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add claude-settings-editor
Metadata
name
claude_settings_editor
description
Use when the user wants to update Claude settings, hooks, permissions, MCP server toggles, or other JSON config safely and with scope awareness.

Claude Settings Editor

Use this skill for settings.json, local overrides, and hook configuration.

Workflow

  1. Choose the correct settings file by scope: user, project, or local.
  2. Read the current file before editing.
  3. Apply the smallest valid JSON change.
  4. Keep permissions, hooks, plugins, and MCP configuration syntactically valid.
  5. Explain scope, precedence, and any risky config changes.

Guardrails

  • Do not replace a config file wholesale unless necessary.
  • Preserve unrelated user settings.
  • Warn before widening permissions or changing automation hooks broadly.

Example Requests

  • Update project hooks without breaking existing settings.
  • Change Claude permissions and MCP toggles in the right settings file.

Inputs

  • Requested configuration change
  • Desired scope
  • Existing settings state

Outputs

  • Validated JSON config edits
  • Scope explanation
  • Risk notes for sensitive changes

Success Criteria

  • Only the intended file was changed.
  • JSON remains valid.
  • Unrelated settings were preserved.

Non-Goals

  • Blind full-file rewrites
  • Silent permission broadening

Source Provenance

Derived from src/skills/bundled/updateConfig.ts.