跳至主要内容
小龙虾小龙虾AI
🤖

Cursor CLI

Use Cursor editor and Cursor agent for coding tasks

下载1.0k
星标0
版本1.1.1
开发工具
安全通过
💬Prompt

技能说明


name: cursor-cli description: Use Cursor editor and Cursor agent for coding tasks metadata: {"openclaw":{"requires":{"bins":["cursor","cursor-agent"]},"emoji":"⌨️","homepage":"https://cursor.com/docs/cli/overview"}}

Cursor CLI skill

Use this skill for coding tasks with Cursor editor.

Commands

1. Open file in Cursor

cursor --goto file.py:line

2. Use Cursor Agent (AI coding assistant)

cursor-agent -p "your question" --mode=ask --output-format text

3. Open diff between files

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」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Cursor CLI」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能