/install gitignore-sync
Gitignore Sync
Generate high-confidence .gitignore rules from real repo signals and gitignore.io, then update safely via a managed block so manual rules stay untouched.
Execution Rule
Use scripts/update_gitignore.py as the only execution path.
Do not fetch from the API directly in ad-hoc commands.
Do not manually compose or rewrite .gitignore when this skill is selected.
Workflow
- Infer requested templates from the user prompt.
- Detect likely templates from repository files and folders.
- Run
scripts/update_gitignore.pywith--prompt-textand/or--services. - Let the script fetch combined template rules from
https://www.toptal.com/developers/gitignore/api/\x3Ctemplates>. - Let the script write or update a managed block in
.gitignore. - Preserve non-managed user sections in
.gitignore.
Run
From the target repository root, run:
python3 \x3Cskill-path>/scripts/update_gitignore.py \
--prompt-text "create .gitignore for flutter firebase vscode" \
--repo .
Use explicit templates when the user names exact services:
python3 \x3Cskill-path>/scripts/update_gitignore.py \
--services flutter,firebase,visualstudiocode \
--repo .
Notes
- Prefer passing both
--prompt-textand--serviceswhen available. - Keep manual custom rules outside the managed block markers.
- Re-run safely; the script replaces only the managed block.
- Use
--rules-filefor offline/local testing when network access is blocked.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gitignore-sync - After installation, invoke the skill by name or use
/gitignore-sync - Provide required inputs per the skill's parameter spec and get structured output
What is Gitignore Sync?
gitignore-sync combines gitignore.io templates with your repo context to produce a cleaner `.gitignore` with fewer overlooked cases. It generates `.gitignore... It is an AI Agent Skill for Claude Code / OpenClaw, with 800 downloads so far.
How do I install Gitignore Sync?
Run "/install gitignore-sync" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Gitignore Sync free?
Yes, Gitignore Sync is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Gitignore Sync support?
Gitignore Sync is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Gitignore Sync?
It is built and maintained by Nikita (@nikita-holban); the current version is v0.1.3.