language
Add programming-language-specific entries (Node.js, Python, Java, Kotlin, C, Go, or Elixir build artifacts and tool caches) to a .gitignore file.
от florianbuetow★ 22 звезды на GitHub
Установить language в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Add language entries to .gitignore
Add the curated build-artifact, cache, and environment patterns for one or more languages.
Step 1: Resolve which language templates to apply
| 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.
Step 2: Read the templates
Read each selected template verbatim. Preserve its patterns, comments, and the order of its negation blocks.
Step 3: Merge
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.
Language-specific notes
- Node.js: lockfiles stay versioned.
dist/,build/, andout/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. - Python:
/build/and/dist/are root-anchored on purpose, so asrc/mypkg/build/source directory is not hidden..python-versionis not ignored — it is repo policy in some projects. - Java / Kotlin:
**/build/pairs with!**/src/**/build/, and the Gradle wrapper negations must stay. Generic*.jaris omitted — repositories legitimately contain vendored libraries and wrapper binaries. - C: broad names (
*.map,*.out, barebuild/) are omitted because they often describe real project data. The kernel-module patterns are narrow on purpose —.*.cmdmatches the dot-prefixed files the kernel build generates, not a project'sgradlew.cmdorbuild.cmd.*.modcollides with Go'sgo.mod: when both templates are selected, emit!go.modright 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:
go.mod,go.sum,vendor/,go.work, andgo.work.sumstay versioned. A project that treatsgo.workas developer-local can add those two lines explicitly.*.outis the one broad pattern kept on purpose — it isgo testcoverage output — so check for golden files first (git ls-files '*.out') and say so if the pattern would hidetestdata/*.out. - Elixir:
mix.lockstays 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 — checkgit ls-files doc/first and flag the conflict instead of hiding tracked documentation.
Constraints
- Never modify an existing entry or its comment, except the exact-match case defined in the merge procedure.
- Never add a framework or build-system pattern to a language section — give it its own header so the distinction stays visible.
- Never ignore lockfiles, manifests, or the Gradle wrapper without the user explicitly confirming (see the merge procedure's hazard list).
- Never write a
.gitignoreoutside a Git repository.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл language?
Add programming-language-specific entries (Node.js, Python, Java, Kotlin, C, Go, or Elixir build artifacts and tool caches) to a .gitignore file.
Как установить скилл language?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл language запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…