mcpField
U
update-gitignore

update-gitignore

github.com/fradserDevelopment596105 installsUpdated 5w ago
Repository

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

  1. 01Preserve existing custom rules
  2. 02Run git-agent init for .gitignore
  3. 03Retry 401 errors with --free
  4. 04Restore custom rules
  5. 05Show the resulting diff

Use cases

  1. 01Refreshing a project's .gitignore
  2. 02Keeping local ignore rules during regeneration
  3. 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-gitignore

After installing, type/update-gitignorein Claude Code to confirm it loaded.

Details

From the project README
  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

Comments

Markdown supported