new-repo
Create a Cursor-hosted repo for the current project and push it. Use when a project has no git remote yet and the user asks to create a repo on Cursor, push the project to Cursor, or set up a Cursor-hosted remote; installs and signs in the origin CLI when needed.
- License 许可
- Unlicense
- 所属仓库
- saski/arnesto
- 最近更新
- 2026-11-12
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- new-repo
- description
- Create a Cursor-hosted repo for the current project and push it. Use when a project has no git remote yet and the user asks to create a repo on Cursor, push the project to Cursor, or set up a Cursor-hosted remote; installs and signs in the origin CLI when needed.
- disabled-environments
- [ "cloud" ]
03 SKILL.md 正文
new-repo — create a repo for this project and push it
If the user seems unfamiliar with git, keep the vocabulary plain (the
share skill is this same flow in novice framing) — the mechanics below are
identical either way.
This skill creates Cursor-hosted repos. If the user explicitly asks for a different host, follow that request without using this skill.
1. Inspect the workspace first (always)
git rev-parse --is-inside-work-tree 2>/dev/null
git remote -v
- A remote already exists → this project already has a repo. Say which remote, offer to commit/push instead, and stop. Never create a second repo for a project that has one, and never change existing remotes.
- Not a git repository yet → you will
git initin step 2.
Default to a repo named after the project folder (lowercase, dashes; strip characters other than letters, digits, and dashes). Ask about the name only when it is genuinely ambiguous.
2. Prepare the project
Before staging anything, list what would be committed
(git status --porcelain or git ls-files -o --exclude-standard) and make
sure .gitignore covers dependency directories and secrets (.env*, key
and credential files). If anything that looks like a secret would be staged,
ask before including it — never stage-and-push blind.
git init -b main # only if not already a repo
git add -A && git commit -m "Initial commit" # only if nothing committed
3. Create and push the Cursor-hosted repo
If origin is missing, unauthenticated, or outdated, first invoke the
origin skill (synced at ~/.cursor/skills-cursor/origin/SKILL.md) for install +
sign-in, then:
origin repo create <name>
git remote add origin <clone URL printed by create>
git push -u origin main
origin repo create <name> needs no org prefix — the CLI resolves the
account's namespace. If the name is taken, pick a close variant (suffix a
word, not a number soup) and retry once; if it fails again, ask the user. On
a namespace or access error, follow the origin skill's recovery table.
Report the repo's page: https://cursor.com/codebase/<org>/<name> (the
<org>/<name> is printed by origin repo create).
Hard limits
- Never create a repo when the project already has a remote.
- Never delete repos, and never change existing remotes.
- Cursor-hosted repos are not public — access is managed from the repo page, not from this skill, so do not promise public visibility.
04 同仓库更多 Skills
visualize
Use /visualize for creating compact charts, diagrams, or other visuals inline as part of the conversation itself. It chooses among Markdown tables, Mermaid, inline HTML, and other supported in-transcript forms. Use Canvas for durable artifacts outside the transcript that users may revisit, refine, or share.
update-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
update-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
statusline
Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.
split-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
shell
Runs the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.