
Author Contributions
This does the grunt work of figuring out which files an author actually contributed to on a branch, including code that survives through renames. It's designed to run as a subagent because it shells out to a dozen git commands, builds a rename chain by walking every commit on the branch, then cross-references author commits against the final merge diff. The procedure is opinionated: it uses Python instead of shell loops to avoid zsh comment breakage, insists on exact author matching via git log output, and only reports files that will actually land in the merge. Useful before code review when you need to audit contributions or answer "what did this person touch" without manually grepping through history.
- skills.sh installs
- 3K
- GitHub stars
- 195.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add microsoft/vscode --skill author-contributions --agent claude-codeInstalls into .claude/skills of the current project.
Files
When asked to find all files a specific author contributed to on a branch (compared to main or another upstream), follow this procedure. The goal is to produce a simple table that both humans and LLMs can consume.
Run as a Subagent
This skill involves many sequential git commands. Delegate it to a subagent with a prompt like:
Find every file that author "Full Name" contributed to on branch
<branch>compared to<upstream>. Trace contributions through file renames. Return a markdown table with columns: Status (DIRECT or VIA_RENAME), File Path, and Lines (+/-). Include a summary line at the end.
Procedure
1. Identify the author's exact git identity
git log --format="%an <%ae>" <upstream>..<branch> | sort -u
Match the requested person to their exact --author= string. Do not guess — short usernames won't match full display names (resolve via git log or the GitHub MCP get_me tool).
2. Collect all files the author directly committed to
git log --author="<Exact Name>" --format="%H" <upstream>..<branch>
For each commit hash, extract touched files:
git diff-tree --no-commit-id --name-only -r <hash>
Sponsors
Details
- Repository
- github.com/microsoft/vscode
- Categories
- Git & Pull Requests, AI & Agent Building
- First seen
- Apr 16, 2026