call-cursor-agent

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Call 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
undefined
bash
undefined

Check 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
undefined
which cursor-agent if [ $? -ne 0 ]; then echo "cursor-agent is not installed" fi
undefined

Requesting a Task to cursor-agent

向cursor-agent请求任务

bash
undefined
bash
undefined

If 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
undefined
model=composer-1 cursor-agent --model=$model <<EOT {task_description} EOT
undefined