{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ii-irc",
    "name": "ii-IRC",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/destructatron/ii-irc",
    "canonicalUrl": "https://clawhub.ai/destructatron/ii-irc",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ii-irc",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ii-irc",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "scripts/setup.sh",
      "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/ii-irc"
    },
    "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/ii-irc",
    "agentPageUrl": "https://openagent3.xyz/skills/ii-irc/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ii-irc/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ii-irc/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": "ii-IRC: Event-Driven IRC for AI Agents",
        "body": "ii writes all channel activity to plain files. A watcher script monitors for mentions and triggers OpenClaw system events. Responses are sent by writing to a FIFO."
      },
      {
        "title": "Architecture",
        "body": "~/irc/\n├── irc.sh              # Management script (start/stop/status/send)\n├── watch-daemon.sh     # Mention watcher → openclaw system event\n└── <server>/\n    └── <channel>/\n        ├── in          # FIFO - write here to send messages\n        └── out         # Append-only log of all channel messages"
      },
      {
        "title": "1. Install ii",
        "body": "ii is in most package managers. On Arch: pacman -S ii. On Debian/Ubuntu: apt install ii. Or build from suckless.org."
      },
      {
        "title": "2. Create scripts",
        "body": "Run the bundled setup script (creates ~/irc/irc.sh and ~/irc/watch-daemon.sh):\n\nbash scripts/setup.sh --server irc.example.org --port 6667 --nick MyBot --channel \"#mychannel\"\n\nOr create them manually — see scripts/irc.sh.template and scripts/watch-daemon.sh.template."
      },
      {
        "title": "3. Create systemd user services (recommended)",
        "body": "For auto-start on boot:\n\nmkdir -p ~/.config/systemd/user\n\n# IRC connection service\ncat > ~/.config/systemd/user/irc-bot.service << 'EOF'\n[Unit]\nDescription=IRC connection (ii)\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nType=simple\nExecStart=/usr/bin/ii -s SERVER -p PORT -n NICK -i %h/irc\nExecStartPost=/bin/bash -c 'sleep 3 && echo \"/j CHANNEL\" > %h/irc/SERVER/in'\nRestart=always\nRestartSec=10\n\n[Install]\nWantedBy=default.target\nEOF\n\n# Mention watcher service\ncat > ~/.config/systemd/user/irc-watcher.service << 'EOF'\n[Unit]\nDescription=IRC mention watcher\nAfter=irc-bot.service\nWants=irc-bot.service\n\n[Service]\nType=simple\nExecStart=%h/irc/watch-daemon.sh\nRestart=always\nRestartSec=5\n\n[Install]\nWantedBy=default.target\nEOF\n\n# Replace SERVER, PORT, NICK, CHANNEL in the service files, then:\nsystemctl --user daemon-reload\nsystemctl --user enable --now irc-bot.service irc-watcher.service"
      },
      {
        "title": "Sending Messages",
        "body": "# Via the management script\n~/irc/irc.sh send \"Hello, world!\"\n\n# Or write directly to the FIFO\necho \"Hello, world!\" > ~/irc/<server>/<channel>/in\n\nImportant: ii splits long messages at byte boundaries, which can break mid-word or mid-UTF8 character. Keep messages under ~400 characters. For longer content, split into multiple messages with brief pauses between them."
      },
      {
        "title": "Reading Context",
        "body": "# Last N messages (token-efficient)\ntail -n 20 ~/irc/<server>/<channel>/out\n\n# Quick status (last 5 messages)\n~/irc/irc.sh status\n\nNever read the entire out file — it grows indefinitely. Always use tail with a limit."
      },
      {
        "title": "How Mention Detection Works",
        "body": "watch-daemon.sh runs tail -F on the channel's out file\nEach new line is checked (case-insensitive) for the bot's nick\nOwn messages and join/part notices are skipped\nOn match → openclaw system event --text \"IRC mention: <message>\" --mode now\nOpenClaw wakes and can respond via the in FIFO\n\nThis is event-driven — zero polling, instant response, minimal resource usage."
      },
      {
        "title": "Joining Multiple Channels",
        "body": "ii supports multiple channels on the same server. For each additional channel:\n\necho \"/j #other-channel\" > ~/irc/<server>/in\n\nTo watch multiple channels, either run separate watcher instances or modify watch-daemon.sh to monitor multiple out files."
      },
      {
        "title": "Troubleshooting",
        "body": "Not connecting: Check ii is running (pgrep -f \"ii -s\"), verify server/port\nNot joining channel: The in FIFO must exist; check ExecStartPost timing (increase sleep if needed)\nMentions not triggering: Verify watcher is running (pgrep -f watch-daemon), check nick matches\nMessages splitting weirdly: Shorten messages; ii has a ~512 byte IRC protocol limit\nReconnection: systemd Restart=always handles this; ii exits on disconnect, systemd restarts it"
      }
    ],
    "body": "ii-IRC: Event-Driven IRC for AI Agents\n\nii writes all channel activity to plain files. A watcher script monitors for mentions and triggers OpenClaw system events. Responses are sent by writing to a FIFO.\n\nArchitecture\n~/irc/\n├── irc.sh              # Management script (start/stop/status/send)\n├── watch-daemon.sh     # Mention watcher → openclaw system event\n└── <server>/\n    └── <channel>/\n        ├── in          # FIFO - write here to send messages\n        └── out         # Append-only log of all channel messages\n\nQuick Setup\n1. Install ii\n\nii is in most package managers. On Arch: pacman -S ii. On Debian/Ubuntu: apt install ii. Or build from suckless.org.\n\n2. Create scripts\n\nRun the bundled setup script (creates ~/irc/irc.sh and ~/irc/watch-daemon.sh):\n\nbash scripts/setup.sh --server irc.example.org --port 6667 --nick MyBot --channel \"#mychannel\"\n\n\nOr create them manually — see scripts/irc.sh.template and scripts/watch-daemon.sh.template.\n\n3. Create systemd user services (recommended)\n\nFor auto-start on boot:\n\nmkdir -p ~/.config/systemd/user\n\n# IRC connection service\ncat > ~/.config/systemd/user/irc-bot.service << 'EOF'\n[Unit]\nDescription=IRC connection (ii)\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nType=simple\nExecStart=/usr/bin/ii -s SERVER -p PORT -n NICK -i %h/irc\nExecStartPost=/bin/bash -c 'sleep 3 && echo \"/j CHANNEL\" > %h/irc/SERVER/in'\nRestart=always\nRestartSec=10\n\n[Install]\nWantedBy=default.target\nEOF\n\n# Mention watcher service\ncat > ~/.config/systemd/user/irc-watcher.service << 'EOF'\n[Unit]\nDescription=IRC mention watcher\nAfter=irc-bot.service\nWants=irc-bot.service\n\n[Service]\nType=simple\nExecStart=%h/irc/watch-daemon.sh\nRestart=always\nRestartSec=5\n\n[Install]\nWantedBy=default.target\nEOF\n\n# Replace SERVER, PORT, NICK, CHANNEL in the service files, then:\nsystemctl --user daemon-reload\nsystemctl --user enable --now irc-bot.service irc-watcher.service\n\nSending Messages\n# Via the management script\n~/irc/irc.sh send \"Hello, world!\"\n\n# Or write directly to the FIFO\necho \"Hello, world!\" > ~/irc/<server>/<channel>/in\n\n\nImportant: ii splits long messages at byte boundaries, which can break mid-word or mid-UTF8 character. Keep messages under ~400 characters. For longer content, split into multiple messages with brief pauses between them.\n\nReading Context\n# Last N messages (token-efficient)\ntail -n 20 ~/irc/<server>/<channel>/out\n\n# Quick status (last 5 messages)\n~/irc/irc.sh status\n\n\nNever read the entire out file — it grows indefinitely. Always use tail with a limit.\n\nHow Mention Detection Works\nwatch-daemon.sh runs tail -F on the channel's out file\nEach new line is checked (case-insensitive) for the bot's nick\nOwn messages and join/part notices are skipped\nOn match → openclaw system event --text \"IRC mention: <message>\" --mode now\nOpenClaw wakes and can respond via the in FIFO\n\nThis is event-driven — zero polling, instant response, minimal resource usage.\n\nJoining Multiple Channels\n\nii supports multiple channels on the same server. For each additional channel:\n\necho \"/j #other-channel\" > ~/irc/<server>/in\n\n\nTo watch multiple channels, either run separate watcher instances or modify watch-daemon.sh to monitor multiple out files.\n\nTroubleshooting\nNot connecting: Check ii is running (pgrep -f \"ii -s\"), verify server/port\nNot joining channel: The in FIFO must exist; check ExecStartPost timing (increase sleep if needed)\nMentions not triggering: Verify watcher is running (pgrep -f watch-daemon), check nick matches\nMessages splitting weirdly: Shorten messages; ii has a ~512 byte IRC protocol limit\nReconnection: systemd Restart=always handles this; ii exits on disconnect, systemd restarts it"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/destructatron/ii-irc",
    "publisherUrl": "https://clawhub.ai/destructatron/ii-irc",
    "owner": "destructatron",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ii-irc",
    "downloadUrl": "https://openagent3.xyz/downloads/ii-irc",
    "agentUrl": "https://openagent3.xyz/skills/ii-irc/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ii-irc/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ii-irc/agent.md"
  }
}