Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

cursor-collab

verified

Chat with Cursor Agent via tmux for pair programming. Use when user wants to collaborate with Cursor, get second opinion, design consultation, or code review.

View on GitHub

Marketplace

dev-tools-plugin

sizukutamago/dev-tools-plugin

Plugin

dev-tools-plugin

productivity

Repository

sizukutamago/dev-tools-plugin

skills/cursor-collab/SKILL.md

Last Verified

February 5, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/sizukutamago/dev-tools-plugin/blob/main/skills/cursor-collab/SKILL.md -a claude-code --skill cursor-collab

Installation paths:

Claude
.claude/skills/cursor-collab/
Powered by add-skill CLI

Instructions

# Cursor Agent Chat

Claude Code と Cursor Agent が tmux でチャットするスキル。

## 前提条件(実行前に確認)

- **tmux セッション内**で実行すること(`tmux` コマンドが動作する環境)
- `cursor-agent` CLI がインストール済み
- Cursor Agent 認証済み

## 役割分担(重要)

| AI | 役割 | 担当タスク |
|----|------|-----------|
| **Claude Code** | 実装担当 | コード作成・編集・ファイル操作・テスト実行 |
| **Cursor Agent** | 相談役 | 設計相談・レビュー・セカンドオピニオン・質問回答 |

**Cursor Agent に実装を依頼しないこと。** Cursor Agent から設計提案やレビューを受けて、Claude Code が実装する。

## セットアップ

### Cursor Agent ペイン作成

現在のウィンドウを水平分割し、右側ペインで Cursor Agent を起動:

```bash
# 3つの Bash コマンドを順番に実行(send-keys は && で連結しないこと)
tmux split-window -h
tmux send-keys "cursor-agent"
tmux send-keys Enter
```

- `split-window -h`: 水平分割(左右に分かれる)
- 新しいペインがアクティブになるが、Claude Code は元のペインで継続
- **重要**: `tmux send-keys` は `&&` で連結せず、別々の Bash コマンドとして実行すること
  - `sleep && tmux capture-pane` のような組み合わせは OK

### ペイン番号の確認

```bash
tmux list-panes -F "#{pane_index}: #{pane_current_command}"
```

通常、Claude Code が pane 0 または 1、Cursor Agent が pane 1 または 2 になる。

**注意**: 以降の例では `:.1` を使用しているが、実際のペイン番号は `list-panes` の結果に合わせて置換すること。

## チャット

### Cursor Agent に質問

```bash
# 2つの Bash コマンドを順番に実行(&& で連結しないこと)
tmux send-keys -t :.1 "質問内容"
tmux send-keys -t :.1 Enter
```

- `-t :.1`: 現在のウィンドウのペイン 1 を指定(環境に応じて変更)
- **重要**: テキスト送信と Enter 送信は別々の Bash コマンドとして実行
- `&&` で連結すると Enter が送信されないことがある

### Cursor Agent の返信を確認(待機付き)

```bash
sleep 30 && tmux capture-pane -t :.1 -p -S -100
```

- `-S -100`: スクロールバッファから過去100行を取得
- 応答が長い場合は `sleep` の秒数を増やす(最大待機時間は下表参照)
- 処理中表示がある場合は追加で待機する

### Cursor Agent ペイン終了

```bash
tmux kill-pane -t :.1
```

## ワークフロー

1. `/cursor-collab` でペイン作成・Cursor Agent 起動
2. Cursor Agent に**相談・質問**を送信
3. 返信を確認(sleep で待機)
4. Cursor Agent の提案を受けて **Claude Code が実装**
5. 必要に応じて Cursor Agent にレビュー依頼
6. ペイン終了

## 使用例

### 設計相談 → Claude Code が実装

```
User: "Cursor Agent と認証機能について相談したい"

Claude:
1. Cursor Agent ペイン作成(3つの Bash コマンドを順番に実行)
   Bash(tmux split-window -h)
   Bash(tmux send-keys "cursor-agent")
   Bash(tmux send-keys Enter)
   Bash(sleep 5)  # Cursor Agent 起動待ち

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
4633 chars