gitignore

Create and update .gitignore files using GitHub templates and custom rules.

9|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/gwenwindflower/dotfiles --skill gitignore-gwenwindflower
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitignore
Source: https://github.com/gwenwindflower/dotfiles/tree/main/dot_agents/exact_skills/gitignore
Command: npx skills add https://github.com/gwenwindflower/dotfiles --skill gitignore-gwenwindflower

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This solves the tedious task of creating and updating .gitignore files by leveraging GitHub's templates and adding project-specific rules.

Core Features & Use Cases

  • Fetch and apply templates from GitHub using gh repo gitignore list/view.
  • Extend with project-specific ignore rules for tools and languages.
  • Use cases: starting a new project, auditing an existing repo, updating ignores when adding tools.

Quick Start

Generate a tailored .gitignore for your current project and save it to the repository root.

Frequently Asked Questions about gitignore

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

FAQPage Schema
How do I generate a .gitignore file for a new project using GitHub templates?

To generate a .gitignore file, fetch a base template from GitHub using gh repo gitignore commands and save it to your repository root. You can then extend the template by manually adding project-specific ignore rules for your tools and languages.

What is the best way to update .gitignore rules when adding new tools to an existing repository?

The best way to update .gitignore rules is auditing your existing repository and appending project-specific ignore patterns. You can fetch relevant template snippets via GitHub's gh tool and manually integrate new tool-specific exclusions into your current file.

Can I apply multiple language templates to a single .gitignore file?

Yes, you can apply multiple language templates by fetching different templates from GitHub and combining them. The workflow supports extending a base template with custom rules, allowing you to consolidate ignore patterns for multiple languages and tools in one file.

Do I need the GitHub CLI installed to fetch gitignore templates?

Yes, fetching gitignore templates requires the GitHub CLI, specifically the gh repo gitignore list and view commands. This dependency allows you to programmatically retrieve official templates, which you can then supplement with manual project-specific patterns.

Why should I audit my .gitignore file for an existing codebase?

You should audit your .gitignore file to ensure unnecessary files are not tracked in version control. This process involves reviewing existing repository ignores, fetching updated templates, and adding missing patterns for newly integrated tools to maintain a clean dev environment.