verdict

GitHub

根据缺陷数量生成确定性的通过/拒绝判定,用于分支路由。

plugins/agentic-sop-kit/kit/skills/verdict/SKILL.md s0912758806p/agentic-sop-to-work

Trigger Scenarios

需要基于缺陷数做自动化审批决策 编排流程中需要确定性判定节点

Install

npx skills add s0912758806p/agentic-sop-to-work --skill verdict -g -y
More Options

Non-standard path

npx skills add https://github.com/s0912758806p/agentic-sop-to-work/tree/main/plugins/agentic-sop-kit/kit/skills/verdict -g -y

Use without installing

npx skills use s0912758806p/agentic-sop-to-work@verdict

指定 Agent (Claude Code)

npx skills add s0912758806p/agentic-sop-to-work --skill verdict -a claude-code -g -y

安装 repo 全部 skill

npx skills add s0912758806p/agentic-sop-to-work --all -g -y

预览 repo 内 skill

npx skills add s0912758806p/agentic-sop-to-work --list

SKILL.md

Frontmatter
{
    "name": "verdict",
    "description": "Use to derive a deterministic reject\/pass verdict from a draft@1 artifact's open-defect count, emitting a verdict@1 artifact for a branch to route on. Single tool. Reusable standalone."
}

Skill — verdict(判定,退回邊的判定來源)

圖示範流程的第 2 步。判定完全確定性:由上游 defects 導出,不由模型決定; 編排層再用 branch predicate 讀 data.verdict 決定往前或走退回邊——控制流始終在程式裡。

綁定的單一工具

  • python3(標準庫)。本 skill 只此一個工具。

依賴

  • python >= 3.8

參數化(無硬編碼)

  • 輸入:--in <draft artifact.json>;輸出:--out <verdict artifact.json>

介面

  • 輸入 artifactdraft@1(讀 data.defectsdata.round)。
  • 輸出 artifactverdict@1data{verdict: "reject"|"pass", defects, round},透傳 trace

fail-loud 邊界

上游沒有 defects 欄位 → exit 3,不臆測判定(缺資料不得猜結論)。

執行

python3 skills/verdict/tool.py --in <$RUN/draft.json> --out <$RUN/verdict.json>

獨立重用

skills/verdict/ + lib/kit.py 可單獨抽出;只要上游給 draft@1 即可運作。

Version History

  • 246d966 Current 2026-09-08 23:09

Same Skill Collection

plugins/agentic-sop-kit/kit/skills/accept/SKILL.md
plugins/agentic-sop-kit/kit/skills/compute/SKILL.md
plugins/agentic-sop-kit/kit/skills/draft/SKILL.md
plugins/agentic-sop-kit/kit/skills/report/SKILL.md
plugins/agentic-sop-kit/skills/agentic-sop/SKILL.md
plugins/agentic-sop-kit/skills/agentic-workflow-audit/SKILL.md
plugins/agentic-sop-kit/skills/six-rung-ladder/SKILL.md
plugins/alcoa-guard/skills/alcoa-guard/SKILL.md
plugins/plugin-forge/skills/plugin-forge/SKILL.md
plugins/second-opinion-honesty/skills/second-opinion/SKILL.md

Metadata

Files
0
Version
246d966
Hash
4a08ad07
Indexed
2026-09-08 23:09

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 06:22
浙ICP备14020137号-1 $Map of visitor$