AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL unreviewed MIT Self-run

Cursor Cli

skill-ottili-one-skills-cursor-cli · by Ottili-ONE

Use when automating or invoking Cursor CLI (agent/cursor-agent) for non-interactive tasks, CI pipelines, or multi-agent delegation.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-ottili-one-skills-cursor-cli

Open-source listing, not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures
  • high Pipes remote content directly into a shell (remote code execution).

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Reliability & compatibility

Not yet reviewed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Cursor Cli? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Cursor CLI Agent Skill

Guide for Cursor CLI (agent / cursor-agent) including installation, authentication, non-interactive mode, and automation patterns.

Installation

Standard (macOS, Linux, Windows WSL)

curl https://cursor.com/install -fsS | bash

Homebrew (macOS)

brew install --cask cursor-cli

After installation

Add to PATH if needed:

export PATH="$HOME/.local/bin:$PATH"

Verify:

agent --version
# or
cursor-agent --version

Authentication

Browser login:

agent login

Or API key:

export CURSOR_API_KEY=your_api_key_here

Update

agent update
# or
agent upgrade

Commands

Interactive

agent
agent "Add error handling to this API"

Backward compatible: cursor-agent works the same way.

Model selection

agent models
agent --model gpt-5

During session: /models

Sessions

  • List: agent ls
  • Resume last: agent resume
  • Specific: agent --resume="[chat-id]"

Context (files/folders)

@filename.ts
@src/components/

Slash commands (interactive)

  • /models – switch model
  • /compress – summarize conversation
  • /rules – create or edit rules
  • /commands – custom commands
  • /mcp enable [server-name] / /mcp disable [server-name]

Non-interactive / CI mode

For scripts and automation, prefer print mode:

agent -p 'Run tests and report coverage'
agent -p 'Refactor this file to use async/await'

Output formats:

agent -p 'Analyze code' --output-format text
agent -p 'Find bugs' --output-format json
agent -p 'Run tests' --output-format stream-json --stream-partial-output

Force edits without confirmation:

agent -p 'Fix all linting errors' --force

Media input:

agent -p 'Analyze this screenshot: screenshot.png'

Automation from other agents

When calling Cursor CLI from another agent or script, use print mode (-p / --print) with --output-format text or json. Print mode does not require an interactive TTY.

Example for delegation:

cursor-agent --model auto -p "Review auth middleware for security issues" --output-format text

For interactive TUI workflows in headless environments, use tmux to provide a PTY:

tmux new-session -d -s cursor
tmux send-keys -t cursor "cd /path/to/project" Enter
tmux send-keys -t cursor "agent 'Your task here'" Enter
sleep 60
tmux capture-pane -t cursor -p -S -100

Rules and configuration

The agent loads automatically:

  • .cursor/rules
  • AGENTS.md
  • CLAUDE.md

Use /rules to manage rules inside the CLI.

MCP integration

MCP servers come from mcp.json. Enable or disable during a session:

/mcp enable server-name
/mcp disable server-name

Common workflows

Code review

agent -p 'Review the changes in the current branch against main. Focus on security and performance.'

Refactoring

agent -p 'Refactor src/utils.ts to reduce complexity and improve type safety.'

Git commit message

agent -p 'Generate a commit message for the staged changes adhering to conventional commits.'

CI/CD

export CURSOR_API_KEY=$CURSOR_API_KEY
agent -p 'Audit this codebase for security vulnerabilities' --output-format json --force

Multi-agent delegation

When used with work-untill-i-die, Cursor is typically the grunt role for fast, cheap iteration:

cursor-agent -p "" --model auto --output-format json

Add --force only when the delegate must modify files. Default to read-only delegation when possible.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.