update-rule

Update Claude Code rule files and enforcement surfaces with consistency checks.

2|1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/enbiyagoral/.claude --skill update-rule-enbiyagoral
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-rule
Source: https://github.com/enbiyagoral/.claude/tree/main/.claude/skills/update-rule
Command: npx skills add https://github.com/enbiyagoral/.claude --skill update-rule-enbiyagoral

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Update an existing Claude Code rule and keep enforcement surfaces consistent.

Core Features & Use Cases

  • Reads the current rule state, prompts for changes, and updates the rule text, settings.json, and hooks when needed.
  • Applies updates to multiple related files (.claude/rules/<rule-name>.md, .claude/settings.json, and .claude/hooks/scripts/pre-bash-guard.sh) to maintain consistency.
  • Performs consistency checks to avoid overlaps or conflicts with other rules.

Quick Start

Provide the rule name and the desired changes to update the rule, and Claude will locate the current rule and apply updates across the rule text, settings, and hooks.

Frequently Asked Questions about update-rule

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update an existing Claude Code rule and keep settings consistent?

To update a Claude Code rule, provide the rule name and desired changes. The system reads the current rule and applies updates across the rule text, settings.json, and hooks to maintain consistency.

What files are modified when updating Claude Code rules?

Updating Claude Code rules modifies three key files: .claude/rules/<rule-name>.md for rule text, .claude/settings.json for configuration, and .claude/hooks/scripts/pre-bash-guard.sh for enforcement hooks.

How do I prevent conflicts when modifying multiple Claude Code rules?

To prevent conflicts when modifying rules, consistency checks are performed during the update workflow. These checks scan for overlaps or conflicts with other existing rules before applying changes.

Do I need to manually update hooks when changing a rule in settings.json?

No, you do not need to manually update hooks. The rule update process automatically aligns enforcement surfaces, applying necessary changes to pre-bash-guard.sh and settings.json alongside the rule text.

What is the best way to ensure Claude Code rule changes are auditable?

The best way to ensure rule changes are auditable is using a structured update workflow that reads current rules, prompts for changes, and validates consistency across all related files before applying updates.