微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Cursor CLI

Cursor CLI · v1.0.0
安全 unknown 级 作者 pyavchik 公开目录收录
下载 2.8k 安装 0 收藏 10.4k 浏览 1
下载 Skill

简介

Cursor CLI

原始描述

Use Cursor editor and Cursor agent for coding tasks

通过你的 Agent 添加

把这个链接发给你正在用的 Agent,让它自己下载安装:

或者手动装到对应目录

Claude Code~/.claude/skills/cursor-cli/
其它 Agent解压到它自己的 skills 目录即可

技能包里是 SKILL.md 加它附带的文件,解压后目录名就是技能名。 不同 Agent 的 skills 目录位置以各自文档为准;技能申请的权限由作者决定,装前请确认它要读什么、能执行什么。

技能正文


name: cursor-cli description: Ask Cursor CLI (Cursor's terminal agent) a question and return its answer. Use for coding help, code review, or explanations—OpenClaw runs the agent and gives you the response. metadata: {"openclaw":{"requires":{"bins":["agent"]},"emoji":"⌨️","homepage":"https://cursor.com/docs/cli/overview"}}

Cursor CLI skill

When the user wants an answer from Cursor's AI (Cursor CLI / agent), use this flow:

  1. Run Cursor CLI non-interactively via the bash tool:

    • Use the agent command with a prompt and text output.
    • From the user's workspace or a sensible project directory (e.g. ~/.openclaw/workspace or the path the user indicated), run:
    agent -p "USER_QUESTION_HERE" --output-format text
    
    • For read-only Q&A (no code edits), use Ask mode:
    agent -p "USER_QUESTION_HERE" --mode=ask --output-format text
    
    • Replace USER_QUESTION_HERE with the user's actual question, properly escaped for the shell (use single quotes around the prompt; if the prompt contains single quotes, escape them or use a here-doc).
  2. Capture and return the output: The agent prints the answer to stdout. Return that full output to the user as OpenClaw's reply (summarize only if it is extremely long and the user asked for a summary).

  3. Working directory: If the user mentioned a project or path, run agent from that directory (e.g. cd /path/to/project && agent -p "..." --output-format text). Otherwise use the default OpenClaw workspace or current context.

  4. Timeouts: Cursor CLI may take 30–120 seconds for complex questions. Do not assume failure too quickly.

  5. When to use: Prefer this skill when the user explicitly asks to "ask Cursor," "use Cursor CLI," "get Cursor's answer," or wants coding/explanation help that should come from Cursor's agent. For general chat, use OpenClaw's normal model.

Examples

  • User: "Ask Cursor CLI: how do I fix a merge conflict in git?" → Run: agent -p "how do I fix a merge conflict in git?" --mode=ask --output-format text and return the stdout.

  • User: "Run cursor agent on this: explain what recursion is in programming" → Run: agent -p "explain what recursion is in programming" --mode=ask --output-format text and return the stdout.

  • User: "Have Cursor review the code in ~/myapp for security issues" → Run: cd ~/myapp && agent -p "review the code in this project for security issues" --output-format text and return the stdout.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

没有标签

同类 Skill