/agentic-sop-kit:sop-flow [--input <file>] [--run-id <id>]from agentic-sop-kit
Runs the agentic-sop-kit orchestration workflow (extract→compute→report or declared topology) and reports the DRAFT result, with static topology validation, auto-fix loops, and stall detection.
Ships in agentic-sop-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
執行 agentic-sop-kit 的編排流程並回報 DRAFT。先判斷目前專案是否已導入 kit。
本 skill 是唯一來源:bootstrap.py 會從這份檔案產生專案的 .claude/commands/sop-flow.md。要改流程說明就改這裡。
下面每個 run.py 指令都要帶上這段環境變數前綴(以下記作 $OPTS)。plugin 的 userConfig 與資料目錄只會替換進 skill 內文,不會出現在 Bash 環境裡,所以得明寫:
CLAUDE_PLUGIN_OPTION_MAX_FIX_RETRIES="${user_config.max_fix_retries}" CLAUDE_PLUGIN_OPTION_STALL_WINDOW="${user_config.stall_window}" CLAUDE_PLUGIN_OPTION_KEEP_RUNS="${user_config.keep_runs}" CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}"
(沒被替換的值,例如在 bootstrap 產生的專案 command 裡,引擎會當成沒設、用預設值;SOPKIT_* 環境變數永遠優先。)
$CLAUDE_PROJECT_DIR/agentic-sop-kit/ 存在)跑該專案自己的、受 Stop-hook 閘門保護的流程:
python3 agentic-sop-kit/check_deps.py(缺項明確列出 → 請使用者補齊,勿硬跑)。$OPTS python3 agentic-sop-kit/workflow/run.py(可加 --input <檔> 換輸入)。$ARGUMENTSagentic-sop-kit/runs/<run_id>/report.md 與 run_manifest.json,向使用者摘要。直接跑 plugin 內附的範例 kit,輸出寫到專案的 .agentic-sop-runs/:
python3 "${CLAUDE_PLUGIN_ROOT}/kit/check_deps.py"。$OPTS python3 "${CLAUDE_PLUGIN_ROOT}/kit/workflow/run.py" --out-base "$CLAUDE_PROJECT_DIR/.agentic-sop-runs"(可加 --input <檔>)。$ARGUMENTS
--out-base 要明寫:second-opinion/alcoa-guard 預設就是到 .agentic-sop-runs/ 找 run。.agentic-sop-runs/<run_id>/report.md 與 run_manifest.json,向使用者摘要。python3 "${CLAUDE_PLUGIN_ROOT}/kit/bootstrap.py" --project "$CLAUDE_PROJECT_DIR"(加 --with-claude-skills 會順便產出對話可觸發的 runner skills)。--plan。exit 2 表示拓撲不合法(不可達節點/read-before-write/
寫入衝突/無界環/孤邊)——據實回報那幾行問題、請人修 flow.json,不要硬跑。
要給人看圖用 --graph;跑完的狀態在 manifest 的 topology 與 path_taken 裡。"state":"FAILED" → 封頂自動修復(fix-loop,最多 max_fix_retries 次,預設 3),再不行才交人:
failure{step,gate_type,message,artifact} 分類:輸入問題/生成層輸出(schema/trace 等)→ 修輸入或重生該段,用相同 --run-id 重跑(引擎對同 run-id 的失敗次數計數、超過 max_fix_retries(預設 3)會自行拒跑=程式封頂);工具碼/recompute/cmd bug → 診斷並提修正建議、不盲跑、不偷改輸出,交人;判斷/受控步驟 → 不自動修,交人。stalled:true(原地打轉:stall_reason = idle/thrash)→ STOP,回報卡住的 gate、重複的 repeated_signature、撞了 stall_rounds 圈,不得佯稱成功、不得換 --run-id 規避。fix_exhausted:true 或不可自動修 → STOP,據實回報每次嘗試與原因,不得佯稱成功。revisit_exhausted:true(退回邊撞上界)或 topology_invalid:true(拓撲不合法,未執行即拒跑)
→ STOP 交人:回報 back_edge(哪條邊、上界多少)或那幾行拓撲問題。
不得為了讓它過關而調高 max_revisits、改寬 branch 條件、或改動 reads/writes 宣告——那是竄改閘門。verify 回 3(硬擋、接 Stop-hook);變慢/flaky 只 advisory 印出、不擋。刻意降覆蓋用 verify.py --rebaseline。regression_log 由 verify 自動輪替(保底不傷健康趨勢);舊 run 目錄用 run.py --prune(人授權)清理。What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/agentic-sopUse when turning a human SOP or manual process into an agentic workflow, building or adding an agent tool, or starting a new agent-workflow project — even if the user never says 'SOP' or 'methodology'. | 要把人工流程/SOP 自動化、建立或新增 agent 工具、或開一個新的 agent 工作流專案時使用;只要意圖是把流程工程化成自動代理就觸發。不適用:稽核既有工作流是否退化成 mega agent(改用 agentic-workflow-audit)。/agentic-workflow-auditUse when reviewing or auditing an existing agent / LLM-pipeline architecture — e.g. 'is my workflow actually decomposed or secretly a mega-agent?', 'are my task boundaries and success criteria right?', 'is our shared state a blackboard?', 'can this retry loop run forever?' — even without the word 'audit'. | 要檢視/review/稽核既有 agent 或 LLM pipeline 的架構,或問「有沒有拆好」「是不是變成 mega agent」「task 邊界/成功標準對不對」「共享狀態是不是黑板」「退回會不會無限轉」「拓撲畫不畫得出來」時使用;任何評估既有 agent 系統結構的請求都觸發。不適用:要新建或自動化流程(改用 agentic-sop)。/six-rung-laddernpx claudepluginhub s0912758806p/agentic-sop-to-work --plugin agentic-sop-kitOther plugins' skills for the same job