cursor-cli
Installation
SKILL.md
Cursor CLI (Headless)
Delegate work to a Cursor agent from the shell without the IDE chat. Use when the user wants another agent to call, ask, invoke, or run Cursor on a task.
Global script: ~/.agents/skills/cursor-cli/scripts/cursor-agent.mjs
Optional launcher: cursor-agent
Requires agent on PATH. Local dev: agent login once. CI/servers: CURSOR_API_KEY.
When to use
| Situation | Use this |
|---|---|
| User says "call cursor", "ask cursor", "invoke cursor", etc. | cursor-agent "…" |
| Already inside Cursor IDE chat | Task tool — not CLI |
| Long-lived typed service | @cursor/sdk |