# Call Cursor Agent

> Call cursor-agent to perform a task.

- Skill: `dotneet/call-cursor-agent` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dotneet/call-cursor-agent`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dotneet/call-cursor-agent/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: dotneet (https://skillmd.com/u/dotneet)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/dotneet/call-cursor-agent

---


# Call cursor-agent to perform a task

This skill requests a task to cursor-agent.

## Checking for the Existence of cursor-agent

```bash
# 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

```bash
# If the model is not specified, the default model is composer-1.
model=composer-1
cursor-agent --model=$model <<EOT
{task_description}
EOT
```

