git-diff
- Repo stars 330
- License MIT
- Author repo claude-skill-registry
git-diff
Display git changes in GitHub-style unified diff format.
Execution
Run the Python script to display formatted diff:
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
- Staged Changes (
git diff --cached) - shown first if present - Unstaged Changes (
git diff) - working directory modifications
Examples
# 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
- Fluxly category
- 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
- Author / version / license
- @majiayu000 · MIT
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Guided setup
- External API key
- No requirement detected
- Detected OS requirements
- Unspecified
- Runtime requirements
- Python >=3.6
- Detected file/system behavior
-
- Read-only
- Shell exec
- Detected network behavior
- Local-only
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. Run the Python script to display formatted diff:
File headers: Dark background with filepath Line numbers: Two columns (old | new) Deletions: Red background with - marker
Staged Changes (git diff --cached) - shown first if present Unstaged Changes (git diff) - working directory modifications
Examples
Python 3.6+ Git installed and in PATH Terminal with ANSI color support
# 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 Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
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/githubdiff.py · src/components
body sha256 -> e480e076b70f
Decide Fit First
Design Intent
How To Use It
Boundaries And Review