xinetzone/SpecWeave / .agents/skills/loop-engineering-cmd
loop-engineering-cmd
Verified当用户提到'Loop Engineering'、'循环工程'、'自动迭代'、'验证器设计'、'自动优化循环'、'AI循环'、'Loop设计'、'三要素验证'、'适用性判定'、'循环设计检查'、'Loop风险评估'时,必须使用此技能。提供Loop Engineering设计验证与知识查询能力:适用性判定→三要素验证→五步法设计检查→风险评估→知识库查询。不要凭经验设计Loop——本Skill封装了三要素铁律、四项适用标准、五步设计法、双重风险防控(理解债+认知让渡),确保Loop设计不踩红线、ROI可控。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.8 KB |
| data/knowledge.json | config | 11.6 KB |
| loop-engineering-cmd.ps1 | script | 1.4 KB |
| scripts/assess-risks.ps1 | script | 9.6 KB |
| scripts/check-applicability.ps1 | script | 6.4 KB |
| scripts/check-loop-design.ps1 | script | 5.8 KB |
| scripts/common.ps1 | script | 2.2 KB |
| scripts/help.ps1 | script | 5.0 KB |
| scripts/query-knowledge.ps1 | script | 4.5 KB |
| scripts/verify-three-elements.ps1 | script | 7.3 KB |
scripts/common.ps1
View on GitHubfunction Parse-Arguments {
param(
[string[]]$Arguments,
[hashtable]$Defaults = @{}
)
$result = @{}
foreach ($key in $Defaults.Keys) {
$result[$key] = $Defaults[$key]
}
$i = 0
while ($i -lt $Arguments.Count) {
$arg = $Arguments[$i]
if ($arg -match "^--([a-zA-Z0-9_-]+)=(.+)$") {
$key = $Matches[1]
$value = $Matches[2]
$result[$key] = Convert-Value $value
$i++
}
elseif ($arg -match "^--([a-zA-Z0-9_-]+)$" -or $arg -match "^-([a-zA-Z0-9_-]+)$") {
$key = $Matches[1]
if ($i + 1 -lt $Arguments.Count -and -not ($Arguments[$i + 1] -match "^-")) {
$result[$key] = Convert-Value $Arguments[$i + 1]
$i += 2
} else {
$result[$key] = $true
$i++
}
}
else {
$i++
}
}
return $result
}
function Convert-Value {
param([string]$Value)
if ($Value -eq "`$true" -or $Value -eq "true" -or $Value -eq "True" -or $Value -eq "1") {
return $true
}
if ($Value -eq "`$false" -or $Value -eq "false" -or $Value -eq "False" -or $Value -eq "0") {
return $false
}
if ($Value -match "^\d+$") {
return [int]$Value
}
return $Value
}
function Get-Format {
param([hashtable]$ParsedArgs)
$format = "markdown"
if ($ParsedArgs.ContainsKey("format")) {
$format = $ParsedArgs["format"]
}
if ($format -ne "markdown" -and $format -ne "json") {
$format = "markdown"
}
return $format
}
function Get-Config {
param([hashtable]$ParsedArgs)
if ($ParsedArgs.ContainsKey("config")) {
return $ParsedArgs["config"]
}
return $null
}
function Load-ConfigFile {
param([string]$ConfigPath)
if (-not $ConfigPath) { return $null }
if (-not (Test-Path $ConfigPath)) {
Write-Host "错误: 配置文件不存在: $ConfigPath" -ForegroundColor Red
exit 1
}
try {
return Get-Content $ConfigPath -Raw -Encoding UTF8 | ConvertFrom-Json
} catch {
Write-Host "错误: 无法解析配置文件: $_" -ForegroundColor Red
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: 465k | Updated | Claude CodeCodex | Unverified | 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: 465k | Updated | Claude CodeCodex | Unverified | 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: 318k | 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: 318k | Updated | Claude CodeCodex | Verified | Install |