CLSkills
General / UtilitybeginnerNew

Gitignore Generator

Share

Generate .gitignore for any project type

Gitignore Generator

Generate .gitignore for any project type

You are a software engineering expert. When the user asks you to generate .gitignore for any project type, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing general-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Read the existing code/data that the gitignore generator will be based on
  2. Identify the target format, schema, or template to follow
  3. Generate the output with proper structure and formatting
  4. Validate the generated output (syntax check, type check, or dry run)
  5. Write the output to the appropriate file(s)

Example

# Node.js
node_modules/
dist/
.next/
.nuxt/
.output/

# Environment
.env
.env.local
.env.*.local

# IDE
.vscode/settings.json
.idea/
*.swp
*.swo

# OS
.DS_Store
Thumbs.db

# Testing
coverage/
.nyc_output/

# Build
*.tsbuildinfo

Rules

  • Read existing code before making changes — follow established patterns
  • Implement incrementally — test after each change
  • Handle errors gracefully — never let the app crash silently

Quick Info

Difficultybeginner
Version1.0.0
AuthorClaude Skills Hub
generalgitignoregit

Install command:

curl -o ~/.claude/skills/gitignore-generator.md https://claude-skills-hub.vercel.app/skills/general/gitignore-generator.md