Automatically generate .gitignore files based on project type - Claude Code skill
npm install @blurtopian/auto-gitignore-skillA global Claude Code skill that automatically generates or updates .gitignore files based on detected project type.
Available on npm:
- @blurtopian/auto-gitignore-skill
- @aigentskills/auto-gitignore-skill
- Proactive Detection: Automatically detects when a project needs a .gitignore file
- Multi-language Support: Node.js, Python, Rust, Go, Java, Ruby, Swift, .NET, Aleo/Leo
- Smart Merging: Updates existing .gitignore without losing custom patterns
- Hybrid Templates: Uses gitignore.io API with local fallback for offline use
- Always Includes: Secrets, build folders, test output, OS/editor files
``bash`
npx @blurtopian/auto-gitignore-skill installor
npx @aigentskills/auto-gitignore-skill install
`bash`
npm pack @blurtopian/auto-gitignore-skill
tar -xzf blurtopian-auto-gitignore-skill-*.tgz
mkdir -p ~/.claude/plugins/repos
cp -r package/skill ~/.claude/plugins/repos/auto-gitignore
When you start Claude Code in a project directory, the skill automatically checks if a .gitignore is needed and suggests creating one.
`bash`
/gitignore # Auto-detect project type and create .gitignore
/gitignore --force # Overwrite existing .gitignore
/gitignore --types node,python # Specify types manually
Just ask Claude:
- "Create a gitignore for this project"
- "Update my gitignore"
- "Add Python patterns to gitignore"
| Type | Detection Files |
|------|-----------------|
| Node.js | package.json, node_modules/ |requirements.txt
| Python | , pyproject.toml, setup.py, Pipfile |Cargo.toml
| Rust | |go.mod
| Go | |pom.xml
| Java | , build.gradle |Gemfile
| Ruby | |Package.swift
| Swift | , *.xcodeproj |.csproj
| .NET | , .sln |program.json
| Aleo/Leo | , *.leo |
Regardless of project type, these are always included:
- Secrets: .env, .env., .pem, *.key, credentials.jsondist/
- Build: , build/, out/, target/, bin/, obj/coverage/
- Test Output: , .nyc_output/, test-results/.DS_Store
- OS/Editor: , .idea/, .vscode/, *.swp
`bash``
rm -rf ~/.claude/plugins/repos/auto-gitignoreor
auto-gitignore-skill uninstall
MIT