Docs/Recipe: CODEOWNERS file writer
Recipe

CODEOWNERS file writer

Generate a validated CODEOWNERS file from your repository structure. Define ownership rules with glob patterns and team handles.

How it works

  1. 1Scan your repo — Meridian walks the directory tree and identifies logical ownership boundaries based on folder structure and existing maintainer metadata.
  2. 2Map teams to paths — assign GitHub teams or individual handles to glob patterns. Meridian validates every handle against your organization membership.
  3. 3Emit the file — a standards-compliant CODEOWNERS file lands at the repo root. Last-match-wins ordering is enforced automatically.

Syntax reference

Meridian follows the GitHub CODEOWNERS spec: glob patterns, optional leading slash for root anchoring, and @team or@user handles.