author-contributions

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

Updated Apr 28, 2026
Ready to run
npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill author-contributions-cokistudios
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: author-contributions
Source: https://github.com/CokiStudios/cokistudios.github.io/tree/main/vscode-src/.github/skills/author-contributions
Command: npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill author-contributions-cokistudios

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Determining exactly which files a specific person contributed to on a feature branch is difficult with plain git commands, especially when files were renamed by other contributors during refactors. This Skill audits authorship across a branch versus its upstream and produces a concise table suitable for merge reviews. ## 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 Tracing: Builds a transitive rename map from all branch commits so contributions survive multi-hop file moves (e.g., contrib/chat/ → agentSessions/ → sessions/). - Merge-Diff Classification: Labels each file landing in the merge as DIRECT or VIA_RENAME, with line stats, excluding files that were later deleted. - Use Case: Before merging a long-lived branch, run this as a subagent to audit what code "Jane Doe" actually wrote, returning a markdown table with Status, File Path, and +/- lines plus a summary total. ## Quick Start Ask the AI to find every file that a specific author contributed to on your branch compared to main, tracing contributions through renames, and return a markdown table.

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?▼

Use `git log --author="Name" upstream..branch` to list their commits, then `git diff-tree --no-commit-id --name-only -r` per commit to collect touched files. Cross-reference with `git diff --name-only upstream..branch` to keep only files that will actually land in the 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 the 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 return the wrong person?▼

The `--author` flag does substring matching, so short names can match multiple contributors. First run `git log --format="%an <%ae>"` to list exact identities on the branch, or use the GitHub MCP `get_me` tool, then match the full display name.

Does this include files the author edited that were later deleted?▼

No. Only files present in the final merge diff (`git diff --name-only upstream..branch`) are reported, since deleted files will not land in the upstream. Files the author touched but that were removed entirely are excluded from the table.

Should authorship audits run as a subagent?▼

Yes. The procedure executes many sequential git commands, so delegating to a subagent keeps the main context clean. The subagent returns only a concise markdown table with Status, File Path, and line stats plus a summary total.