performance-summary

performance-summary is a skill for Claude Code, Codex from mindspore-ai/akg. It costs 48 tokens per session (756 once invoked), scanned A, original, Apache-2.0.

A skill for combining performance results from several operators, which are reusable computation steps such as ReLU or sigmoid. It reads recorded measurements and produces a comparison of latency, throughput, memory use, and speedup.

In plain words
What is it for?
Use it to summarize operator benchmarks, compare execution time and memory use, identify performance outliers, and suggest optimization targets.
Why use it?
It removes the need to gather separate benchmark files and compare their numbers by hand. It also highlights the best and worst results and unusual measurements.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/collect_metrics.py --verify.

Good fit Use it to summarize operator benchmarks, compare execution time and memory use, identify performance outliers, and suggest optimization targets.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mindspore-ai/akg
agentmods
npx agentmods add skills/mindspore-ai/akg/performance-summary

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for performance-summary

README.md
[![agentmods](https://agentmods.dev/badge/skills/mindspore-ai/akg/performance-summary/github.svg)](https://agentmods.dev/skills/mindspore-ai/akg/performance-summary)
Your own site
<a href="https://agentmods.dev/skills/mindspore-ai/akg/performance-summary"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/performance-summary/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for performance-summary

Your own site · 80×15
<a href="https://agentmods.dev/skills/mindspore-ai/akg/performance-summary"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/performance-summary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00756
Opus 5.5 $0.00019 $0.00302
Sonnet 5.5 $0.00010 $0.00151
Haiku 4.5 $0.00005 $0.00076

Measured 1mo ago against content hash b3ed6da20941, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-summary scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

akg_agents/python/akg_agents/op/resources/skills/performance-summary/SKILL.md · 94 lines

What it actually says

性能汇总

汇总和对比多个算子的性能指标。

工作流程

  1. 收集性能数据

    • 使用 read_file 读取各算子的 verify_<op_name>/result.json
    • 提取关键指标:latency_ms, throughput, memory_usage_mb, speedup
  2. 生成对比表格

    | 算子   | 延迟 (ms) | 吞吐量 | 内存 (MB) | 加速比 |
    |--------|-----------|--------|-----------|--------|
    | relu   | 0.15      | 1000   | 128       | 2.3x   |
    
  3. 分析结果

    • 找出最优/最差的算子
    • 标注性能异常点
    • 提出优化目标
  4. 生成报告 使用模板:## 测试环境 → ## 性能对比 → ## 分析 → ## 优化建议

数据位置

性能结果存储在验证目录中:

  • verify_<op_name>/result.json - 主要结果
  • verify_<op_name>/profiling.json - 详细性能分析(如有)

关键指标

指标 说明
latency_ms 单次执行延迟(毫秒)
throughput 每秒操作数
speedup 相对基准(torch)的加速比
memory_usage_mb 峰值内存占用(MB)

示例

用户: "帮我汇总 relu 和 sigmoid 算子的性能"

Agent 执行:

  1. 调用 read_file("verify_relu/result.json")
  2. 调用 read_file("verify_sigmoid/result.json")
  3. 提取指标,构建对比表格
  4. 生成汇总和优化建议

脚本调用

可使用 scripts/collect_metrics.py 批量收集并打印性能汇总:

from collect_metrics import collect_metrics, print_results

# 打印格式化的性能汇总结果
print_results()

Skill 验证

使用 --verify 参数验证当前 skill 是否可用:

python scripts/collect_metrics.py --verify

验证内容包括:

  • SKILL.md 文件是否存在且格式正确
  • 核心函数是否可调用
  • 依赖模块是否可用
  • 模拟执行测试

输出示例:

============================================================
性能汇总结果
============================================================
| Operator | Latency (ms) | Throughput | Memory (MB) | Speedup | Correct |
|----------|--------------|------------|-------------|---------|---------|
| matmul   | 1.234        | 5000       | 256.0       | 1.80x   | ✅      |
| relu     | 0.150        | 10000      | 128.0       | 2.30x   | ✅      |
| sigmoid  | 0.180        | 8000       | 128.0       | 2.10x   | ✅      |
============================================================
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 94 lines · 48 tokens per session scan A b3ed6da20941

Subscribe to this mod's changes

performance-summary is a skill published in the GitHub repository mindspore-ai/akg (263 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 756 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Performs bounded, local exploratory analysis of explicitly supported scientific files. Supports redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

matlab

Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 44 tokens

phylogenetics

Builds and analyzes phylogenetic trees using MAFFT multiple sequence alignment, IQ-TREE maximum likelihood with ModelFinder and branch support, and FastTree approximate inference. Uses ETE3 for tree summaries and visualization. Applies to homologous nucleotide or protein sequences, microbial gene trees, protein…

K-Dense-AI/scientific-agent-skills · 71 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

presenting-conference-talks

Generates conference presentation slides (Beamer LaTeX PDF and editable PPTX) from a compiled paper with speaker notes and talk script. Use when preparing oral talks, spotlight presentations, or invited talks for ML and systems conferences.

Orchestra-Research/AI-Research-SKILLs · 53 tokens