speckit-git-initialize

Initialize a Git repository with initial commit and custom configurations.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/ApothecaryMan/pharmaflow-ai --skill speckit-git-initialize-apothecaryman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/ApothecaryMan/pharmaflow-ai/tree/main/.agents/skills/speckit-git-initialize
Command: npx skills add https://github.com/ApothecaryMan/pharmaflow-ai --skill speckit-git-initialize-apothecaryman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of initializing a Git repository, ensuring proper setup and custom configurations for project-specific requirements.

Core Features & Use Cases

  • Git Initialization: Automates the creation of a Git repository with initial commit.
  • Compatibility Check: Ensures compatibility with spec-kit project structure.
  • Customization Support: Allows for project-specific Git configurations such as .gitignore templates, default branch naming, and Git LFS setup.
  • Fallback Mechanism: Provides a default initialization if the extension scripts are not found.

Quick Start

Run the following command in the project root: .specify/extensions/git/scripts/bash/initialize-repo.sh

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 custom configurations for a spec-kit project?

To initialize a Git repository with custom configurations, run the provided shell script from your project root to automate repository creation and commit the initial version. The script specifically supports spec-kit project structures containing a .specify/ directory.

What custom Git configurations can I set up during repository initialization?

During Git repository initialization, you can configure project-specific settings including .gitignore templates, default branch naming, and Git LFS setup. These custom configurations are applied automatically when you run the initialization script.

Does repository initialization work if the extension scripts are missing?

Repository initialization works even if extension scripts are missing because the process provides a fallback mechanism. If the required extension scripts are not found, it defaults to a standard Git initialization process to ensure the repository is still created.

How do I ensure Git initialization compatibility with my spec-kit project structure?

Git initialization compatibility with your spec-kit project structure is ensured through a compatibility check for the .specify/ directory. The initialization script verifies this directory exists before applying the project-specific Git configurations.

What is the best way to automate creating a Git repository and committing the initial version?

The best way to automate creating a Git repository and committing the initial version is by executing the initialization script. This script handles the Git setup commands and creates the initial commit automatically, streamlining the entire project setup process.