cursor-cli
/cursor-cli
Run Cursor CLI for one-shot cross-AI code review when a Cursor perspective is explicitly wanted. Invoke ONLY when the user asks ('cursor review', 'ask cursor', 'run cursor'), or another skill explicitly delegates to Cursor. Do not invoke it implicitly for a generic review. Not for interactive conversations.
- Author
- alexandrbasis ↗
- Repository
- claudops ↗
- Licence
- MIT
- Last repository change
- 08.09.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 1
- HTML comments
- 1
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 08.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
Scripts: scripts/review.py
What it does and when to use it
Run Cursor CLI for one-shot cross-AI code review when a Cursor perspective is explicitly wanted. Invoke ONLY when the user asks ('cursor review', 'ask cursor', 'run cursor'), or another skill explicitly delegates to Cursor. Do not invoke it implicitly for a generic review. Not for interactive conversations.
Triggers from the description
Original author description
Run Cursor CLI for one-shot cross-AI code review when a Cursor perspective is explicitly wanted. Invoke ONLY when the user asks ('cursor review', 'ask cursor', 'run cursor'), or another skill explicitly delegates to Cursor. Do not invoke it implicitly for a generic review. Not for interactive conversations.
How it works
- Provider adapter
- Prompt requirements
- When not to use
- References
SKILL.md preview
---
name: cursor-cli
description: Run Cursor CLI for one-shot cross-AI code review when a Cursor perspective is explicitly wanted. Invoke ONLY
when the user asks ('cursor review', 'ask cursor', 'run cursor'), or another skill explicitly delegates to Cursor. Do not
invoke it implicitly for a generic review. Not for interactive conversations.
allowed-tools: Bash Read
compatibility: Portable clients may not enforce Claude Code invocation guards or project setup behavior.
---
<!-- claudops-build: project-config-pointer -->
> If `.claude/skills/cursor-cli/SKILL.md.disabled` exists, stop before reading a fallback.
> **Project configuration:** If the current project contains `.claude/skills/cursor-cli/SKILL.md`, read and apply it instead of this bundled default. The project copy is the capability source of truth.
> **Repository context:** Read `../setup/references/task-context.md` when resolving a task, project commands, named agent roles, or legacy `.claude/` resource paths. Use repository evidence and applicable project instructions; a missing local workflow copy does not require setup. Resolve bundled resources from the installed skill, never from the target cwd.
# Cursor CLI
> **Announcement**: Begin with: "I'm using the **cursor-cli** skill for cross-AI validation with Cursor."
Use this wrapper for a one-shot Cursor review or approach validation. Read the
shared lifecycle in `../codex-cli/references/cross-ai-run.md` first.
## Provider adapter
1. Check `command -v agent`, `agent --version`, and `agent --help`. Verify the
binary is Cursor Agent and supports `--print`, `--mode ask`, and
`--output-format json`. `cursor-agent` may be an installation alias; do not
substitute the Cursor editor executable.
2. When the caller requests a particular model or an independent model family,
inspect `agent models` and select an exact listed slug. Otherwise omit the
model override. Cursor supports multiple providers; `auto` and an unreported
default do not establish model-level independence. Record the requested slug
separately from any model identity actually reported by the provider.
3. Resolve the loaded skill directory and run the adapter from the target
repository root with Python 3.10+:
```bash
CURSOR_SKILL_DIR="/absolute/path/to/loaded/cursor-cli"
python3 "$CURSOR_SKILL_DIR/scripts/review.py" \
--prompt-file /tmp/cursor-prompt.md \
--file path/to/file.py \
--timeout 120 \
--output-dir /tmp/cursor-review-unique
```
Set `CURSOR_SKILL_DIR` to the directory containing this loaded skill, not a
path relative to the reviewed repository. `--file` is repeatable and pre-reads
verified UTF-8 files into the prompt. The combined input limit is 96 KiB;
narrow larger reviews explicitly. Add `--model '<exact listed slug>'` only
when selected. Each invocation requires a fresh output directory.
4. Inspect `receipt.json`, `stdout.json`, `stderr.log`, `version.stderr.log`, and
`response.txt` on success. A completed JSON result requires exit 0,
`type: result`, `subtype: success`, `is_error: false`, and a non-empty string
`result`. An error envelope, timeout, malformed output, trust rejection, or
empty answer is incomplete. Also read the answer for blocked reads, omitted
scope, or other visible limitations: a valid envelope alone does not prove
the review was completed. Return the shared receipt and evidence gaps.
The adapter always uses `agent -p --mode ask --output-format json`. Print mode
alone can use write and shell tools; keep the explicit read-only mode. Workspace
trust is a separate prerequisite: the adapter preserves a trust rejection and
stops. It does not pass `--trust`, force/yolo, automatic MCP approval, or sandbox
bypass flags, retry, authenticate, update the CLI, or modify settings. Resolve
missing capabilities or trust through a separate user-authorized action.
## Prompt requirements
Include the repository root, task/requirements path when task-attached, changed
files or diff scope, and concrete questions. Cursor starts without this
conversation's context. Resolve task evidence through
`../setup/references/task-context.md`; standalone calls do not create a task.
## When not to use
- The caller did not explicitly choose Cursor
- The request needs interactive refinement
- The primary review workflow already answers the request
## References
- `../codex-cli/references/cross-ai-run.md` — shared lifecycle
- `reference.md` — native output contract, trust boundary, and official sources
- `templates.md` — prompt shapes; resolve placeholders before execution
Files in this package (4)
- SKILL.md 5 KB
- reference.md 3 KB
- templates.md 2 KB
- scripts/review.py 12 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · alexandrbasis/claudops | 100 | MIT |
| azis14/herdr-orchestrator | 100 | MIT |
| alexandrbasis/claudops | 100 | MIT |
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 5d804ffa48d0 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100cursor-model-selection
Configure and select AI models in Cursor. Triggers on "cursor model", "cursor gpt", "cursor claude", "change cursor model", "cursor ai model". Use when working with cursor model selection functionality. Trigger with phrases like "cursor model selection", "cursor selection", "cursor". - 100cursor-delegate
Delegate coding tasks to the Cursor Agent CLI (`cursor-agent`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility. - 100cursor-delegate
Delegate coding tasks to the Cursor Agent CLI (`cursor-agent`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility. - 100cursor-review
Run a Cursor Composer review as an advisory second opinion while keeping the primary review verdict on the host brain. Use when user invokes cursor:review, asks Cursor to review, or wants composer to sanity-check a diff. Cursor never owns APPROVE/REQUEST_CHANGES. - 100cursor-ai-chat
Manage master Cursor AI chat interface for code assistance. Triggers on "cursor chat", "cursor ai chat", "ask cursor", "cursor conversation", "chat with cursor". Use when working with cursor ai chat functionality. Trigger with phrases like "cursor ai chat", "cursor chat", "cursor". - 100cursor-upgrade-migration
Upgrade Cursor versions, migrate from VS Code, and transfer settings between machines. Triggers on "upgrade cursor", "update cursor", "cursor migration", "cursor new version", "vs code to cursor", "cursor changelog".