← 返回 Skills 市场
zgq233333

cc-connect-manager

作者 zgq233333 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
346
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cc-connect-manager
功能描述
Manage cc-connect projects: add new projects to ~/.cc-connect/config.toml, set up multi-agent relay bindings, and restart cc-connect in tmux. Use when the us...
使用说明 (SKILL.md)

cc-connect Manager

Manage cc-connect projects by editing ~/.cc-connect/config.toml and restarting the service in tmux.

Config file

Path: ~/.cc-connect/config.toml

Add a project

Extract these from the user's request:

  • name: project name (derive from work_dir basename if not given, e.g. /path/to/my-appmy-app)
  • work_dir: absolute path to the project directory
  • platform: one of telegram, discord, feishu, dingtalk, slack, line, wecom, qq, qqbot
  • token: the bot token (varies by platform)
  • agent: default claudecode, or codex, cursor, gemini, qoder, opencode, iflow
  • mode: default default. For claudecode: acceptEdits/plan/bypassPermissions. For codex: suggest/auto-edit/full-auto/yolo

Run the add script:

python3 ~/.claude/skills/cc-connect-manager/scripts/add_project.py \
  --name \x3Cname> --work-dir \x3Cwork_dir> --platform \x3Cplatform> --token \x3Ctoken> \
  [--agent \x3Cagent>] [--mode \x3Cmode>] [--guild-id \x3Cid>]

Platform-specific token mapping:

  • telegram: --token = bot token from @BotFather
  • discord: --token = bot token, optionally --guild-id for instant slash commands
  • feishu: --app-id + --app-secret
  • dingtalk: --app-id + --app-secret
  • slack: --bot-token (xoxb-) + --app-token (xapp-)

After adding, read back ~/.cc-connect/config.toml and show the user the new project block for confirmation.

Multi-agent relay setup (bind)

To put multiple agents (e.g. Claude Code + Codex) in the same chat group:

Architecture

  • Each agent needs its own bot (separate token) as a separate [[projects]] entry
  • All bots join the same group/channel/server
  • After startup, use /bind in the chat to link them for relay communication

Step-by-step

  1. Add project A (e.g. claude-backend, agent=claudecode, platform=discord, token=bot-A-token)
  2. Add project B (e.g. codex-backend, agent=codex, platform=discord, token=bot-B-token)
  3. Both bots must use the same platform type and join the same group/channel
  4. Restart cc-connect
  5. Tell the user to send these commands in the chat group (not here):
    @bot-A /bind claude-backend
    @bot-A /bind codex-backend
    
    Or for any bot that supports slash commands: /bind \x3Cproject-name>
  6. After binding, agents can relay messages to each other. @bot-A sends to Claude Code, @bot-B sends to Codex

Important notes

  • /bind is a runtime chat command, not a config file setting — it cannot be automated from here
  • Binding persists in ~/.cc-connect/relay_bindings.json
  • Each bot in the group needs a unique token (you cannot reuse the same bot for two projects)

Remove a project

Read ~/.cc-connect/config.toml, find the [[projects]] block with matching name, remove it and all its sub-sections ([projects.agent], [projects.agent.options], [[projects.platforms]], [projects.platforms.options]) up to the next [[projects]] or global section. Write the file back.

Restart cc-connect

cc-connect runs in a tmux session named cc-connect. To restart:

# Kill existing cc-connect process in tmux and start fresh
tmux send-keys -t cc-connect C-c && sleep 1 && tmux send-keys -t cc-connect 'cc-connect' Enter

If the tmux session doesn't exist yet:

tmux new-session -d -s cc-connect 'cc-connect'

Always restart after adding or removing a project.

Workflow

  1. Parse the user's natural language request to extract project params
  2. Run add_project.py for each project (or manually edit for removal)
  3. Show the user the updated config block
  4. Restart cc-connect in tmux
  5. Confirm success by checking tmux output: tmux capture-pane -t cc-connect -p | tail -5
  6. If multi-agent setup, remind the user to run /bind \x3Cproject-name> for each project in the chat group
安全使用建议
This skill appears to do what it says: it edits ~/.cc-connect/config.toml and restarts cc-connect in tmux using a small Python script. Before installing/using it, consider: - Ensure python3 and tmux are available (the SKILL.md assumes both, but none are declared). - Be cautious when supplying tokens on the command line: passing secrets as --token/--bot-token shows them in process lists (ps) to other local users; prefer using a more secure mechanism or a temporary config file. - The script writes tokens into ~/.cc-connect/config.toml (expected), so protect that file's permissions and consider backing it up before changes. - The script does not escape or validate inputs; avoid using untrusted values (quotes/newlines) in names/tokens to prevent config corruption. - The SKILL.md says it will show the new project block after adding, but the script only prints an OK message — the agent must read the file to display the block. If these operational issues are acceptable (and you run the skill as the owner of the cc-connect config), the skill is coherent with its purpose. If you need stronger secrecy guarantees for tokens, avoid passing them on the command line and validate/sanitize inputs first.
功能分析
Type: OpenClaw Skill Name: cc-connect-manager Version: 1.0.1 The skill bundle manages 'cc-connect' configurations and service status, which involves high-risk operations such as handling sensitive bot tokens and executing shell commands via tmux. While the logic in scripts/add_project.py and SKILL.md is aligned with the stated purpose, the use of direct shell execution for process management and the handling of credentials in a configuration file (~/.cc-connect/config.toml) constitute risky capabilities that could be exploited if the agent does not properly sanitize user-provided inputs.
能力评估
Purpose & Capability
The skill's name/description match what it does: the SKILL.md and included script both add/remove project entries in ~/.cc-connect/config.toml and instruct restarting cc-connect in tmux. One inconsistency: the skill declares no required binaries, but the runtime instructions assume python3 (to run scripts/add_project.py) and tmux are available.
Instruction Scope
Instructions are scoped to editing the cc-connect config and controlling the cc-connect tmux session. They do instruct running a local Python script, reading/writing ~/.cc-connect/config.toml, and sending tmux commands (tmux send-keys/capture-pane). The SKILL.md promises to 'read back' and show the new project block, but the provided script only prints an OK message — the agent would need to read the file itself to display the block. No instructions ask for unrelated system data or external endpoints.
Install Mechanism
This is an instruction-only skill with a small included script and no install spec. Nothing is downloaded or executed from remote URLs and no packages are installed by the skill itself.
Credentials
The skill requires bot tokens and other platform credentials to be supplied (as CLI args) and writes them into ~/.cc-connect/config.toml—this is expected for a connector manager. However, it requests no declared environment variables while the instructions pass secrets on the command line (e.g., --token), which can expose them to other local users via process listings. The script does not sanitize or escape argument values before inserting them into the TOML block, which could allow malformed inputs to corrupt the config.
Persistence & Privilege
always: false and user-invocable: true. The skill does not request persistent privileges or modify other skills or global agent settings. It operates on a user-local config file and tmux session as described.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cc-connect-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cc-connect-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
No changes detected in this version. - No file changes or updates to functionality. - Documentation and workflow remain consistent with the previous version.
v1.0.0
Initial release of cc-connect-manager skill: - Add, remove, and manage cc-connect projects by editing `~/.cc-connect/config.toml`. - Supports multi-agent relay bindings in chat groups with runtime `/bind` commands. - Restart cc-connect service in a tmux session after configuration changes. - Handles platform- and agent-specific setup, including bot token details and modes. - Provides updated project configuration blocks for user confirmation after changes.
元数据
Slug cc-connect-manager
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

cc-connect-manager 是什么?

Manage cc-connect projects: add new projects to ~/.cc-connect/config.toml, set up multi-agent relay bindings, and restart cc-connect in tmux. Use when the us... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 346 次。

如何安装 cc-connect-manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cc-connect-manager」即可一键安装,无需额外配置。

cc-connect-manager 是免费的吗?

是的,cc-connect-manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cc-connect-manager 支持哪些平台?

cc-connect-manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cc-connect-manager?

由 zgq233333(@zgq233333)开发并维护,当前版本 v1.0.1。

💬 留言讨论