Installation

clawhub install pyavchik/cursor-cli

Summary

Use this skill for coding tasks with Cursor editor.

SKILL.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:

text
cursor --goto conftest.py:180

Ask Cursor AI:

text
cursor-agent -p "Explain what recursion is" --mode=ask --output-format text

Review code:

text
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

Recommended skills

Browse all →

Related guides

Hand-picked reading to help you choose, install, and use agent skills.