Skip to content
Back to skills

Git

ASecurity

Basic git operations for repository inspection. Use for git diff, git log, git status, git remote, and other read-only git commands.

  • 470 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 7, 2026
toolsgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add aiskillstore/marketplace --skill git --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-git/badge)](https://www.skillsdirectory.com/skills/aiskillstore-git)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git
description: Basic git operations for repository inspection. Use for git diff, git log, git status, git remote, and other read-only git commands.
---

# 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

1. **Read-only**: This skill is for inspection only, not for making changes
2. **Prefer short output**: Use `--oneline`, `--stat`, or `-n` flags to limit output
3. **Branch detection**: Use `git branch --show-current` to identify the current branch
4. **Platform detection**: Use `git remote -v` to determine if GitHub or GitLab, then use the appropriate skill

Files in this skill

  • SKILL.md1.7 KB
  • skill-report.json9.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.