关于 call-cursor-agent
call-cursor-agent 是一项将任务描述提交给 cursor-agent 命令行工具的技能。它会先检查该命令是否已安装,未指定模型时使用 composer-1。
主要功能
- 01检查 cursor-agent 是否已安装
- 02通过命令行提交任务
- 03使用 --model 指定模型
- 04未指定时默认使用 composer-1
适用场景
- 01检查 cursor-agent 是否可用
- 02将任务委派给 cursor-agent
- 03为任务选择模型
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ dotneet/ claude-code-marketplace --skill call-cursor-agent安装后在 Claude Code 中输入/call-cursor-agent确认已加载。
详细介绍
调用 cursor-agent 执行任务
此技能会向 cursor-agent 请求执行一项任务。
检查 cursor-agent 是否存在
# Check if cursor-agent is installed. Exit code 0 means success, 1 means failure.
# If not installed, skip the subsequent steps of the skill.
which cursor-agent
if [ $? -ne 0 ]; then
echo "cursor-agent is not installed"
fi
向 cursor-agent 请求任务
# If the model is not specified, the default model is composer-1.
model=composer-1
cursor-agent --model=$model <<EOT
{task_description}
EOT
评论
支持 Markdown