llm-cli-gateway: Skill for Claude Code

.agents/skills/provider-cursor/SKILL.md

provider-cursor is a skill for Claude Code, Codex from verivus-oss/llm-cli-gateway. It costs 72 tokens per session (1,534 once invoked), scanned A, original, MIT.

A maintenance guide for keeping a gateway’s Cursor Agent command-line integration aligned with Cursor’s published interface. It covers changes to commands, options, sessions, execution modes, and the ACP connection point.

In plain words
What is it for?
Use it when Cursor releases a new CLI version or when checking whether Cursor-specific commands and settings still match the gateway integration.
Why use it?
It helps prevent the gateway from drifting when Cursor changes its command-line tool. It also identifies the authoritative contract used to check arguments and environment settings.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions Cursor.

This is verivus-oss/llm-cli-gateway's own configuration. It tells Claude Code and Codex how to work on llm-cli-gateway itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-cli-gateway configures →

Part of the llm-gateway plugin — 24 skills, 4 commands, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to verivus-oss/llm-cli-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/verivus-oss/llm-cli-gateway/main/.agents/skills/provider-cursor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/verivus-oss/llm-cli-gateway

Made for: Claude Code, Codex.

Or install llm-gateway, the plugin that ships this one along with the rest of its 24 skills, 4 commands, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for provider-cursor

README.md
[![agentmods](https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/provider-cursor.svg)](https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/provider-cursor)
Your own site
<a href="https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/provider-cursor"><img src="https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/provider-cursor.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,534 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01534
Opus 5 $0.00036 $0.00767
Sonnet 5 $0.00014 $0.00307
Haiku 4.5 $0.00007 $0.00153

Measured 3d ago against content hash d10fadaa699c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

provider-cursor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/provider-cursor/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Provider: Cursor Agent CLI

Keep the gateway's Cursor (cursor-agent) integration aligned with the upstream CLI. This skill does not define argv or environment behaviour. The single mechanical source of truth is UPSTREAM_CLI_CONTRACTS.cursor in src/upstream-contracts.ts, enforced by validateUpstreamCliArgs and validateUpstreamCliEnv. Do not re-encode flags, execution modes, ACP rules, or session rules here or in TOML.

Identity

Field Value
CliType cursor
Executable cursor-agent
Distribution Cursor Agent vendor distribution
CLI docs https://cursor.com/cli
ACP docs https://cursor.com/docs/cli/acp
Parameter reference https://cursor.com/docs/cli/reference/parameters
Watch categories flags, subcommands, session-resume, execution-modes, acp-entrypoint

These values mirror UPSTREAM_CLI_CONTRACTS.cursor.upstreamMetadata and docs/upstream/provider-sources.dag.toml ([providers.cursor]). The TypeScript metadata is authoritative; the TOML is scanner input only.

Gateway use

  1. Discover the live gateway surface before relying on Cursor-specific controls:
    provider_tool_capabilities({cli:"cursor"})
    
    For a cached read-only resource, use provider-tools://cursor.
  2. Use cursor_request for normal work and cursor_request_async for long-running work. Sync calls may auto-defer; poll llm_job_status and fetch with llm_job_result when that happens.
  3. Omit model unless the caller explicitly requests one. Use only controls reported by provider_tool_capabilities, especially execution mode, sandbox, workspace, and session controls. Cursor must use approvalStrategy:"legacy": it rejects mcp_managed before launch because ambient MCP configuration cannot be isolated, and approvalPolicy has no effect.
  4. Keep provider-owned MCP configuration separate from gateway metadata. Do not assume every Cursor CLI control is safe to expose through a request.
  5. Cursor accepts flat prompt only, not promptParts. workingDir selects the child process cwd on transport:"cli", as it does for every other provider. It is CLI-only: transport:"acp" rejects it in rejectUnsupportedCursorAcpParams alongside addDir, because the ACP route resolves its own scope and would otherwise discard it silently. Its workspace field is separate and selects a local target directory, registered alias, or provider-native .code-workspace file. A directory/alias establishes child cwd; a workspace file remains a native argument and is not misused as spawn.cwd. Because both inputs can name a cwd, resolveCursorWorkingDir rejects an absolute workspace path that disagrees with workingDir instead of ranking them; identical values are admitted. Verify the target before reviewing concurrent repositories. An unregistered relative value remains a provider-native saved-workspace name and is passed through verbatim, never resolved against the gateway process cwd. Use an absolute path when selecting an unregistered local directory as child cwd.
  6. Use a real resumable Cursor chat only when the response reports it as resumable. Gateway bookkeeping IDs are not automatically valid Cursor chat IDs. Continuation remains provider-native under legacy. A cwd-scoped resumeLatest needs a stable selected target.
  7. Native ACP is capability-gated. It rejects approvalStrategy:"mcp_managed" and any approvalPolicy, as does the Cursor CLI gateway path. Probe cursor-agent acp --help when validating the installed entrypoint.
  8. An unscoped CLI child uses a fresh neutral temporary cwd, not the gateway repository. Cursor's argv-bound prompt rejects oversized UTF-8 input as non-retryable input_too_large; the gateway never truncates it. All other caller-controlled argv values are admitted in their final encoded form before spawn. Embedded NUL bytes return non-retryable invalid_input without exposing the rejected value.

Read the full file on GitHub · 127 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed d10fadaa699c
  2. 7d ago First seen · 127 lines · 72 tokens per session scan A f20ddeccf331

Subscribe to this mod's changes

provider-cursor is a skill published in the GitHub repository verivus-oss/llm-cli-gateway (15 stars, last pushed 3d ago), licensed MIT. It adds 72 tokens to every session and 1,534 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.