coding-python-gitignorelisted
Install: claude install-skill bitranox/bitranox-skills
# igittigitt - git-compatible .gitignore parsing and file filtering
`igittigitt` is a spec-compliant `.gitignore` parser for Python - a **library and a CLI**.
Use it whenever you need to know "would git ignore this path?" or to filter / whitelist a
large set of files using `.gitignore`-style patterns.
## When to reach for this (and what to avoid)
Reach for `igittigitt` instead of writing your own matcher. Getting `.gitignore` semantics
right is deceptively hard - negations (`!pattern`), the rule that a file under an excluded
directory cannot be re-included, per-directory precedence, anchoring, `**`, trailing-slash
directory-only patterns, character classes. A quick `fnmatch`/`glob`/`re` solution will be
subtly wrong on real repositories.
| Need | Use | Avoid |
|--------------------------------------|--------------------------------------------------------|----------------------------------------------------------------------------------------|
| Is this path ignored (git-exact)? | `igittigitt.IgnoreParser` | hand-rolled `fnmatch`/`glob`/`re`; `gitignore_parser` (incomplete negation/precedence) |
| Copy a tree minus ignored files | `IgnoreParser.shutil_ignore` as `copytree(ignore=...)` | manual `os.walk` + skip lists |