← ClaudeAtlas

ignore-setuplisted

Set up a project so Claude stops discovering lockfiles, generated code, minified assets and binaries on every search — a managed .ignore, the Glob setting that makes Glob obey it, and a short read-deny list for secrets. Use when someone asks for a .claudeignore, asks to exclude files from the context, says Claude wastes time reading generated or vendored files, says searches return too much noise, or wants a project configured right after /init ("ajoute un .claudeignore", "exclure des fichiers du contexte", "nettoyer le contexte du projet"). Skip for a one-off permission tweak like "allow npm commands" (that is update-config) and for cutting permission prompts (that is fewer-permission-prompts).
Malo-T/claude-toolbelt · ★ 2 · Code & Development · score 66
Install: claude install-skill Malo-T/claude-toolbelt
# Ignore Setup Configure a project so the default file discovery is clean, while every excluded path stays readable on purpose. Three layers, one command. ``` /clean-context:ignore-setup ``` Measuring the before/after counts and writing patterns from the catalogue below is mechanical — don't deliberate over it. Save the actual thinking for the guardrails: what counts as generated, and when to ask before excluding something. ## `.claudeignore` does not exist If that is what was asked for, say so once and move on — it is the most common wrong turn here. There is no `.claudeignore` in Claude Code (verified by inspecting the 2.1.x binary: zero occurrences of `claudeignore`, `CLAUDE_IGNORE`, `ignoreFile`). A file placed at the root does nothing at all. What exists instead: | Lever | `Read` | `Grep` | `Glob` | `@` picker | |---|---|---|---|---| | `.gitignore` / `.ignore` | ignores it, reads anyway | **respected** | **not** respected | **respected** | | `env: CLAUDE_CODE_GLOB_NO_IGNORE=false` | — | — | **makes Glob respect them** | — | | `permissions.deny: ["Read(…)"]` | **hard block, no prompt** | **excluded** | **excluded** | excluded | Grep runs ripgrep without `--no-ignore` (only `.git`, `.svn`, `.hg`, `.bzr`, `.jj`, `.sl` are excluded in code), so it already obeys ignore files. Glob passes `--no-ignore --hidden` unless the env var above says otherwise. Read-deny rules are turned into negative ripgrep globs for Grep, Glob and the project file listing — that is the only le