Skip to main content
Use Skills hooks when tool calls are backed by versioned skills and you need policy enforcement on skill drift or scan outcomes.

OpenClaw Hook Wiring

sec0-sdk/integrations/openclaw exposes Skills hooks through createMoltbotHooks.

Skills Hook Contract

skills.resolve

skills.resolve(ctx) should return the active skill reference for the invocation (or null if no skill is active).

skills.onScan

skills.onScan({ skill, skillRef, revisionRef }) should return:

Policy Enforcement & Escalation

Use policy enforcement.deny_on and enforcement.escalate_on with the Skills reasons:
  • skill_version_changed
  • skill_code_changed
  • skill_scan_pending
  • skill_scan_failed
See the full schema in Policy Schema Reference.