gitignore
Skill32 starsChanged 15 days agoMITView on GitHub
Creates or refreshes .gitignore from gitignore.io templates and keeps the project block. Use when the user asks for a .gitignore, or the stack of the repository changes.
- Reads credentials
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Pradnyeshp/Claude-Skillstheir own version, first seen Jul 6, 2026
- KhaledSaeed18/dotclaudetheir own version, first seen Jul 4, 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 versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- KhaledSaeed18/dotclaude★ 7same name
- 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 repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- code-authoringSkill
- code-healthSkill
- commit-blocksSkill
- cookbook-writingSkill
- debug-rcaSkill
- doctorSkill
- goal-loopSkill
- handoffSkill
- initSkill
- lead-mergeSkill
- merge-auditSkill
- operatorSkill
- patch-fanoutSkill
- port-auditSkill
- solution-specSkill
- system-designSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Ask the project: look at the files in the repository, and read the last list in the project block comment or in AGENTS.md if it records one.
- Distinctive: line 51
Add a template only for a tool that the repository or the team uses.
- Distinctive: line 57
Do not remove a project rule: If a project rule is the same as a generated rule, keep it.
- Very specific: line 63
Write /.tool/cache for any depth.
- Distinctive: line 64
A second run changes nothing: when the templates did not change.
- Very specific: line 69
Check that the important rules still work.
“Common” is measured: kept by at least 6 in 10 of the 4 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
.gitignore from gitignore.io
gitignore.io keeps the standard ignore rules for each language, editor, and operating system. Rules that people write by hand become out of date and miss files.
The project-specific rules are different. They protect secrets and local state, and a careless regeneration can delete them without a sign. Thus this skill never writes the whole file. It replaces one marked block and keeps all other lines.
File shape
# >>> gitignore.io generated — do not edit by hand >>>
...rules from gitignore.io...
# <<< gitignore.io generated <<<
# === project-specific — never regenerated, must stay last ===
.local-state/
!.env.exampleThe project block must be last. git uses the last rule that matches. The templates contain their own .env
rules. If the generated block came after a !.env.example rule, git ignores .env.example again. The order is a
correctness rule.
Usage
The template list is a parameter: a comma-separated list of gitignore.io template names. Choose it from the
tools that the repository uses (examples: python,macos,visualstudiocode; node,macos,jetbrains; go,linux).
Ask the project: look at the files in the repository, and read the last list in the project block comment or in
AGENTS.md if it records one. If you cannot decide, ask the user once.
"${CLAUDE_PLUGIN_ROOT:-<directory of this skill>/../..}/skills/gitignore/scripts/sync-gitignore.sh" "<templates>" [path-to-.gitignore]Find the script relative to the directory of this skill (the harness gives the base directory when it loads the
skill). CLAUDE_PLUGIN_ROOT is set when the skill is part of a plugin.
To find a template name, search the list:
curl -s https://www.toptal.com/developers/gitignore/api/list | tr ',' '\n' | grep -i <term>Add a template only for a tool that the repository or the team uses. Each unused template adds lines that a reader must read. Write the chosen list in the report, so that the next refresh uses the same list.
Rules
- Do not write the whole file. The script replaces only the marked generated block.
- Do not remove a project rule. If a project rule is the same as a generated rule, keep it. An explicit rule is documentation.
- The script fails without a write. A network error or a truncated response does not change the file. The script checks that the response starts with the gitignore.io header.
- Put negations (
!rules) in the project block. They depend on the order, and the order is fixed there. - A slash that is not at the end anchors the rule to the root.
.tool/cachematches only./.tool/cache. Write**/.tool/cachefor any depth. - A second run changes nothing when the templates did not change. Check this with a second run and
git diff.
After a run
Check that the important rules still work. Do not assume it. The project AGENTS.md section ## Secrets names
the files that tools must never read. If a guard refuses a command that names an env file, check the other paths
yourself and ask the user to run the env checks:
git status --short --ignored -- <local state folders> # agent: !! means ignored
git check-ignore -v <secret file> # user: expect the secret rule
git status --short --ignored -- <env example file> # user: expect ?? (not ignored)git check-ignore exits with 0 when any pattern matches, also a negation. Read the rule that it shows, or use
git status as above.
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.

