简介
Cursor CLI
原始描述
Use Cursor editor and Cursor agent for coding tasks
通过你的 Agent 添加
把这个链接发给你正在用的 Agent,让它自己下载安装:
https://v110.com/skill/cursor-cli.zip
或者手动装到对应目录
技能包里是 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:
-
Run Cursor CLI non-interactively via the
bashtool:- Use the
agentcommand with a prompt and text output. - From the user's workspace or a sensible project directory (e.g.
~/.openclaw/workspaceor 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_HEREwith 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).
- Use the
-
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).
-
Working directory: If the user mentioned a project or path, run
agentfrom that directory (e.g.cd /path/to/project && agent -p "..." --output-format text). Otherwise use the default OpenClaw workspace or current context. -
Timeouts: Cursor CLI may take 30–120 seconds for complex questions. Do not assume failure too quickly.
-
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 textand 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 textand 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 textand return the stdout.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: