speckit-git-initialize

Detect existing Git work trees and output manual initialization commands.

Updated Aug 23, 2025
One-click install
npx skills add https://github.com/engakhattab/DEPI_Angular_project --skill speckit-git-initialize-engakhattab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-initialize
Source: https://github.com/engakhattab/DEPI_Angular_project/tree/main/Backend/HR/.agents/skills/speckit-git-initialize
Command: npx skills add https://github.com/engakhattab/DEPI_Angular_project --skill speckit-git-initialize-engakhattab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents accidental repository initialization in automated or guided environments while still helping users understand what commands they would need to run manually.

Core Features & Use Cases

  • Safe, read-only behavior: Refuses any Git write operation and never performs initialization or commits.
  • Repository detection: Checks whether a Git repository already exists and avoids unnecessary guidance.
  • Manual command guidance: Outputs a clear, required manual checklist for git init, staging, and the initial commit.

Quick Start

Tell the assistant to initialize a Git repository for the current project; it will respond with the manual commands required and will not execute them automatically.

Frequently Asked Questions about speckit-git-initialize

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

FAQPage Schema
How do I safely get the commands to initialize a Git repository without executing them?

To safely initialize a Git repository without executing write operations, use a read-only guidance tool that outputs the required manual commands for git init, staging, and committing. It refuses automated execution and only provides actionable instructions.

What commands do I need to manually run for repository initialization?

For repository initialization, you need to manually run git init to create the repository, git add to stage your files, and git commit to record the initial snapshot. A read-only guidance tool ensures these steps are provided without automatic execution.

Does this repository initialization guidance detect if a Git work tree already exists?

Yes, the repository initialization guidance detects whether a Git work tree already exists. By checking for an existing repository, it avoids outputting unnecessary manual git init commands and prevents accidental duplicate initialization in your current project directory.

Can I use automated assistant workflows to run git init and git commit directly?

No, automated assistant workflows cannot run git init, git add, or git commit directly in safe mode. The system enforces a strict read-only policy that blocks write operations, ensuring repository initialization must be completed by manually executing the provided commands.

Why does my automated dev workflow refuse to execute the initial Git commit?

Your automated dev workflow refuses to execute the initial Git commit because it operates under a safe-repository-mode read-only policy. This constraint blocks all write operations to prevent accidental repository initialization, instead outputting a required manual checklist for you to run.