Skip to content

clawhub install does not register skill hooks automatically #2295

Description

@alissonaguiar

Summary

When installing a skill that includes an OpenClaw hook (e.g. hooks/openclaw/HOOK.md), clawhub install copies the skill files to the workspace but does not register the hook with the gateway. The user sees the skill as "installed" in the UI but the hook silently does nothing.

Steps to Reproduce

  1. Install a skill that has hooks: clawhub install self-improving-agent
  2. Check openclaw hooks list — the hook is not listed
  3. The skill appears installed in the UI/workspace, but the hook never fires

Expected Behavior

clawhub install should detect hooks/openclaw/HOOK.md (or hooks/openclaw/handler.{js,ts}) in the skill and automatically run the equivalent of:

openclaw plugins install <skill-path>/hooks/openclaw

This would register the hook with the gateway so it actually works after installation.

Actual Behavior

The hook files sit in ~/.openclaw/workspace/skills/<skill>/hooks/openclaw/ but are never registered. The user has no indication that an extra manual step is needed.

Workaround

After clawhub install, manually run:

openclaw plugins install ~/.openclaw/workspace/skills/<skill>/hooks/openclaw
systemctl restart openclaw  # or restart the gateway

Impact

This is a silent failure — the user installs a skill via UI or CLI, it appears to work, but hook-dependent features (like bootstrap injection) never activate. There's no warning or error.

Environment

  • OpenClaw: 2026.5.12 (f066dd2)
  • ClawHub CLI: v0.15.0
  • Affected skill: self-improving-agent (has hooks/openclaw/HOOK.md with agent:bootstrap event)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions