用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fluxforgeai/wrought-plugin --skill wrought-rca-fix命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Produce an adversarially-verified, source-cited, full-stack, interactive HTML decision brief for informed go/no-go sign-off at a human decision boundary. MVP mode: pivot-review. Extends /ux-design; consumes /research and /design; feeds /design on GO.
Deep multi-agent code review with algorithmic complexity analysis, data structure review, paradigm enforcement, and efficiency analysis. Complements /simplify with deeper dimensions.
End session and create all handoff documentation
| name | wrought-rca-fix |
| description | Start an autonomous RCA bugfix loop with test verification |
| disable-model-invocation | false |
| wrought | {"version":"1.0","tools":{"capabilities":["read_file","search_content","find_files","write_file","edit_file","run_command"]},"platforms":{"claude-code":{"allowed-tools":"Read, Grep, Glob, Write, Edit, Bash","disable-model-invocation":false}},"agent":{"role":"RCA Engineer","expertise":["bug fixing","test verification"],"non_goals":["architectural redesign","feature development"]},"execution":{"default_mode":"react","stop_conditions":["Verifier passes (bug fixed)","Max iterations reached","User instructed to stop"]},"output":{"format":"markdown","template":"docs/capsules/{finding_id}/iter_{N}/run.log","required_sections":["Fix summary","Verifier result"]},"pipeline":{"track":"reactive","standalone":false,"prerequisites":["docs/RCAs/*.md"],"produces":["docs/capsules/**/run.log",".claude/wrought-loop-state.json"],"suggested_next":["forge-review"]}} |
You are starting a Ralph Wiggum inner loop for an RCA bugfix. A Stop hook will automatically verify your fix after each attempt to stop.
Read .claude/wrought-loop-state.json. If it exists and active is true:
/cancel-wrought-loop first, or continue the existing loop."The user should provide an RCA path. If not provided:
docs/RCAs/*.mdResolve the verifier command in this order:
.claude/wrought-loop-state.json exists and its verifier_command is a non-empty string,
propose it for confirmation: "Reuse verifier command {command}?"uv run pytest tests/ -q)"Ask regardless of verifier_type. Never synthesise a verifier command from verifier_type —
no mapping from a type token to a command exists anywhere in Wrought, and the loop must not invent
one.
Then read the .wrought marker for:
verifier_type — advisory metadata only; it may seed the example above and gates nothingverifier_test_path — default test pathverifier_max_loops — iteration budgetverifier_timeout — per-run timeout in secondsWrite .claude/wrought-loop-state.json:
{
"active": true,
"preset": "wrought-rca-fix",
"finding_id": "{from RCA or Findings Tracker}",
"tracker_path": "{path to active FINDINGS_TRACKER.md}",
"verifier_command": "{verifier command}",
"max_iterations": {from marker},
"current_iteration": 0,
"started_at": "{ISO timestamp}",
"history": []
}
If the loop hits max_iterations still failing the same test signature:
/model fable pass on the capsule tail to generate a fresh candidate root-cause hypothesis or fix approach, then return with /model opus to evaluate and apply it. Fable generates a candidate, never grades; watch for empty/refused output (a refusal is a non-answer, not a clean pass). This is a manual, opt-in, owner/ZDR-free escalation — no committed model: pin anywhere (see CST-004)./forge-review Step 4c); do NOT invoke it from inside the loop — never in Stop-hook continuations (the loop's oracle is tests).When the loop completes (verifier passes):
.claude/wrought-loop-state.json to summarize iterationsdocs/capsules/{finding_id}/"/forge-review --scope=diff to verify code quality."