About call-cursor-agent
call-cursor-agent is a skill that submits a described task to the cursor-agent command-line tool. It checks whether the command is installed and uses composer-1 when no model is specified.
Key features
- 01Check for cursor-agent installation
- 02Submit tasks through the command line
- 03Set a model with --model
- 04Default to composer-1 when unspecified
Use cases
- 01Checking whether cursor-agent is available
- 02Delegating a task to cursor-agent
- 03Choosing a model for a task
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dotneet/ claude-code-marketplace --skill call-cursor-agentAfter installing, type/call-cursor-agentin Claude Code to confirm it loaded.
Details
From the project READMECall cursor-agent to perform a task
This skill requests a task to cursor-agent.
Checking for the Existence of 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
Requesting a Task to 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
Comments
Markdown supported