← Back to Skills Marketplace
xiaohei2022

Agent CLI (Cursor + Qoder)

by xiaohei2022 · GitHub ↗ · v3.0.0 · MIT-0
cross-platform ⚠ suspicious
153
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install agent-cli
Description
代码编辑 CLI 工具集合:Cursor CLI(agent)与 Qoder CLI(qodercli)。当用户需要修改代码、重构、Code Review、自动化代码任务时使用。
README (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 来处理」
  • 保持透明,让用户知道任务去向

选择逻辑

  1. 已有 Cursor 登录 / 项目有 .cursor/ 配置 → 优先 Cursor
  2. 需要 MCP 集成 / worktree 并行 / 子 Agent → 用 Qoder
  3. 简单代码修改 → 两者均可,默认 Cursor
  4. 用户明确指定 → 按用户要求

调用方式

两个 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
Usage Guidance
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.
Capability Analysis
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).
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-cli
  3. After installation, invoke the skill by name or use /agent-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.0.0
agent-cli 3.0.0 - 全新 SKILL.md,详细说明了 agent-cli 的使用场景、工具路由和选择逻辑 - 明确区分 Cursor CLI 与 Qoder CLI 的适用环境和命令,并给出详细功能对比表 - 增加 TUI/TTY 调用方法,强调在自动化场景下需用 tmux 保证正常运行 - 指定禁止直接 exec 改代码,所有代码编辑需通过专用 CLI 工具完成 - 参考文档路径更明确,方便快速查找相关操作手册
Metadata
Slug agent-cli
Version 3.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Agent CLI (Cursor + Qoder)?

代码编辑 CLI 工具集合:Cursor CLI(agent)与 Qoder CLI(qodercli)。当用户需要修改代码、重构、Code Review、自动化代码任务时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 153 downloads so far.

How do I install Agent CLI (Cursor + Qoder)?

Run "/install agent-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agent CLI (Cursor + Qoder) free?

Yes, Agent CLI (Cursor + Qoder) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Agent CLI (Cursor + Qoder) support?

Agent CLI (Cursor + Qoder) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agent CLI (Cursor + Qoder)?

It is built and maintained by xiaohei2022 (@xiaohei2022); the current version is v3.0.0.

💬 Comments