PickSkill
← Back

Gitignore Generator

Generate .gitignore by analyzing your project. Use when setting up a new repo.

README.md
Rendered from GitHub raw
View raw ↗

ai-gitignore

Stop copy-pasting .gitignore templates from GitHub. This thing actually looks at your project and figures out what to ignore.

Install

npm install -g ai-gitignore

Usage

# Preview what it'll generate
npx ai-gitignore --preview
 
# Just write the .gitignore
npx ai-gitignore
 
# Custom output path
npx ai-gitignore --output ./my-project/.gitignore

How it works

It scans your project for config files like package.json, Cargo.toml, go.mod, etc. Then it asks OpenAI to generate a proper .gitignore based on what it finds. That's it. No templates, no guessing.

Requirements

Set your OPENAI_API_KEY environment variable. You'll need an OpenAI API key.

export OPENAI_API_KEY=sk-...

License

MIT