This skill automates repository initialization and commit workflows, generating .gitignore, filtering changes, scanning secrets, and configuring SSH remotes.
npx playbooks add skill chen19007/my_skills --skill git-commit
自动化 git 初始化/提交流程:识别项目类型、生成带注释的 .gitignore、智能筛选待提交文件、进行敏感信息扫描,并在需要时配置 GitHub SSH 远程。
git push -u origin <branch> 指令,不自动 push。git push。git@github.com:<owner>/<repo>.git。.git/ 或已有 origin,不得重复初始化或重复添加。git add .。可提交:源码/配置/文档/构建脚本/测试/锁文件。
应排除:构建产物、依赖目录、编辑器配置、系统文件、临时文件、日志、.env 等敏感文件。
api_key, token, password, secret, private_key, credentials。.pem, .key, .crt, .env, .sqlite。# Python
__pycache__/
*.py[cod]
.venv/
venv/
dist/
build/
*.egg-info/
.pytest_cache/
.coverage*
# Node.js
node_modules/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist/
build/
.env
.env.*
!.env.example
# Go
*.exe
*.dll
*.so
*.dylib
*.test
*.out
# Rust
/target/
# Web/General Build
out/
output/
# IDE
.vscode/
.idea/
.vs/
.cursor/
# OS
.DS_Store
Thumbs.db
Desktop.ini
# Temp
*.tmp
*.bak
*~
git remote set-url origin ...)。Initial commit: ...Add: / Fix: / Update: / Remove: + 简短摘要Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.