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/install-local-worktree-excludes.ps1
View on GitHubparam(
[switch]$DryRun
)
$ErrorActionPreference = 'Stop'
. (Join-Path $PSScriptRoot '..\common\vibe-governance-helpers.ps1')
$context = Get-VgoGovernanceContext -ScriptPath $PSCommandPath -EnforceExecutionContext
$policyPath = Join-Path $context.repoRoot 'config\repo-cleanliness-policy.json'
if (-not (Test-Path -LiteralPath $policyPath)) {
throw "repo-cleanliness policy not found: $policyPath"
}
$policy = Get-Content -LiteralPath $policyPath -Raw | ConvertFrom-Json
$patterns = @($policy.local_worktree_excludes)
$excludePath = Join-Path $context.repoRoot '.git\info\exclude'
$startMarker = '# >>> vco-local-cleanliness >>>'
$endMarker = '# <<< vco-local-cleanliness <<<'
$current = if (Test-Path -LiteralPath $excludePath) {
Get-Content -LiteralPath $excludePath -Raw
} else {
''
}
$blockLines = @($startMarker) + $patterns + @($endMarker)
$block = ($blockLines -join "`r`n")
if ($current -match [regex]::Escape($startMarker)) {
$updated = [regex]::Replace(
$current,
[regex]::Escape($startMarker) + '.*?' + [regex]::Escape($endMarker),
[System.Text.RegularExpressions.MatchEvaluator]{ param($m) $block },
[System.Text.RegularExpressions.RegexOptions]::Singleline
)
} else {
$normalized = $current
if (-not [string]::IsNullOrEmpty($normalized) -and -not $normalized.EndsWith("`n")) {
$normalized += "`r`n"
}
if (-not [string]::IsNullOrEmpty($normalized)) {
$normalized += "`r`n"
}
$updated = $normalized + $block + "`r`n"
}
Write-Host '=== Install Local Worktree Excludes ===' -ForegroundColor Cyan
Write-Host ("Repo root : {0}" -f $context.repoRoot)
Write-Host ("Exclude path: {0}" -f $excludePath)
foreach ($pattern in $patterns) {
Write-Host ("[PATTERN] {0}" -f $pattern)
}
if ($DryRun) {
Write-Host ''
Write-Host '[DRY-RUN] Computed block:' -ForegroundColor Yellow
Write-Host $block
exit 0
}
Write-VgoUtf8NoBomText -Path $excludePath -Content $updated
Write-Host 'Local worktree exclude block installed.' -ForegroundColor Green
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 |