Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cursor Plugin for Claude Code

将 Cursor Agent 集成到 Claude Code 中,实现任务委派和代码审查。

功能

  • /cursor-task - 将编码任务委派给 Cursor Agent 执行
  • /cursor-review - 使用 Cursor Agent 进行代码审查
  • /cursor-adversarial-review - 对抗性代码审查(以怀疑者视角)
  • /cursor-setup - 检查 Cursor Agent CLI 状态

前置要求

  1. Cursor.app - 需要安装 macOS 版 Cursor
  2. Cursor Agent CLI - 从 Cursor.app 内部启用
  3. Node.js - 用于运行 companion 脚本

安装

方式一:一键安装(推荐)

git clone https://github.com/CovD831/Cursor-plugin-cc.git
cd Cursor-plugin-cc
chmod +x install.sh
./install.sh

方式二:手动安装

# 克隆仓库
git clone https://github.com/CovD831/Cursor-plugin-cc.git
cd Cursor-plugin-cc

# 复制 skills 到 Claude Code
cp -r skills/cursor-task ~/.claude/skills/
cp -r skills/cursor-review ~/.claude/skills/
cp -r skills/cursor-setup ~/.claude/skills/
cp -r skills/cursor-adversarial-review ~/.claude/skills/

# 复制 scripts
mkdir -p ~/.claude/plugins/cursor/scripts
cp -r scripts/* ~/.claude/plugins/cursor/scripts/

配置

安装完成后,需要配置 CLAUDE.md 文件,添加以下内容:

## Cursor 集成

- 使用 `/cursor-task` 委派任务给 Cursor Agent
- 使用 `/cursor-review` 进行代码审查
- Cursor 脚本路径: `~/.claude/plugins/cursor/scripts/cursor-companion.mjs`

使用方法

委派任务

/cursor-task 在当前目录创建一个 Python HTTP 服务器
/cursor-task --model gpt-5.3-codex 重构 src/utils.ts 中的工具函数

代码审查

/cursor-review
/cursor-review --scope working-tree
/cursor-review --scope branch --base main

对抗性审查

/cursor-adversarial-review
/cursor-adversarial-review --scope branch --base main 关注安全漏洞

目录结构

cursor-plugin-cc/
├── README.md
├── install.sh
├── skills/
│   ├── cursor-task/SKILL.md
│   ├── cursor-review/SKILL.md
│   ├── cursor-setup/SKILL.md
│   └── cursor-adversarial-review/SKILL.md
└── scripts/
    ├── cursor-companion.mjs
    └── lib/
        ├── args.mjs
        ├── cursor.mjs
        ├── process.mjs
        └── workspace.mjs

故障排除

命令未找到

确保 skills 文件已正确复制到 ~/.claude/skills/ 目录:

ls ~/.claude/skills/cursor-*/

Cursor Agent 不可用

  1. 确保已安装 Cursor.app
  2. 在 Cursor 中启用 Agent CLI
  3. 运行 /cursor-setup 检查状态

许可证

MIT License

About

鉴于cursor更新了3.0,并且还有很多无限续杯,所以参考Codex-plugin-cc制作了这个cc小插件

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages