brand_connect_repo
Connect a GitHub repository to Brandcode Studio to sync brand data automatically. The .brand/ directory serves as the source of truth, with updates applied every 5 minutes.
Instructions
Connect a GitHub repository to Brandcode Studio for automatic brand syncing. The repo's .brand/ directory becomes the source of truth — push changes to git and Studio picks them up every 5 minutes. Requires auth (run brand_brandcode_auth first). Use when the user says "connect my repo", "sync from GitHub", "link my brand repo", or "set up git-connected brand".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repo in "owner/repo" format (e.g. "acme-corp/brand-system") | |
| brand_slug | Yes | Brand slug to connect this repo to (e.g. "acme"). Must match an existing hosted brand or will create one. | |
| branch | No | Branch to watch (default: main) | main |
| brand_path | No | Path to .brand/ directory within the repo (default: .brand) | .brand |
| brandcode_url | No | Brandcode Studio URL (default: https://www.brandcode.studio) |