/claudeignore:update Optional — what to add, remove, or change (e.g., "add data/", "remove debug/").from claudeignore
Updates a .claudeignore file by adding, removing, or revising entries based on user request or repository drift analysis.
Ships in claudeignore. 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.
Modify an existing .claudeignore file based on the user's request or
a fresh analysis of the repository.
Read .claudeignore from the project root.
If the file does not exist, tell the user:
"No
.claudeignorefound in this project. Useclaudeignore:createto generate one from scratch."
Do not fall through to creation logic.
There are three update modes:
The user asks to add or remove specific entries (e.g., "add data/", "remove debug/", "stop ignoring reports/").
The user asks to "review" or "refresh" the claudeignore, or simply
invokes claudeignore:update without specifics.
.claudeignore:
.env, .env.*, *.pem, *.key,
or credential files that aren't ignored yet..claudeignore that no longer
exist in the repo.pyproject.toml, package.json), or key docs (README.md,
CLAUDE.md) that are being ignored — likely a mistake.If arguments are provided, parse them as directives:
update data/ logs/)- or ! → remove them (e.g., update -debug/ !reports/)--refresh or --check → trigger drift check (Mode B)Show the user what will change using a before/after or diff format:
Changes to .claudeignore:
+ data/ # add — 450 MB data files, not source code
+ logs/ # add — log output, not useful for context
- debug/ # remove — user wants debug scripts indexed
~ stubs/ → stubs/py # modify — narrow the scope
Ask:
"Here are the proposed changes. Apply them? (yes / edit / no)"
After confirmation:
.claudeignore content.After writing, report:
src/, lib/, tests/, or scripts/, flag it:
"Warning:
src/contains source code. Ignoring it means I won't see your application code. Are you sure?"
pyproject.toml, package.json, tsconfig.json, or similar, flag it:
"Warning: this is a project manifest. Ignoring it means I won't understand your project's dependencies and tooling. Are you sure?"
.env,
.env.*, *.pem, *.key, or credential files exist and aren't
ignored, flag them as recommended additions — defense in depth
against sensitive content entering context.Arguments are parsed as directives (see Mode C above). If no arguments are provided and the user's message doesn't specify what to change, default to Mode B (drift check).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/claudeignoreThis skill should be used when the user wants to "create a claudeignore", "update claudeignore", "optimize context", "ignore folders", "reduce token usage", "set up .claudeignore", or mentions .claudeignore, context window optimization, or ignoring directories from Claude Code indexing./createAnalyze a repository and generate a new .claudeignore file that excludes directories and files wasting context tokens.npx claudepluginhub florianbuetow/claude-code --plugin claudeignoreOther plugins' skills for the same job