verdict

GitHub

根据上游缺陷数量确定性地生成通过或拒绝判定,用于流程分支路由。

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

触发场景

需要基于缺陷计数进行自动审批决策 工作流中需要根据质量检查结果决定下一步流向

安装

npx skills add s0912758806p/agentic-sop-to-work --skill verdict -g -y
更多选项

非标准路径

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

不安装直接使用

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>

介面

  • 輸入 artifact:draft@1(讀 data.defects、data.round)。
  • 輸出 artifact:verdict@1 — data{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/ + sopkit/ 可單獨抽出;只要上游給 draft@1 即可運作。

版本历史

  • 11ac66b 当前 2026-11-02 14:27
  • 246d966 2026-09-08 23:09

同 Skill 集合

plugins/agentic-sop-kit/kit/skills/accept/SKILL.md
plugins/agentic-sop-kit/kit/skills/ai_claims/SKILL.md
plugins/agentic-sop-kit/kit/skills/be_api/SKILL.md
plugins/agentic-sop-kit/kit/skills/compute/SKILL.md
plugins/agentic-sop-kit/kit/skills/db_rows/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/agentic-sop-kit/skills/sop-flow/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

元信息

文件数
0
版本
11ac66b
Hash
8dce57f3
收录时间
2026-09-08 23:09

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 19:16
浙ICP备14020137号-1