Edit an existing automation (name, description, behavior, scope)
Arguments: $ARGUMENTS
Read ${CLAUDE_SKILL_DIR}/../../docs/shared-context.md for registry format, merge algorithm, and validation procedures.
Parse $ARGUMENTS for the automation name.
If no name given, read the registry and show the list, then ask which one to edit.
Read ~/.claude/automations-registry.json and find the automation by name.
If not found, show error and list available automations.
Read the actual file from the path in the registry. Show its current content to the user.
Use AskUserQuestion to ask what to change:
Before applying changes, validate against schemas:
${CLAUDE_SKILL_DIR}/../../schemas/If validation fails, show the error and ask the user to adjust.
Make the changes to the file. For scope changes:
Validate any modified JSON files with jq after writing.
Update the registry entry with:
modified timestampShow the diff of what changed and confirm success.