cursor-cli

TotalClaw 作者 totalclaw

使用 Cursor 编辑器和 Cursor 代理进行编码任务

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~pyavchik-cursor-cli
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~pyavchik-cursor-cli/file -o pyavchik-cursor-cli.md
# Cursor CLI skill

Use this skill for coding tasks with Cursor editor.

## Commands

### 1. Open file in Cursor
```bash
cursor --goto file.py:line
```

### 2. Use Cursor Agent (AI coding assistant)
```bash
cursor-agent -p "your question" --mode=ask --output-format text
```

### 3. Open diff between files
```bash
cursor --diff file1.py file2.py
```

## Examples

**Open file at specific line:**
```
cursor --goto conftest.py:180
```

**Ask Cursor AI:**
```
cursor-agent -p "Explain what recursion is" --mode=ask --output-format text
```

**Review code:**
```
cursor-agent -p "Review this code for bugs" --output-format text
```

## Notes

- Run from the project directory when possible
- Cursor agent may take 30-120 seconds for complex tasks
- Works best with Cursor Pro for full AI capabilities

---

## 中文说明

# Cursor CLI skill

使用本技能配合 Cursor 编辑器完成编码任务。

## 命令

### 1. 在 Cursor 中打开文件
```bash
cursor --goto file.py:line
```

### 2. 使用 Cursor Agent(AI 编码助手)
```bash
cursor-agent -p "your question" --mode=ask --output-format text
```

### 3. 打开文件之间的差异对比
```bash
cursor --diff file1.py file2.py
```

## 示例

**在指定行打开文件:**
```
cursor --goto conftest.py:180
```

**向 Cursor AI 提问:**
```
cursor-agent -p "Explain what recursion is" --mode=ask --output-format text
```

**审查代码:**
```
cursor-agent -p "Review this code for bugs" --output-format text
```

## 说明

- 尽可能在项目目录下运行
- 对于复杂任务,Cursor 代理可能需要 30-120 秒
- 配合 Cursor Pro 使用可获得完整的 AI 能力