Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

iii-channels三通道

Agent Skill

iii-channels 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,668

周安装

109

GitHub Stars

6

下载量

855
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:iii-channels(三通道)
来源仓库:https://github.com/iii-hq/skills
仓库路径:skills/iii-channels
安装命令:
npx skills add https://github.com/iii-hq/skills --skill iii-channels
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/iii-hq/skills --skill iii-channels

简介

iii-channels 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中整理协作事项时使用。

  • 适用于围绕仓库状态、代码变更或协作事项进行信息整理。
  • 支持 GitHub 仓库、Issue、PR 及代码协作信息管理。
  • 安装前建议确认权限范围、维护状态及是否触发联网或命令执行。
  • 可结合来源仓库和原始 README 进一步核验具体用法。

SKILL.md

Channels

Comparable to: Unix pipes, gRPC streaming, WebSocket data streams

Key Concepts

Use the concepts below when they fit the task. Not every worker needs channels.

  • A Channel is a WebSocket-backed binary stream between two endpoints (writer and reader)
  • createChannel() returns a writer/reader pair plus serializable refs that can be passed to other workers
  • StreamChannelRef is a serializable reference (channel_id, access_key, direction) that can be included in function payloads
  • Writers send binary data (chunked into 64KB frames) and text messages
  • Readers consume binary chunks via readAll() or receive text messages via callbacks
  • Consumers must construct a reader from a serializable StreamChannelRef (e.g., ChannelReader::new(...)) rather than using the producer-side reader object returned by createChannel()
  • Channels work cross-worker and cross-language — a Python writer can stream to a Rust reader

Architecture

A function creates a channel via createChannel(), receiving a writer and reader pair. The writer ref or reader ref is passed to another function (potentially in a different worker/language) via a trigger payload. The engine brokers the WebSocket connection between the two endpoints. Binary data flows directly between workers through the engine's channel endpoint.

iii Primitives Used

PrimitivePurpose
createChannel(bufferSize?)Create a channel, returns writer + reader pair
ChannelWriter.write(data)Send binary data (chunked into 64KB frames)
ChannelWriter.sendMessage(msg)Send a text message through the channel
ChannelWriter.close()Close the writer end
ChannelReader.readAll()Read entire stream into a single buffer
ChannelReader.onMessage(callback)Register callback for text messages
StreamChannelRefSerializable reference to pass between workers

Reference Implementation

Each reference shows the same patterns (channel creation, binary streaming, text messages, cross-function handoff) in its respective language.

Common Patterns

Code using this pattern commonly includes, when relevant:

  • const channel = await iii.createChannel() — create a channel pair (producer access)
  • channel.writer.stream.write(buffer) / channel.writer.write(data) — send binary data
  • channel.writer.sendMessage(JSON.stringify({type: 'metadata',...})) — send text metadata
  • channel.writer.close() — signal end of stream
  • Pass channel.readerRef or channel.writerRef in trigger payloads for cross-worker streaming
  • Consumer must reconstruct the reader from the ref: e.g., new ChannelReader(iii.address, readerRef)
  • const data = await reader.readAll() — read entire stream (consumer behavior)
  • reader.onMessage(msg => {...}) — handle text messages (consumer behavior)

Adapting This Pattern

Use the adaptations below when they apply to the task.

  • Use channels for large data transfers that shouldn't be serialized into JSON payloads
  • Pass readerRef to a processing function and writerRef to a producing function for pipeline patterns
  • Use text messages for metadata/signaling alongside binary data streams
  • Set bufferSize when the reader may be slower than the writer to apply backpressure
  • Channels work cross-language — a TypeScript producer can stream to a Rust consumer

Pattern Boundaries

  • For key-value state persistence, prefer iii-state-management.
  • For stream CRUD (named streams with groups/keys), prefer iii-realtime-streams.
  • For pub/sub messaging, prefer triggers with subscribe type.
  • Stay with iii-channels when the primary problem is binary data streaming between workers.

When to Use

  • Use this skill when the task is primarily about iii-channels in the iii engine.
  • Triggers when the request directly asks for this pattern or an equivalent implementation.

Boundaries

  • Never use this skill as a generic fallback for unrelated tasks.
  • You must not apply this skill when a more specific iii skill is a better fit.
  • Always verify environment and safety constraints before applying examples from this skill.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

33.65%
按下载量换算288

Codex

33.43%
按下载量换算286

Cursor

18.3%
按下载量换算156

Gemini CLI

8.73%
按下载量换算75

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills