speckit-git-initialize

Initialize a Git repository with project-specific scripts or standard git commands.

Updated Dec 26, 2025
One-click install
npx skills add https://github.com/BOUROUIS-MOHAMED/monclub_access_python --skill speckit-git-initialize-bourouis-mohamed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/BOUROUIS-MOHAMED/monclub_access_python/tree/main/.agents/skills/speckit-git-initialize
Command: npx skills add https://github.com/BOUROUIS-MOHAMED/monclub_access_python --skill speckit-git-initialize-bourouis-mohamed

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

  • Execute the project-specific initialization script from the project root (bash or PowerShell) to create a ready-to-use repository, including checks to skip if Git is unavailable or already initialized.
  • Fall back to a standard git init, git add ., and git commit with an initial message when the scripts are not found.
  • Ensure safe operation with clear messaging for failures and optional customization (e.g., .gitignore templates, default branch naming, hooks).

Quick Start

Run the appropriate script from the project root to initialize the repository, or fall back to a git init, add, and commit if the scripts are unavailable.

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 with an initial commit?

To initialize a Git repository, the Skill runs project-specific bash or PowerShell scripts from the root directory, falling back to standard git init, add, and commit commands to create an initial commit message.

What happens if I run git initialize inside an existing repository?

If a Git repository already exists in the current project directory, the initialization process detects it and safely skips execution to prevent overwriting your current version control history and tracked files.

Can I use this to run initialization scripts in both Bash and PowerShell environments?

Yes, the initialization process supports both Bash and PowerShell environments, executing project-specific initialization scripts from the project root to set up the repository structure across different operating systems.

Do I need Git installed to initialize a repository with an initial commit?

Yes, Git must be installed on your system before running the initialization scripts, as the process relies on core Git commands to create the repository and generate the initial commit.

What is the fallback behavior when project-specific initialization scripts are unavailable?

When project-specific initialization scripts are not found, the process falls back to executing standard git init, git add ., and git commit commands to ensure an initial commit is still created with a default message.