{
  "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": []
}