speckit-git-initialize

Initializes Git repos and commits starter content for new projects.

Updated May 16, 2026
One-click install
npx skills add https://github.com/WeihanLi/Spark.OpenXml --skill speckit-git-initialize-weihanli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/WeihanLi/Spark.OpenXml/tree/main/.agents/skills/speckit-git-initialize
Command: npx skills add https://github.com/WeihanLi/Spark.OpenXml --skill speckit-git-initialize-weihanli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the creation of a Git repository and the initial commit for a project that does not yet have version control.

Core Features & Use Cases

  • Bash/PowerShell integration: Detects missing Git repositories and runs the appropriate initialization script from the project root.
  • Fallbacks & safety: If extension scripts are unavailable, executes reliable fallback commands to initialize, add all files, and commit a baseline state.
  • Customization: Supports custom ignore templates, default branch naming, and hooks setup to tailor the repo to project needs.

Quick Start

Run the initialize command from the project root to create a new Git repository and make the 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 initialize a Git repository and make an initial commit automatically?

This Skill automates git repository initialization by running git init, git add ., and git commit with a baseline message, detecting your shell environment to execute the appropriate Bash or PowerShell script with fallbacks.

Does the Git initialization script work with both Bash and PowerShell?

Yes, Git initialization supports both Bash and PowerShell script execution. It detects the shell environment and applies fallback commands to initialize the repository and commit files if extension scripts are unavailable.

What happens if my project directory already has a Git repository?

If a Git repository already exists in the project directory, the Skill detects it during the pre-execution checks and safely skips the initialization and commit process to avoid overwriting your existing version control state.

Can I customize the Git repository setup with ignore templates and hooks?

You can customize the Git repository setup by applying custom ignore templates, configuring default branch naming, and setting up hooks during initialization to tailor the repository baseline to your project requirements.

What checks are performed before initializing a new Git repository?

Before initializing a new Git repository, the Skill performs safety checks for Git availability on the system and verifies the project directory does not already contain a repository before executing the initialization and commit commands.