搜索

PythonReactSEOPDF
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, or /cc <message> to continue talking to Claude Code in the current project session.

artwalker0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install artwalker/cc

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

cc

Short operator commands for Claude Code relay sessions.

Requires: claude-relay skill must be installed.

Script

All commands execute via:

{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.

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 → but...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/artwalker/cc
Version
—
Commit
61a16c355e7f0d732920e3d1f81bdcf4921f1b23
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 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 → but...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.