Skip to content
Back to skills

Compute

ASecurity

Use to compute summary statistics (count/sum/mean/min/max) from a readings artifact, preserving the upstream source trace. Single tool. Reusable standalone.

  • 209 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 10, 2026
ai-agentspython

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 10, 2026

npx -y skills add s0912758806p/agentic-sop-to-work --skill compute --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Compute?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Compute
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/s0912758806p-compute/badge)](https://www.skillsdirectory.com/skills/s0912758806p-compute)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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/` + `lib/kit.py` 可單獨抽出;只要上游給 `readings@1` artifact 即可運作。

Files in this skill

  • SKILL.md1.1 KB
  • tool.py1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.