/install jrv-gitignore-gen
Gitignore Generator
Generate .gitignore files from GitHub's official template collection. Combine multiple templates, auto-detect project type, add custom rules.
Quick Start
# List all available templates
python3 scripts/gitignore_gen.py list
# Generate for a Python project
python3 scripts/gitignore_gen.py generate Python --force
# Combine multiple templates
python3 scripts/gitignore_gen.py generate Python Node JetBrains --force
# Auto-detect project type
python3 scripts/gitignore_gen.py detect /path/to/project
Commands
list
List all 200+ available templates. Filter with --filter:
python3 scripts/gitignore_gen.py list --filter java
generate
Create a .gitignore from one or more templates:
python3 scripts/gitignore_gen.py generate Python Node --stdout # print to stdout
python3 scripts/gitignore_gen.py generate Rust -o /tmp/.gitignore # custom output path
python3 scripts/gitignore_gen.py generate Go --append # append to existing
python3 scripts/gitignore_gen.py generate Swift --extra '*.local' --extra 'secrets/'
detect
Auto-detect project type from files in a directory:
python3 scripts/gitignore_gen.py detect # current directory
python3 scripts/gitignore_gen.py detect ~/myproj # specific path
Detects: Node, Python, Ruby, Rust, Go, Java, PHP/Composer, Dart, Elixir, Swift, Terraform, Docker, JetBrains, VS Code, and more.
Flags
--stdout— Print to stdout instead of writing a file--force— Overwrite existing .gitignore--append/-a— Append to existing .gitignore--output/-o— Custom output file path--extra/-e— Add custom ignore patterns (repeatable)--filter/-f— Filter template list by name
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jrv-gitignore-gen - 安装完成后,直接呼叫该 Skill 的名称或使用
/jrv-gitignore-gen触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gitignore Gen 是什么?
Generate .gitignore files for any project type using GitHub's 200+ official templates. Use when creating new projects, setting up repositories, needing to co... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 179 次。
如何安装 Gitignore Gen?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jrv-gitignore-gen」即可一键安装,无需额外配置。
Gitignore Gen 是免费的吗?
是的,Gitignore Gen 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gitignore Gen 支持哪些平台?
Gitignore Gen 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gitignore Gen?
由 John Wang(@johnnywang2001)开发并维护,当前版本 v1.0.0。