author-contributions

Identifies all files an author contributed to on a branch, tracing contributions through git renames.

Updated Aug 30, 2026
One-click install
npx skills add https://github.com/Tyrizx/Tyrizx --skill author-contributions-tyrizx
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: author-contributions
Source: https://github.com/Tyrizx/Tyrizx/tree/main/.github/skills/author-contributions
Command: npx skills add https://github.com/Tyrizx/Tyrizx --skill author-contributions-tyrizx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When reviewing a branch before merge, it is hard to know exactly which files a specific person authored, especially when files were renamed or moved by other contributors. This Skill audits git history to attribute every file in the merge diff to a given author, including contributions hidden behind rename chains. ## Core Features & Use Cases - Exact author resolution: Matches the requested person to their precise git identity using git log or the GitHub MCP get_me tool, avoiding false matches on similar names. - Rename-aware attribution: Builds a transitive rename map across all branch commits so contributions survive multi-hop file moves (e.g., contrib/chat/ → agentSessions/ → sessions/). - Merge-scoped reporting: Only reports files present in the final upstream..branch diff, excluding files that were touched but later deleted. - Use Case: Before merging a long-lived feature branch, run this as a subagent to produce a markdown table classifying each file as DIRECT or VIA_RENAME with line stats, so reviewers know exactly what one author changed. ## Quick Start Ask the agent to find every file that a specific author contributed to on your current branch compared to main, tracing contributions through renames, and return a markdown table with status, file path, and line counts.

Frequently Asked Questions about author-contributions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find all files an author changed on a git branch?▼

Run git log with --author filtered to the exact author name over the upstream..branch range, then use git diff-tree on each commit to collect touched files. Cross-reference the results with git diff --name-only against the upstream to keep only files that will actually merge.

How to track code contributions through git file renames?▼

Build a rename map by running git diff-tree -r -M on every branch commit and parsing R-status lines into new-path to old-path mappings. Walk this map transitively from each file in the merge diff to check whether any ancestor path was touched by the target author.

Why does git author matching fail for some contributors?▼

The --author flag does substring matching, so short usernames may not match full display names or may match the wrong person. Resolve the exact identity first with git log --format="%an <%ae>" or the GitHub MCP get_me tool before filtering commits.

Does this approach include files the author deleted before merge?▼

No. Only files present in the final upstream..branch diff are reported, so files the author touched that were later deleted entirely are excluded because they will not land in the upstream.

Can this run as a subagent instead of inline?▼

Yes, and it should. The procedure executes many sequential git commands, so delegating it to a subagent keeps the main context clean and returns only a concise markdown table with DIRECT or VIA_RENAME status, file paths, and line statistics.