git-commit
Installation
SKILL.md
Git-Commit
概览
自动化 git 初始化/提交流程:识别项目类型、生成带注释的 .gitignore、智能筛选待提交文件、进行敏感信息扫描,并在需要时配置 GitHub SSH 远程。
核心工作流(按序执行)
- 评估仓库:检测当前目录与 git 状态;若非仓库再执行初始化。
- 识别项目类型:根据文件/清单判断语言栈(Python/Node/Go/Rust/Web 等)。
- 生成或补全 .gitignore:不存在则创建;存在则只追加缺失段落。
- 文件筛选:列出未跟踪/修改文件,按“可提交/应排除”分类并给出理由表。
- 隐私扫描:仅扫描“可提交文件”中的敏感模式与高风险文件扩展。
- 暂存与提交:仅暂存“可提交”清单;生成提交信息并提交。
- GitHub 远程:检查 remotes;无 origin 时创建仓库并添加 SSH remote。
- 提示用户:仅给出
git push -u origin <branch>指令,不自动 push。
关键约束
- 不自动执行
git push。 - 远程必须使用 SSH:
git@github.com:<owner>/<repo>.git。 - 若已有
.git/或已有origin,不得重复初始化或重复添加。
Related skills
More from chen19007/my_skills
godot-verify
|
22godot-tdd
Godot TDD(测试驱动开发)流程总控,协调 godot-design、godot-dev、godot-test、godot-verify 完成开发闭环。
2godot-tdd-full
Complete TDD workflow for Godot projects. Integrates interface design, GUT testing, code implementation, and verification tools.
2godot-web-e2e
End-to-end testing for any Godot Web export using Chrome DevTools and a local HTTP server. Use when verifying gameplay behavior in a Web build (not editor) and you need repeatable DevTools-driven input checks and console evidence.
2godot-test
|
2godot-dev
|
2