Skip to content

refactor(commands): migrate /review-pr to review-context skill - #307

Merged
marcusburghardt merged 1 commit into
unbound-force:mainfrom
yvonnedevlinrh:opsx/migrate-review-pr-context-skill
Jun 29, 2026
Merged

marcusburghardt merged 1 commit into
unbound-force:mainfrom
yvonnedevlinrh:opsx/migrate-review-pr-context-skill

Conversation

@yvonnedevlinrh

Copy link
Copy Markdown
Contributor

Summary

Migrates /review-pr to consume the review-context skill for context discovery instead of inlining the logic. Replaces
~65 lines of inline spec discovery (Step 6), issue linking (Step 6a), path-based focus heuristics, and walkthrough generation (Step 8 preamble) with a skill invocation following the established pre-flight pattern. Updates /address-feedback
terminology from "convention pack" to "skill".

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

Fixes #295

How to Test

  1. Run make test — all 20 packages pass, includingTestEmbeddedAssets_MatchSource scaffold drift detection
  2. Open .opencode/commands/review-pr.md — Step 6 now invokes the review-context skill; Step 8 uses a back-reference;no "Step 6a" references remain
  3. Open .opencode/commands/address-feedback.md line 143 — references skill, not convention pack
  4. Optionally run /review-pr on any open PR to verify output

How to Demo

Run /review-pr <N> on any open PR. The review output should be identical — spec discovery, linked issues, path-focused review, and walkthrough table all work as before, now sourced from the review-context skill.

Key Files Changed

File Change
.opencode/commands/review-pr.md Skill invocation, back-reference, forward ref updates (-138 lines inline logic)
.opencode/commands/address-feedback.md Line 143: convention pack → skill
internal/scaffold/assets/opencode/commands/review-pr.md Scaffold mirror
internal/scaffold/assets/opencode/commands/address-feedback.md Scaffold mirror
openspec/changes/migrate-review-pr-context-skill/ Proposal, design, spec, tasks
.uf/dewey/learnings/ 3 learnings (pre-flight pattern, review-context gotcha)

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

- Replace inline Steps 6/6a (spec discovery, issue linking)
  with review-context skill invocation (Protocols 1-2)
- Replace inline path heuristics and walkthrough generation
  in Step 8 with back-reference to skill output (Protocols 3-4)
- Update forward references from Step 6a to Step 6
- Update /address-feedback line 143 from convention pack
  fallback to hard skill dependency
- Sync scaffold copies for both command files
- Add OpenSpec change artifacts (proposal, design, spec, tasks)

Fixes unbound-force#295

Signed-off-by: Yvonne Devlin <[email protected]>
Assisted-by: OpenCode (claude-opus)
Generated with AI assistance (claude-opus)

@marcusburghardt marcusburghardt 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.

LGTM. Nice work @yvonnedevlinrh

@marcusburghardt
marcusburghardt merged commit a1c60d6 into unbound-force:main Jun 29, 2026
14 checks passed
@yvonnedevlinrh yvonnedevlinrh moved this from In Review 🏁 to Done ✔️ in Unbound Force Planning Aug 12, 2026
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-pr to reference review-context skill

2 participants