speckit.git.initialize

Initialize a Git repository and apply an initial commit workflow.

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

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 initializes a repository with git init when needed.
  • Registers an initial commit via a scripted workflow or fallbacks.
  • Gracefully handles missing Git or existing repositories with informative messages.

Quick Start

Initialize a new Git repository in your project by following the platform-specific script path or using 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 initialize a Git repository and create an initial commit automatically?

To initialize a Git repository with an initial commit, this Skill applies a deterministic workflow that checks for Git availability, verifies no existing repository exists, executes git init, and registers the initial commit across Bash and PowerShell environments.

What happens if I try to initialize a Git repository in a directory that already has one?

When initializing a Git repository in a directory with an existing repository, the workflow gracefully skips the setup and returns an informative message, ensuring your existing Git history remains untouched and uncorrupted.

Can I use this automated initial commit workflow across different operating systems?

Yes, you can use this initial commit workflow across different operating systems because it operates in both Bash and PowerShell environments, applying configurable script fallbacks to ensure cross-platform compatibility during repository setup.

Do I need to install Git before running this repository setup script?

Yes, you need Git installed before repository setup, because the workflow performs an explicit check for Git availability and will gracefully halt with an informative message if the Git executable is missing from your environment.

What is the best way to automate repository setup for a new local project?

The best way to automate repository setup for a new local project is using a deterministic initial commit workflow that safely handles missing Git or existing repositories, applying scripted fallbacks to ensure a clean initial commit.

Why does my automated git init script fail when Git is not installed?

Your automated git init script fails because the workflow includes a prerequisite check for Git availability to prevent errors, gracefully halting with an informative message if Git is missing rather than attempting a blind execution.