Agent skill · Audited from source
Category Statistics
skill · OpenSenseNova/SenseNova-SkillsMIT licenceAudited 7 Oct 2026 · source 657860e4d389
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 657860e4d389 and found no filesystem, network or shell access and no hard-coded secrets. What it does: 提取指定类别列并统计各类别数量与占比,生成高分辨率的柱状图、饼图等组合可视化报告,适用于分类数据的分布情况分析。
Cite
Cite this page
ModelsAtlas. “Category Statistics (OpenSenseNova/SenseNova-Skills)”. Retrieved 7 Oct 2026. https://modelsatlas.com/skills/opensensenova/category-statistics
Trust audit
Audit 0.4.1 · source read 7 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 657860e4d389 · 7 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherOpenSenseNova GitHub organizationOwner of the repository this skill is read from
- Source folderOpenSenseNova/SenseNova-Skills/skills/sn-da-excel-workflow/capability/excel-data-statistics/category-statisticsThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict657860e4d389A new audit runs when the source changes
- Repository statusNot archivedLast push 19 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: 提取指定类别列并统计各类别数量与占比,生成高分辨率的柱状图、饼图等组合可视化报告,适用于分类数据的分布情况分析。
---
name: category-statistics
description: "提取指定类别列并统计各类别数量与占比,生成高分辨率的柱状图、饼图等组合可视化报告,适用于分类数据的分布情况分析。"
---
## Skill Steps
Step1 提取目标类别数据,清洗无效标签,并统计各类别数量与占比。
```python
import pandas as pd
def calculate_distribution(data, target_col='类别'):
# 检查目标列是否存在
if target_col not in data.columns:
raise ValueError(f'未找到指定的类别字段: {target_col}')
# 提取数据,清洗无效标签(如'--'、'代码'等占位符)
category_data = data[target_col].dropna().replace(['--', '代码'], pd.NA).dropna()
# 统计各类别数量并计算占比
counts = category_data.value_counts()
proportions = (counts / counts.sum()) * 100
# 实用技巧:生成包含总计行的统计表
# summary = counts.copy()
# summary.loc['总计'] = counts.sum()
return counts, proportions
```
Step2 生成基础可视化(双轴图:柱状图+占比曲线),并保存为高分辨率图片。
```python
import matplotlib.pyplot as plt
def generate_and_save_basic_chart(counts, proportions, title='各类别数量分布', output_path='category_distribution.png'):
# 设置中文字体避免乱码
plt.rcParams['font.sans-serif'] = ['SimHei', 'WenQuanYi Zen Hei', 'Noto Sans CJK JP', 'DejaVu Sans']
plt.rcParams['axes.unicode_minus'] = False
fig, ax1 = plt.subplots(figsize=(10, 6))
# 绘制柱状图
bars = ax1.bar(counts.index, counts.values, color='skyblue', edgecolor='black')
for bar in bars:
height = bar.get_height()
ax1.text(bar.get_x() + bar.get_width()/2., height + 0.05, f'{height}', ha='center', va='bottom', fontsize=10)
ax1.set_ylabel('数量', fontsize=12)
ax1.set_title(title, fontsize=16, fontweight='bold', pad=20)
# 创建第二个y轴显示占比曲线
ax2 = ax1.twinx()
ax2.plot(counts.index, proportions.values, color='red', marker='o', linestyle='-', linewidth=2)
ax2.set_ylabel('占比 (%)', color='red', fontsize=12)
ax2.tick_params(axis='y', labelcolor='red')
plt.xticks(rotation=45)
plt.tight_layout()
# 保存高分辨率图表并使用 plt.close() 防止内存泄漏
fig.savefig(output_path, dpi=300, bbox_inches='tight')
plt.close(fig)
return output_path
```
Step3 生成多图组合报告(饼图+柱状图,以及带分类映射的水平柱状图),用于多维度展示。
```python
import matplotlib.pyplot as plt
from matplotlib.patches import Patch
def generate_comprehensive_report(counts, proportions, output_dir='./'):
plt.rcParams['font.sans-serif'] = ['SimHei', 'WenQuanYi Zen Hei', 'Noto Sans CJK JP', 'DejaVu Sans']
plt.rcParams['axes.unicode_minus'] = False
# --- 1. 饼图与柱状图组合 ---
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(15, 6))
# 饼图
colors = ['#ff9999', '#66b3ff', '#99ff99', '#ffcc99']
explode = [0.05] * len(counts) if len(counts) > 0 else None
wedges, texts, autotexts = ax1.pie(counts.values, labels=counts.index, autopct='%1.1f%%',
colors=colors[:len(counts)], explode=explode, shadow=True, startangle=90)
ax1.set_title('各类别比例分布', fontsize=14, fontweight='bold')
for autotext in autotexts:
autotext.set_color('white')
autotext.set_fontweight('bold')
# 柱状图
bars = ax2.bar(range(len(counts)), counts.values, color=colors[:len(counts)], alpha=0.8, edgecolor='black')
ax2.set_title('各类别数量', fontsize=14, fontweight='bold')
ax2.set_xticks(range(len(counts)))
ax2.set_xticklabels(counts.index, rotation=45, ha='right')
for i, bar in enumerate(bars):
height = bar.get_height()
ax2.text(bar.get_x() + bar.get_width()/2., height + 0.5, f'{int(height)}\n({proportions.iloc[i]:.1f}%)',
ha='center', va='bottom', fontweight='bold')
plt.tight_layout()
pie_bar_path = f'{output_dir}category_pie_bar.png'
plt.savefig(pie_bar_path, dpi=300, bbox_inches='tight')
plt.close(fig)
# --- 2. 水平柱状图 (带分类映射函数骨架与颜色区分) ---
fig_h, ax_h = plt.subplots(figsize=(12, 8))
positions = [f'类别{i+1}' for i in range(len(counts))]
# 分类映射示例:根据类别名称包含的关键字动态分配颜色
bar_colors = ['#66b3ff' if '关键字A' in str(p) else '#ff9999' for p in counts.index]
bars_h = ax_h.barh(positions, counts.values, color=bar_colors, alpha=0.8, edgecolor='black')
ax_h.set_title('各类别分布详情', fontsize=16, fontweight='bold', pad=20)
for i, (bar, label) in enumerate(zip(bars_h, counts.index)):
width = bar.get_width()
# 动态标签示例:提取特定属性
tag = '类型A' if '关键字A' in str(label) else '其他'
ax_h.text(width + 0.3, bar.get_y() + bar.get_height()/2, f'{int(width)} ({tag})',
ha='left', va='center', fontsize=10)
# 自定义图例
legend_elements = [Patch(facecolor='#66b3ff', label='类型A组'), Patch(facecolor='#ff9999', label='其他组')]
ax_h.legend(handles=legend_elements, loc='lower right')
ax_h.grid(axis='x', alpha=0.3)
plt.tight_layout()
hbar_path = f'{output_dir}category_hbar.png'
plt.savefig(hbar_path, dpi=300, bbox_inches='tight')
plt.close(fig_h)
return [pie_bar_path, hbar_path]
```Excerpt, first 4,819 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 657860e
git clone https://github.com/OpenSenseNova/SenseNova-Skills git -C SenseNova-Skills checkout 657860e4d389
The author documents no install command, so this uses the repository directly. Our verdict covers commit 657860e4d389 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
657860e4d389
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/opensensenova/category-statistics/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All data & analysis skills →OpenSenseNova/SenseNova-Skills
读取多工作表Excel文件,自动处理合并单元格与数据清洗,进行交叉分组统计并生成带总计行的结果表,最后绘制支持中英文字体的美化柱状图,适用于多维度数据汇总与可视化分析。
OpenSenseNova/SenseNova-Skills
对多Sheet Excel文件进行基础统计与,支持按条件筛选计算均值,以及从指定行区间提取数据去重求和,并生成结果文件与下载链接。
OpenSenseNova/SenseNova-Skills
当Excel文件总行数超过1万行时,通过转换为Parquet格式提升读取性能,提取目标指标并计算最大值,最后将结果输出为Excel并对特定行进行高亮标注。
OpenSenseNova/SenseNova-Skills
对Excel数据进行自定义分类统计、交叉分析与可视化,并基于多维度指标(如文本长度、术语密度、正则匹配等)进行综合评分与分级,适用于多类别数据分布统计及文本内容难度/质量评估场景。
OpenSenseNova/SenseNova-Skills
从结构化数据中提取分类分布执行清洗与统计,生成多维度交叉分析、高分辨率对比图表及包含下载链接的完整分析报告,适用于大文件处理与嵌入式可视化场景。
OpenSenseNova/SenseNova-Skills
对两类分类数据进行对比分析,统计数量差异与比例关系并生成可视化图表。
Add this badge to your README
[](https://modelsatlas.com/skills/opensensenova/category-statistics/)
<a href="https://modelsatlas.com/skills/opensensenova/category-statistics/"><img src="https://modelsatlas.com/skills/opensensenova/category-statistics/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Category Statistics
What does the Category Statistics skill do?
Is Category Statistics safe to install?
What can Category Statistics access on my machine?
How current is this page?
Sources
- github.com/OpenSenseNova/SenseNova-Skills/tree/main/skills/sn-da — the audited source at commit 657860e4d389 and every finding aboveObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Category Statistics skill do?
- Is Category Statistics safe to install?
- What can Category Statistics access on my machine?