Skip to content

xinetzone/SpecWeave / .agents/skills/loop-engineering-cmd

loop-engineering-cmd

Verified

当用户提到'Loop Engineering'、'循环工程'、'自动迭代'、'验证器设计'、'自动优化循环'、'AI循环'、'Loop设计'、'三要素验证'、'适用性判定'、'循环设计检查'、'Loop风险评估'时,必须使用此技能。提供Loop Engineering设计验证与知识查询能力:适用性判定→三要素验证→五步法设计检查→风险评估→知识库查询。不要凭经验设计Loop——本Skill封装了三要素铁律、四项适用标准、五步设计法、双重风险防控(理解债+认知让渡),确保Loop设计不踩红线、ROI可控。

loop-engineering-cmd.ps1

View on GitHub
$ErrorActionPreference = "Stop"
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8

$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$ScriptsDir = Join-Path $ScriptDir "scripts"

. (Join-Path $ScriptsDir "common.ps1")

if ($args.Count -eq 0) {
    & (Join-Path $ScriptsDir "help.ps1")
    exit 0
}

$Command = $args[0]
$SubArgs = @()
if ($args.Count -gt 1) {
    $SubArgs = $args[1..($args.Count - 1)]
}

$switches = @("-h", "--help", "/?")
if ($switches -contains $Command) {
    & (Join-Path $ScriptsDir "help.ps1") @SubArgs
    exit 0
}

switch -Regex ($Command.ToLower()) {
    "^help$" { & (Join-Path $ScriptsDir "help.ps1") @SubArgs }
    "^verify-three-elements$|^verify$|^three-elements$" { & (Join-Path $ScriptsDir "verify-three-elements.ps1") @SubArgs }
    "^check-applicability$|^applicability$|^apply$" { & (Join-Path $ScriptsDir "check-applicability.ps1") @SubArgs }
    "^check-loop-design$|^loop-design$|^design$" { & (Join-Path $ScriptsDir "check-loop-design.ps1") @SubArgs }
    "^assess-risks$|^risks$|^risk$" { & (Join-Path $ScriptsDir "assess-risks.ps1") @SubArgs }
    "^query-knowledge$|^query$|^knowledge$|^search$" { & (Join-Path $ScriptsDir "query-knowledge.ps1") @SubArgs }
    default {
        Write-Host "错误: 未知子命令 '$Command'" -ForegroundColor Red
        Write-Host ""
        & (Join-Path $ScriptsDir "help.ps1")
        exit 1
    }
}

exit $LASTEXITCODE
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: 465kUpdated Claude CodeCodexUnverifiedInstall
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: 465kUpdated Claude CodeCodexUnverifiedInstall
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: 318kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 318kUpdated Claude CodeCodexVerifiedInstall