Elffuss BraidHub

kikocis/VibeCodeViewer public

300105aa82c9 · 1.4 KiBSourceRawPermalink

Code Ownership — Reference

Home / Technical reference / Code ownership · Español

VibeCodeViewer can visualize repository ownership in Owners mode by parsing two sources.

1. CODEOWNERS

The standard GitHub/GitLab file. Each line maps a path pattern to one or more owners:

/src/         @org/frontend-team
/backend/     @org/backend-team
*.md          @org/docs

The last matching rule wins, following GitHub semantics. VibeCodeViewer parses this in src/ownership.js.

2. package.yml with metadata.owner

A common monorepo convention: each component declares its owner in a package.yml file:

metadata:
  domain: YourDomain
  owner: '@org/your_team'
  reviewers: []

VibeCodeViewer scans all package.yml files in the tree and extracts metadata.owner as the owner of the folder that contains it.

Query ownership

# Owner of a file according to CODEOWNERS
git check-attr CODEOWNERS path/to/your/file.rb

# List files for a team
grep "@org/team-name" CODEOWNERS | awk '{print $1}'

Visualization

In Owners mode, each owner receives a color (hues distributed with the golden angle) and appears in a legend above the navigation panel with its file count. The color is attenuated through the full hierarchy: drawer, room, floor, building, and district are tinted according to the files they contain.