{
  "schemaVersion": "1.0",
  "item": {
    "slug": "sdf-com-bridge",
    "name": "SDF COM Bridge",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/YKaiXu/sdf-com-bridge",
    "canonicalUrl": "https://clawhub.ai/YKaiXu/sdf-com-bridge",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/sdf-com-bridge",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sdf-com-bridge",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "requirements.txt",
      "scripts/com_interaction.py",
      "scripts/dependency_checker.py",
      "scripts/error_recovery.py"
    ],
    "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/sdf-com-bridge"
    },
    "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/sdf-com-bridge",
    "agentPageUrl": "https://openagent3.xyz/skills/sdf-com-bridge/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sdf-com-bridge/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sdf-com-bridge/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": "SDF COM Bridge",
        "body": "SDF COM chatroom to Feishu bridge with real-time message sync and translation."
      },
      {
        "title": "Architecture",
        "body": "SSH Socket connects to SDF\nCOM runs on remote\nTerminal Parser extracts messages\nTranslator handles EN-ZH bidirectional translation\nFeishu Integration sends formatted messages"
      },
      {
        "title": "1. SSH Connection (scripts/ssh_connection.py)",
        "body": "Reuses ControlMaster socket for connection.\n\nfrom ssh_connection import SSHConnection\n\nconn = SSHConnection(user=\"yupeng\", host=\"sdf.org\")\nconn.connect(\"com -c\")  # Start COM\nconn.send(\"g anonradio\\n\")  # Enter room"
      },
      {
        "title": "2. COM Interaction (scripts/com_interaction.py)",
        "body": "COM command wrapper.\n\nCommandFunctionDescriptionwget_users()List usersllist_rooms()List roomsgjoin_room(\"name\")Join roomr/Rget_history(n)View historyssend_private(user, host, msg)Private messageeemote(action)Emote actionqquit()Exit COM"
      },
      {
        "title": "3. Terminal Parser (scripts/terminal_parser.py)",
        "body": "Extracts chat messages from terminal output.\n\nfrom terminal_parser import SimpleTextParser\n\nparser = SimpleTextParser()\nmessages = parser.feed(raw_text)"
      },
      {
        "title": "4. Translator (scripts/translator.py)",
        "body": "English to Chinese translation.\n\nfrom translator import LLMTranslator\n\ntranslator = LLMTranslator()\nzh = translator.quick_translate_en_to_zh(\"hello\")"
      },
      {
        "title": "5. Feishu Bridge (scripts/feishu_bridge.py)",
        "body": "Parse Feishu commands.\n\nCommandFormatFunctionSendcom: messageSend to COMStatuscom:pwdCheck connectionPrivmsgs: user@host messagePrivate message"
      },
      {
        "title": "6. Main Bridge (scripts/main.py)",
        "body": "Complete runtime example.\n\nfrom main import SDFComBridge\n\nbridge = SDFComBridge(\n    user=\"yupeng\",\n    host=\"sdf.org\",\n    target_room=\"anonradio\"\n)\n\nbridge.start()\nbridge.handle_feishu_message(\"com: hello\")\nbridge.stop()"
      },
      {
        "title": "Usage",
        "body": "Install dependencies:\n\npip install -r requirements.txt\n\nRun directly:\n\npython scripts/main.py\n\nTest connection:\n\npython -c \"from scripts.ssh_connection import SSHConnection; c = SSHConnection(); print(c._check_socket())\""
      },
      {
        "title": "Configuration",
        "body": "Edit main.py:\n\nbridge = SDFComBridge(\n    user=\"yupeng\",\n    host=\"sdf.org\",\n    target_room=\"anonradio\"\n)"
      },
      {
        "title": "Default Room",
        "body": "Auto-joins anonradio chatroom."
      },
      {
        "title": "Message Flow",
        "body": "COM to Feishu:\n\nEnglish messages auto-translated to Chinese\n\nFeishu to COM:\n\nMessages prefixed with \"com:\" sent to COM"
      },
      {
        "title": "Notes",
        "body": "Requires existing SSH ControlMaster socket\nSocket path: ~/.ssh/sockets/yupeng@sdf.org\ncom command must be available on remote\npyte requires correct terminal size (80x24 default)"
      }
    ],
    "body": "SDF COM Bridge\n\nSDF COM chatroom to Feishu bridge with real-time message sync and translation.\n\nArchitecture\nSSH Socket connects to SDF\nCOM runs on remote\nTerminal Parser extracts messages\nTranslator handles EN-ZH bidirectional translation\nFeishu Integration sends formatted messages\nComponents\n1. SSH Connection (scripts/ssh_connection.py)\n\nReuses ControlMaster socket for connection.\n\nfrom ssh_connection import SSHConnection\n\nconn = SSHConnection(user=\"yupeng\", host=\"sdf.org\")\nconn.connect(\"com -c\")  # Start COM\nconn.send(\"g anonradio\\n\")  # Enter room\n\n2. COM Interaction (scripts/com_interaction.py)\n\nCOM command wrapper.\n\nCommand\tFunction\tDescription\nw\tget_users()\tList users\nl\tlist_rooms()\tList rooms\ng\tjoin_room(\"name\")\tJoin room\nr/R\tget_history(n)\tView history\ns\tsend_private(user, host, msg)\tPrivate message\ne\temote(action)\tEmote action\nq\tquit()\tExit COM\n3. Terminal Parser (scripts/terminal_parser.py)\n\nExtracts chat messages from terminal output.\n\nfrom terminal_parser import SimpleTextParser\n\nparser = SimpleTextParser()\nmessages = parser.feed(raw_text)\n\n4. Translator (scripts/translator.py)\n\nEnglish to Chinese translation.\n\nfrom translator import LLMTranslator\n\ntranslator = LLMTranslator()\nzh = translator.quick_translate_en_to_zh(\"hello\")\n\n5. Feishu Bridge (scripts/feishu_bridge.py)\n\nParse Feishu commands.\n\nCommand\tFormat\tFunction\nSend\tcom: message\tSend to COM\nStatus\tcom:pwd\tCheck connection\nPrivmsg\ts: user@host message\tPrivate message\n6. Main Bridge (scripts/main.py)\n\nComplete runtime example.\n\nfrom main import SDFComBridge\n\nbridge = SDFComBridge(\n    user=\"yupeng\",\n    host=\"sdf.org\",\n    target_room=\"anonradio\"\n)\n\nbridge.start()\nbridge.handle_feishu_message(\"com: hello\")\nbridge.stop()\n\nUsage\n\nInstall dependencies:\n\npip install -r requirements.txt\n\n\nRun directly:\n\npython scripts/main.py\n\n\nTest connection:\n\npython -c \"from scripts.ssh_connection import SSHConnection; c = SSHConnection(); print(c._check_socket())\"\n\nConfiguration\n\nEdit main.py:\n\nbridge = SDFComBridge(\n    user=\"yupeng\",\n    host=\"sdf.org\",\n    target_room=\"anonradio\"\n)\n\nDefault Room\n\nAuto-joins anonradio chatroom.\n\nMessage Flow\n\nCOM to Feishu:\n\nEnglish messages auto-translated to Chinese\n\nFeishu to COM:\n\nMessages prefixed with \"com:\" sent to COM\nNotes\nRequires existing SSH ControlMaster socket\nSocket path: ~/.ssh/sockets/yupeng@sdf.org\ncom command must be available on remote\npyte requires correct terminal size (80x24 default)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/YKaiXu/sdf-com-bridge",
    "publisherUrl": "https://clawhub.ai/YKaiXu/sdf-com-bridge",
    "owner": "YKaiXu",
    "version": "2.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/sdf-com-bridge",
    "downloadUrl": "https://openagent3.xyz/downloads/sdf-com-bridge",
    "agentUrl": "https://openagent3.xyz/skills/sdf-com-bridge/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sdf-com-bridge/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sdf-com-bridge/agent.md"
  }
}