From openloomi
Installs lifecycle hooks that mirror Claude Code events onto the Loomi Pet and auto-archives Stop events into OpenLoomi memory. Run /openloomi:hooks install to enable.
How this skill is triggered — by the user, by Claude, or both
Slash command
/openloomi:openloomi-hooksThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The plugin ships a hook bundle in `hooks/hooks.json` but **never installs it
The plugin ships a hook bundle in hooks/hooks.json but never installs it
automatically. Users must explicitly run one of:
/openloomi:hooks install — merge the bundle into ~/.claude/settings.json/openloomi:hooks uninstall — strip only the plugin's block (other
plugins' hooks are preserved)/openloomi:hooks status — report whether the bundle is currently activeUnder the hood this calls:
node ${CLAUDE_PLUGIN_ROOT}/scripts/loomi-bridge.mjs install-hooks
node ${CLAUDE_PLUGIN_ROOT}/scripts/loomi-bridge.mjs uninstall-hooks
node ${CLAUDE_PLUGIN_ROOT}/scripts/loomi-bridge.mjs hooks-status
install-hooks is merge-no-overwrite: only adds the plugin's block
under hooks.__openloomi_claude_plugin_hooks__. Existing hooks for
other plugins are not touched.uninstall-hooks removes only the plugin-marked block; rerunning it
after the first time reports removed: false, never deletes anything
else's hooks.writeFile to a temp file, then rename).{continue: true, _openloomi: {archive: "skipped", reason: ...}}
so they can never block Claude Code's response stream.This plugin can mirror Claude Code's lifecycle onto your Loomi Pet. To enable this, run
/openloomi:hooks install. To disable, run/openloomi:hooks uninstall. The plugin never modifies your~/.claude/settings.jsonwithout explicit consent.
npx claudepluginhub melandlabs/openloomi --plugin openloomiGuides creation of Claude Code plugin hooks for event-driven automation: PreToolUse, PostToolUse, Stop, SessionStart, etc. Covers prompt-based and command hooks with plugin and user settings formats.
Creates, modifies, and debugs Claude Code hooks including PreToolUse, PostToolUse, Stop, and more. Covers plugin vs. user config formats, matchers, security patterns, and lifecycle limitations.
Guides creation of Claude Code plugin hooks (PreToolUse, PostToolUse, Stop, etc.) using prompt-based or command-based configurations for event-driven automation.