What problem does it solve?
Large monorepos suffer from cross-team review bottlenecks when ownership of files is unclear. This Skill annotates any list of files with their owning team from CODEOWNERS, making it easy to split large PRs by team and keep team-specific directories organized.
Core Features & Use Cases
- Ownership Resolution: Run resolve-codeowners.js against a git diff or explicit file list to see which team owns each file, using last-rule-wins gitignore semantics.
- PR Splitting by Team: Pipe
git diff --name-only output into the script to group changed files by owning team before requesting reviews.
- CODEOWNERS Maintenance: Guidance for organizing monolithic files into team-* sub-directories and keeping CODEOWNERS entries in sync.
- Use Case: A developer opens a PR touching 80 files across five teams. They run the script on the diff, group files by owner, and split the PR into per-team chunks for faster review.
Quick Start
Annotate the files changed in my last commit with their CODEOWNERS teams so I can split this PR by owner.