Import automations from a JSON export file
Arguments: $ARGUMENTS
Read ${CLAUDE_SKILL_DIR}/../../docs/shared-context.md for registry format, merge algorithm, and file markers.
Parse $ARGUMENTS for the file path. If missing, show error: "Usage: /automate-import <file>"
Read the file and validate format (must have exportVersion and automations array).
For each automation in the import file:
~/.claude/automations-registry.jsonFor each automation to import:
created-by: automate markers (see shared-context.md for format)jq after writingAdd each imported automation to ~/.claude/automations-registry.json.
Show summary of imported automations:
Imported N automations:
- skill-name (skill, global)
- hook-name (hook, project)
Skipped: M