# Openloomi hooks

> Openloomi hooks is an open-source agent skill for developer tools. Installs and manages hooks that mirror Claude Code events onto the Loomi Pet. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/melandlabs/openloomi/tree/main/plugins/claude/skills/openloomi-hooks
- **Repository:** https://github.com/melandlabs/openloomi
- **GitHub stars:** 1,046
- **License:** Apache-2.0
- **Skill name:** openloomi-hooks
- **Collection:** https://github.com/melandlabs/openloomi
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This Claude Code plugin skill installs, removes and reports on a bundled set of lifecycle hooks for OpenLoomi. The hooks cover session start, prompt submission, tool use, subagent activity, stop and notification events, so the Loomi Pet can reflect what Claude Code is doing.

Installation is opt-in. The bundle is merged into the user's Claude Code settings under its own plugin-marked block, leaving other plugins' hooks untouched. Removing it deletes only that block, and a status check reports whether it is active. Writes go through a temporary file that is then renamed, so the settings file is not left half-written.

The skill runs a Node.js bridge script shipped with the plugin. The Stop hook is designed to always exit successfully, reporting any archiving failure as a JSON note rather than blocking Claude Code's response.

## When your agent uses it

> OpenLoomi × Claude Code hooks installer. Use when the user wants Claude Code's lifecycle (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SubagentStart, SubagentStop, Notification) to mirror onto the Loomi Pet, or wants to auto-archive every Stop into OpenLoomi memory. Triggers: install hooks, /openloomi:hooks, hooks install, hooks uninstall, hooks status, mirror claude on pet, auto-archive stop.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/melandlabs/openloomi/tree/HEAD/plugins/claude/skills/openloomi-hooks)
- [Asks for: Bash(node ${CLAUDE_PLUGIN_ROOT}/scripts/loomi-bridge.mjs *)](https://github.com/melandlabs/openloomi/blob/HEAD/plugins/claude/skills/openloomi-hooks/SKILL.md)
- [License: Apache-2.0](https://github.com/melandlabs/openloomi/tree/HEAD/plugins/claude/skills/openloomi-hooks)

## Features

- **Install hook bundle:** Merges the plugin's lifecycle hooks into the Claude Code settings file without overwriting existing hooks.
- **Uninstall plugin hooks:** Removes only the plugin's own hook block and leaves other plugins' hooks in place.
- **Check hook status:** Reports whether the OpenLoomi hook bundle is currently active.
- **Mirror lifecycle events:** Covers session start, prompt submit, tool use, subagent start and stop, and notifications.
- **Archive on stop:** Can send each Stop event into OpenLoomi memory without blocking the response stream.
- **Atomic settings writes:** Updates the settings file through a temporary file and rename to avoid partial writes.

## Good for

- Mirror my Claude Code activity onto the Loomi Pet
- Install the OpenLoomi hooks into my Claude Code settings
- Check whether the OpenLoomi hooks are active
- Remove only the OpenLoomi hooks and keep my other hooks
- Automatically archive each finished Claude Code session into OpenLoomi memory

## Install

### Claude Code

This skill ships in the `openloomi` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add melandlabs/openloomi
/plugin install openloomi@openloomi
```

Or copy only this skill to `~/.claude/skills/openloomi-hooks`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/openloomi-hooks &&
cp -R "$tmp/plugins/claude/skills/openloomi-hooks" ~/.claude/skills/openloomi-hooks &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/openloomi-hooks` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/openloomi-hooks` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/openloomi-hooks &&
cp -R "$tmp/plugins/claude/skills/openloomi-hooks" ~/.agents/skills/openloomi-hooks &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/openloomi-hooks` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/openloomi-hooks` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/openloomi-hooks &&
cp -R "$tmp/plugins/claude/skills/openloomi-hooks" ~/.cursor/skills/openloomi-hooks &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/openloomi-hooks` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/melandlabs/openloomi.git --path plugins/claude/skills/openloomi-hooks
```

Or copy the folder to `~/.gemini/skills/openloomi-hooks` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/openloomi-hooks`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/openloomi-hooks &&
cp -R "$tmp/plugins/claude/skills/openloomi-hooks" ~/.copilot/skills/openloomi-hooks &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/openloomi-hooks` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/melandlabs/openloomi.git
```

Then copy `openloomi/plugins/claude/skills/openloomi-hooks` into your agent's skills folder as `openloomi-hooks`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does installing the plugin turn the hooks on automatically?

No. The hook bundle is never installed automatically; the user must run the install command explicitly.

### Will uninstalling remove hooks from other plugins?

No. Uninstall removes only the plugin-marked block, and running it again reports that nothing was removed.

### What happens if archiving fails on Stop?

The Stop hook always exits successfully and reports the skipped archive as a JSON note, so it cannot block Claude Code's response.

### How do I install Openloomi hooks in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/openloomi-hooks to use it in all your projects, or to .claude/skills/openloomi-hooks in one project. Or install the openloomi plugin, which includes it: /plugin marketplace add melandlabs/openloomi, then /plugin install openloomi@openloomi.

### Does Openloomi hooks run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Openloomi hooks?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Openloomi hooks?

The closest alternatives to Openloomi hooks are Openloomi install, Lifecycle audit, Writing hooks, Openloomi loop and Openloomi pet.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Openloomi install](https://ai-powered.com/skills/openloomi-install-melandlabs): Openloomi install is an open-source agent skill for developer tools.
- [Lifecycle audit](https://ai-powered.com/skills/lifecycle-audit): Lifecycle audit is an open-source agent skill for developer tools.
- [Writing hooks](https://ai-powered.com/skills/writing-hooks-xiaolai): Writing hooks is an open-source agent skill for developer tools.
- [Openloomi loop](https://ai-powered.com/skills/openloomi-loop-melandlabs-2): Openloomi loop is an open-source agent skill for developer tools.
- [Openloomi pet](https://ai-powered.com/skills/openloomi-pet-melandlabs): Openloomi pet is an open-source agent skill for developer tools.
- [Moodle hooks API](https://ai-powered.com/skills/moodle-hooks-api): Moodle hooks API is an open-source agent skill for developer tools.
- [Openloomi setup](https://ai-powered.com/skills/openloomi-setup-melandlabs): Openloomi setup is an open-source agent skill for developer tools.
- [Harness loop](https://ai-powered.com/skills/harness-loop-chachamaru127-2): Harness loop is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/openloomi-hooks
