openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > cc

Short slash command wrapper for Claude relay sessions. Use when the user wants concise /cc commands like /cc projects, /cc on <project>, /cc tail, /cc off, o...

通信与消息

作者:Ethan Wang @artwalker

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.1.0

统计:⭐ 0 · 391 · 2 current installs · 2 all-time installs

0

安装量(当前) 2

🛡 VirusTotal :可疑 · OpenClaw :良性

Package:artwalker/cc

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :良性

OpenClaw 评估

This skill is an internally consistent wrapper around an existing claude-relay skill that lists projects and forwards messages to Claude Code; it doesn't request unrelated credentials or perform hidden network installs, but it will forward all user messages to the external Claude Code relay and can approve edits silently so you should only install it if you trust the relay and the relay skill's scripts.

目的

Name/description (short /cc wrapper for Claude relay) matches the implementation: the shell script routes commands and delegates to claude-relay's relay.sh. Required binaries and the claude-relay dependency are reasonable for this purpose.

说明范围

SKILL.md explicitly requires forwarding ALL user messages to Claude Code in relay mode and instructs 'silent approvals' for file edits/git operations (send keys via tmux). That behavior is coherent with a relay but has privacy/safety implications because it can cause automated approvals and transmit arbitrary user content to the external Claude Code service.

安装机制

No install/download step is present (instruction-only + included script). The bundled shell script is simple and invokes local binaries; there are no network downloads or extracted archives written by the skill itself.

证书

No secrets or unrelated environment variables are required. The script uses optional envs (CLAUDE_RELAY_DIR, CLAUDE_RELAY_ROOT, CLAUDE_RELAY_MAP, OPENCLAW_STATE_DIR/XDG_STATE_HOME) to locate relay scripts and project paths — these are proportional to discovering projects and the relay implementation.

持久

always is false and the skill does not request permanent system-wide presence or modify other skills. It invokes an existing claude-relay script and operates within that skill's scope.

综合结论

This skill legitimately wraps an installed claude-relay implementation and mostly acts as a command router. Before installing, make sure you trust the claude-relay skill and the Claude Code service because: (1) in relay mode every user message (including potentially sensitive data) is forwarded unchanged to Claude Code, and (2) the instructions permit 'silent approvals' that can cause the relay to send keystrokes and approve file edits or git …

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「cc」。简介:Short slash command wrapper for Claude relay sessions. Use when the user wants …。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/artwalker/cc/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: cc
description: Short slash command wrapper for Claude relay sessions. Use when the user wants concise /cc commands like /cc projects, /cc on <project>, /cc tail, /cc off, or /cc <message> to continue talking to Claude Code in the current project session.
metadata: {"openclaw":{"emoji":"⚡","requires":{"bins":["tmux","claude"],"skills":["claude-relay"]}}}
---

# cc

Short operator commands for Claude Code relay sessions.

**Requires**: `claude-relay` skill must be installed.

## Script

All commands execute via:

```bash
{baseDir}/scripts/cc.sh <raw-args>
```

## Command routing

Parse user input and route:

- `projects` / `list` → list available projects from map + project root
- `on <project>` / `start <project>` → start or reuse Claude session (fuzzy match)
- `off [project]` / `stop [project]` → stop session (default: last project)
- `tail [project] [lines]` → show recent output (default: 120 lines)
- `status` → list active relay sessions
- `/cc` (no args) → show inline button menu (if platform supports)
- `/cc on` (no project) → show project picker buttons
- Any other text → **relay mode send** (see below)

For the "any other text" case: if the first token resolves to an active project session, treat it as explicit project target and use remaining text as the message.

## Relay mode

After `on <project>`, enter relay mode. **This is the critical behavior contract**:

1. **ALL user messages are forwarded to Claude Code** — no exceptions. Do NOT interpret, answer, or act on the message yourself. You are a transparent pipe.
2. Forward via `scripts/cc.sh send` → wait for output → return final result only.
3. The ONLY messages NOT forwarded are cc commands themselves: `off`, `tail`, `status`, `projects`, `/cc`.
4. Relay mode ends on `off`, `stop`, or `/cc` menu invocation.

Example:
```
[relay mode active, project=marvis]
User: "帮我查一下这个 bug 的原因"
→ cc.sh send marvis "帮我查一下这个 bug 的原因"
→ wait for Claude Code output
→ return result to user
WRONG: answering the question yourself
```

For button specs, output formatting, approval handling, and callback routing, see [relay-mode.md](references/relay-mode.md).

## Key principles

- **Never self-answer in relay mode**: forward everything, return only Claude Code's output.
- **Final result only**: one message per interaction, no progress updates.
- **Choices → buttons**: numbered menus in Claude Code output become inline buttons.
- **Tool call discipline**: button/menu messages = tool call + `NO_REPLY`, no surrounding text.

## Environment variables

| Variable | Default | Description |
|----------|---------|-------------|
| `CLAUDE_RELAY_DIR` | (auto-detected) | Path to claude-relay skill directory |
| `CLAUDE_RELAY_ROOT` | `$HOME/projects` | Root directory for project discovery |
| `CLAUDE_RELAY_MAP` | `<relay-skill-dir>/projects.map` | Path to project alias map file |