Skip to main content

Repository Management Commands

Commands for managing GitHub repositories, maintaining the org inventory, and ensuring compliance.

Repository Discovery

CommandDescription
gha listList repos for a user or organization
gha routeRoute PRDs/features to matching repos

Inventory Maintenance

CommandDescription
gha reconcileReconcile YAML inventory against GitHub API
gha update-repo-inventoryProfile-based reconciliation across all accounts
gha classifyClassify repos by kind and infrastructure
gha export-docsExport inventory as markdown documentation

Compliance and Security

CommandDescription
gha auditAudit repos for compliance issues (descriptions, config)
gha credential-scanScan repos for credentials and secrets

Typical Workflow

Weekly Inventory Check

  1. Run gha reconcile to detect drift between YAML and GitHub
  2. Run gha audit --org symphonycore-org to check compliance
  3. Run gha credential-scan --no-values to audit credentials
  4. Apply changes with gha reconcile --apply if drift is found

Routing a New Feature

  1. Run gha route --text "description of the feature" to find the best-fit repo
  2. Or run gha route --prd docs/prd-feature.md to match a full PRD
  3. Review signal matching scores to confirm the recommendation