Install, sign in, update, or repair the origin CLI for repos hosted on Cursor (origin.cursor.com). Use when the CLI is missing or outdated, git push/pull fails to authenticate against origin.cursor.com, or the user asks to set up, clone, or configure Cursor-hosted repos.
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Cursor hosts git repositories at origin.cursor.com. The origin CLI
manages them. This skill covers getting the CLI working and recovering from
its common failure states. It does not decide whether to use Cursor-hosted
repos — workflow skills and the user do that.
Supported: macOS and Linux (including WSL). On native Windows (outside WSL), Origin repo operations are not supported yet — say so plainly. Do not improvise a Windows install.
command -v origin || { test -x ~/.local/bin/origin && echo ~/.local/bin/origin; }
origin auth statusauth status shows no session → authenticate (step 3).If origin is not on PATH but ~/.local/bin/origin exists, invoke it by
that absolute path.
curl -fsSL https://downloads.cursor.com/origin/install.sh | shThe installer verifies the download's checksum and symlinks
~/.local/bin/origin. New shells may not have ~/.local/bin on PATH yet —
use the absolute path for the rest of the session.
origin auth loginThis opens the user's browser (the same Cursor login they already have — one
click for most users) and configures the git credential helper for
origin.cursor.com, so git push/git pull work afterwards with no extra
setup. Wait for the command to complete.
| Failure signature | Fix |
|---|---|
origin: command not found | Install (step 2). |
Authentication failed for 'https://origin.cursor.com/...' on git push/pull | origin auth status, then origin auth login, then retry the git command. |
No Origin namespace for the account (origin repo create / repo list errors mentioning a missing namespace) | Relay the error's own guidance in plain language. For a user on a team, a team admin sets the namespace up at cursor.com/codebase. Do not retry in this session. |
| Not authorized to access a namespace | The user's team has Origin, but this account lacks repo access there — a team admin can grant it. |
origin auth login never completes | The user has not finished the browser step. Ask them to complete it or re-run the command; do not work around it. |
A working installation is never reinstalled. Run origin update only when
the CLI's own update hint suggests it; if the update fails, re-run the
installer (step 2).
origin repo clone <org>/<name> — clone a Cursor-hosted repo using the
saved login (later git push/pull relies on the credential helper that
origin auth login configured).origin repo list — list repos the account can access.origin repo create <name> — create a repo; the CLI resolves the
account's namespace automatically, so no org prefix is needed (namespace
failures are in the recovery table above).origin repo delete unless the user explicitly asked to delete
that repository and has confirmed the exact repo name.saski/arnesto
752f690
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.