microsoft avatar

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-code

Installs 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

More from microsoft/vscode

All 15
1mksglu avatarcontext-modemksglu/context-modeUse context-mode tools (ctx_execute, ctx_execute_file) instead of Bash/cat when processing large outputs. Triggers: "analyze logs", "summarize output", "process3Kskills.sh installs
2microsoft avatarupdate-screenshotsmicrosoft/vscodeDownload screenshot baselines from the latest CI run and commit them. Use when asked to update, accept, or refresh component screenshot baselines from CI, or af3Kskills.sh installs
3greptileai avatargreploopgreptileai/skillsIteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments. 3Kskills.sh installs
4semgrep avatarcode-securitysemgrep/skillsSecurity guidelines for writing secure code. Use when writing code, reviewing code for vulnerabilities, or asking about secure coding practices like 'check for 2.8Kskills.sh installs
5paulrberg avataryeetpaulrberg/agent-skillsUse for GitHub PR/issue/discussion workflows: create/update PRs, issues, or discussions and post comments; triggers include yeet.2.6Kskills.sh installs
6heygen-com avatarhyperframes-read-firstheygen-com/hyperframesSTART HERE for any request to make, create, generate, edit, animate, or render a video, animation, motion graphic, explainer, title card, overlay, captioned vid2.4Kskills.sh installs