Generate .gitignore

Merge GitHub/gitignore templates into a workspace .gitignore file.

27|8|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/Sounder25/Google-Antigravity-Skills-Library --skill generate-gitignore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Generate .gitignore
Source: https://github.com/Sounder25/Google-Antigravity-Skills-Library/tree/main/15_generate_gitignore
Command: npx skills add https://github.com/Sounder25/Google-Antigravity-Skills-Library --skill generate-gitignore

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that projects stay clean by automatically pulling and merging well-known ignore templates from GitHub/gitignore into a single, up-to-date .gitignore file at the workspace root.

Core Features & Use Cases

  • Fetches templates for Python, Node, VisualStudio, macOS, and more, and merges them into one .gitignore.
  • Supports workspace-scoped generation and append vs overwrite modes.
  • Use Case: Initialize a new repo with a clean ignore policy or update an existing project to include new templates.

Quick Start

Run the skill to generate a .gitignore file by selecting templates (e.g., Python, Node) and the workspace path. Example: pwsh -File generate_gitignore.ps1 -WorkspacePath . -Templates Python,Node

Frequently Asked Questions about Generate .gitignore

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

FAQPage Schema
How do I generate a .gitignore file for multiple environments like Python and Node?

You can generate a .gitignore file by fetching and merging templates for Python, Node, and other ecosystems into a single file at your workspace root. This automatically ensures typical artifacts are covered.

Can I append new ignore templates to an existing .gitignore file?

Yes, you can append new ignore templates to an existing .gitignore file. By using the append mode instead of overwrite, the skill adds new template rules without discarding your current project configurations.

Does this .gitignore generator require internet access to fetch GitHub templates?

Yes, this .gitignore generator requires internet access to fetch templates. It pulls well-known ignore configurations directly from the GitHub/gitignore repository to assemble an up-to-date file at your workspace root.

How do I specify the workspace path and templates using PowerShell?

You specify the workspace path and templates by executing the PowerShell script with inputs like -WorkspacePath and -Templates. For example, pass Python,Node as template arguments to generate the file at the specified location.

What is the best way to update an existing repo with macOS and VisualStudio ignore policies?

The best way to update an existing repo with macOS and VisualStudio ignore policies is to fetch and merge these specific templates into your current .gitignore. This keeps your repository clean without manually compiling rules.