LaunchKit · 2026
Back to Skills

cursor-cli

Use Cursor editor and Cursor agent for coding tasks.

0
1.4k downloads
by @pyavchik

Setup & Installation

openclaw skills install @pyavchik/cursor-cli

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install cursor-cli

Version History

v1.1.1Feb 20, 2026 - Version note by skill developer:

Added • Initial release of cursor-cli skill for OpenClaw • Support for Cursor editor and Cursor Agent integration • Documentation for main commands: cursor, cursor-agent Commands • cursor --goto file:line — open file at specific line • cursor-agent -p "question" — ask AI coding assistant • cursor --diff file1 file2 — compare two files Notes • Requires Cursor editor installed on system • Works best with Cursor Pro for full AI capabilities

What This Skill Does

Provides command-line access to the Cursor editor and its AI coding assistant. Opens files at specific lines, runs side-by-side diffs, and queries the Cursor agent for code explanations or reviews from the terminal.

Lets you invoke Cursor's AI assistant from the command line or scripts without manually navigating the GUI.

When to use it

  • Open a source file at the exact line where a bug was reported
  • Ask the AI assistant to explain an unfamiliar function
  • Request a code review on a specific block before committing
  • Compare two versions of a file with a visual diff
  • Invoke the AI coding assistant from a script or automation

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Review this function for potential bugs

AGENT
  1. 1Run cursor-agent with the review prompt and text output format
  2. 2Agent analyzes the provided code context
  3. 3Wait for the response (30-120 seconds for complex tasks)
  4. 4Receive plain text output with findings
OUTPUT

A list of potential bugs or issues found in the function

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Cursor editor installed (provides the cursor binary)cursor-agent binary installedCursor Pro subscription for full AI capabilities