← Back to Skills Marketplace
Cursor CLI
by
Aleksander Pyavchik
· GitHub ↗
· v1.1.1
1966
Downloads
0
Stars
9
Active Installs
4
Versions
Install in OpenClaw
/install cursor-cli
Description
Use Cursor editor and Cursor agent for coding tasks
README (SKILL.md)
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
Usage Guidance
This skill is a documentation/instruction-only wrapper for the Cursor CLI and Cursor Agent; it does not install software or request secrets. Before installing or using it, make sure you actually have the official cursor and cursor-agent binaries from Cursor (verify download source/signature) and understand that using cursor-agent will send prompts and likely code snippets to Cursor's service (privacy/third-party transmission). If you don't want any code or context sent to external services, do not invoke cursor-agent. Also confirm the metadata/homepage (https://cursor.com/docs/cli/overview) matches the official project to avoid running a similarly named but untrusted binary.
Capability Analysis
Type: OpenClaw Skill
Name: cursor-cli
Version: 1.1.1
The skill defines commands in SKILL.md that execute external binaries (`cursor`, `cursor-agent`) with user-provided arguments. While the stated purpose is benign (interacting with the Cursor editor and AI agent), the direct interpolation of user input into shell commands (e.g., `file.py:line`, `your question`) creates a significant shell injection vulnerability (RCE risk) if the OpenClaw agent does not perform robust input sanitization. This is a risky capability without clear malicious intent, thus classified as suspicious.
Capability Assessment
Purpose & Capability
Name/description request the cursor and cursor-agent CLIs and the SKILL.md only references those binaries — the declared requirements match the stated purpose.
Instruction Scope
Runtime instructions only show example cursor and cursor-agent commands, suggest running from the project directory, and do not ask the agent to read unrelated files, env vars, or contact unexpected endpoints.
Install Mechanism
No install spec is present (instruction-only). Nothing will be written to disk by the skill itself; it assumes the user already has the cursor/cursor-agent binaries.
Credentials
The skill requests no environment variables, credentials, or config paths — appropriate for a CLI usage guide that simply invokes local tools.
Persistence & Privilege
always is false and the skill does not request persistent privileges or modify other skills or system settings; autonomous invocation is allowed by default but is not elevated here.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cursor-cli - After installation, invoke the skill by name or use
/cursor-cli - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.1
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
v1.1.0
Updated to work with --trust flag and fixed usage examples
v1.0.1
Updated to use cursor-agent command
v1.0.0
Version 1.0.0
- Initial release providing integration with Cursor CLI (Cursor's terminal AI agent).
- Allows users to ask coding questions, request code reviews, or get explanations using the agent command.
- Supports running the agent from a specific workspace or user-specified project directory.
- Handles Q&A in both normal and Ask mode, with text-formatted output.
- Includes usage guidance, example prompts, and best practices for when to use this skill.
Metadata
Frequently Asked Questions
What is Cursor CLI?
Use Cursor editor and Cursor agent for coding tasks. It is an AI Agent Skill for Claude Code / OpenClaw, with 1966 downloads so far.
How do I install Cursor CLI?
Run "/install cursor-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Cursor CLI free?
Yes, Cursor CLI is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Cursor CLI support?
Cursor CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Cursor CLI?
It is built and maintained by Aleksander Pyavchik (@pyavchik); the current version is v1.1.1.
More Skills