Repository navigation
Closed
3 / 33 of 3 issues completedClosed
3 / 33 of 3 issues completed
Copy link
Labels
enhancementNew feature or request
Description
Summary
Both /review-council and /review-pr need to discover and load the same types of context before reviewing: spec artifacts, linked issues, convention packs, and file classification. This logic is currently duplicated with different levels of sophistication. A new convention pack would standardize how review context is discovered and formatted for consumption by any reviewer.
Current State
| Context Type | /review-council |
/review-pr |
|---|---|---|
| Spec discovery | Implicit via Guard persona (checks "intent drift") | Explicit Step 6: branch-name matching, PR description parsing, changed-file detection |
| Issue linking | None | Step 6a: parses Fixes/Closes/Resolves #N, fetches issue details, extracts acceptance criteria, validates coverage |
| Convention packs | Each agent loads packs per its persona definition | Step 7: explicit detection, language detection, load logic |
| Path classification | None (delegated to persona specialization) | Step 8: 7-category path-based focus heuristics table |
| Walkthrough | None | Step 8: per-file change summary with focus category |
Proposed Pack: review-context.md
A convention pack (.opencode/uf/packs/review-context.md) that standardizes:
-
Spec artifact discovery protocol — how to locate the relevant spec for a change:
- Branch name → spec directory mapping (
NNN-*→specs/NNN-*/,opsx/*→openspec/changes/*/) - PR description parsing for spec references
- Changed-file detection for specs introduced by the PR
- Which sections to read (FR + User Stories for Speckit, Capabilities + Impact for OpenSpec)
- Branch name → spec directory mapping (
-
Issue linking protocol — how to find and process linked issues:
- Regex patterns for
Fixes/Closes/Resolvesreferences - Validation rules (same repo, positive integer, max 5)
- Acceptance criteria extraction (checkboxes,
## Acceptance Criteriaheading) - Truncation and untrusted-input handling
- Regex patterns for
-
Path-based focus heuristics — the file classification table:
*_test.go→test-quality**/cmd/**→cli-ux**/api/**→security- etc.
- Extensible via
review-context-custom.md
-
Walkthrough format — standard table format for per-file change summaries
Benefits
/review-councilgains structured issue linking and path-based focus without reimplementing it- Divisor personas can reference path focus from the pack instead of relying solely on persona specialization
- New review workflows (e.g., a future
/review-speccommand) get context discovery for free - Context discovery logic changes in one place instead of two
- Custom packs (
review-context-custom.md) let projects add project-specific path heuristics
Acceptance Criteria
- Pack file created at
.opencode/uf/packs/review-context.md - Scaffold asset created at
internal/scaffold/assets/opencode/uf/packs/review-context.md -
/review-prupdated to reference the pack instead of inline logic -
/review-councilupdated to reference the pack for context discovery - Pack is extensible via
review-context-custom.md - Scaffold tests updated for new asset count
Sub-issues
Collapse Sub-issuesSub-issues
Loading 3 sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Projects
- StatusShow more project fieldsDone ✔️
Activity
feat: add /address-feedback command for PR review triage
yvonnedevlinrh commentedon Jun 25, 2026
Convention Pack vs. Skill -- The Evidence
What packs are (across both orgs)
Convention packs are declarative rule catalogs with a strict format:
The complytime org reinforces this: 4 repos use the exact same pack structure, with custom packs (CR-NNN) overriding canonical rules. The pattern is consistent and well-understood.
What skills are
Skills are procedural knowledge packages with flexible format:
The review-context content is procedural
What issue #176 describes is:
Items 1-2 are clearly procedural. Items 3-4 are reference/declarative. This is a mixed-content package -- but the dominant and most valuable content is procedural.
The precedent: pre-flight
The pre-flight skill was extracted from duplicated logic across multiple commands to serve as a shared procedural protocol. Issue #176 proposes the exact same pattern -- extracting duplicated context discovery logic from /review-pr and /review-council into a shared artifact. The precedent points firmly to skill.
The forward reference
/address-feedback line 143 says: "If review-context convention pack exists, use it..." -- but this was written before the triage raised the artifact-type question. The forward reference uses the term "convention pack" from the issue title, not from a design decision. Commands already reference skills (e.g., /unleash loads pre-flight), so the consumption pattern works either way.
Recommendation: Skill, not pack
The content is procedural. The loading pattern is on-demand (loaded when a review command needs context discovery). The closest precedent (pre-flight) is a skill. Convention packs have a strict declarative format (numbered rules, severity indicators) that doesn't fit protocol definitions.
The path-based focus heuristics table (item 3) could arguably be a pack rule set, but splitting one small reference table into a separate pack while the rest lives in a skill creates unnecessary fragmentation. Better to keep it unified in the skill.
Artifact: .opencode/skills/review-context/SKILL.md (+ scaffold asset at internal/scaffold/assets/opencode/skills/review-context/SKILL.md)
This analysis was performed by the Divisor review panel.
yvonnedevlinrh commentedon Jun 25, 2026
yvonnedevlinrh commentedon Jun 30, 2026
All 3 sub issues have been merged and closed. Closing out this ticket also