# Update Gitignore

> Creates or updates a .gitignore file using git-agent AI generation. This skill should be used when the user asks to "update gitignore", "create gitignore", "add ignore rules", or needs to initialize ignore rules for a project.

- Skill: `tuyv/update-gitignore` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add tuyv/update-gitignore`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tuyv/update-gitignore/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tuyv (https://skillmd.com/u/tuyv)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tuyv/update-gitignore

---


1. Preserve custom rules from existing .gitignore
2. `git-agent init --gitignore --force`
3. On auth error (401), retry with `--free`
4. Re-add preserved custom rules
5. Show diff

CLI reference: `${CLAUDE_PLUGIN_ROOT}/references/cli.md`

