360 Secure SkillHub
360 安全技能中心

Claude Settings Editor

面向 Claude 设置文件的配置编辑技能,按用户、项目或本地作用域读取现有 JSON,仅做最小有效修改,保留无关设置,并解释优先级与敏感变更风险。

wimi321
wimi321
热度 42.75
最近更新 2026-05-11 17:39:34
分类:效率依赖:读写文件应用场景:工作流

安装技能

复制下面的话术发给你的 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.