speckit-git-initialize

Initialize a Git repository with an initial commit in the current directory.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Automatically initialize Git repository if one does not exist.
  • Execute extension scripts for bash or powershell, or fall back to git commands.
  • Graceful degradation if Git is unavailable or if already inside a repository.

Quick Start

Run the appropriate script from the project root to initialize a Git repository and create an initial commit.

Frequently Asked Questions about speckit-git-initialize

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

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

To initialize a Git repository, run the script from your project root to execute git init, git add, and git commit with a standard message if no repository exists.

Does repository initialization work with both Bash and PowerShell scripts?

Yes, repository initialization supports Bash or PowerShell scripts and falls back to plain git commands if extension scripts are unavailable in your environment.

What happens if I run Git initialization inside an existing repository?

Running Git initialization inside an existing repository is gracefully skipped, preventing duplicate initial commits or overwriting your current project version control state.

How does the script handle initializing a Git repository when Git is not installed?

When Git is not installed, the script degrades gracefully by detecting the missing dependency and aborting the repository initialization process without crashing your workflow.

Can I use this for initializing repositories in speckit development workflows?

Yes, you can use this for speckit development workflows, as it applies speckit templates to initialize Git repositories and create standard initial commits automatically.