/gitignore:language Optional — node, python, java, kotlin, c, go, elixir (any combination). Defaults to languages detected from project manifests.from gitignore
Adds curated build-artifact, cache, and environment patterns for Node.js, Python, Java, Kotlin, C, Go, or Elixir to a .gitignore file. Detects languages from project manifests or accepts explicit targets.
Ships in gitignore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add the curated build-artifact, cache, and environment patterns for one or more languages.
| Target | Template | Recognize |
|---|---|---|
| Node.js | ../../templates/node.gitignore | node, nodejs, npm, yarn, pnpm, javascript, js, typescript, ts |
| Python | ../../templates/python.gitignore | python, py, django, flask, fastapi, jupyter |
| Java | ../../templates/java.gitignore | java, maven, gradle |
| Kotlin | ../../templates/kotlin.gitignore | kotlin, kt, kts |
| C | ../../templates/c.gitignore | c, gcc, clang, make, cmake |
| Go | ../../templates/go.gitignore | go, golang |
| Elixir | ../../templates/elixir.gitignore | elixir, ex, mix, phoenix |
With no target given, detect from the repository root:
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
For Java vs Kotlin, check which sources dominate:
git ls-files '*.kt' '*.kts' | head -5; git ls-files '*.java' | head -5
Say which languages you detected and why, in one line. Do not add a template for a language with no evidence in the repository — an unused template is noise that hides nothing.
Read each selected template verbatim. Preserve its patterns, comments, and the order of its negation blocks.
Follow ../../references/merge-procedure.md exactly.
Canonical section headers: # --- Node.js ---, # --- Python ---,
# --- Java ---, # --- Kotlin ---, # --- C ---, # --- Go ---,
# --- Elixir ---.
Language templates overlap more than OS ones. The overlap table in
../../references/curation-notes.md lists what to expect — .env
blocks across Node/Python/Go, *.class and the Maven/Gradle blocks
across Java/Kotlin, *.so/*.dll/*.exe across C/Go. Each overlapping
entry is emitted once, under the first section that claims it.
dist/, build/, and out/
are not in the template because whether they are generated or
committed is project-specific — add them only on request, under their
own header. Framework outputs (.next/, .nuxt/, .svelte-kit/,
.docusaurus/) are likewise out of scope for the language template./build/ and /dist/ are root-anchored on purpose, so a
src/mypkg/build/ source directory is not hidden. .python-version
is not ignored — it is repo policy in some projects.**/build/ pairs with !**/src/**/build/, and the
Gradle wrapper negations must stay. Generic *.jar is omitted —
repositories legitimately contain vendored libraries and wrapper
binaries.*.map, *.out, bare build/) are omitted
because they often describe real project data. The kernel-module
patterns are narrow on purpose — .*.cmd matches the dot-prefixed
files the kernel build generates, not a project's gradlew.cmd or
build.cmd. *.mod collides with Go's go.mod: when both templates
are selected, emit !go.mod right after it (see the conflict table in
../../references/curation-notes.md). Build-system directories
(cmake-build-*, Autotools output) go in their own section, on
request.go.mod, go.sum, vendor/, go.work, and go.work.sum
stay versioned. A project that treats go.work as developer-local
can add those two lines explicitly. *.out is the one broad pattern
kept on purpose — it is go test coverage output — so check for
golden files first (git ls-files '*.out') and say so if the pattern
would hide testdata/*.out.mix.lock stays versioned for applications. A library
with a different release policy can ignore it on request. /doc/ is
ExDoc output, but some repositories keep hand-written docs there —
check git ls-files doc/ first and flag the conflict instead of
hiding tracked documentation..gitignore outside a Git repository.What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/addAdd user-specified entries to a .gitignore file, creating the file if it does not exist./gitignoreThis 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./osAdd OS-specific entries (macOS, Windows, or Linux metadata and filesystem artifacts) to a .gitignore file.npx claudepluginhub florianbuetow/claude-code --plugin gitignoreOther plugins' skills for the same job