GravionLabs/elysion / .agents/skills/deliver
deliver
VerifiedDeliver a PBI, Bug, Feature or Epic item by item with subagents (implement, review, PR, CI, merge). Use for "/deliver 12" or "deliver feature 7".
scripts/Start-LoopWorkspace.ps1
View on GitHub<#
.SYNOPSIS
Starts Invoke-DeliverLoop.ps1 in its own herdr workspace "<repo> · deliver" (tab "deliver-loop").
.DESCRIPTION
Called by the deliver-loop shell shim in herdr (HERDR_ENV=1). The herdr sidebar shows one state per
workspace by the selected tab, so the loop gets a workspace of its own instead of a tab beside the
agent session. All other arguments go to Invoke-DeliverLoop.ps1. Exit 0 once the command is queued,
1 when herdr fails (the shim then runs the loop in the current terminal).
.PARAMETER ShimCwd
Repository directory; the workspace and the loop start there.
.PARAMETER ShimScript
Full path of the installed Invoke-DeliverLoop.ps1.
.PARAMETER PaneShell
Shell of the new pane, which decides the quoting of the command line: sh, bash, zsh, dash, ksh, fish (POSIX single
quotes) or pwsh, powershell (doubled single quotes). Default: DELIVER_LOOP_PANE_SHELL, else the name of $env:SHELL,
else pwsh on Windows and sh elsewhere. Any other shell (cmd, nu, ...) exits 1 with a message before herdr is called, so the shim runs
the loop in the current terminal.
#>
[CmdletBinding()]
param(
[Parameter(Mandatory)][string]$ShimCwd,
[Parameter(Mandatory)][string]$ShimScript,
[string]$PaneShell = '',
[Parameter(ValueFromRemainingArguments)][string[]]$LoopArgs = @()
)
$ErrorActionPreference = 'Stop'
. (Join-Path $PSScriptRoot 'TerminalBackend.ps1')
function Get-QuoteStyle([string]$shell) {
if (-not $shell) { $shell = $env:DELIVER_LOOP_PANE_SHELL }
if (-not $shell) { $shell = if ($env:SHELL) { $env:SHELL } elseif ($IsWindows) { 'pwsh' } else { 'sh' } }
$name = [IO.Path]::GetFileNameWithoutExtension(($shell -replace '\\', '/').TrimEnd('/').Split('/')[-1]).ToLowerInvariant()
if ($name -in 'sh', 'bash', 'zsh', 'dash', 'ksh', 'fish') { return 'posix' }
if ($name -in 'pwsh', 'powershell') { return 'pwsh' }
throw "unsupported pane shell '$shell' (supported: sh, bash, zsh, dash, ksh, fish, pwsh, powershell; set DELIVER_LOOP_PANE_SHELL or -PaneShell)"
}
# one word for the pane shell: POSIX 'it'\''s' or pwsh 'it''s'
function ConvertTo-ShellWord([string]$s, [string]$style) {
if ($style -eq 'pwsh') { return "'" + ($s -replace "'", "''") + "'" }
return "'" + ($s -replace "'", "'\''") + "'"
}
try {
$style = Get-QuoteStyle $PaneShell
$top = (& git -C $ShimCwd rev-parse --show-toplevel 2>$null)
$repo = Split-Path -Leaf $(if ($top) { $top } else { $ShimCwd })
$label = "$repo $([char]0xB7) deliver"
$words = @('pwsh', '-NoProfile', '-File', (ConvertTo-ShellWord $ShimScript $style)) + @($LoopArgs | ForEach-Object { ConvertTo-ShellWord $_ $style })
$started = New-LoopWorkspace -Cwd $ShimCwd -Label $label -TabLabel 'deliver-loop' -Command ($words -join ' ')
if (-not $started) { exit 1 }
Write-Host "deliver-loop started in workspace '$label' (tab deliver-loop)."
exit 0
}
catch {
[Console]::Error.WriteLine("workspace not started: $($_.Exception.Message)")
exit 1
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |