Module 2: Modular Architecture & Extension Points

Add one extension module and verify hook lifecycle.

Commands are templates. Replace IDs, secrets and endpoints with your environment values.

Hands-on Steps (Directly Runnable)

Execute each command, capture output, then note issues and fixes.

Step 1: Scaffold module

Run:
zeroclaw module create custom-audit

Copyable commands
zeroclaw module create custom-audit

Step 2: Register module

Run:
zeroclaw module enable custom-audit

Copyable commands
zeroclaw module enable custom-audit

Step 3: Run integration test

Run:
zeroclaw test --module custom-audit

Copyable commands
zeroclaw test --module custom-audit

Step 4: Verify hook order

Run:
zeroclaw logs | rg "beforeHook|afterHook"

Copyable commands
zeroclaw logs | rg "beforeHook|afterHook"

Continue to the next module

Turn the commands on this page into your team runbook.

ZeroClaw Module 2: Modular Architecture & Extension Points | BestClaw