Automated summary
This skill shows line-by-line authorship information for a file, revealing who last modified each line and when.
Strengths
- Quickly identifies the author of each line of code
- Helps trace the origin of bugs
- Simple to use with optional line ranges
- Works in any Git repository
Limitations
- Only shows the last modification, not full history
- Can be slow on very large files
- Requires a local Git repository
Use this skill when you need to know who last modified a specific line or want to find the origin of a change.
Do not use it if you need the full commit history of a line or if the file is outside a Git repository.
Security analysis
SafeThe skill runs git blame, a read-only git command that shows file authorship. It does not involve destructive operations, data exfiltration, or execution of untrusted code.
No concerns found
How this analysis is madeExamples
Show blame for /src/main.goShow blame for lines 10-20 of /src/auth.goShow blame for /app/utils.py and include summary statisticsname: git-blame description: Show line-by-line authorship information for a file. Returns the commit hash, author, and date for each line. allowed-tools: Bash metadata: category: git version: 1.0.0
Git Blame Skill
This skill shows line-by-line authorship information for a file, revealing who last modified each line and when.
Usage
The git-blame skill analyzes a file and returns authorship information for each line, with optional line range filtering.
Parameters
| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | path | string | Yes | - | File path to blame | | start_line | int | No | 1 | Starting line number (1-indexed) | | end_line | int | No | - | Ending line number (inclusive) |
Example Usage
Blame an entire file:
Show blame for /src/main.go
Blame specific lines:
Show blame for lines 10-20 of /src/auth.go
Result Format
The blame result includes:
For each line:
- Line number (1-indexed)
- Commit hash that last modified this line
- Author name
- Author email
- Timestamp of the modification
- Line content
Summary statistics:
- Unique authors count
- Unique commits count
Line Information Fields
| Field | Description | |-------|-------------| | line_number | 1-indexed line number | | commit_hash | Hash of commit that last changed this line | | author | Name of the author | | author_email | Author's email address | | author_time | When the line was last modified | | content | The actual line content |
Use Cases
- Find code ownership: Identify who wrote specific code
- Track bug origins: Find when a problematic line was introduced
- Review history: Understand how code evolved
- Contact experts: Find who to ask about specific code
- Code review: See recent changes in context
Best Practices
- Use line ranges for large files to focus on relevant sections
- Cross-reference commit hashes with git-log for full context
- Check unique authors to understand code ownership patterns
- Use for debugging to find when issues were introduced
- Combine with git-log to trace the full history of changes
Interpreting Results
- Multiple unique commits suggests the code evolved over time
- Single commit for all lines indicates recently added code
- Single author suggests concentrated ownership
- Many authors suggests collaborative development
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/git-blame-line-by-line-authorship-mm8o51m1/download' --output '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md.part' && mv '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md.part' '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md' && test -s '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/git-blame' && cp -R '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1' '.claude/skills/git-blame'Cursor
test -f '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md' && test -s '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/git-blame' && cp -R '.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1' '.cursor/skills/git-blame'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/git-blame-line-by-line-authorship-mm8o51m1'openskills read 'git-blame-line-by-line-authorship-mm8o51m1'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/git-blame-line-by-line-authorship-mm8o51m1/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.