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/router/modules/20-routing-rules.ps1
View on GitHub# Auto-extracted router module. Keep function bodies behavior-identical.
function Get-RoutingRuleForCandidate {
param(
[string]$Candidate,
[object]$RoutingRules
)
if (-not $RoutingRules -or -not $RoutingRules.skills -or -not $Candidate) {
return $null
}
$keys = @($RoutingRules.skills.PSObject.Properties.Name)
if ($keys -contains $Candidate) {
return $RoutingRules.skills.$Candidate
}
return $null
}
function Test-RuleTaskAllowed {
param(
[object]$Rule,
[string]$TaskType
)
if (-not $Rule -or -not $Rule.task_allow) { return $true }
$allowed = @($Rule.task_allow)
if ($allowed.Count -eq 0) { return $true }
return ($allowed -contains $TaskType)
}
function Get-CanonicalForTaskHit {
param(
[object]$Rule,
[string]$TaskType
)
if (-not $Rule -or -not $Rule.canonical_for_task) { return 0.0 }
$canonical = @($Rule.canonical_for_task)
if ($canonical -contains $TaskType) { return 1.0 }
return 0.0
}
function Get-PackDefaultCandidate {
param(
[object]$Pack,
[string]$TaskType,
[string[]]$PreferredCandidates,
[string[]]$AllCandidates
)
if (-not $Pack -or -not $Pack.defaults_by_task) { return $null }
$taskKeys = @($Pack.defaults_by_task.PSObject.Properties.Name)
if (-not ($taskKeys -contains $TaskType)) { return $null }
$defaultSkill = [string]$Pack.defaults_by_task.$TaskType
if (-not $defaultSkill) { return $null }
if ($PreferredCandidates -and ($PreferredCandidates -contains $defaultSkill)) {
return $defaultSkill
}
if ($AllCandidates -and ($AllCandidates -contains $defaultSkill)) {
return $defaultSkill
}
return $null
}
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 |