agentdb-advanced
Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid…
Drive a PR to an approved code review by looping OCR's multi-agent review and address steps. Runs /ocr:review then /ocr:address repeatedly until the review verdict is APPROVE, then one final /ocr:address for leftover suggestions, posting every review and every address round to
Claude Code
$ npx -y skills add spencermarx/open-code-review --skill ocr-review-loop --agent claude-code
Codex
$ npx skills add spencermarx/open-code-review --skill ocr-review-loop -a codex -y
Cursor
$ npx skills add spencermarx/open-code-review --skill ocr-review-loop -a cursor -y
Gemini CLI
$ npx skills add spencermarx/open-code-review --skill ocr-review-loop -a gemini-cli -y
GitHub Copilot
$ npx skills add spencermarx/open-code-review --skill ocr-review-loop -a github-copilot -y
OpenCode
$ npx skills add spencermarx/open-code-review --skill ocr-review-loop -a opencode -y
Windsurf
$ npx skills add spencermarx/open-code-review --skill ocr-review-loop -a windsurf -y
name: "OCR Review-to-Approval Loop" description: "Drive a PR to an approved code review by looping OCR's multi-agent review and address steps. Runs /ocr:review then /ocr:address repeatedly until the review verdict is APPROVE, then one final /ocr:address for leftover suggestions, posting every review and every address round to the GitHub PR as comments with machine-readable markers. This is the pre-review CONTRIBUTING.md requires before maintainer review (APPROVE verdict, at least 2 distinct personas, covering the PR head). Use when the user asks to 'review and address in a loop', 'iterate review until approved', 'auto review-and-fix this PR', 'loop /ocr:review and /ocr:address', or to take a changeset all the way to a clean APPROVE with the default reviewer team. Wraps the /ocr:review (.ocr/commands/review.md) and /ocr:address (.ocr/commands/address.md) skills; needs a feature branch with an open GitHub PR and the gh CLI for posting."
Orchestrates an autonomous **review → address → re-review** loop on a pull request, using OCR's existing multi-agent review pipeline, until the review reaches an **APPROVE** verdict — then runs one final address pass for leftover suggestions. Every review and every address round is posted to the GitHub PR as a comment, producing a transparent, reviewable audit trail.
In this repo the loop is **required before maintainer review** (CONTRIBUTING.md → "Required: OCR review loop before maintainer review"). Each posted comment carries a hidden marker that the `ocr-review-gate` workflow reads to decide whether the PR keeps its `needs-ocr-review` label. The policy needs: the latest review verdict is APPROVE, the team had **at least 2 distinct personas** (3+ encouraged), and the PR's **current head commit** is the one that APPROVE review covered, or the one pushed by an address pass posted after it (normally the final pass, `round=final`).
It is a thin **orchestrator** over two skills it does not reimplement:
they belong in the PR before committing anything; never `git add -A` blindly, since this skill pushes to a public PR.
/ocr-review-loop [pr] [--team <spec>] [--max-rounds N] [--no-final-suggestions] [--no-post]
`/ocr:review`. **Default: the project's default team** (`ocr team resolve`). Must contain at least 2 distinct personas; 3+ encouraged, e.g. `principal:2,quality:2,security:1`.
runs forever.
This leaves no evidence on the PR, so it does **not** satisfy the contribution policy.
---
> Execute this inline, to completion, in the conversation. Do not schedule across turns or > background the work. Drive each review's phases 4→7 within one turn (OCR's "don't strand > the pipeline" rule). See `reference/loop-mechanics.md` for the exact CLI/session details, > the marker formats, and the GitHub comment templates.
**0. Preconditions.** Resolve the PR and branch; refuse to run on the default branch. Confirm `gh` (unless `--no-post`) and OCR setup. Resolve the reviewer team (default unless `--team`) with `ocr team resolve [--team "<spec>"] --json`, which returns `[{persona, instance_index, name, model}]`, and count the **distinct `persona` values**. **If there are fewer than 2, STOP** before reviewing and explain the policy: the loop needs at least 2 distinct personas (e.g. `--team principal:2,quality:2`, which is the default), and 3 or more are encouraged (e.g. `--team principal:2,quality:2,security:1`). Instance counts don't help (`principal:3` is still one persona), and ephemeral `--reviewer` personas don't count because they have no persona id.
**1. Review-address loop.** Count iterations with a local `iteration` (starting at 1, capped by `max-rounds`). The **round number** used in file paths and markers is OCR's own (`round-{n}` in the session), which continues across same-day re-runs, so never assume it equals `iteration`. While the verdict is not `APPROVE` and `iteration <= max-rounds`:
1. **Push, then review the whole PR** — make sure the tree is clean (ask before committing anything the loop didn't produce), `git push`, and confirm the PR's head SHA equals local `HEAD` (retry once if GitHub hasn't caught up), so the reviewed commit is the PR's commit. Record that full 40-hex SHA. Invoke `/ocr:review` with the **full PR range as the target**: the PR's base commit (`baseRefOid`, fetched so it exists lo
AI-powered multi-agent code review. Simulates a customizable team of Engineers performing code review with built-in discourse.
Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid…
Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer,…
Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning,…
Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch…
Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware…
Web browser automation with AI-optimized snapshots for claude-flow agents
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.