| What was just completed | What's next |
|---|---|
| Implemented `skills/review-xyz/`, `utils/py/review_xyz.py`, regression test suite `test/gh132-review-xyz-skill.sh` (19/19 pass), executed dual dogfood reviews with Qwen 3.8-Max and stealth/ox-alpha, and opened PR #133. | Merge PR #133 into `development` and close out issue #132. |
Installs into .claude/skills of the current project.
Are you the author of 3 COMPLETED?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hiqs-labs-3-completed)
---
title: "GH-132: Formal /review-xyz Code Review Skill & Multi-Model Harness"
gh_issue: 132
source: "https://github.com/HiQS-Labs/XYZ-forge/issues/132"
status: active
created: 2026-08-21
updated: 2026-08-21
owner: Antigravity
goal: "Ship a deterministic, first-class /review-xyz code review skill and Python engine supporting throwaway-worktree multi-model reviews and automated PR/issue comments."
doc_type: feature
---
# GH-132 — Formal `/review-xyz` Code Review Skill & Multi-Model Harness
## Status
| What was just completed | What's next |
|---|---|
| Implemented `skills/review-xyz/`, `utils/py/review_xyz.py`, regression test suite `test/gh132-review-xyz-skill.sh` (19/19 pass), executed dual dogfood reviews with Qwen 3.8-Max and stealth/ox-alpha, and opened PR #133. | Merge PR #133 into `development` and close out issue #132. |
## Quad Concepts
- **Deterministic Review Execution:** Standardized, structured finding schema (`[Blocker]`/`[Should]`/`[Nit]`/`[Pass]`) with citation verification.
- **Throwaway Worktree Isolation:** Safe, no-mutation review runs using `git stash create` and disposable worktree checkouts.
- **Frontier Multi-Model Dispatch:** Direct invocation of Command Code (`Qwen/Qwen3.8-Max`, `zai-org/GLM-5.3`), OpenRouter (`openrouter/stealth/ox-alpha`), Codex, and Agy.
- **Automated GitHub Integration:** Seamless PR diff extraction and structured review/checklist posting to PRs and linked issues via `gh`.
## Bet and boundary
Adding a dedicated `/review-xyz` skill and engine formalizes the invocation of non-Codex/Agy models (like Qwen 3.8-Max and GLM-5.3) for code review. This is an **Easy** reversibility change: all new files are contained within `skills/review-xyz/`, `utils/py/review_xyz.py`, and `test/`, with zero breaking changes to existing turn shims or kernel primitives.
## Phase 1 — Core Review Engine (`utils/py/review_xyz.py`)
- Diff extraction: support local uncommitted diff, branch vs base, and `gh pr diff <PR#>`.
- Throwaway worktree isolation: create disposable worktrees to prevent advisor mutation.
- Model adapters: Command Code (`cmd -p`), OpenRouter direct API, Aider/OpenRouter (`aider --message`), Codex (`codex exec -s read-only`), Agy (`agy -p`).
- Citation checking: enforce that claims cite `file:line` or symbols.
- Finding extraction: parse verdict and findings into structured Markdown/JSON.
## Phase 2 — Skill Interface & GitHub Integration (`skills/review-xyz/`)
- Create `skills/review-xyz/SKILL.md`, `PROJECT.md`, `install.sh`, and scripts.
- Support `--post-pr` to post review critique as a PR comment or review via `gh pr comment`.
- Support `--post-issues` to post checklist follow-ups to linked issues detected in PR body (`Fixes #...`, `Closes #...`).
## Phase 3 — QA & Dogfooding
- Authored comprehensive test suite `test/gh132-review-xyz-skill.sh` (19 passing assertions).
- Executed dual dogfood reviews with Command Code -> `Qwen/Qwen3.8-Max` and OpenRouter -> `stealth/ox-alpha`.
- Resolved all findings (fail-closed absent verdict, anchored issue regex, process group cleanup, symlink resolution).
- Opened Pull Request #133 targeting `development`.
- Validate with `./validate.sh` and `utils/pdda/pdda.sh run`.