Agent Skills
› s0912758806p/agentic-sop-to-work
› compute
compute
GitHub用于计算读数数据(如计数、求和、均值等)统计信息的工具,保留来源追溯。依赖Python标准库statistics,输入输出为JSON artifact,支持独立重用。
触发场景
需要计算一组数值数据的统计摘要
需要将原始读数转换为统计结果并保留溯源信息
安装
npx skills add s0912758806p/agentic-sop-to-work --skill compute -g -y
SKILL.md
Frontmatter
{
"name": "compute",
"description": "Use to compute summary statistics (count\/sum\/mean\/min\/max) from a readings artifact, preserving the upstream source trace. Single tool. Reusable standalone."
}
Skill B — compute(計算統計)
SOP 流程的第 2 步。讀上游 readings、算統計、透傳來源追溯。
綁定的單一工具
python3(標準庫statistics)。本 skill 只此一個工具。
依賴(完整宣告;缺項明確報錯)
python>= 3.8
參數化(無硬編碼)
- 輸入:
--in <readings artifact.json> - 輸出:
--out <stats artifact.json>
介面
- 輸入 artifact:
readings@1(讀data.readings[].value)。 - 輸出 artifact:
{"schema":"stats@1","produced_by":"compute","data":{"stats":{count,sum,mean,min,max}},"trace":[...透傳...]} - 下游(report)讀
data.stats與trace。
執行
python3 skills/compute/tool.py --in <out/a.json> --out <out/b.json>
獨立重用
skills/compute/ + sopkit/ 可單獨抽出;只要上游給 readings@1 artifact 即可運作。
版本历史
-
11ac66b
当前 2026-11-02 14:27
v1.11.0版本更新了文档、测试及SOP流程相关配置与示例技能说明
- 248a01f 2026-07-05 14:54


