Initialize Repository
Initialize a new git repository with a comprehensive .gitignore and Claude Code project structure.
Instructions
- •
Check for existing git repo: If
.git/already exists, inform the user and abort. - •
Run the init script: Execute the initialization script:
bashbash ~/.claude/scripts/init-repo.sh
- •
Report results: Show the user what was created:
- •
.git/directory - •
.gitignorefile - •
.claude/folder structure - •Initial commit
- •
What Gets Created
code
project/
├── .git/
├── .gitignore # Comprehensive multi-language
└── .claude/
├── CLAUDE.md # Project context template
└── SPEC.md # Requirements template
Notes
- •The script is idempotent for the .gitignore (won't duplicate entries)
- •Creates templates in
.claude/for project documentation - •Makes an initial commit with message "Initial project setup"