draft

GitHub

生成初稿或根据上游评审意见修订草稿,输出 draft@1 artifact。支持无状态执行与独立重用。

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

Trigger Scenarios

需要生成内容初稿 收到评审缺陷需修订

Install

npx skills add s0912758806p/agentic-sop-to-work --skill draft -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/draft -g -y

Use without installing

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

指定 Agent (Claude Code)

npx skills add s0912758806p/agentic-sop-to-work --skill draft -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": "draft",
    "description": "Use to produce a first draft, or to revise one from an upstream verdict artifact's open-defect count, emitting a draft@1 artifact. The target node of a bounded back-edge. Single tool. Reusable standalone."
}

Skill — draft(起草/依審查意見修訂)

圖示範流程(workflow/examples/graph.json)的第 1 步,也是有界退回邊的目標節點

綁定的單一工具

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

依賴(完整宣告;缺項由 kit.require_deps 明確報錯,非靜默)

  • python >= 3.8

參數化(無硬編碼)

  • 輸入:--in <verdict artifact.json / 不存在皆可>
  • 輸出:--out <draft artifact.json>

介面

  • 輸入 artifactverdict@1(讀 data.defectsdata.round)。 輸入不存在或不是 verdict@1 → 視為初稿(第一次進入節點時 $RUN/verdict.json 還沒產生)。
  • 輸出 artifactdraft@1data{defects, round, addressed[]}

為何無狀態

「這是第幾輪」由上游 artifact 攜帶,不靠隱含計數器:同一份輸入重跑永遠得到同一結果 (確定性),而重訪之所以會前進,是因為上一輪的 verdict 真的被讀進來了。

執行

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

獨立重用

skills/draft/ + lib/kit.py 可單獨抽出;只要給得出 verdict@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/report/SKILL.md
plugins/agentic-sop-kit/kit/skills/verdict/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
6d3e16ab
Indexed
2026-09-08 23:09

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