Files
openclaw-skill/openclaw-knowhow-skill/output/openclaw-docs_data/pages/My_Custom_Hook_713e06d2f4.json
Selig 4c966a3ad2 Initial commit: OpenClaw Skill Collection
6 custom skills (assign-task, dispatch-webhook, daily-briefing,
task-capture, qmd-brain, tts-voice) with technical documentation.
Compatible with Claude Code, OpenClaw, Codex CLI, and OpenCode.
2026-03-13 10:58:30 +08:00

28 lines
933 B
JSON
Executable File

{
"title": "My Custom Hook",
"content": "This hook does something useful when you issue `/new`.\ntypescript theme={null}\nimport type { HookHandler } from \"../../src/hooks/hooks.js\";\n\nconst handler: HookHandler = async (event) => {\n if (event.type !== \"command\" || event.action !== \"new\") {\n return;\n }\n\nconsole.log(\"[my-hook] Running!\");\n // Your logic here\n};\n\nexport default handler;\nbash theme={null}",
"code_samples": [
{
"code": "### 4. Create handler.ts",
"language": "unknown"
},
{
"code": "### 5. Enable and Test",
"language": "unknown"
}
],
"headings": [
{
"level": "h3",
"text": "4. Create handler.ts",
"id": "4.-create-handler.ts"
},
{
"level": "h3",
"text": "5. Enable and Test",
"id": "5.-enable-and-test"
}
],
"url": "llms-txt#my-custom-hook",
"links": []
}