gitignore
Skill5 starsChanged 4 months agoMITView on GitHub
Generate or repair a .gitignore tailored to the project's actual stacks, frameworks, OS, and editors, and untrack files that are already committed but should be ignored. Flags secrets/build/dependency files that slipped into the repo. Use when creating, fixing, or auditing .gitignore.
- Reads credentials
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Pradnyeshp/Claude-Skillstheir own version, first seen Jul 6, 2026
- POSTTTT/SKILLstheir own version, first seen Jun 9, 2026
- jcsaaddupuy/badrobotstheir own version, first seen Feb 26, 2026
- sangre72/claude-skillstheir own version, first seen Jan 1, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Pradnyeshp/Claude-Skills★ 2same name
- jcsaaddupuy/badrobots★ 1same name
- POSTTTT/SKILLs★ 1same name
- sangre72/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository89 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- site/llms-full.txtllms.txt
- site/llms.txtllms.txt
- improveSkill
- academic-writingSkill
- benchmark-reportingSkill
- bibtex-managerSkill
- citation-graphSkill
- citation-verifierSkill
- design-science-methodologySkill
- docx-thesisSkill
- experiment-reproducibilitySkill
- latex-toolkitSkill
- literature-searchSkill
- lit-review-synthesisSkill
- paper-readerSkill
- proofread-academicSkill
- research-figuresSkill
- research-methodologySkill
- research-questionSkill
- statistics-advisorSkill
- supervisor-updateSkill
- systematic-reviewSkill
- thesis-proposalSkill
- coolify-image-appSkill
- coolify-vps-baselineSkill
- deploy-verificationSkill
- express-prisma-coolify-imageSkill
- ghcr-coolify-pipelineSkill
- live-domain-cutoverSkill
- nextjs-coolify-imageSkill
- proxy-client-addressSkill
- vps-ops-toolkitSkill
- adr-writingSkill
- openapi-specSkill
- readme-writingSkill
- technical-writingSkill
- adversarial-reviewerSkill
- api-design-reviewSkill
- code-review-responseSkill
- create-agentSkill
- create-commandSkill
- create-hookSkill
- create-skillSkill
- db-migration-safetySkill
- dependency-upgradeSkill
- dockerfile-best-practicesSkill
- error-handling-patternsSkill
- executing-plansSkill
- explain-codebaseSkill
- fix-ciSkill
- github-actions-pipelineSkill
- grill-with-docsSkill
- incident-postmortemSkill
- logging-and-observabilitySkill
- parallel-agentsSkill
- performance-optimizationSkill
- refactoring-recipesSkill
- solid-principlesSkill
- systematic-debuggingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Preserve existing intent: Don't wipe a hand-tuned .gitignore.
- Very specific: line 25
Tooling: test coverage (coverage/, .nyc_output/), env files (.env*), local caches (.cache/, .turbo/, __pycache__/).
- Very specific: line 29
Read the current .gitignore(s).
- Very specific: line 45
Use the canonical templates as reference (GitHub's github/gitignore, gitignore.io / Toptal generator) but tailor.
- Very specific: line 51
Don't over-ignore: if a glob would swallow a needed file (e.g.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Produce a .gitignore that fits this repo (driven by the stacks actually present, not a generic blob) and fix the common failure where a pattern is added but the file is already tracked, so Git keeps it anyway.
Hard rules: never break these
- Never ignore source. Ignore dependencies, build output, caches, logs, secrets, and local cruft, never the code or config the project needs to build.
- Adding a pattern does not untrack a tracked file.
.gitignoreonly affects untracked files. Already-committed files needgit rm --cached(Step 5) to stop being tracked. - Preserve existing intent. Don't wipe a hand-tuned
.gitignore; merge, dedupe, and organize. Keep custom and negation (!) rules unless they're clearly wrong. - Treat tracked secrets as an incident. A committed
.env, key, or credential is already in history; adding it to.gitignoreandrm --cachedstops future tracking but does not remove it from past commits. Flag it loudly and point to history-rewrite tooling (git filter-repo, BFG) and secret rotation. - Confirm before
git rm --cached. It changes what's tracked and lands in the next commit.
Step 1: Detect the stacks
Scan the repo for what's actually in use rather than guessing:
- Manifests → ecosystem:
package.json(Node),Cargo.toml(Rust),pyproject.toml/requirements.txt/Pipfile(Python),go.mod(Go),pom.xml/build.gradle(Java/Kotlin),Gemfile(Ruby),composer.json(PHP),*.csproj/*.sln(.NET),pubspec.yaml(Dart/Flutter),mix.exs(Elixir). - Frameworks (they add their own build/cache dirs): Next.js (
.next/), Nuxt (.nuxt/), Astro, SvelteKit, Vite (dist/), Angular, Django (*.sqlite3,staticfiles/), Rails, Terraform (.terraform/), etc. - OS files: macOS (
.DS_Store), Windows (Thumbs.db,Desktop.ini), Linux (*~). - Editors/IDEs:
.vscode/,.idea/,*.swp,.fleet/; these typically belong in a global gitignore, but include locally if the team standardizes there. - Tooling: test coverage (
coverage/,.nyc_output/), env files (.env*), local caches (.cache/,.turbo/,__pycache__/).
Step 2: Audit what's already tracked
- Read the current
.gitignore(s); there may be nested ones in subdirectories. - Find files that are tracked but shouldn't be: compare
git ls-filesagainst the patterns you intend (look especially fornode_modules/,dist//build/,target/,__pycache__/,*.log,.env*, key material*.pem/*.key/id_rsa). git status --ignoredshows what's currently ignored vs. not.- Anything sensitive already tracked → escalate per the hard rules.
Step 3: Build the patterns
Compose sections per detected stack. Cover, for each:
- Dependencies:
node_modules/,vendor/,target/,.venv/,Pods/. - Build output:
dist/,build/,out/,*.pyc/__pycache__/,*.class,bin/,obj/. - Env & secrets:
.env,.env.*(but keep!.env.example),*.pem,*.key,*.p12,credentials.json. - Logs & caches:
*.log,.cache/,.turbo/,.gradle/,.pytest_cache/. - Coverage:
coverage/,.nyc_output/,htmlcov/. - OS / editor: per Step 1.
Use the canonical templates as reference (GitHub's github/gitignore, gitignore.io / Toptal generator) but tailor; don't dump every language. Prefer anchored, specific patterns (/dist/ for a root-only dir) over broad ones that may catch wanted files.
Step 4: Write / repair the file
- Group with section comments (
# Dependencies,# Build output,# Env & secrets, …) for maintainability. - Deduplicate and remove contradictions; keep legitimate custom and
!negation rules. - Don't over-ignore: if a glob would swallow a needed file (e.g. a committed
config/*.json), add a negation (!config/required.json) or tighten the pattern. - Layer correctly: root
.gitignorefor repo-wide rules; nested.gitignoreonly where a subtree needs its own; suggest a personal global gitignore (core.excludesFile) for editor/OS noise rather than imposing it on the repo.
Step 5: Untrack already-committed files (with confirmation)
Editing .gitignore won't stop tracking files Git already knows about. For each such file/dir, after confirming:
git rm -r --cached path/to/thing # removes from tracking, keeps it on diskThen it stays on disk but drops out of the repo on the next commit. For tracked secrets, also flag history rewrite + credential rotation; rm --cached alone leaves them in every past commit.
Step 6: Verify
git status --ignored: intended files now show as ignored; nothing wanted is being ignored.git check-ignore -v <path>: explains which rule matches a given path (great for debugging surprises).- Confirm source and required config still appear in
git status/git ls-files.
Report the stacks detected, what got newly ignored or untracked, and any secrets/artifacts that need follow-up beyond .gitignore.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

