gitignore-templates

Guides creating, selecting, and contributing .gitignore templates using GitHub's collection conventions.

Updated May 24, 2026
One-click install
npx skills add https://github.com/MWest2020/skill-forge --skill gitignore-templates-mwest2020
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitignore-templates
Source: https://github.com/MWest2020/skill-forge/tree/main/skills/gitignore-templates
Command: npx skills add https://github.com/MWest2020/skill-forge --skill gitignore-templates-mwest2020

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing the right .gitignore rules for a project is confusing: developers often dump editor and OS noise into committed files, misuse versioned templates, or get contributions to GitHub's gitignore collection rejected for ignoring curation conventions. ## Core Features & Use Cases - Template Selection: Explains the three-tier folder structure (root for evergreen templates, Global/ for editor/OS/tool rules, community/ for specialized and versioned templates) so you pick the right file. - Composition Guidance: Shows how to start from a root template, merge community/ rules for your frameworks, and keep personal editor/OS rules in Git's core.excludesFile instead of the committed file. - Contribution Workflow: Covers the rules for submitting new templates to github/gitignore, including header comments, versioning conventions, and the fork-branch-PR flow. - Use Case: When setting up a new Python project with PyCharm, use this Skill to combine the root Python template with community rules while keeping IDE files in your global ignore. ## Quick Start Ask the AI to help you create a .gitignore for your project by selecting the right templates from GitHub's gitignore collection and deciding which rules belong in the project file versus your global ignore.

Frequently Asked Questions about gitignore-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right .gitignore template for my project?

Start with the root template for your language or framework, which is the current evergreen version. Merge in community/ templates for specific frameworks you use, and keep editor or OS rules in your personal global ignore via Git's core.excludesFile.

How do I contribute a new template to GitHub's gitignore repository?

Read and follow the repo's CONTRIBUTING.md first, then fork the project, create a branch, add your curated template, and open a pull request against main. Keep the template a small, focused rule set for one language, framework, or tool.

Should editor and OS ignore rules go in the project .gitignore?

No, editor and OS rules from the Global/ folder belong in your personal global ignore configured through Git's core.excludesFile. Only merge them into the committed project file if the project permanently requires them.

Where do versioned .gitignore templates belong in the collection?

Versioned templates belong under community/ with the version number embedded in the filename. The root folder holds only the current evergreen version with no version in the name, while older versions move to community/ for legacy support.

Why was my gitignore template contribution rejected?

Common reasons include skipping CONTRIBUTING.md, submitting a sprawling unfocused rule set, or placing an install-manifest-style template at the root instead of community/. The collection curates only the most common and helpful rules.