speckit-git-initialize

Initializes a Git repository with an initial commit in spec-kit projects.

Updated Sep 19, 2026
One-click install
npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill speckit-git-initialize-ab0umar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/Ab0umar/selrs.cc.BU/tree/main/.agents/skills/speckit-git-initialize
Command: npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill speckit-git-initialize-ab0umar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up version control is a repetitive first step in every new project, and forgetting it early can lead to lost work. This Skill automates Git repository initialization so a spec-kit project starts with proper version control and an initial commit from the beginning. ## Core Features & Use Cases - Automated Git Initialization: Runs git init, git add, and git commit with a standard initial commit message via Bash or PowerShell scripts. - Idempotent and Safe: Skips initialization if Git is unavailable or the directory is already inside a Git repository. - Graceful Degradation: Warns and continues without Git if it is not installed, so spec creation under specs/ still works. - Use Case: After scaffolding a new spec-kit project, invoke this Skill to immediately place the .specify/ structure and specs under version control with a clean initial commit. ## Quick Start Initialize a Git repository with an initial commit in the current spec-kit project directory.

Frequently Asked Questions about speckit-git-initialize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize a Git repository with an initial commit?▼

Run git init, git add ., and git commit with an initial message from the project root. This Skill automates those steps through Bash or PowerShell scripts located under .specify/extensions/git/scripts/.

What happens if I run git init in an existing repository?▼

The initialization script checks whether the directory is already inside a Git repository and skips the process entirely. No duplicate initialization or commit is performed, so existing history remains untouched.

Does this work if Git is not installed on my machine?▼

The script detects missing Git, warns the user, and skips repository initialization. The project continues to function without version control, and specs can still be created under the specs/ directory.

Can I customize the initial commit or add a .gitignore template?▼

Yes, replace the extension script to add custom .gitignore templates, default branch naming, Git LFS setup, hooks, commit signing, or Git Flow initialization. The fallback commands can also be edited directly.

Why does git initialization fail after git init succeeds?▼

Failures in git add or git commit usually stem from permission issues, missing user.name or user.email configuration, or an empty directory. The Skill surfaces the error and stops rather than leaving a partially initialized repository.