Skip to content

feat(commands): migrate /review-council to consume review-context skill - #310

Merged
yvonnedevlinrh merged 2 commits into
unbound-force:mainfrom
yvonnedevlinrh:opsx/migrate-review-council-context
Jun 30, 2026
Merged

yvonnedevlinrh merged 2 commits into
unbound-force:mainfrom
yvonnedevlinrh:opsx/migrate-review-council-context

Conversation

@yvonnedevlinrh

@yvonnedevlinrh yvonnedevlinrh commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #296
Split from #176

Summary

Migrates /review-council Code Review Mode to consume the review-context skill for spec artifact discovery, path classification, and walkthrough generation — capabilities the command previously lacked entirely. This brings context discovery parity with /review-pr for local pre-PR reviews.

Part of the #176 decomposition (#294 producer, #295 /review-pr consumer, #296 /review-council consumer).

Spec Review Mode is intentionally unchanged — it already has its own artifact location logic. A follow-up issue has been filed to evaluate whether the skill adds value there.

Note on #296 acceptance criteria discrepancy

The issue's acceptance criteria originally included "Gains issue linking (linked issue detection and acceptance criteria extraction)" and reference "Protocols 1-4". This PR intentionally skips Protocol 2 (Issue Linking) because /review-council is a local pre-PR command — there is no PR body to parse for Fixes #N / Closes #N references. The review-context skill itself documents this: "For local reviews without a PR, skip this protocol." This was resolved during triage before implementation began.

Acceptance criteria on #296 have been updated to reflect this (see #296).

  • "Protocols 1-4" → "Protocols 1, 3, 4 (Protocol 2 skipped — no PR body)"
  • "Gains issue linking" → removed (not applicable to local pre-PR reviews)

How to Test

  1. Run make test — all packages pass, including TestEmbeddedAssets_MatchSource scaffold drift detection
  2. Open .opencode/commands/review-council.md — Phase 1c now loads the review-context skill; Step 2 passes review context + quality context to Divisor agents; Step 6 includes a review context summary
  3. Open .opencode/skills/review-context/SKILL.md — consumer table row for /review-council updated from migration-delta to steady-state description
  4. Verify CHANGELOG.md has an entry under ## Unreleased > ### Changed
  5. Optionally run /review-council on any feature branch to verify output

How to Demo

Checkout a feature branch with code changes and run /review-council. The review output now includes:

  • Spec artifact discovery (branch name → spec directory mapping)
  • Per-file focus classifications (test-quality, cli-ux, security, etc.)
  • Walkthrough table in the final report
  • All context passed to Divisor agents alongside Gaze quality data

Key Files Changed

File Change
.opencode/commands/review-council.md Phase 1c (review-context skill), Step 2 restructured context enrichment, Step 6 report summary, phase count fix ("two" → "three")
.opencode/skills/review-context/SKILL.md Consumer table: /review-council row updated to steady-state description
CHANGELOG.md Unreleased entry for the migration
internal/scaffold/assets/opencode/commands/review-council.md Scaffold mirror
internal/scaffold/assets/opencode/skills/review-context/SKILL.md Scaffold mirror

Design Decisions

  • Protocols 1, 3, 4 executed; Protocol 2 skipped: /review-council is a local pre-PR command with no PR body to parse. The skill's own documentation says "For local reviews without a PR, skip this protocol."
  • Hard dependency, no fallback: Consistent with the pre-flight skill pattern. Skills distributed via uf init are structurally guaranteed present; TestEmbeddedAssets_MatchSource catches sync issues at build time.
  • Code Review Mode only: Spec Review Mode already has its own scope determination. Follow-up issue filed for evaluation.
  • Insertion point: After Phase 1b (Gaze), before Step 2 (Divisor delegation) — consistent with /review-pr Step 6 placement.

Review Council Results

Ran /review-council on the branch. 9 Divisor agents reviewed; 3 findings addressed:

Finding Severity Source Fix
Stale phase count ("two" → "three") CRITICAL Scribe + Herald Updated line 126
Missing CHANGELOG entry MEDIUM Curator Added
Stale skill consumer table MEDIUM Curator Updated

Signed-off-by: Yvonne Devlin [email protected]
Assisted-by: OpenCode (claude-opus-4-6)

Add Phase 1c (Discover Review Context) to Code Review Mode,
loading the review-context skill for spec artifact discovery,
path-based focus heuristics, and walkthrough generation.
Protocol 2 (Issue Linking) is skipped as /review-council is
a local pre-PR command with no PR body to parse.

Update Step 2 (Divisor delegation) to pass review context
and quality context as structured enrichment sections to
each agent's review prompt.

Update Step 6 (final report) to include review context
summary with spec reference and walkthrough table.

Scope: Code Review Mode only. Spec Review Mode is unchanged
as it already has its own artifact location logic.

Fixes unbound-force#296

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Yvonne Devlin <[email protected]>
Fix stale phase count: 'two phases' / 'Both' -> 'three phases' /
'All three' in Code Review Mode Step 1 introduction (line 126).
Without this fix, an agent could interpret the step as complete
after Phase 1b and skip Phase 1c.

Update review-context skill consumer table: replace migration-
delta language ('Gains context discovery it currently lacks')
with steady-state description ('Phase 1c — Protocols 1, 3, 4').

Add CHANGELOG.md entry for the /review-council migration.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Yvonne Devlin <[email protected]>

@gxmiranda gxmiranda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, well-scoped PR that integrates the review-context skill into /review-council Code Review Mode as Phase 1c. All 5 acceptance criteria from #296 are satisfied. Scaffold mirrors are in sync (verified by CI), CI is fully green, and the implementation follows established patterns (hard dependency, protocol-level flexibility, structured enrichment). The phase count fix from "two" to "three" was a good catch — without it, agents could skip Phase 1c entirely.

This review was generated by /review-pr (AI-assisted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done ✔️

Development

Successfully merging this pull request may close these issues.

feat: migrate /review-council to consume review-context skill

2 participants