Agent skill
git
Basic git operations for repository inspection. Use for git diff, git log, git status, git remote, and other read-only git commands.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-aiskillstore-marketplace
SKILL.md
Git CLI
Purpose
This skill provides access to basic git commands for inspecting repository state. Use this for read-only operations like viewing diffs, logs, and status.
Command Reference
Repository State
| Action | Command |
|---|---|
| Status | git status |
| Remote URLs | git remote -v |
| Current branch | git branch --show-current |
| All branches | git branch -a |
Viewing Changes
| Action | Command |
|---|---|
| Unstaged changes | git diff |
| Staged changes | git diff --cached |
| All changes | git diff HEAD |
| Changes vs branch | git diff <branch>...HEAD |
| Changed files only | git diff --name-only |
| Stat summary | git diff --stat |
History
| Action | Command |
|---|---|
| Recent commits | git log --oneline -n 10 |
| Branch commits | git log main..HEAD --oneline |
| Commit details | git log -1 --format=full |
| File history | git log --oneline -- <file> |
| Blame | git blame <file> |
Inspection
| Action | Command |
|---|---|
| Show commit | git show <commit> |
| Show file at commit | git show <commit>:<file> |
| List tracked files | git ls-files |
Behavioral Guidelines
- Read-only: This skill is for inspection only, not for making changes
- Prefer short output: Use
--oneline,--stat, or-nflags to limit output - Branch detection: Use
git branch --show-currentto identify the current branch - Platform detection: Use
git remote -vto determine if GitHub or GitLab, then use the appropriate skill
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?