skills/git/SKILL.md
Git version control discipline + cheatsheet. Use for commit/branch/stash/diff/push operations. Separate from github skill (platform/PR/issues).
npx skillsauth add arthur0824hao/skills gitInstall 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.
跟 github skill 分工:git = local 版本控制,github = remote platform (issues/PRs/actions)。 優先使用
.bh/scripts/bh-git.shwrapper;raw git 只在 wrapper 缺功能時用。
# Format
git commit -m "$(cat <<'EOF'
feat(bh): <description>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
EOF
)"
# Prefixes
feat(bh): — BH 新功能
feat(ep): — EP 新功能
fix(bh): — BH bug fix
chore: — 維護/清理
docs: — 文件
git worktree add| 禁止 | 替代 |
|---|---|
| git reset --hard | git stash 或 git checkout -- <file> |
| git push --force | git push(如需 force 問 Arthur) |
| git clean -f | 手動 rm 確認的檔案 |
| commit 大檔案 | .gitignore 先設 |
| commit esun_data/ | 永遠不 commit 敏感資料 |
# 狀態
git status # 看改了什麼
git diff # unstaged changes
git diff --staged # staged changes
git log --oneline -10 # 近 10 commit
# Stash
git stash # 暫存
git stash pop # 恢復
git stash list # 列出
# Cherry-pick
git cherry-pick <commit> # 挑特定 commit
# Worktree
git worktree add ../worktree-name branch-name
git worktree remove ../worktree-name
# Blame
git blame <file> # 誰改的哪一行
# Rebase (注意: -i 在 CLI 不可用)
# 用 git rebase <base> 不加 -i
bash .bh/scripts/bh-git.sh # 有 push guard, audit wrapper
# force push 會被 force_push_requires_arthur 擋下
github skilldata-ai
Persistent shared memory for AI agents backed by PostgreSQL (fts + pg_trgm, optional pgvector). Includes compaction logging and maintenance scripts.
tools
ICD Operator
tools
Canonical skill graph navigation skill for the Skill System.
tools
GitHub operations skill for gh CLI issue, label, template, and workflow management. Use when requests include: create issue, list issues, apply label, manage templates, check workflow, or gh operations.