Skip to content

feat: create review-context skill and scaffold asset #294

Closed

Description

@yvonnedevlinrh

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-pr Step 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 (expectedAssetPaths in scaffold_test.go)
  • Update TestRunInit_FreshDir file count in cmd/unbound-force/main_test.go
  • Update isDivisorAsset to include the new skill for uf init --divisor deployment
  • unbound doctor validates the new skill (name matches directory, frontmatter valid)

Dependencies

None — this is the foundation for the two migration issues (#295, #296).

Activity

  1. moved this to In Progress 📋 in Unbound Force Planningon Jun 25, 2026
  2. added
    enhancement
    on Jun 25, 2026
  3. added a commit that references this issue on Jun 29, 2026
    01d78df
  4. moved this from In Progress 📋 to Done ✔️ in Unbound Force Planningon Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions