compute

GitHub

用于计算读数数据(readings)的统计摘要,包括计数、总和、均值、最小值和最大值。该技能通过Python标准库实现,严格保留上游数据来源追溯信息,支持独立重用,适用于SOP流程中的统计分析步骤。

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

Trigger Scenarios

需要基于读数数据生成统计摘要 需要保留数据来源追溯的计算任务

Install

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

Use without installing

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

指定 Agent (Claude Code)

npx skills add s0912758806p/agentic-sop-to-work --skill compute -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": "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>

介面

  • 輸入 artifactreadings@1(讀 data.readings[].value)。
  • 輸出 artifact{"schema":"stats@1","produced_by":"compute","data":{"stats":{count,sum,mean,min,max}},"trace":[...透傳...]}
  • 下游(report)讀 data.statstrace

執行

python3 skills/compute/tool.py --in <out/a.json> --out <out/b.json>

獨立重用

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

Version History

  • 248a01f Current 2026-07-05 14:54

Same Skill Collection

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
248a01f
Hash
d2380b31
Indexed
2026-07-05 14:54

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 21:06
浙ICP备14020137号-1 $Carte des visiteurs$