Skip to content
Agent Orchestration
Command

/ignore-init

Initialize .gitignore with Claude Code specific patterns

From plugin
claudekit
76424 skills35 agents24 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/ignore-init

Context preview

What this command does when you run it.

Initialize .gitignore with Claude Code specific patterns

Command definition

ignore-init.md
description: Initialize .gitignore with Claude Code specific patterns
allowed-tools: Read, Edit, Write, Bash(echo:*), Bash(cat:*), Bash(test:*)
category: workflow

Initialize .gitignore for Claude Code

Set up or update the project's .gitignore file with Claude Code specific patterns.

Core Claude Code Files to Ignore

Ensure these Claude Code local configuration files are ignored:

  • `CLAUDE.local.md` - Local AI assistant instructions (root)
  • `.claude/settings.local.json` - Personal Claude Code settings
  • `.mcp.local.json` - Local MCP server configuration (root)

Development Patterns

These common development artifacts will also be added:

  • `temp/` - Temporary working directory
  • `temp-*/` - Temporary directories with prefix
  • `test-*/` - Test directories with prefix
  • `debug-*.js` - Debug scripts
  • `test-*.js` - Test scripts
  • `*-test.js` - Test files with suffix
  • `*-debug.js` - Debug files with suffix

Current .gitignore Status

!`[ -f .gitignore ] && echo "EXISTS: .gitignore found" && echo "---CONTENTS---" && cat .gitignore || echo "MISSING: No .gitignore file found"`

Task

Based on the above status: 1. Create `.gitignore` if it doesn't exist 2. Add all patterns that aren't already present 3. Preserve existing entries and comments 4. Report what was added

Patterns to Add

# Claude Code local files
CLAUDE.local.md
.claude/settings.local.json
.mcp.local.json

# Temporary and debug files
temp/
temp-*/
test-*/
debug-*.js
test-*.js
*-test.js
*-debug.js

Implement this by: 1. Using the gitignore status above to determine what's missing 2. Adding missing patterns with appropriate comments 3. Preserving the existing file structure and entries

Read more
Ships withclaudekit

Smart guardrails and workflow automation for Claude Code - catch errors in real-time, save checkpoints, and enhance AI coding with expert subagents

Get the whole plugin

Other commands on claudekit.