Claude.Hooks (claude v0.1.0)

Core hooks functionality including registry and installation.

Summary

Functions

Returns all available hook modules.

Finds a hook module by its identifier.

Returns the identifier for a hook module.

Installs all Claude hooks to the project's settings.json.

Uninstalls all Claude hooks from the project's settings.json.

Functions

all_hooks()

Returns all available hook modules.

find_hook_by_identifier(identifier)

Finds a hook module by its identifier.

The identifier is derived from the module name, e.g.:

  • Claude.Hooks.PostToolUse.ElixirFormatter -> "post_tool_use.elixir_formatter"

hook_identifier(hook_module)

Returns the identifier for a hook module.

install()

Installs all Claude hooks to the project's settings.json.

uninstall()

Uninstalls all Claude hooks from the project's settings.json.