/gitignore:add The paths, directories, or globs to ignore (e.g. "scratch/ *.bak data/raw/").from gitignore
Adds user-specified entries to a .gitignore file, creating it if needed. Handles normalization, hazard checks, and tracked-file warnings.
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 entries the user named — the default path when the request is "ignore X" rather than "set up a gitignore for a Python project".
Take the paths, directories, and globs from the arguments or the user's message. Normalize each one without changing its meaning:
scratch → scratch/ when
scratch exists and is a directory../: ./scratch/ → scratch/./ only if the user anchored it deliberately, or the
artifact is specifically a repository-root product. Say so if you add
one.**/name — a slashless pattern already
matches at any depth (see ../../references/curation-notes.md).If an entry looks like a template's worth of patterns — "ignore Python
stuff", "ignore mac files" — route to gitignore:language or
gitignore:os instead of hand-writing patterns here.
ls -d <entry> 2>/dev/null
git ls-files -- <entry> | head -5
git rm --cached <path> as a separate,
explicit step.src/, tests/,
README.md, CLAUDE.md, vendor/, Gradle wrapper — see
../../references/curation-notes.md): name the risk in one line and
ask before adding.Follow ../../references/merge-procedure.md exactly.
Entries land under # --- Project-specific --- unless they clearly
belong to a canonical section that already exists in the file — a
.DS_Store request joins # --- macOS ---, __pycache__/ joins
# --- Python ---. When an entry belongs to a template section that is
not in the file yet, offer the whole template instead of adding the one
line: "that's part of the Python template — want all of it?"
Give each added entry a short comment saying what produces it, in the style of the templates:
# --- Project-specific ---
# Local scratch work
scratch/
# Editor backups of generated SQL
*.bak
Per the merge procedure: what was added, what was skipped as already covered, what was withheld as a hazard, and any tracked-but-now-ignored files.
!) without the positive pattern it depends on
appearing before it..gitignore outside a Git repository.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub florianbuetow/claude-code --plugin gitignore4 skills in this plugin
/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./languageAdd programming-language-specific entries (Node.js, Python, Java, Kotlin, C, Go, or Elixir build artifacts and tool caches) to a .gitignore file./osAdd OS-specific entries (macOS, Windows, or Linux metadata and filesystem artifacts) to a .gitignore file.Other plugins' skills for the same job