Skip to content
Skillpedia
Deploy & cloud (DevOps)10k · #12001

speckit-git-initialize

What it does

This skill starts a Git repository in a project folder and saves the first set of files. It is for people beginning a new project who want version history from the start.

When to use it

  • ✓When you start a new project folder and want Git tracking from the beginning.
  • ✓When a project folder is not yet under version control.
  • ✓When you want the first commit made automatically with the project files.

Skill link

https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-initialize/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-initialize/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Set up Git in this new project folder and make the first commit with the current files.”

5 new skills a week. 1 minute to read.

How it works

The skill checks whether Git exists and whether the folder is already a repository. If not, it starts one, adds the files, and makes an initial commit.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Initialize Git Repository

Initialize a Git repository in the current project directory if one does not already exist.

Execution

Run the appropriate script from the project root:

  • Bash: .specify/extensions/git/scripts/bash/initialize-repo.sh
  • PowerShell: .specify/extensions/git/scripts/powershell/initialize-repo.ps1

If the extension scripts are not found, fall back to:

  • Bash: git init && git add . && git commit -m "Initial commit from Specify template"
  • PowerShell: git init; git add .; git commit -m "Initial commit from Specify template"

The script handles all checks internally:

  • Skips if Git is not available
  • Skips if already inside a Git repository
  • Runs git init, git add ., and git commit with an initial commit message

Customization

Replace the script to add project-specific Git initialization steps:

  • Custom .gitignore templates
  • Default branch naming (git config init.defaultBranch)
  • Git LFS setup
  • Git hooks installation
  • Commit signing configuration
  • Git Flow initialization

Output

On success:

  • ✓ Git repository initialized

Graceful Degradation

If Git is not installed:

  • Warn the user
  • Skip repository initialization
  • The project continues to function without Git (specs can still be created under specs/)

If Git is installed but git init, git add ., or git commit fails:

  • Surface the error to the user
  • Stop this command rather than continuing with a partially initialized repository
FAQ

What happens if the folder is already a repository?

The skill skips setup, so it does not change an existing repository.

What if Git is not installed?

It warns you and carries on. The project still works without Git.

Can I customize the setup?

Yes. The content says the script can be replaced to add steps such as a .gitignore template or signing setup.

Details

Original description by the author

Initialize a Git repository with an initial commit

repo: unoplatform/uno

Popularity

GitHub stars
10k
Ranking position
#12001
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills