Elffuss BraidHub

kikocis/VibeCodeViewer public

3e6f37b1c407 · 1.6 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

Git does not provide a standard command for querying CODEOWNERS rules. In VibeCodeViewer, open the repository and enable Owners mode to see:

For command-line audits, use the parser in src/ownership.js or a dedicated external CODEOWNERS tool.

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.