Skill Index

loa-freeside/

bridgebuilder-review

community[skill]

Bridgebuilder — Autonomous PR Review

$/plugin install loa-freeside

details

Bridgebuilder — Autonomous PR Review

Prerequisites

  • gh CLI installed and authenticated (gh auth status)
  • ANTHROPIC_API_KEY environment variable set
  • Node.js >= 20.0.0

Usage

/bridgebuilder                          # Review all open PRs on auto-detected repo
/bridgebuilder --dry-run                # Preview reviews without posting
/bridgebuilder --pr 42                  # Review only PR #42
/bridgebuilder --repo owner/repo        # Target specific repo
/bridgebuilder --no-auto-detect         # Skip git remote detection

How It Works

  1. Resolves configuration from 5-level precedence: CLI > env > YAML > auto-detect > defaults
  2. Detects current repo from git remote -v (unless --no-auto-detect)
  3. Fetches open PRs via gh CLI
  4. For each PR:
    • Checks if already reviewed (marker: <!-- bridgebuilder-review: {sha} -->)
    • Builds review prompt from persona + truncated diff
    • Calls Anthropic API for review generation
    • Sanitizes output (redacts leaked secrets)
    • Posts review to GitHub (COMMENT or REQUEST_CHANGES)
  5. Prints JSON summary: { reviewed, skipped, errors }

Configuration

Set in .loa.config.yaml under bridgebuilder: section, or via environment variables:

SettingEnv VarDefault
reposBRIDGEBUILDER_REPOSAuto-detected from git remote
modelBRIDGEBUILDER_MODELclaude-opus-4-6
dry_runBRIDGEBUILDER_DRY_RUNfalse
max_prs10
max_files_per_pr50
max_diff_bytes100000
max_input_tokens8000
max_output_tokens4000
persona_pathgrimoires/bridgebuilder/BEAUVOIR.md

Persona

Override the default reviewer persona by creating grimoires/bridgebuilder/BEAUVOIR.md. The default persona reviews across 4 dimensions: Security, Quality, Test Coverage, and Operational Readiness.

Execution

This skill runs entry.sh which invokes the compiled Node.js application:

.claude/skills/bridgebuilder-review/resources/entry.sh [flags]

Exit Codes

CodeMeaning
0All reviews completed successfully
1One or more reviews encountered errors

technical

github
0xHoneyJar/loa-freeside
stars
7
license
NOASSERTION
contributors
6
last commit
2026-04-30T00:44:24Z
file
.claude/skills/bridgebuilder-review/SKILL.md

related