SkillKit.Webhook.Lifecycle (SkillKit v0.1.0)

Copy Markdown View Source

:pre_agent hook handler injected onto every skill in SkillKit.Tools.Webhook.

When an agent boots, its Catalog aggregates the hooks from every loaded skill. For each skill in the webhook kit, this hook fires once with the full %SkillKit.Agent{} in its context. The handler calls Webhook.Registry.attach/2 so the Plug can route inbound requests to this agent by name afterward.

Summary

Functions

Hook handler entry point. Called by SkillKit.Hooks.invoke_handler/2 with the handler config and the pre-event context.

Functions

execute(arg1, arg2)

@spec execute(map(), map()) :: :ok

Hook handler entry point. Called by SkillKit.Hooks.invoke_handler/2 with the handler config and the pre-event context.