Repository navigation
Description
Split from #176
Summary
Create the review-context skill that standardizes how review commands discover and load context before reviewing: spec artifacts, linked issues, path classification, and walkthrough format.
This was originally proposed as a convention pack (#176), but triage analysis determined a skill is the correct artifact type — the content is procedural (discovery protocols, validation flows), not declarative rules. This is consistent with the pre-flight skill extraction precedent and the convention pack pattern across both unbound-force and complytime orgs.
This is a decomposition for composability, not a DRY extraction of existing duplication. The four protocols currently exist only in /review-pr (Steps 6–8). Extracting them into a skill enables /review-council (#296) to gain context discovery capabilities it currently lacks, and provides /address-feedback (which already has a forward reference at line 143) with a standardized discovery mechanism. Consumer integration is tracked in #295 and #296.
The four protocols (spec artifact discovery, issue linking, path-based focus heuristics, walkthrough format) are consumed as a cohesive unit — every review command that needs context discovery needs all four. The skill should be written as a general-purpose review context protocol that any review command can follow, not a verbatim copy of /review-pr Steps 6–8.
Acceptance Criteria
- Skill file created at
.opencode/skills/review-context/SKILL.md - Scaffold asset created at
internal/scaffold/assets/opencode/skills/review-context/SKILL.md - Skill contains: spec artifact discovery protocol (branch name mapping, PR description parsing, changed-file detection)
- Skill contains: issue linking protocol (regex patterns, validation rules, acceptance criteria extraction, input sanitization preserving all controls from
/review-prStep 6a: digits-only issue number validation, same-repo URL scoping, 5-issue fetch limit, 2000-char body truncation, graceful error handling on 404/403/timeout) - Skill contains: path-based focus heuristics (file classification table)
- Skill contains: walkthrough format (standard table format for per-file change summaries)
- Scaffold tests updated for new asset count (
expectedAssetPathsinscaffold_test.go) - Update
TestRunInit_FreshDirfile count incmd/unbound-force/main_test.go - Update isDivisorAsset to include the new skill for
uf init --divisordeployment -
unbound doctorvalidates the new skill (name matches directory, frontmatter valid)
Dependencies
None — this is the foundation for the two migration issues (#295, #296).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone ✔️
Activity
feat: create review-context skill and scaffold asset