Repository navigation
feat: create review-context skill and scaffold asset - #303
Merged
yvonnedevlinrh merged 2 commits intoJun 29, 2026
Merged
Conversation
Add shared review context discovery skill that standardizes how review commands discover spec artifacts, linked issues, path classifications, and walkthrough format. Four protocols defined as a cohesive unit: - Spec artifact discovery (branch mapping, PR parsing) - Issue linking (validation, sanitization, criteria extraction) - Path-based focus heuristics (7-category classification) - Walkthrough generation (per-file and directory-level) Scaffold integration: - Embedded asset for uf init distribution - isDivisorAsset updated for --divisor deployment - expectedAssetPaths manifest updated (40 -> 41) - TestRunInit_FreshDir file count updated Closes unbound-force#294 Assisted-by: OpenCode (claude-opus-4-6) Signed-off-by: Yvonne Devlin <[email protected]>
The additional if-branch for review-context skill increases cyclomatic complexity by 1. Function remains well below the CRAPload threshold of 15 with 100% test coverage. Assisted-by: OpenCode (claude-opus-4-6) Signed-off-by: Yvonne Devlin <[email protected]>
jflowers
approved these changes
Jun 26, 2026
jflowers
left a comment
Contributor
There was a problem hiding this comment.
Clean, well-scoped skill extraction. All 10 acceptance criteria from #294 satisfied. CI green, local tools (vet, build, test) pass. The four protocols faithfully extract /review-pr Steps 6-8 into a general-purpose form. Scaffold integration follows the pre-flight skill precedent. No findings at any severity level.
This review was generated by /review-pr (AI-assisted).
This was referenced Jun 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #294
Split from #176
Summary
Create the
review-contextskill that standardizes how review commands discover and load context before reviewing. This is a decomposition for composability — 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-feedbackwith a standardized discovery mechanism.Originally proposed as a convention pack (#176), 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-flightskill extraction precedent and the convention pack pattern across both unbound-force and complytime orgs.What's included
Skill file (
.opencode/skills/review-context/SKILL.md)Four protocols consumed as a cohesive unit:
Scaffold integration
internal/scaffold/assets/opencode/skills/review-context/SKILL.mdisDivisorAssetupdated for--divisordeploymentinternal/scaffold/scaffold.goexpectedAssetPathsmanifest updated (2 → 3 skills)internal/scaffold/scaffold_test.goTestIsDivisorAssettest case addedinternal/scaffold/scaffold_test.goTestRunInit_FreshDirfile count (40 → 41)cmd/unbound-force/main_test.goTest verification
TestAssetPaths_MatchExpected PASS
TestEmbeddedAssets_MatchSource PASS (drift detection)
TestIsDivisorAsset PASS
TestRunInit_FreshDir PASS (41 files)
go vet ./... clean
golangci-lint run 0 issues
Design decisions
CS-001 [MUST] ...). This content is procedural — discovery protocols and validation flows. See Create review-context convention pack for shared review discovery logic #176 triage comment for full evidence from both orgs./review-prSteps 6–8.isDivisorAssetforuf init --divisordeployment since the skill supports Divisor review commands.CRAP baseline update
The additional if-branch in
isDivisorAssetincreases its CRAP score from 4 to 5. The baseline is updated to reflect this. The CRAPload threshold is 15, so the function remains well below the limit. Refactoring to keep the score at 4 (e.g., a lookup map) would reduce readability and potentially violate Go pack CS-007 (no mutable package-level variables). The straightforward sequential if-return pattern is the right trade-off here.Next steps
/review-prto load this skill (replaces inline Steps 6–8)/review-councilto consume this skill (gains context discover