← 返回 Skills 市场
Agent CLI (Cursor + Qoder)
作者
xiaohei2022
· GitHub ↗
· v3.0.0
· MIT-0
153
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-cli
功能描述
代码编辑 CLI 工具集合:Cursor CLI(agent)与 Qoder CLI(qodercli)。当用户需要修改代码、重构、Code Review、自动化代码任务时使用。
使用说明 (SKILL.md)
Agent CLI — 代码编辑工具路由
工具选择
| 工具 | 命令 | 适用场景 | 详细文档 |
|---|---|---|---|
| Cursor CLI | agent |
代码重构、Review、Debug、Git 提交信息、自动化 CI | references/cursorcli.md |
| Qoder CLI | qodercli |
交互式代码开发、MCP 集成、多任务并行(worktree)、子 Agent 调度 | references/qodercli.md |
何时使用
- 写代码 / 改代码 / 重构 → 必须用 Cursor CLI 或 Qoder CLI(禁止直接 exec 改代码)
- 启动前告知用户:「我打算用 Cursor/Qoder 来处理」
- 保持透明,让用户知道任务去向
选择逻辑
- 已有 Cursor 登录 / 项目有
.cursor/配置 → 优先 Cursor - 需要 MCP 集成 / worktree 并行 / 子 Agent → 用 Qoder
- 简单代码修改 → 两者均可,默认 Cursor
- 用户明确指定 → 按用户要求
调用方式
两个 CLI 都是 TUI 程序,在自动化场景下必须通过 tmux 提供 PTY:
tmux kill-session -t agent 2>/dev/null || true
tmux new-session -d -s agent
tmux send-keys -t agent "cd /path/to/project" Enter
sleep 1
tmux send-keys -t agent "agent '你的任务'" Enter # 或 qodercli
⚠️ 直接
agent "task"或qodercli "task"会卡死(无 TTY)
参考文档
- 详细操作手册 →
references/cursorcli.md(Cursor)、references/qodercli.md(Qoder) - 安装 / PATH / 登录入口 →
references/README.md
安全使用建议
This skill is coherent with its stated purpose: it tells the agent how to run Cursor and Qoder TUI CLIs via tmux. Before installing or running it, verify the official sources and installers (e.g., cursor.com, docs.qoder.com), avoid piping unknown curl scripts to bash unless you trust the site and can verify signatures, and be aware that running these CLIs gives them the ability to read/write project files, run shell commands, and contact network services. Check whether you need to provide API keys (CURSOR_API_KEY or Qoder credentials) and store them securely; prefer least privilege, review ~/.qoder and project-level permission settings (deny or ask for sensitive paths), avoid the '--yolo' or equivalent flags in automated runs, and consider running first in an isolated environment (container or throwaway VM) to observe behavior.
功能分析
Type: OpenClaw Skill
Name: agent-cli
Version: 3.0.0
The skill bundle provides a legitimate integration for Cursor CLI and Qoder CLI, intended for code editing and automation tasks. It includes detailed documentation on handling TUI (Terminal User Interface) constraints using tmux and provides standard installation/configuration steps for these developer tools. No evidence of data exfiltration, malicious persistence, or harmful prompt injection was found; the use of flags like --yolo or curl-to-bash installers is consistent with the documented behavior of the integrated third-party tools (cursor.com, qoder.com).
能力评估
Purpose & Capability
The name/description (CLI wrappers for Cursor and Qoder) align with the instructions: both are TUI code-agent CLIs and the SKILL.md explains when to use each. However the included reference docs mention API keys (e.g., CURSOR_API_KEY) and config files (~/.qoder/*.json) even though the skill declares no required environment variables — a mild mismatch between declared requirements and referenced usage.
Instruction Scope
The runtime instructions specifically require creating a tmux PTY and sending commands into a TUI (correct for these CLIs) and tell the agent to cd into project paths and capture pane output. This naturally permits the invoked CLIs to read/write project files, run shell commands, and access networked services (per Qoder/Cursor features). The SKILL.md asks to inform the user beforehand, but it does not enforce or document explicit permission/limits for file or network access when the CLI runs.
Install Mechanism
The skill is instruction-only (no install spec), which is low-risk itself. But the bundled reference docs recommend network installers (curl https://cursor.com/install | bash, Homebrew cask, and npx installs for Qoder MCP plugins). Those are common for CLIs but do involve downloading and executing code from the network — a moderate installation risk the user should validate (verify official URLs/signatures).
Credentials
The skill declares no required environment variables, yet the references explicitly show CURSOR_API_KEY and config files (~/.qoder/settings.json, ~/.qoder/AGENTS.md, project-level .mcp/.qoder files). That mismatch means the skill may rely on credentials/config that aren't declared to the agent platform; installing or running the CLIs could require providing secrets in env/config files. The references also mention options like a '--yolo' flag that can skip permission checks — a dangerous option if used without oversight.
Persistence & Privilege
always:false and no install spec means the skill does not request forced persistent inclusion. It does not attempt to modify other skills or system-wide agent settings in the files provided. However, the invoked CLIs themselves (Cursor/Qoder) can persist memories/config in user files (AGENTS.md, ~/.qoder/), which is expected but worth auditing.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-cli - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-cli触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.0
agent-cli 3.0.0
- 全新 SKILL.md,详细说明了 agent-cli 的使用场景、工具路由和选择逻辑
- 明确区分 Cursor CLI 与 Qoder CLI 的适用环境和命令,并给出详细功能对比表
- 增加 TUI/TTY 调用方法,强调在自动化场景下需用 tmux 保证正常运行
- 指定禁止直接 exec 改代码,所有代码编辑需通过专用 CLI 工具完成
- 参考文档路径更明确,方便快速查找相关操作手册
元数据
常见问题
Agent CLI (Cursor + Qoder) 是什么?
代码编辑 CLI 工具集合:Cursor CLI(agent)与 Qoder CLI(qodercli)。当用户需要修改代码、重构、Code Review、自动化代码任务时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 153 次。
如何安装 Agent CLI (Cursor + Qoder)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-cli」即可一键安装,无需额外配置。
Agent CLI (Cursor + Qoder) 是免费的吗?
是的,Agent CLI (Cursor + Qoder) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agent CLI (Cursor + Qoder) 支持哪些平台?
Agent CLI (Cursor + Qoder) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent CLI (Cursor + Qoder)?
由 xiaohei2022(@xiaohei2022)开发并维护,当前版本 v3.0.0。
推荐 Skills