git diff
- Repo stars 330
- License MIT
- Author repo claude-skill-registry
- Domain
- Data
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 94 / 100 · heuristic scan, not runtime safety proof
- Runtime evidence
- Not run; no isolated runtime test evidence is currently recorded
- Author / version / license
- @majiayu000 · MIT
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- Python >=3.6
- Detected file/system behavior
-
- Read-only
- Shell exec
- Network behavior
- Local-only
- Install commands
- None (reference only)
Heads up: Tool permissions are not declared; actual access depends on the runtime.
# git-diff
Display git changes in GitHub-style unified diff format.
## Execution
Run the Python script to display formatted diff:
```bash
python3 scripts/github_diff.py [optional-path]
```
## Output Format
- **File headers**: Dark background with filepath
- **Line numbers**: Two columns (old | new)
- **Deletions**: Red background with `-` marker
- **Additions**: Green background with `+` marker
- **Context**: Neutral with both line numbers
- **Chunk markers**: Cyan `@@ -n,m +n,m @@` headers
## Sections
1. **Staged Changes** (`git diff --cached`) - shown first if present
2. **Unstaged Changes** (`git diff`) - working directory modifications
## Examples
```bash
# Show all changes
python3 scripts/github_diff.py
# Filter by path
python3 scripts/github_diff.py src/components/
```
## Requirements
- Python 3.6+
- Git installed and in PATH
- Terminal with ANSI color support
Sections and files
Listed in source order.
sections -> Execution → Output Format → Sections → Examples → Requirements
terms -> File headers · Line numbers · Deletions · Additions · Context · Chunk markers · Staged Changes · Unstaged Changes
files/cmd -> @@ -n,m +n,m @@ · git diff --cached · git diff · scripts/github_diff.py · src/components
body sha256 -> e480e076b70f
Execution
Run the Python script to display formatted diff:
Output Format
File headers: Dark background with filepath Line numbers: Two columns (old | new) Deletions: Red background with
-marker Additions: Green background with+marker Context: Neutral with both line numbersSections
Staged Changes (
git diff --cached) - shown first if present Unstaged Changes (git diff) - working directory modificationsRequirements
Python 3.6+ Git installed and in PATH Terminal with ANSI color support