speckit-git-initialize

Initialize a Git repository and create an initial commit in Bash or PowerShell.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/luansilvadb/divi-app --skill speckit-git-initialize-luansilvadb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/luansilvadb/divi-app/tree/main/.agents/skills/speckit-git-initialize
Command: npx skills add https://github.com/luansilvadb/divi-app --skill speckit-git-initialize-luansilvadb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the initial setup of a Git repository by creating the repository, adding all files, and recording the first commit.

Core Features & Use Cases

  • Auto-detects if a Git repository already exists and initializes only when needed.
  • Executes git init, git add ., and git commit with a standard initial message.
  • Supports both Bash and PowerShell environments via scripted fallbacks.
  • Use Case: bootstrap new projects or templates requiring a ready-to-go Git history.

Quick Start

Initialize a Git repository in your project by running the specified script or the fallback commands.

Frequently Asked Questions about speckit-git-initialize

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

FAQPage Schema
How do I automate git init and the initial commit for a new project?

To automate git init and the initial commit, you can use a shell script that runs git init, adds all files with git add, and executes git commit with a standard message. This ensures a ready-to-go Git history for new projects.

Does the automated repository creation process work on both Bash and PowerShell?

Yes, the automated repository creation process supports both Bash and PowerShell environments. It uses scripted fallbacks to ensure git init, git add, and git commit execute correctly across different shell environments.

What happens if a Git repository already exists in my project directory?

If a Git repository already exists, the initialization script auto-detects it and skips git init. This prevents errors by only initializing a new repository when needed, ensuring safe fallbacks for your project.

Can I use shell scripts to bootstrap a new project template with Git history?

Yes, you can use shell scripts to bootstrap new project templates with Git history. The automation applies to new projects and templates, applying an initial commit to establish a ready-to-go Git state automatically.

Do I need to check for Git availability before running the initialization script?

You do not need to manually check for Git availability before running the initialization script. The process includes proper checks for Git availability and applies safe fallbacks if Git is not detected in the environment.

What is the best way to ensure an initial commit is created when setting up a new repository?

The best way to ensure an initial commit is created during repository setup is to use an automation script. It executes git init, stages all files, and records the first commit to establish the initial Git state across Bash and PowerShell.