Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ahmedabdelhamid404 avatar

Speckit Git Initialize

  • 1 installs
  • Updated May 4, 2026
  • ahmedabdelhamid404/hadouta-web

speckit-git-initialize is a Claude Code skill that initializes a Git repository with an initial commit as part of the GitHub spec-kit project workflow.

About

speckit-git-initialize is a Claude Code skill that initializes a Git repository in the current project and makes an initial commit. It runs a spec-kit extension script when present, otherwise falls back to git init, git add, and git commit. It is part of the GitHub spec-kit workflow and skips gracefully if Git is unavailable or the directory is already a repo.

  • Initializes a Git repo with an initial commit for spec-kit projects
  • Falls back to git init/add/commit if extension scripts are missing
  • Graceful degradation: skips cleanly if Git is absent or already a repo

Speckit Git Initialize by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #524 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
  • Data as of Jul 7, 2026 (Skillselion catalog sync)
At a glance

speckit-git-initialize capabilities & compatibility

Capabilities
git init · repo setup
Works with
github
Platforms
macOS · Windows · Linux
From the docs

What speckit-git-initialize says it does

Initialize a Git repository with an initial commit
SKILL.md
Initialize a Git repository in the current project directory if one does not already exist.
SKILL.md
Requires spec-kit project structure with .specify/ directory
SKILL.md
npx skills add https://github.com/ahmedabdelhamid404/hadouta-web --skill speckit-git-initialize

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
Last updatedMay 4, 2026
Repositoryahmedabdelhamid404/hadouta-web

What it does

Initialize a Git repository with an initial commit in a spec-kit project, with graceful fallback.

Who is it for?

Bootstrapping version control at the start of a spec-kit project.

When should I use this skill?

Starting a new spec-kit project that needs a Git repo initialized with an initial commit.

What you get

A Git repository is initialized and an initial commit is created, or the step is skipped gracefully.

  • Initialized Git repository
  • Initial commit

By the numbers

  • Bundles two spec-kit sub-skills: speckit-git-initialize and speckit-git-remote

Files

SKILL.mdMarkdownGitHub ↗

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

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.