gitignore
/gitignore
This skill should be used when the user wants to "create a gitignore", "create a .gitignore for X", "update my gitignore", "add entries to gitignore", "ignore this in git", "gitignore for Python/Node/Java/Kotlin/C/Go/Elixir", "mac/windows/linux gitignore entries", or mentions .gitignore files, git ignore patterns, or keeping generated files out of version control.
- Author
- florianbuetow ↗
- Repository
- claude-code ↗
- Licence
- MIT
- Last repository change
- 07.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 07.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
This skill should be used when the user wants to "create a gitignore", "create a .gitignore for X", "update my gitignore", "add entries to gitignore", "ignore this in git", "gitignore for Python/Node/Java/Kotlin/C/Go/Elixir", "mac/windows/linux gitignore entries", or mentions .gitignore files, git ignore patterns, or keeping generated files out of version control.
Triggers from the description
Original author description
This skill should be used when the user wants to "create a gitignore", "create a .gitignore for X", "update my gitignore", "add entries to gitignore", "ignore this in git", "gitignore for Python/Node/Java/Kotlin/C/Go/Elixir", "mac/windows/linux gitignore entries", or mentions .gitignore files, git ignore patterns, or keeping generated files out of version control.
How it works
- Routing
SKILL.md preview
---
name: gitignore
description: This skill should be used when the user wants to "create a gitignore", "create a .gitignore for X", "update my gitignore", "add entries to gitignore", "ignore this in git", "gitignore for Python/Node/Java/Kotlin/C/Go/Elixir", "mac/windows/linux gitignore entries", or mentions .gitignore files, git ignore patterns, or keeping generated files out of version control.
disable-model-invocation: false
---
# Gitignore
Create or update a `.gitignore` file from a curated, conservative template
library — OS metadata, language build artifacts, or entries the user names
directly — without duplicating what the file already covers and without
disturbing what the user already wrote.
## Routing
### Step 1: Resolve the request into targets
A request like "create me a gitignore for a macOS Python project" or
"gitignore for Go on Linux, and also ignore `scratch/`" names three kinds
of target. Extract all of them from the user's wording:
**Operating systems** — `../../templates/macos.gitignore`,
`../../templates/windows.gitignore`, `../../templates/linux.gitignore`.
Recognize: macOS, mac, OSX, Darwin, Apple; Windows, win; Linux, Ubuntu,
Debian, Fedora, WSL.
**Languages** — `../../templates/node.gitignore`, and likewise
`python.gitignore`, `java.gitignore`, `kotlin.gitignore`, `c.gitignore`,
`go.gitignore`, `elixir.gitignore`.
Recognize: Node, Node.js, npm, yarn, pnpm, JavaScript, JS, TypeScript, TS;
Python, py, Django, Flask, FastAPI, Jupyter; Java, Maven, Gradle; Kotlin,
KT; C; Go, Golang; Elixir, Mix, Phoenix.
**Literal entries** — specific paths, directories, or globs the user
names (`scratch/`, `*.bak`, `data/raw/`).
A framework name implies its language (Phoenix → Elixir, Django →
Python, Next.js → Node.js), but framework-specific outputs are not in
the language templates — see the opt-in section of
`../../references/curation-notes.md`.
### Step 2: Fill the gaps by detection
If the request names no OS, detect the host:
```bash
uname -s
```
`Darwin` → macOS, `Linux` → Linux, `MINGW*`/`MSYS*`/`CYGWIN*` → Windows.
If it names no language, detect from manifests at the repository root —
resolve the root first, since the skill may be invoked from a
subdirectory:
```bash
root=$(git rev-parse --show-toplevel) && ls "$root"/{package.json,pyproject.toml,setup.py,requirements.txt,pom.xml,build.gradle,build.gradle.kts,go.mod,mix.exs,Makefile,CMakeLists.txt} 2>/dev/null
```
`package.json` → Node.js; `pyproject.toml`/`setup.py`/`requirements.txt` →
Python; `pom.xml`/`build.gradle*` → Java (Kotlin if `*.kt` sources or
`build.gradle.kts` dominate); `go.mod` → Go; `mix.exs` → Elixir;
`Makefile`/`CMakeLists.txt` with `*.c`/`*.h` sources → C.
State what you detected in one line. Do not add a template for a
language the repository shows no sign of.
### Step 3: Route
Dispatch in this order so sections land in a predictable order and
deduplication works on a stable sequence:
1. **OS targets** — follow the `gitignore:os` workflow.
2. **Language targets** — follow the `gitignore:language` workflow.
3. **Literal entries** — follow the `gitignore:add` workflow.
Skip any step with no targets. When only literal entries were named —
"add `scratch/` to my gitignore" — go straight to `gitignore:add` and do
no detection at all.
All three subskills share `../../references/merge-procedure.md`, so
running them in sequence cannot produce duplicate entries or a second
copy of a section header.
Invoke the appropriate subskills. Do not duplicate their logic here.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · florianbuetow/claude-code | 100 | MIT |
| khaledsaeed18/dotclaude | 100 | MIT |
Database snapshot: 13.11.2026 · package version 1a38dc0ff98a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100gitignore-builder
Build and merge .gitignore files using github/gitignore templates with smart project detection. Use when the user asks to "create gitignore", "build .gitignore", "add gitignore templates", "set up gitignore", "update gitignore", or requests "/gitignore". Also trigger when… - 100setup-gitignore
Initialize or idempotently revise the repo's .gitignore by composing gitignore.io templates, AI-tooling/IDE patterns, and confirmed noise from git status. Use when the user says "set up gitignore", "fix gitignore", or untracked files keep appearing in git status. - 95git-ignore
Create or audit .gitignore from actual repository outputs and privacy boundaries, preserving source, lockfiles and shared configuration. Use for ignore design, accidental tracking, nested-rule problems, and artifact exposure review. - 100configure-gitignore
Manage .gitignore's Claude Code block — worktrees, scheduled-task lock, local settings. Use when onboarding a repo or .gitignore lacks Claude entries. - 100gitignore-generator
Generate gitignore generator operations. Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category. Use when working with gitignore generator functionality. Trigger with phrases like "gitignore… - 100here-be-git
Initialise a git repository with optional agent commit instructions and .gitignore. Use when users say "here be git", "init git", "initialise git", or otherwise indicate they want to set up version control in the current directory.