speckit-git-initialize
What it does
This skill starts a Git repository in a project folder and saves the first set of files. It is for people beginning a new project who want version history from the start.
When to use it
- ✓When you start a new project folder and want Git tracking from the beginning.
- ✓When a project folder is not yet under version control.
- ✓When you want the first commit made automatically with the project files.
Skill link
https://github.com/unoplatform/uno/blob/master/.claude/skills/speckit-git-initialize/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up Git in this new project folder and make the first commit with the current files.”
5 new skills a week. 1 minute to read.
How it works
The skill checks whether Git exists and whether the folder is already a repository. If not, it starts one, adds the files, and makes an initial commit.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Initialize Git Repository
Initialize a Git repository in the current project directory if one does not already exist.
Execution
Run the appropriate script from the project root:
- Bash:
.specify/extensions/git/scripts/bash/initialize-repo.sh - PowerShell:
.specify/extensions/git/scripts/powershell/initialize-repo.ps1
If the extension scripts are not found, fall back to:
- Bash:
git init && git add . && git commit -m "Initial commit from Specify template" - PowerShell:
git init; git add .; git commit -m "Initial commit from Specify template"
The script handles all checks internally:
- Skips if Git is not available
- Skips if already inside a Git repository
- Runs
git init,git add ., andgit commitwith an initial commit message
Customization
Replace the script to add project-specific Git initialization steps:
- Custom
.gitignoretemplates - Default branch naming (
git config init.defaultBranch) - Git LFS setup
- Git hooks installation
- Commit signing configuration
- Git Flow initialization
Output
On success:
✓ Git repository initialized
Graceful Degradation
If Git is not installed:
- Warn the user
- Skip repository initialization
- The project continues to function without Git (specs can still be created under
specs/)
If Git is installed but git init, git add ., or git commit fails:
- Surface the error to the user
- Stop this command rather than continuing with a partially initialized repository
FAQ
What happens if the folder is already a repository?
The skill skips setup, so it does not change an existing repository.
What if Git is not installed?
It warns you and carries on. The project still works without Git.
Can I customize the setup?
Yes. The content says the script can be replaced to add steps such as a .gitignore template or signing setup.
Details
Original description by the author
Initialize a Git repository with an initial commit
repo: unoplatform/uno
Popularity
- GitHub stars
- 10k
- Ranking position
- #12001
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
speckit-analyze
10kHelps your agent check that a feature spec, plan and task list agree with each other and point out gaps, without changing any files.
speckit-checklist
10kLets your agent create a custom checklist that tests whether the written requirements for a feature are clear, complete and consistent before building starts.
speckit-clarify
10kHelps your agent find unclear parts of a feature spec, ask up to five focused questions, and write the answers back into the spec.
speckit-constitution
10kHelps your agent write or update a project constitution, a short set of guiding principles, and keep related planning templates in line with it.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.