Repository navigation
refactor: extract shared pre-flight skill for CI detection and local … - #290
Conversation
…tool execution Extract duplicated CI detection and local tool execution logic from /review-council (Phase 1a), /review-pr (Step 4), and /unleash (Step 5 + phase checkpoint) into a shared skill at .opencode/skills/pre-flight/SKILL.md. The skill provides unified CI workflow parsing, local tool detection with binary availability checks, CI coverage matrix generation, and two execution policies: hard-gate (stop on failure) and ci-aware (skip CI-verified tools). - Create .opencode/skills/pre-flight/SKILL.md - Update /review-council to reference skill in hard-gate mode - Update /review-pr to reference skill in ci-aware mode - Update /unleash to reference skill in hard-gate mode - Sync all changes to scaffold assets - Add skill to expectedAssetPaths in scaffold_test.go - Update TestRunInit_FreshDir expected file count (39 -> 40) Fixes: unbound-force#175 Assisted-by: OpenCode (claude-opus-4-6) Signed-off-by: Yvonne Devlin <[email protected]>
2c25fbd to
bd2339f
Compare
jflowers
left a comment
There was a problem hiding this comment.
Review Summary
Clean, well-documented refactoring that extracts duplicated CI detection and local tool execution logic from /review-council, /review-pr, and /unleash into a shared pre-flight skill.
What went well
- Thorough spec artifacts: 11 FRs with Given/When/Then scenarios, 8 design decisions, 4 risk analyses
- All scaffold copies verified in sync (drift detection tests pass)
- Both execution policies (
hard-gate,ci-aware) are well-defined with clear consumer mapping - Behavioral expansion (unified detection discovering additional tools) is explicitly documented as intentional improvement (D2, R2), not glossed over
- All 7 acceptance criteria from #175 addressed
Findings
- [LOW] Behavioral parity for agent instruction changes is inherently unverifiable through code review — depends on author's reported behavioral verification (task 4.3). This is a limitation of instruction-only changes, not a gap in the PR.
Forward-looking note
I commented on #177 noting that Phase 2 (CI causality analysis for /review-council) will need to extend the pre-flight skill with a third execution policy or modify hard-gate to support causality classification. The current skill is correctly scoped to #175 — this is additive work for #177.
This review was generated by /review-pr (AI-assisted).
em-redhat
left a comment
There was a problem hiding this comment.
Clean refactoring extracting duplicated CI detection and local tool execution logic from /review-council, /review-pr, and /unleash into a shared pre-flight skill. All 7 acceptance criteria from #175 addressed. Scaffold copies verified in sync. No security, alignment, or constitution concerns.
This review was generated by /review-pr (AI-assisted).
Summary
Extract duplicated CI detection and local tool execution logic from three commands (
/review-council,/review-pr,/unleash) into a shared OpenCode skill at.opencode/skills/pre-flight/SKILL.md.Fixes #175
What Changed
New
.opencode/skills/pre-flight/SKILL.md— shared skill providing:.github/workflows/*.yml)hard-gate(stop on failure) andci-aware(skip CI-verified tools)Modified
/review-council— Phase 1a replaced with skill reference inhard-gatemode/review-pr— Step 4 replaced with skill reference inci-awaremode/unleash— Step 5 + phase checkpoint replaced with skill reference inhard-gatemodescaffold_test.go— addedpre-flight/SKILL.mdtoexpectedAssetPathsOpenSpec Artifacts
openspec/changes/pre-flight-skill/— proposal, design, specs (11 FRs with Given/When/Then), tasksSpec Review
5 Divisor agents reviewed the spec artifacts. Key findings addressed:
run:steps, skip CI expressions)Verification
go build ./...— PASSgo vet ./...— PASSgolangci-lint run— 0 issuesTestEmbeddedAssets_MatchSource— PASSTestAssetPaths_MatchExpected— PASSTestCanonicalSources_AreEmbedded— PASSFollow-up
/agent-brief(L61-70) reads.github/workflows/for discovery (not execution). Adetect-onlymode could serve this use case but is tracked separately per issue #175.