git-setup
Initialize git in the workspace and connect a GitHub remote. Use for /git-setup or when the user asks to set up version control.
от HenriGrimm★ 25 звёзд на GitHub
Установить git-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Git & GitHub setup
When to use
- User invokes
/git-setupor asks to initialize git / connect GitHub - Orchestrator board preflight requested git setup for a non-repo workspace (init only — no remote)
- Orchestrator board preflight requested GitHub remote setup for a repo without
origin
Steps
- Detect state — run
execute_commandwithgit rev-parse --is-inside-work-tree(orgit_status). If already inside a git repo, skipgit initand report the current branch and remotes. - Initialize — when not a repo, run
git initin the workspace root. - Baseline ignore — if
.gitignoredoes not exist, create one with sensible defaults (node_modules/,.env,.env.*,dist/,build/, OS junk like.DS_StoreandThumbs.db). Do not overwrite an existing.gitignore. Minnow also runs this step programmatically when/git-setupstarts (before tools run) so fresh repos always get a baseline ignore even if this step is skipped in chat. Orchestrator board onboarding runs init,.gitignore, and the initial commit programmatically after the dedicated git prompt — do not redo that work if the folder is already a repo. - Initial commit — when there are untracked files and no commits yet, stage all with
git_addand commit with messagechore: initial commit. - GitHub remote
- Run
gh auth status. If unauthenticated, explain that the user must rungh auth loginin a terminal and stop — do not invent tokens or credentials. - When
ghis available and authenticated: callask_questionfor repo visibility (public / private), then rungh repo createwith--source=.and the chosen visibility. Verifygit remote -vshowsorigin. - When
ghis missing orgh repo createfails: callask_questionfor an existing GitHub remote URL, thengit remote add origin <url>. Ask before pushing; on approval rungit push -u origin HEAD.
- Run
- Summarize — report branch name, remote URL, and whether the initial push succeeded.
Do not re-confirm
The user already chose to run this skill (slash command or board preflight). Do not call ask_question to confirm git init, .gitignore, the initial commit, or "no GitHub remote". Execute those steps with tools immediately. Use ask_question only for GitHub visibility, an existing remote URL, or push approval.
Quality checks
- Never commit secrets (
.env, credentials, API keys) — warn and exclude them in.gitignoreif present - Do not force-push or rewrite history
- Prefer
gh repo createover manual remote setup whenghworks
Tools
execute_command, git_status, git_add, git_commit, read_file, write_file, ask_question
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл git-setup?
Initialize git in the workspace and connect a GitHub remote. Use for /git-setup or when the user asks to set up version control.
Как установить скилл git-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…