speckit-git-initialize

Initializes a Git repository and creates an initial commit for a project.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/B0yZ4kr14/OrthoPlus-Enterprise --skill speckit-git-initialize-b0yz4kr14
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/B0yZ4kr14/OrthoPlus-Enterprise/tree/main/kimi-cli/.kimi/skills/speckit-git-initialize
Command: npx skills add https://github.com/B0yZ4kr14/OrthoPlus-Enterprise --skill speckit-git-initialize-b0yz4kr14

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the friction of setting up version control by automatically initializing a Git repository and producing an initial commit when none exists.

Core Features & Use Cases

  • Detects existing Git state: Skips initialization when already inside a Git repository.
  • Bootstraps a first commit: Runs repository initialization and creates an initial commit so work can be tracked immediately.
  • Graceful fallback behavior: Uses Specify template scripts when available, otherwise falls back to a direct git init/add/commit flow, and warns if Git is not installed.
  • Use Case: You start a new project directory and want it tracked in Git right away without manually running multiple setup commands.

Quick Start

Initialize Git in the current project directory and create the first commit using the best available method.

Frequently Asked Questions about speckit-git-initialize

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

FAQPage Schema
How do I create an initial Git commit for a new project directory?

You can create an initial Git commit by running this Skill, which detects the current Git state and either executes Specify template scripts or falls back to a direct git init, add, and commit sequence.

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

When you run repository initialization inside an existing Git repository, the Skill detects the existing Git state and skips the initialization process to avoid overwriting your current version control setup.

Does the initializer work with Specify template compatible projects?

Yes, the initializer works with Specify template compatible projects by executing repository initialization scripts found within the .specify directory tree when it is present.

What is the best way to set up version control when Git is not installed?

To set up version control when Git is not installed, this Skill issues a warning and fails fast on git command errors, ensuring you are immediately alerted to the missing dependency.

Why does my repository initialization fail fast on Git command errors?

Repository initialization fails fast on Git command errors to prevent partial commits or corrupted version control states, stopping execution immediately when a git command fails.