跳到正文
TakoAPI
返回技能列表

cursor-cli

由 pyavchik 提供

Coding Agents & IDEs
1.4k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Use Cursor editor and Cursor agent for coding tasks.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

User asks: Review this function for potential bugs

智能体
  1. 1

    Run cursor-agent with the review prompt and text output format

  2. 2

    Agent analyzes the provided code context

  3. 3

    Wait for the response (30-120 seconds for complex tasks)

  4. 4

    Receive plain text output with findings

输出

A list of potential bugs or issues found in the function

前置要求

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

安装

clawhub install pyavchik/cursor-cli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接