/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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gitignore-sync - 安装完成后,直接呼叫该 Skill 的名称或使用
/gitignore-sync触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gitignore Sync 是什么?
gitignore-sync combines gitignore.io templates with your repo context to produce a cleaner `.gitignore` with fewer overlooked cases. It generates `.gitignore... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 800 次。
如何安装 Gitignore Sync?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gitignore-sync」即可一键安装,无需额外配置。
Gitignore Sync 是免费的吗?
是的,Gitignore Sync 完全免费(开源免费),可自由下载、安装和使用。
Gitignore Sync 支持哪些平台?
Gitignore Sync 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gitignore Sync?
由 Nikita(@nikita-holban)开发并维护,当前版本 v0.1.3。