speckit-git-initialize

Initialize a Git repository with an initial commit.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/duonghuan2122000/sora-piggy --skill speckit-git-initialize-duonghuan2122000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/duonghuan2122000/sora-piggy/tree/main/.claude/skills/speckit-git-initialize
Command: npx skills add https://github.com/duonghuan2122000/sora-piggy --skill speckit-git-initialize-duonghuan2122000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill initializes a Git repository in the current project directory and creates an initial commit, streamlining project setup and version control readiness.

Core Features & Use Cases

  • Detects whether Git is available and whether the current directory is already a repository.
  • Executes the initialization sequence: git init, git add ., and a first commit with a clear message.
  • Provides a fallback path if project-specific scripts are present, allowing customized initialization steps (e.g., using .specify/extensions/git/scripts/*).
  • Graceful degradation: if Git is not installed, the process is skipped and the project continues to function.
  • Customization options: adjust the default commit message, ignore certain files, or integrate with a template.

Quick Start

Execute the Bash script at .specify/extensions/git/scripts/bash/initialize-repo.sh or the PowerShell script at .specify/extensions/git/scripts/powershell/initialize-repo.ps1 from the project root, or fall back to running git init, git add ., and git commit -m 'Initial commit' if those scripts are unavailable.

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 and create an initial commit in my project directory?

To initialize a Git repository, the Skill runs git init, stages all files with git add ., and creates an initial commit with a clear default message, ensuring your project is ready for version control workflow.

What happens if I run Git initialization in a directory that is already a repository?

The Skill detects whether the current directory is already a Git repository before executing. If it is already initialized, the process handles the existing repository state gracefully without forcing a duplicate initialization sequence.

Can I customize the initial commit message when setting up version control?

Yes, you can customize the default commit message used during the Git initialization sequence. The Skill also provides a fallback path to execute customized initialization steps via project-specific scripts.

Does the repository initialization process require Git to be pre-installed on my system?

The Skill detects whether Git is available on your system before proceeding. If Git is not installed, the initialization is gracefully skipped, allowing the project to continue functioning without version control.

What is the best way to automate version control setup for a new development workflow?

Automating version control setup is handled by executing Bash or PowerShell initialization scripts from the project root. This enforces a deterministic Git workflow by running initialization, adding files, and committing automatically.