skills/git-exclude/SKILL.md
将文件/文件夹添加到本地 git 忽略区(.git/info/exclude),不修改 .gitignore 文件。当用户说"忽略文件"、"本地忽略"、"git exclude"、"不提交"、"排除文件"、"添加到忽略"时触发。不适用于:修改 .gitignore、git rm 等通用 git 操作。
npx skillsauth add snailuu/skill git-excludeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
将文件/文件夹添加到 .git/info/exclude,实现本地忽略而不影响 .gitignore。
.gitignore:提交到仓库,所有协作者共享.git/info/exclude:仅本地生效,不会被提交git rev-parse --git-dir 2>/dev/null
AskUserQuestion 询问是否 git init支持的输入格式:单个文件、多个文件、文件夹(temp/)、通配符(*.log)、相对路径。
规范化处理:
.// 结尾# 检查文件是否存在
test -f .git/info/exclude && echo "exists" || echo "not exists"
# 幂等添加:检查重复后再追加
if ! grep -Fxq "pattern" .git/info/exclude 2>/dev/null; then
echo "" >> .git/info/exclude
echo "# Added by Claude Code on $(date '+%Y-%m-%d %H:%M:%S')" >> .git/info/exclude
echo "pattern" >> .git/info/exclude
fi
已存在的规则提示用户,不重复添加。
git check-ignore -v file.txt
git ls-files file.txt
如果文件已被跟踪,使用 AskUserQuestion 询问是否停止跟踪(git rm --cached)。停止跟踪后下次提交时该文件会从仓库中删除(本地文件保留)。
详细输出示例、故障排查和命令参考见 references/guide.md。
documentation
Use when 需要根据 git 历史生成或更新 CHANGELOG.md,尤其在发版前整理 Unreleased、版本区间、tag diff 或 Keep a Changelog 条目时。
development
Semantic Design System Skill for Google Stitch. Generates agent-friendly DESIGN.md files that enforce premium, anti-generic UI standards — strict typography, calibrated color, asymmetric layouts, perpetual micro-motion, and hardware-accelerated performance.
development
Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.
development
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.