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/help.ps1
View on GitHub$ErrorActionPreference = "Stop"
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
. (Join-Path $ScriptDir "common.ps1")
$parsed = Parse-Arguments -Arguments $args -Defaults @{ format = "markdown" }
$Format = Get-Format $parsed
$helpData = @{
tool = "loop-engineering-cmd"
version = "1.0.0"
description = "Loop Engineering设计验证与知识查询命令行工具"
return_codes = @{
"0" = "检查通过"
"1" = "检查失败/错误"
"2" = "有警告"
}
commands = @(
@{
name = "help"
aliases = @("-h", "--help", "/?")
description = "显示所有可用子命令与使用说明"
parameters = @(
@{ name = "--format"; type = "string"; values = @("markdown", "json"); default = "markdown"; description = "输出格式" }
)
},
@{
name = "verify-three-elements"
aliases = @("verify", "three-elements")
description = "三要素验证(验证器、状态文件、停止条件)"
parameters = @(
@{ name = "--config"; type = "string"; description = "JSON配置文件路径" },
@{ name = "--format"; type = "string"; values = @("markdown", "json"); default = "markdown"; description = "输出格式" }
)
},
@{
name = "check-applicability"
aliases = @("applicability", "apply")
description = "四项适用标准判定"
parameters = @(
@{ name = "--config"; type = "string"; description = "JSON配置文件路径" },
@{ name = "--format"; type = "string"; values = @("markdown", "json"); default = "markdown"; description = "输出格式" }
)
},
@{
name = "check-loop-design"
aliases = @("loop-design", "design")
description = "循环设计完整性检查(五步法)"
parameters = @(
@{ name = "--config"; type = "string"; description = "JSON配置文件路径" },
@{ name = "--format"; type = "string"; values = @("markdown", "json"); default = "markdown"; description = "输出格式" }
)
},
@{
name = "assess-risks"
aliases = @("risks", "risk")
description = "风险评估(理解债+认知让渡)"
parameters = @(
@{ name = "--config"; type = "string"; description = "JSON配置文件路径" },
@{ name = "--format"; type = "string"; values = @("markdown", "json"); default = "markdown"; description = "输出格式" }
)
},
@{
name = "query-knowledge"
aliases = @("query", "knowledge", "search")
description = "知识库查询(核心概念、数据、案例、风险)"
parameters = @(
@{ name = "--keyword"; type = "string"; required = $true; description = "检索关键词" },
@{ name = "--category"; type = "string"; values = @("concept", "data", "case", "risk", "all"); default = "all"; description = "分类筛选" },
@{ name = "--format"; type = "string"; values = @("markdown", "json"); default = "markdown"; description = "输出格式" }
)
}
)
}
if ($Format -eq "json") {
$helpData | ConvertTo-Json -Depth 10
exit 0
}
Write-Host "========================================" -ForegroundColor Cyan
Write-Host " Loop Engineering CMD v1.0.0" -ForegroundColor Cyan
Write-Host " 设计验证与知识查询工具" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "用法: loop-engineering-cmd <command> [options]" -ForegroundColor White
Write-Host ""
Write-Host "返回码规范:" -ForegroundColor Yellow
Write-Host " 0 = 检查通过" -ForegroundColor Green
Write-Host " 1 = 检查失败/错误" -ForegroundColor Red
Write-Host " 2 = 有警告" -ForegroundColor Yellow
Write-Host ""
Write-Host "可用子命令:" -ForegroundColor Yellow
Write-Host ""
foreach ($cmd in $helpData.commands) {
$aliases = if ($cmd.aliases.Count -gt 0) { " [" + ($cmd.aliases -join ", ") + "]" } else { "" }
Write-Host " $($cmd.name)$aliases" -ForegroundColor Green
Write-Host " $($cmd.description)" -ForegroundColor Gray
Write-Host ""
}
Write-Host "示例:" -ForegroundColor Yellow
Write-Host " loop-engineering-cmd help" -ForegroundColor White
Write-Host " loop-engineering-cmd verify-three-elements --config loop-config.json" -ForegroundColor White
Write-Host " loop-engineering-cmd check-applicability --frequency yes --verifiable true --budget true --environment true" -ForegroundColor White
Write-Host " loop-engineering-cmd query-knowledge --keyword 验证器 --category concept" -ForegroundColor White
Write-Host ""
Write-Host "使用 'loop-engineering-cmd <command>' 执行对应子命令" -ForegroundColor Gray
exit 0
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 |