update-config

Installation
SKILL.md

Update Config Skill

Modify Claude Code configuration by updating settings.json files.

When Hooks Are Required (Not Memory)

If the user wants something to happen automatically in response to an EVENT, they need a hook configured in settings.json. Memory/preferences cannot trigger automated actions.

These require hooks:

  • "Before compacting, ask me what to preserve" → PreCompact hook
  • "After writing files, run prettier" → PostToolUse hook with Write|Edit matcher
  • "When I run bash commands, log them" → PreToolUse hook with Bash matcher
  • "Always run tests after code changes" → PostToolUse hook

Hook events: PreToolUse, PostToolUse, PreCompact, PostCompact, Stop, Notification, SessionStart

CRITICAL: Read Before Write

Always read the existing settings file before making changes. Merge new settings with existing ones - never replace the entire file.

Installs
10
GitHub Stars
68.0K
First Seen
Aug 26, 2026
update-config — asgeirtj/system_prompts_leaks