Thanks for your interest in contributing! This guide covers the basics to get you started.
- Node.js v18 or later
- npm
git clone https://github.com/Spectra010s/git-aic.git
cd git-aic
npm install
npm run build- Create a branch from
main:
git checkout -b feat/your-feature-
Make your changes inside
src/. -
Build and verify:
npm run build- Format your code:
npm run format- Stage your changes, then generate a commit message with git-aic:
git add .
npm run commitgit-aic/
├── src/ # TypeScript source
│ ├── cli.ts # CLI entry point and command registration
│ ├── config/ # Configuration engine (cascading scopes)
│ ├── providers/ # AI provider integrations (Gemini, OpenAI)
│ ├── prompt.ts # Default system prompt
│ ├── confirm.ts # Commit confirmation flow
│ └── editor.ts # Editor-based editing
├── docs/ # Documentation
├── apps/web/ # Astro landing page and docs site
├── dist/ # Compiled output (do not edit)
└── package.json
| Script | Description |
|---|---|
npm run build |
Compile TypeScript to dist/ |
npm run format |
Format all files with Prettier |
npm run commit |
Generate an AI commit message via git-aic |
- Prettier handles formatting automatically. Run
npm run formatbefore committing. - Use double quotes, semicolons, and 2-space indentation.
- Follow Conventional Commits for all commit messages.
- Keep PRs focused on a single change.
- Reference any related issues (e.g.,
Closes #42). - Ensure the project builds cleanly before opening.
By contributing, you agree that your contributions will be licensed under the ISC License.