new-repo
Publish a local project to a new private repository on GitHub, GitLab or Forgejo: inspect first, prepare a safe first commit (.gitignore, no secrets), create…
от Navinspire-ia★ 37 звёзд на GitHub
Установить new-repo в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
New repository (publish a project)
Turn a local folder into a repository on the user's forge (GitHub by default, GitLab or Forgejo on request) and push it, without surprises.
Tools: git (status, init, add, commit, remote, push; it uses Navin's credential
bridge, so no token ever appears in a URL or the chat), forge action
repo_create (asks the user for approval, refused in unattended runs), and
request_credentials (kind=git_host) when the host is not connected yet.
Hard limits
- Never delete a repository, local or remote.
- Never change an existing remote (
originor any other). Nevergit remote set-url. - Never create a second repository for a project that already has a remote.
- Private by default. Public only when the user said so (
/publish --public, "public repo"). - Never commit anything that looks like a secret without asking first.
- Never ask the user to paste a token or password in the chat.
1. Inspect first
git rev-parse --is-inside-work-tree(git action=status works too).git remote -v(git action=remote).- If a remote already exists: say which one (host and owner/repo, no credentials), offer to commit and push the pending work there, and stop. Do not create anything new, do not touch the remote.
2. Prepare
- List what would be committed (git action=status; untracked files included). Show it grouped and short, not a raw dump.
- Make sure
.gitignorecovers, for the stack you see:- dependency dirs:
node_modules/,.venv/,venv/,vendor/,target/,__pycache__/ - build outputs:
dist/,build/,.next/,out/,coverage/,*.egg-info/ - secrets:
.env,.env.*(keep!.env.example),*.pem,*.key,id_rsa*,credentials*.json,*.p12,.navin/secrets*,.navin/credentials* - OS / editor noise:
.DS_Store,Thumbs.db,.idea/,.vscode/(unless the project shares settings) Add the missing lines; do not rewrite the user's existing rules.
- dependency dirs:
- Anything that still looks like a secret (a
.envalready tracked, a key file, a config withpassword=/token=): name the file and ask before including it. - Only if needed:
git init -b main(git action=init) and one initial commit ("Initial commit") staging the named paths you listed (git action=add with paths), never a blind add-everything over secrets. If commits already exist, keep them.
3. Create and push
- Name: the folder name in lowercase with dashes (
My App->my-app), or the name the user gave. If the forge says the name is taken (forge_repo_exists), try one close variant (my-app-1ormy-app-<year>); if that is taken too, ask. forge action=repo_create name=<name> host=<host> private=true(addorg=only when the user named an organization or group). The user approves it in a card.- If the host is not connected, call
request_credentials(kind=git_host, host=<host>)once with a clear reason (GitHub offers the device sign-in). Then retry once. git action=remote create=true name=origin remote=<clone_url>(only because no remote existed in step 1).git action=push set_upstream=true(pushes the current branch,mainby default).
4. Report
Say in one or two lines: the repository page (web_url), private or public, the
branch pushed and how many files went in. Mention anything you left out on purpose
(a secret file, a large binary).
Plain-language variant (novice users)
When the user does not speak git, keep the same steps but talk about outcomes:
- "Your project is not online yet. I will put it in a private space on GitHub that only you can see." (instead of "init, commit, create remote, push")
- "I found a file with passwords (
.env). I will keep it off the internet." - "GitHub needs to know it is you: a sign-in window opens, approve it there."
- At the end: "Done. Your project is here: . It is private."
Never show raw command output to a novice unless they ask; summarize it.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл new-repo?
Publish a local project to a new private repository on GitHub, GitLab or Forgejo: inspect first, prepare a safe first commit (.gitignore, no secrets), create the repo with forge action=repo_create, add origin and push through the git tool. Use for /publish, 'push this project to GitHub', 'put this on GitLab', 'crée un repo pour ce projet'. Never creates a second repo, never changes an existing remote, never deletes a repo.
Как установить скилл new-repo?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл new-repo запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…