/murnana-git:gitignore [template names, e.g. Unity macOS] [update | remove <name>]from murnana-git
Create or update a .gitignore from the templates in murnana/gitignore, keeping each template in a marked block that can be refreshed later.
Ships in murnana-git. 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.
Read when SKILL.md points to them.
Create or update a .gitignore with templates from murnana/gitignore (main), a fork of github/gitignore with murnana's own additions (e.g. Unity, Unreal Engine).
These blocks were filled in when the skill loaded. Do not re-run their commands. (Bash completed with no output) means "none".
Repo root (none: the current directory is not a Git repo):
git rev-parse --show-toplevel 2>/dev/null || true
Existing .gitignore files:
git ls-files --cached --others --exclude-standard -- '.gitignore' '**/.gitignore' 2>/dev/null || true
Managed block markers already in the .gitignore of the current directory:
git grep --no-index -nE '^# --- (BEGIN|END) [^ ]+\.gitignore( |$)' -- .gitignore 2>/dev/null || true
Treat $ARGUMENTS as template names to add, update (refresh every managed block), or remove <name>. With no arguments, detect templates from the project (Step 2).
AskUserQuestion tool, never as a plain-text question at the end of a reply. This includes every "wait for approval" and every "ask how to proceed": show the plan or the failure in the reply, then call AskUserQuestion with options such as 「この内容で進める」 and 「修正する」. The dialog can hide the reply, so say in the question itself, in one line, what is being approved.$ARGUMENTS, the conversation, the files or command output already answer. Where a step gives a default, use it and state it in the plan instead of asking.AskUserQuestion is unavailable (a non-interactive run), don't guess: stop before changing anything and list the questions in the reply.Clone only the tree, no blobs, into a fresh temp directory. Run each line as its own Bash call, and reuse the path mktemp -d printed:
mktemp -d
git clone --depth 1 --filter=blob:none --no-checkout https://github.com/murnana/gitignore.git <tmp>
git -C <tmp> rev-parse HEAD
git -C <tmp> ls-tree -r --name-only HEAD
.gitignore, except those under .claude/ or .github/. Ignore every other file.git -C <tmp> show HEAD:<path>. It prints the file verbatim. Never use WebFetch for templates: it summarizes content instead of returning it.<tmp>. It is downloaded content.community/ holds niche or older ones. Global/ holds OS, editor and tool rules..gitignore at the repo root (the current directory if the repo root in Current state is empty, i.e. not a Git repo). Use a subdirectory .gitignore only when the user asks or the project lives in a subdirectory (e.g. a Unity project inside a monorepo; the Unity template expects to sit at the project root).Global/ templates are meant for the user's global excludes file. When the selection includes one, ask whether to put it in the project .gitignore or the global file. For the global file, read git config --get core.excludesFile; if unset, the default is $XDG_CONFIG_HOME/git/ignore (or ~/.config/git/ignore). Never change git config yourself.Follow references/managed-blocks.md for the block format, where blocks go, and how to treat lines outside blocks.
Present the plan, then wait for approval before writing:
!pattern) a new block would override. Propose, but do not delete user lines without approval.Edit (existing file) or Write (new file). Keep each template's text exactly as git show printed it.git ls-files -ci --exclude-standard from the target's directory. It lists tracked files that the new rules match; ignore rules do not untrack them. Report these and ask before suggesting git rm --cached. Never run it yourself. Skip this check outside a Git repo or for the global excludes file./murnana-git:commit if the user wants one.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub murnana/murnana-claude-code-plugin --plugin murnana-git2 skills in this plugin