rules-management
Installation
SKILL.md
Rules Management
Manage project-level agent behavioural rules.
Prerequisites
- The rules file (path shown in Quick Start below) must exist in the repository root. If it is missing, create it with a
# Agent Rulesheading first. - Only invoke this skill when the user explicitly requests a new rule -- do not infer rule creation from unrelated conversation.
- Depends on the user providing a clear behavioural directive; if the instruction is vague, ask for clarification before writing.
- The rule schema (
assets/schemas/rule-entry.schema.json) and template (assets/templates/rule-entry.yaml) define the structured title/directive/rationale shape a rule entry MUST have.
Quick Start
# Read current rules
cat .claude/RULES.md
# Validate the rules file against the schema before or after editing it
./scripts/validate-rules.sh validate .claude/RULES.md