Skip to content
cccskills
FreePublished on GitHub

omega-cursor-cli

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.

The English summary is being prepared. Showing the original description.

Works withGemini
See how to install

Files included (22)

  • 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
  • scripts/verify-setup.mjs2.0 KB
  • templates/implementation-template.md190 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

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)

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

Specific model

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

With timeout

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

JSON output

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

Availability Check

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-PatternWhy BadCorrect Approach
Running without --yoloBlocks on tool approval promptsAlways pass --yolo
Running without --trustBlocks on workspace trust promptAlways pass --trust
Assuming auto model is availableDepends on subscription tierCheck with cursor-agent --list-models
Hardcoding cursor-agent pathPATH differs across OS/install methodsWrapper handles resolution
Ignoring WSL requirementsSome Windows installs are WSL-onlyDocument in setup instructions

Scripts

ScriptPurpose
ask-cursor.mjsCore headless wrapper -- prompt as last positional arg
parse-args.mjsArgument parser (--model, --json, --yolo, --trust, --timeout-ms)
verify-setup.mjsAvailability check (multi-path resolution)
format-output.mjsOutput normalization

Exit Codes

CodeMeaning
0Success
1Error (CLI failure, subscription issue)
124Timeout (--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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

See all skills by oimiragieo

Report a problem with this skill