Maintain CODEOWNERS path rules in Claude Code
Update CODEOWNERS in place using the repository's existing path style and check for duplicate rules and missing owners.
中文Install in Claude Code
A Claude Code repository with an existing CODEOWNERS file. Supply the target path and a confirmed GitHub owner or team name.
- Review `.claude/skills/update-codeowners/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/update-codeowners/` in your project and save the reviewed file as `.claude/skills/update-codeowners/SKILL.md`.
- Start Claude Code from that project's root, then select `/update-codeowners` in the slash menu.
Example task
The display-components group has `/fixtures/cards/ @studio-old`. The fictional request moves the same path to @studio-review while preserving the group and other rules.What to check
Replace the original row with `/fixtures/cards/ @studio-review`. Keep a single rule for this exact path, preserve the @ owner prefix, and summarize the owner change.
Original SKILL.md on GitHub · Updated
Frequently asked question
How do I change the code owner for an existing folder?
Find the existing path rule and replace its owners in place. Check that every non-comment rule has an owner and that there are no duplicate paths.