About update-gitignore
A skill that refreshes a project's .gitignore using git-agent, while preserving and restoring existing custom rules. It also provides a retry path for authentication errors.
Key features
- 01Preserve existing custom rules
- 02Run git-agent init for .gitignore
- 03Retry 401 errors with --free
- 04Restore custom rules
- 05Show the resulting diff
Use cases
- 01Refreshing a project's .gitignore
- 02Keeping local ignore rules during regeneration
- 03Retrying initialization after a 401 error
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ fradser/ dotclaude --skill update-gitignoreAfter installing, type/update-gitignorein Claude Code to confirm it loaded.
Details
From the project README- Preserve custom rules from existing .gitignore
git-agent init --gitignore --force- On auth error (401), retry with
--free - Re-add preserved custom rules
- Show diff
CLI reference: ${CLAUDE_PLUGIN_ROOT}/references/cli.md
Comments
Markdown supported