AGENT SKILL

analyze-data

Adds one tally or group-by over rows (csv or list of dicts). Use for analytics, counters, histograms. Stdlib only.

License 许可
Apache-2.0
最近更新
2026-11-05
Stars
★ 4
Forks
5

01 前言 Front Matter

name
analyze-data
description
Adds one tally or group-by over rows (csv or list of dicts). Use for analytics, counters, histograms. Stdlib only.

03 SKILL.md 正文

One function. Readable names. collections.Counter. No pandas unless the project already has it.

Action: edit Path: pkg/tally.py from collections import Counter

def counts_by_key(rows: list[dict[str, str]], key: str) -> dict[str, int]: return dict(Counter(str(row.get(key, "")) for row in rows))

04 同仓库更多 Skills