call-cursor-agent
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCall cursor-agent to perform a task
调用cursor-agent执行任务
This skill requests a task to cursor-agent.
本技能用于向cursor-agent请求执行任务。
Checking for the Existence of cursor-agent
检查cursor-agent是否存在
bash
undefinedbash
undefinedCheck if cursor-agent is installed. Exit code 0 means success, 1 means failure.
Check if cursor-agent is installed. Exit code 0 means success, 1 means failure.
If not installed, skip the subsequent steps of the skill.
If not installed, skip the subsequent steps of the skill.
which cursor-agent
if [ $? -ne 0 ]; then
echo "cursor-agent is not installed"
fi
undefinedwhich cursor-agent
if [ $? -ne 0 ]; then
echo "cursor-agent is not installed"
fi
undefinedRequesting a Task to cursor-agent
向cursor-agent请求任务
bash
undefinedbash
undefinedIf the model is not specified, the default model is composer-1.
If the model is not specified, the default model is composer-1.
model=composer-1
cursor-agent --model=$model <<EOT
{task_description}
EOT
undefinedmodel=composer-1
cursor-agent --model=$model <<EOT
{task_description}
EOT
undefined