Skip to content
Skills Library
Programming · Automation

git-init

/git-init

Creates a git repository for the project safely: a .gitignore for its stack, secrets and huge files kept out, and a first commit with the current state, so every later change can be reviewed (git diff) and undone. Run it yourself, without asking, before your first change in a project folder that has no git repository (the session context says «not a git repository»), and when the user asks («создай репозиторий», «инициализируй git», /git-init). Helper: scripts/repo_init.py --path <project folder>.

Licence
MIT
Last repository change
12.11.2026

Assessment and security

96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content31 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/repo_init.py

What it does and when to use it

Creates a git repository for the project safely: a .gitignore for its stack, secrets and huge files kept out, and a first commit with the current state, so every later change can be reviewed (git diff) and undone. Run it yourself, without asking, before your first change in a project folder that has no git repository (the session context says «not a git repository»), and when the user asks («создай репозиторий», «инициализируй git», /git-init). Helper: scripts/repo_init.py --path <project folder>.

Original author description

Creates a git repository for the project safely: a .gitignore for its stack, secrets and huge files kept out, and a first commit with the current state, so every later change can be reviewed (git diff) and undone. Run it yourself, without asking, before your first change in a project folder that has no git repository (the session context says «not a git repository»), and when the user asks («создай репозиторий», «инициализируй git», /git-init). Helper: scripts/repo_init.py --path <project folder>.

How it works

SKILL.md has no level-two headings · 25 lines, 241 words

SKILL.md preview
---
name: git-init
description: >-
  Creates a git repository for the project safely: a .gitignore for its stack, secrets and huge files kept out, and
  a first commit with the current state, so every later change can be reviewed (git diff) and undone. Run it
  yourself, without asking, before your first change in a project folder that has no git repository (the session
  context says «not a git repository»), and when the user asks («создай репозиторий», «инициализируй git»,
  /git-init). Helper: scripts/repo_init.py --path <project folder>.
---

# /git-init — a git repository for the project

Run it on your own before your first change in a project without git: run the command, then go on with the
user's task in the same turn. Don't stop to announce it; mention it in your final report («Создал git-репозиторий:
все правки можно посмотреть и откатить»). Don't run it when the user only asked a question, when they said not to
use git here, or from a subagent.

1. Run it:
   ```bash
   python3 "<skill_dir>/scripts/repo_init.py" --path "<project folder>"
   ```
   The project folder is the workspace. If the workspace holds several projects, use the folder of the one you're
   working on. Keep the quotes: paths may contain spaces.
   - It creates the repository and a `.gitignore` (an existing one only gets the rules it lacks).
   - It commits the current state as "Initial snapshot". Files with secrets and files over 50 MB stay out of
     that commit.
   - Nothing leaves the computer.
2. **If it refuses** (exit 2: home folder, a folder of projects, another version control system), don't force it.
   Say why in one line and work without git.
3. **If the commit failed** because git has no name or email, ask the user for them once. Don't invent them.
4. In your report, mention what it left out (secrets, huge files) and that nothing was pushed.

Never add a remote or push on your own: that's `/pr`, or the user's call.
Files in this package (2)
  • SKILL.md 2 KB
  • scripts/repo_init.py 17 KB

Versions

The database has no other skills named git-init.

Database snapshot: 13.11.2026 · package version 4f46f8fdee93 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100here-be-git
    Initialise a git repository with optional agent commit instructions and .gitignore. Use when users say "here be git", "init git", "initialise git", or otherwise indicate they want to set up version control in the current directory.
  • 100gitignore-builder
    Build and merge .gitignore files using github/gitignore templates with smart project detection. Use when the user asks to "create gitignore", "build .gitignore", "add gitignore templates", "set up gitignore", "update gitignore", or requests "/gitignore". Also trigger when…
  • 9000-repo-init
    Initialize a project repository with git init, a default branch, a bootstrap commit, CONTRIBUTING.md, and optionally the remote. Use when the user wants to init or set up a new repo, or publish to a remote. Not for committing, opening a PR, or tagging.
  • 84init
    Initialize a new project with a standard directory structure, template files, and a git repository. Use this skill whenever the user starts a new project, types /init, asks to "set up a new project", "initialize a repo", "scaffold a project", or wants to create the standard…
  • 100git-push
    把项目推送到 GitHub,三种模式自动判断:**首次推送**(大文件扫描 → 生成 .gitignore → git init → gh 建仓 → 推送)、**日常更新**(commit + push)、**版本发布**(打 tag + 建 Release,可附下载文件)。核心原则是安全第一:推之前必扫大文件和敏感文件,宁可多问一句也不把不该推的东西推上去。当用户说"推到GitHub""推送到GitHub""git…
  • 100git-guardrails
    Use when a repository needs Git safety controls: guard destructive commands, set up gitignore or fix gitignore when untracked files keep appearing, or install or repair a repository-local pre-commit hook from project gates, including package-manager-native commit-time checks.…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.