Skip to content
Back to skills

Omega Cursor Cli

ASecurity

Shell out to Cursor Agent CLI for headless IDE-aware code tasks. Supports multi-model routing (auto mode routes to Claude, Gemini, GPT). Requires Cursor Pro/Business subscription.

  • 40 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentsrustshellbashreactnodeawsapi

Works with

  • cursor
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add oimiragieo/agent-studio --skill omega-cursor-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Omega Cursor Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Omega Cursor Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oimiragieo-omega-cursor-cli/badge)](https://www.skillsdirectory.com/skills/oimiragieo-omega-cursor-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: omega-cursor-cli
description: Shell out to Cursor Agent CLI for headless IDE-aware code tasks. Supports multi-model routing (auto mode routes to Claude, Gemini, GPT). Requires Cursor Pro/Business subscription.
version: 1.0.0
model: sonnet
invoked_by: both
user_invocable: true
tools: [Bash, Read]
args: '"PROMPT" [--model MODEL] [--json] [--yolo] [--trust] [--timeout-ms N]'
best_practices:
  - Always run verify-setup.mjs before first invocation
  - Cursor subscription is required -- most restrictive availability of all omega tools
  - Use --yolo for non-interactive headless mode (auto-approves all tool calls)
  - Use --trust for workspace trust without prompting
  - Use auto model for Cursor's intelligent model routing
error_handling: graceful
streaming: not_supported
verified: true
lastVerifiedAt: 2026-02-24T04:26:35.324Z
source: builtin
trust_score: 100
provenance_sha: b58306e870296cba
---

# Cursor CLI Skill

<identity>
Headless wrapper for Cursor Agent CLI. Passes prompt as last positional arg
to `cursor-agent --print --output-format text`. Multi-model routing via --model auto.
Requires paid Cursor subscription.
</identity>

<capabilities>
- Headless Cursor Agent CLI invocation with positional prompt
- Multi-model routing (auto, claude-4.6-opus, gemini-3.1-pro, gpt-5.3-codex, etc.)
- JSON output mode
- YOLO mode (auto-approve all tool calls for non-interactive use)
- Trust mode (skip workspace trust prompts)
- MCP approval mode (--approve-mcps)
- Wrapper-level timeout with exit code 124
- Complex Windows PATH resolution (agent, cursor-agent, %LOCALAPPDATA%, npx fallback)
- Availability verification
</capabilities>

## Usage

### Ask a question (auto model selection)

```bash
node .claude/skills/omega-cursor-cli/scripts/ask-cursor.mjs "How should I structure this React component?" --yolo --trust
```

### Specific model

```bash
node .claude/skills/omega-cursor-cli/scripts/ask-cursor.mjs "Review this API design" --model claude-4.6-opus --yolo --trust
```

### With timeout

```bash
node .claude/skills/omega-cursor-cli/scripts/ask-cursor.mjs "Refactor authentication" --yolo --trust --timeout-ms 180000
```

### JSON output

```bash
node .claude/skills/omega-cursor-cli/scripts/ask-cursor.mjs "Generate types" --json --yolo --trust
```

## Availability Check

```bash
node .claude/skills/omega-cursor-cli/scripts/verify-setup.mjs
# Exit 0 = available (CLI found)
# Exit 1 = not available
```

## When to Use

- Multi-model perspective via Cursor's auto routing
- IDE-aware code generation (Cursor has workspace context)
- When a non-Claude, non-OpenAI perspective is desired
- Tasks where Cursor's composer models excel

## Iron Laws

1. ALWAYS use --yolo --trust for headless mode (otherwise blocks on approval prompts)
2. NEVER assume CLI is available -- most restrictive subscription requirement
3. ALWAYS include --timeout-ms for production usage
4. NEVER attempt to detect subscription status programmatically (not possible)
5. ALWAYS handle WSL issues on Windows (some configurations require WSL)

## Anti-Patterns

| Anti-Pattern                     | Why Bad                                | Correct Approach                      |
| -------------------------------- | -------------------------------------- | ------------------------------------- |
| Running without --yolo           | Blocks on tool approval prompts        | Always pass --yolo                    |
| Running without --trust          | Blocks on workspace trust prompt       | Always pass --trust                   |
| Assuming auto model is available | Depends on subscription tier           | Check with cursor-agent --list-models |
| Hardcoding cursor-agent path     | PATH differs across OS/install methods | Wrapper handles resolution            |
| Ignoring WSL requirements        | Some Windows installs are WSL-only     | Document in setup instructions        |

## Scripts

| Script              | Purpose                                                          |
| ------------------- | ---------------------------------------------------------------- |
| `ask-cursor.mjs`    | Core headless wrapper -- prompt as last positional arg           |
| `parse-args.mjs`    | Argument parser (--model, --json, --yolo, --trust, --timeout-ms) |
| `verify-setup.mjs`  | Availability check (multi-path resolution)                       |
| `format-output.mjs` | Output normalization                                             |

## Exit Codes

| Code | Meaning                                 |
| ---- | --------------------------------------- |
| 0    | Success                                 |
| 1    | Error (CLI failure, subscription issue) |
| 124  | Timeout (--timeout-ms exceeded)         |

## Integration Notes

- **Subscription:** Cursor Pro or Business required for agent/headless mode
- **Stdin limit:** `ASK_CURSOR_MAX_STDIN_BYTES` env var (default 50MB)
- **Available models:** claude-4.6-opus, claude-4.6-sonnet, composer-1.5, gemini-3.1-pro, gpt-5.3-codex, auto
- **Platform:** Partial cross-platform (WSL issues on some Windows configurations)
- **PATH resolution order:** agent -> cursor-agent -> %LOCALAPPDATA%\cursor-agent\cursor-agent.cmd -> npx @cursor/agent

## Memory Protocol

Before work: Read `.claude/context/memory/learnings.md`
After work: Append findings to learnings or issues as needed.

_Note: Use `pnpm search:code` to discover references to this skill codebase-wide._

Files in this skill

  • SKILL.md5.3 KB
  • commands/omega-cursor-cli.md116 B
  • hooks/post-execute.cjs310 B
  • hooks/pre-execute.cjs427 B
  • references/antigravity.md194 B
  • references/auth.md220 B
  • references/copilot-cli.md221 B
  • references/copy-and-run.md330 B
  • references/cursor-agent.md311 B
  • references/cursor.md234 B
  • references/headless.md504 B
  • references/installation.md264 B
  • references/research-requirements.md462 B
  • references/vscode.md104 B
  • rules/omega-cursor-cli.md629 B
  • schemas/input.schema.json650 B
  • schemas/output.schema.json260 B
  • scripts/ask-cursor.mjs9.6 KB
  • scripts/main.cjs1.2 KB
  • scripts/parse-args.mjs2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…