foryourhealth111-pixel/Vibe-Skills
vibe
VerifiedVibe Code Orchestrator (VCO) is a governed runtime entry that freezes requirements, bounds execution, and enforces verification and phase cleanup.
scripts/governance/set-openspec-rollout.ps1
View on GitHubparam(
[ValidateSet("off", "shadow", "soft-lxl-planning", "strict-lxl-planning")]
[string]$Stage = "soft-lxl-planning",
[switch]$MainOnly,
[switch]$WhatIf
)
$ErrorActionPreference = "Stop"
function Load-Policy {
param([string]$Path)
if (-not (Test-Path -LiteralPath $Path)) {
throw "OpenSpec policy not found: $Path"
}
return Get-Content -LiteralPath $Path -Raw -Encoding UTF8 | ConvertFrom-Json
}
function Ensure-CommonShape {
param([object]$Policy)
if (-not $Policy.profile_by_grade) {
$Policy | Add-Member -NotePropertyName profile_by_grade -NotePropertyValue ([pscustomobject]@{}) -Force
}
if (-not $Policy.required_task_types_by_profile) {
$Policy | Add-Member -NotePropertyName required_task_types_by_profile -NotePropertyValue ([pscustomobject]@{}) -Force
}
if (-not $Policy.soft_confirm_scope) {
$Policy | Add-Member -NotePropertyName soft_confirm_scope -NotePropertyValue ([pscustomobject]@{}) -Force
}
}
function Apply-Stage {
param(
[object]$Policy,
[string]$StageName
)
Ensure-CommonShape -Policy $Policy
$Policy.preserve_routing_assignment = $true
$Policy.routing_integration = "post_route_governance_only"
$Policy.profile_by_grade.M = "lite"
$Policy.profile_by_grade.L = "full"
$Policy.profile_by_grade.XL = "full"
$Policy.required_task_types_by_profile.full = @("planning")
$Policy.soft_confirm_scope.grades = @("L", "XL")
$Policy.soft_confirm_scope.task_types = @("planning")
switch ($StageName) {
"off" {
$Policy.mode = "off"
}
"shadow" {
$Policy.mode = "shadow"
}
"soft-lxl-planning" {
$Policy.mode = "soft"
}
"strict-lxl-planning" {
$Policy.mode = "strict"
}
default {
throw "Unsupported stage: $StageName"
}
}
$Policy.updated = (Get-Date -Format "yyyy-MM-dd")
}
function Save-Policy {
param(
[string]$Path,
[object]$Policy
)
$json = $Policy | ConvertTo-Json -Depth 30
[System.IO.File]::WriteAllText($Path, $json + [Environment]::NewLine, (New-Object System.Text.UTF8Encoding($false)))
}
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..\..")
$targets = @(
(Join-Path $repoRoot "config/openspec-policy.json")
)
$results = @()
foreach ($path in $targets) {
$policy = Load-Policy -Path $path
Apply-Stage -Policy $policy -StageName $Stage
if (-not $WhatIf) {
Save-Policy -Path $path -Policy $policy
}
$results += [pscustomobject]@{
path = $path
stage = $Stage
mode = $policy.mode
profile_by_grade = $policy.profile_by_grade
required_task_types_by_profile = $policy.required_task_types_by_profile
soft_confirm_scope = $policy.soft_confirm_scope
preserve_routing_assignment = $policy.preserve_routing_assignment
updated = $policy.updated
wrote = (-not $WhatIf)
}
}
[pscustomobject]@{
ok = $true
stage = $Stage
main_only = [bool]$MainOnly
what_if = [bool]$WhatIf
results = $results
} | ConvertTo-Json -Depth 20
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |