majiang213/openclaw-mas/cmd-hookify-help

Claude Code and agent skill by majiang213/openclaw-mas

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Display comprehensive OpenClaw hookify documentation

Install

npx vskill@latest install majiang213/openclaw-mas/cmd-hookify-help

SKILL.md

The same SKILL.md was published earlier as majiang213/openclaw-mas/cmd-hookify-help.

Project Path

The first argument is the project path. Before doing anything else:

  1. Extract the project path from the first argument
  2. Verify the path exists
  3. Work within that directory for all file operations and shell commands

Hookify Help

Display comprehensive documentation for the OpenClaw hookify system.

OpenClaw Hook System Overview

Hooks are automation scripts that execute when specific events occur in the OpenClaw gateway. Internal hooks can push warning messages to the user but cannot block actions — errors in handlers are caught and logged without stopping other handlers.

Hook Structure
.openclaw/hooks/<hook-name>/
├── HOOK.md # Metadata: events, description, enabled state
└── handler.ts # TypeScript implementation
Available Events & Context Fields
EventtypeactionKey context fields
command:newcommandnewcommandSource, workspaceDir, sessionEntry, cfg
command:resetcommandresetsessionEntry
command:stopcommandstopsessionEntry
message:receivedmessagereceivedfrom, content, channelId, conversationId, metadata
message:sentmessagesentto, content, success, channelId, groupId
message:transcribedmessagetranscribedcontent, transcript, from, channelId
message:preprocessedmessagepreprocessedbody, bodyForAgent, transcript, isGroup, groupId
session:patchsessionpatchsessionEntry, patch, cfg
agent:bootstrapagentbootstrapworkspaceDir, bootstrapFiles, agentId, sessionKey
gateway:startupgatewaystartupcfg, workspaceDir
HOOK.md Format
markdown
---
name: hook-name
description: "What this hook does"
events: ["command:new"]
enabled: true
emoji: "🛡️"
---
handler.ts Format
typescript
import type { InternalHookEvent } from "openclaw/plugin-sdk/hook-runtime";
const handler = async (event: InternalHookEvent) => {
if (event.type !== "command" || event.action !== "new") {
return;
}
const ctx = event.context as Record<string, unknown>;
const content = (ctx.content ?? ctx.commandSource ?? '') as string;
if (/pattern/i.test(content)) {
event.messages.push('⚠️ Warning: reason');
}
// Note: do not throw — errors are caught but prevent other handlers from running
};
export default handler;
InternalHookEvent interface
typescript
interface InternalHookEvent {
type: "command" | "session" | "agent" | "gateway" | "message";
action: string;
sessionKey: string;
context: Record<string, unknown>;
timestamp: Date;
messages: string[]; // push strings here to notify the user
}
Type guards (from "openclaw/plugin-sdk/hook-runtime")
typescript
isMessageReceivedEvent(event) // narrows to MessageReceivedHookEvent
isMessageSentEvent(event) // narrows to MessageSentHookEvent
isMessageTranscribedEvent(event) // narrows to MessageTranscribedHookEvent
isMessagePreprocessedEvent(event)
isSessionPatchEvent(event)
isAgentBootstrapEvent(event)
isGatewayStartupEvent(event)
CLI Commands
bash
openclaw hooks list # list all hooks
openclaw hooks enable <name> # enable a hook
openclaw hooks disable <name> # disable a hook
openclaw hooks info <name> # view hook details
openclaw hooks check # verify hook eligibility
Hookify Skills
  • /skill cmd_hookify <path> [description] — create new hook rules
  • /skill cmd_hookify_list <path> — list all hooks
  • /skill cmd_hookify_configure <path> — toggle hooks on/off
  • /skill cmd_hookify_help <path> — this help page

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
5
Repository forks
1
7-day trend score
9

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/majiang213/openclaw-mas/cmd-hookify-help/badge)](https://verified-skill.com/skills/majiang213/openclaw-mas/cmd-hookify-help)

Something wrong with this skill or its page? Tell us.