{
  "schemaVersion": "1.0",
  "item": {
    "slug": "lark-custom-bot",
    "name": "Pywayne Lark Custom Bot",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/wangyendt/lark-custom-bot",
    "canonicalUrl": "https://clawhub.ai/wangyendt/lark-custom-bot",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/lark-custom-bot",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lark-custom-bot",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lark-custom-bot"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/lark-custom-bot",
    "agentPageUrl": "https://openagent3.xyz/skills/lark-custom-bot/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lark-custom-bot/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lark-custom-bot/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Pywayne Lark Custom Bot",
        "body": "飞书自定义机器人模块，用于通过 webhook 向飞书渠道发送消息。"
      },
      {
        "title": "Quick Start",
        "body": "from pywayne.lark_custom_bot import LarkCustomBot\n\n# 初始化\nbot = LarkCustomBot(\n    webhook=\"your_webhook_url\",\n    secret=\"your_secret\",  # 可选，用于签名验证\n    bot_app_id=\"your_app_id\",  # 上传图片时需要\n    bot_secret=\"your_app_secret\"  # 上传图片时需要\n)\n\n# 发送文本\nbot.send_text(\"Hello, 飞书!\")\n\n# 发送文本并 @所有人\nbot.send_text(\"重要通知！\", mention_all=True)"
      },
      {
        "title": "Text Message",
        "body": "发送纯文本消息。\n\nbot.send_text(\"这是一条文本消息\")\nbot.send_text(\"@所有人请注意\", mention_all=True)"
      },
      {
        "title": "Image Message",
        "body": "发送图片消息，需要先上传获取 image_key。\n\n# 从文件上传\nimage_key = bot.upload_image(\"/path/to/image.jpg\")\nbot.send_image(image_key)\n\n# 从 OpenCV 图像上传\nimport cv2\ncv2_img = cv2.imread(\"/path/to/image.jpg\")\nimage_key = bot.upload_image_from_cv2(cv2_img)\nbot.send_image(image_key)\n\n注意: 上传图片需要配置 bot_app_id 和 bot_secret。"
      },
      {
        "title": "Rich Text Post",
        "body": "发送富文本消息，支持文本、链接、@用户、图片等元素。\n\nfrom pywayne.lark_custom_bot import (\n    create_text_content,\n    create_link_content,\n    create_at_content,\n    create_image_content\n)\n\ncontent = [\n    [create_text_content(\"欢迎使用飞书机器人\\n\")],\n    [create_link_content(href=\"https://www.feishu.cn\", text=\"点击访问飞书\")],\n    [create_at_content(user_id=\"user_id\", user_name=\"用户名\")],\n    [create_image_content(image_key=\"img_xxx\", width=400, height=300)]\n]\n\nbot.send_post(content, title=\"富文本消息标题\")"
      },
      {
        "title": "Interactive Card",
        "body": "发送交互式卡片消息。\n\ncard = {\n    \"header\": {\n        \"title\": {\n            \"content\": \"卡片标题\",\n            \"tag\": \"plain_text\"\n        }\n    },\n    \"elements\": [\n        {\n            \"tag\": \"div\",\n            \"text\": {\n                \"tag\": \"plain_text\",\n                \"content\": \"卡片内容\"\n            }\n        }\n    ]\n}\nbot.send_interactive(card)"
      },
      {
        "title": "Share Chat",
        "body": "分享会话。\n\nbot.send_share_chat(share_chat_id=\"oc_xxxxxxxxxxxxxxxx\")"
      },
      {
        "title": "create_text_content",
        "body": "创建文本内容元素。\n\ncreate_text_content(\"文本内容\", unescape=False)"
      },
      {
        "title": "create_link_content",
        "body": "创建超链接内容元素。\n\ncreate_link_content(href=\"https://example.com\", text=\"点击访问\")"
      },
      {
        "title": "create_at_content",
        "body": "创建 @用户内容元素。\n\ncreate_at_content(user_id=\"user_id\", user_name=\"用户名\")"
      },
      {
        "title": "create_image_content",
        "body": "创建图片内容元素。\n\ncreate_image_content(image_key=\"img_xxx\", width=400, height=300)"
      },
      {
        "title": "Signature Verification",
        "body": "为增强安全性，可配置 secret 进行签名验证：\n\nbot = LarkCustomBot(\n    webhook=\"your_webhook_url\",\n    secret=\"your_signing_secret\"\n)"
      },
      {
        "title": "Image Upload Authentication",
        "body": "上传图片需要应用凭证：\n\nbot = LarkCustomBot(\n    webhook=\"your_webhook_url\",\n    bot_app_id=\"cli_xxxxxxxxxxxxxxxx\",\n    bot_secret=\"xxxxxxxxxxxxxxx\"\n)"
      },
      {
        "title": "Error Handling",
        "body": "所有方法内部已实现日志记录和异常处理。发送失败时会记录错误日志并抛出 requests.RequestException。"
      }
    ],
    "body": "Pywayne Lark Custom Bot\n\n飞书自定义机器人模块，用于通过 webhook 向飞书渠道发送消息。\n\nQuick Start\nfrom pywayne.lark_custom_bot import LarkCustomBot\n\n# 初始化\nbot = LarkCustomBot(\n    webhook=\"your_webhook_url\",\n    secret=\"your_secret\",  # 可选，用于签名验证\n    bot_app_id=\"your_app_id\",  # 上传图片时需要\n    bot_secret=\"your_app_secret\"  # 上传图片时需要\n)\n\n# 发送文本\nbot.send_text(\"Hello, 飞书!\")\n\n# 发送文本并 @所有人\nbot.send_text(\"重要通知！\", mention_all=True)\n\nMessage Types\nText Message\n\n发送纯文本消息。\n\nbot.send_text(\"这是一条文本消息\")\nbot.send_text(\"@所有人请注意\", mention_all=True)\n\nImage Message\n\n发送图片消息，需要先上传获取 image_key。\n\n# 从文件上传\nimage_key = bot.upload_image(\"/path/to/image.jpg\")\nbot.send_image(image_key)\n\n# 从 OpenCV 图像上传\nimport cv2\ncv2_img = cv2.imread(\"/path/to/image.jpg\")\nimage_key = bot.upload_image_from_cv2(cv2_img)\nbot.send_image(image_key)\n\n\n注意: 上传图片需要配置 bot_app_id 和 bot_secret。\n\nRich Text Post\n\n发送富文本消息，支持文本、链接、@用户、图片等元素。\n\nfrom pywayne.lark_custom_bot import (\n    create_text_content,\n    create_link_content,\n    create_at_content,\n    create_image_content\n)\n\ncontent = [\n    [create_text_content(\"欢迎使用飞书机器人\\n\")],\n    [create_link_content(href=\"https://www.feishu.cn\", text=\"点击访问飞书\")],\n    [create_at_content(user_id=\"user_id\", user_name=\"用户名\")],\n    [create_image_content(image_key=\"img_xxx\", width=400, height=300)]\n]\n\nbot.send_post(content, title=\"富文本消息标题\")\n\nInteractive Card\n\n发送交互式卡片消息。\n\ncard = {\n    \"header\": {\n        \"title\": {\n            \"content\": \"卡片标题\",\n            \"tag\": \"plain_text\"\n        }\n    },\n    \"elements\": [\n        {\n            \"tag\": \"div\",\n            \"text\": {\n                \"tag\": \"plain_text\",\n                \"content\": \"卡片内容\"\n            }\n        }\n    ]\n}\nbot.send_interactive(card)\n\nShare Chat\n\n分享会话。\n\nbot.send_share_chat(share_chat_id=\"oc_xxxxxxxxxxxxxxxx\")\n\nContent Builders\ncreate_text_content\n\n创建文本内容元素。\n\ncreate_text_content(\"文本内容\", unescape=False)\n\ncreate_link_content\n\n创建超链接内容元素。\n\ncreate_link_content(href=\"https://example.com\", text=\"点击访问\")\n\ncreate_at_content\n\n创建 @用户内容元素。\n\ncreate_at_content(user_id=\"user_id\", user_name=\"用户名\")\n\ncreate_image_content\n\n创建图片内容元素。\n\ncreate_image_content(image_key=\"img_xxx\", width=400, height=300)\n\nAuthentication\nSignature Verification\n\n为增强安全性，可配置 secret 进行签名验证：\n\nbot = LarkCustomBot(\n    webhook=\"your_webhook_url\",\n    secret=\"your_signing_secret\"\n)\n\nImage Upload Authentication\n\n上传图片需要应用凭证：\n\nbot = LarkCustomBot(\n    webhook=\"your_webhook_url\",\n    bot_app_id=\"cli_xxxxxxxxxxxxxxxx\",\n    bot_secret=\"xxxxxxxxxxxxxxx\"\n)\n\nError Handling\n\n所有方法内部已实现日志记录和异常处理。发送失败时会记录错误日志并抛出 requests.RequestException。"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/wangyendt/lark-custom-bot",
    "publisherUrl": "https://clawhub.ai/wangyendt/lark-custom-bot",
    "owner": "wangyendt",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/lark-custom-bot",
    "downloadUrl": "https://openagent3.xyz/downloads/lark-custom-bot",
    "agentUrl": "https://openagent3.xyz/skills/lark-custom-bot/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lark-custom-bot/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lark-custom-bot/agent.md"
  }
}