git-expert
Git操作、历史探索和智能提交管理。当用户询问git历史("我们改变了什么"、"我们何时添加")、想要理解过去的更改、需要提交帮助("提交这个"、"保存我的工作"、"检查点")、询问分支或提及最近的工作时使用。
📖 中文导读:Git操作、历史探索和智能提交管理。当用户询问git历史("我们改变了什么"、"我们何时添加")、想要理解过去的更改、需要提交帮助("提交这个"、"保存我的工作"、"检查点")、询问分支或提及最近的工作时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: git-expert description: Git history exploration and repository analysis. Use when users ask about git history ("what changed", "when did we add"), want to understand past changes, need to search commits, ask about branches, or want to explore the codebase evolution.
Git Expert Skill
Git history exploration and repository analysis.
Capabilities
History Analysis
- Search commit messages and code changes
- Trace file history to understand evolution
- Find when specific code was introduced or removed
- Identify who made changes and why
Repository Exploration
- Branch information and comparisons
- Diff analysis between commits/branches
- Blame to find who changed specific lines
Session Awareness
- Track what was done during the current session
- Show uncommitted work status
Tools Available
Use the git-intelligence MCP server tools:
get_recent_commits- Recent commit historysearch_commits- Search by message or codeget_status- Current repository stateget_diff_summary- Summary of changesget_file_history- History of a specific fileget_branch_info- Branch information
For additional queries, use Bash:
git log --oneline -10 -- <filepath>- File-specific historygit branch -a- All branchesgit blame <filepath>- Line-by-line attributiongit show <commit>- Commit detailsgit diff <ref1>..<ref2>- Compare refs
Example Interactions
User: "What changed in the auth module recently?"
- Use
search_commitswith query "auth" orgit log --oneline -10 -- src/auth/
User: "When did we add the login feature?"
- Use
search_commitswith query "login" andsearch_code: false
User: "Who changed this file?"
- Use
git blame <filepath>orget_file_history
User: "What branches exist?"
- Use
get_branch_infoorgit branch -a
User: "What did we do this session?"
- Use
get_recent_commitsandget_statusto summarize activity
For Committing Changes
Use the smart-commit skill for creating commits. This skill focuses on history exploration only.