← 返回 Skills 市场
pyavchik

Cursor CLI

作者 Aleksander Pyavchik · GitHub ↗ · v1.1.1
cross-platform ⚠ suspicious
1966
总下载
0
收藏
9
当前安装
4
版本数
在 OpenClaw 中安装
/install cursor-cli
功能描述
Use Cursor editor and Cursor agent for coding tasks
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cursor-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cursor-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug cursor-cli
版本 1.1.1
许可证
累计安装 10
当前安装数 9
历史版本数 4
常见问题

Cursor CLI 是什么?

Use Cursor editor and Cursor agent for coding tasks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1966 次。

如何安装 Cursor CLI?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cursor-cli」即可一键安装,无需额外配置。

Cursor CLI 是免费的吗?

是的,Cursor CLI 完全免费(开源免费),可自由下载、安装和使用。

Cursor CLI 支持哪些平台?

Cursor CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cursor CLI?

由 Aleksander Pyavchik(@pyavchik)开发并维护,当前版本 v1.1.1。

💬 留言讨论