The Gitignore Generator is an AI agent skill published by agensi that automates the creation, auditing, and repair of .gitignore files across software projects. Rather than relying on a developer to manually write or copy patterns, the skill scans project manifests to detect the active tech stack — including Node.js, Python, Rust, Go, and Java — and produces a .gitignore file matched to that environment, including polyglot and monorepo setups.
Beyond file generation, the skill performs a multi-step audit of the repository. It checks the Git index for files that are already tracked but should be ignored — such as .env files, API keys, and other sensitive assets — and identifies hardcoded secrets in source code. It also validates .gitignore pattern syntax, covering edge cases like correct negation and recursive matching that are commonly handled incorrectly when patterns are written by hand or generated by a language model without this specialised logic.
When sensitive files have already been committed to history, the skill provides the exact CLI commands needed to purge those files from the Git index and history. Standard patterns for OS-specific junk files and common IDEs are included. The skill does not expose any callable tools in the conventional MCP sense; it operates as a reasoning and generation capability surfaced to the agent directly. It is the wrong choice if the project has no Git repository, or if only a simple one-language project is involved and the developer prefers a static template.