new-repo

Creates a Cursor-hosted repository for the current project and pushes the initial commit.

Updated Oct 15, 2019
One-click install
npx skills add https://github.com/kkkaoru/dotfiles --skill new-repo-kkkaoru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-repo
Source: https://github.com/kkkaoru/dotfiles/tree/main/.cursor/skills-cursor/new-repo
Command: npx skills add https://github.com/kkkaoru/dotfiles --skill new-repo-kkkaoru

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a local project has no git remote yet, setting up a hosted repository involves several manual steps: initializing git, checking for secrets, creating the remote repo, wiring up the remote, and pushing. This Skill automates that entire flow for Cursor-hosted repositories while guarding against common mistakes like pushing secrets or creating duplicate repos. ## Core Features & Use Cases - Workspace inspection first: Checks whether the project is already a git repository and whether a remote exists, refusing to create a second repo or modify existing remotes. - Safe initial commit: Reviews what would be staged, verifies .gitignore covers dependency directories and secrets, and asks before including anything that looks like a credential. - Repo creation and push: Uses the origin CLI (installed and signed in via the origin skill when needed) to create the repo, add the remote, push main, and report the repo page URL. - Use Case: You have a new local project folder with no version control. Ask to create a repo on Cursor, and the Skill initializes git, commits safely, creates the hosted repo, and pushes it. ## Quick Start Create a Cursor-hosted repo for this project and push it.

Frequently Asked Questions about new-repo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Cursor-hosted repo for an existing local project?

Run the new-repo flow: it checks for an existing remote, initializes git if needed, commits the project, then runs origin repo create and pushes main. The repo page URL is reported as https://cursor.com/codebase/<org>/<name>.

What happens if my project already has a git remote?

The Skill stops and tells you which remote exists, offering to commit and push instead. It never creates a second repo for a project that already has one and never changes existing remotes.

Does the new-repo skill check for secrets before pushing?

Yes. Before staging, it lists what would be committed and verifies .gitignore covers dependency directories and secret files like .env or credential files. If anything looks like a secret, it asks before including it.

What if the repository name I want is already taken?

The Skill retries once with a close variant, suffixing a word rather than random characters. If that also fails, it asks you to choose a name instead of guessing further.

Can I use this skill to create a public or GitHub-hosted repository?

No. This Skill only creates Cursor-hosted repos, which are not public; access is managed from the repo page. If you explicitly ask for a different host, the Skill defers to that request instead.