Token导航 LogoToken导航

Agent Skill · 研究检索

performance-profiler(性能分析器)

performance-profiler 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

performance-profiler 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 59,803。

总安装 376周安装 16GitHub Stars 2下载 132核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:performance-profiler(性能分析器)
来源仓库:https://github.com/wyattowalsh/agents
仓库路径:skills/performance-profiler
安装命令:
npx skills add https://github.com/wyattowalsh/agents --skill performance-profiler
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/wyattowalsh/agents --skill performance-profiler

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于根据关键词或任务场景快速定位候选结果。适合在需要检索相关信息时使用。可结合来源仓库和原始 README 核验具体用法。安装命令:npx skills add https://github.com/wyattowalsh/agents --skill performance-profiler。

安装前建议确认是否会触发联网或命令执行。

来源仓库内路径:skills/performance-profiler

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/wyattowalsh/agents --skill performance-profile…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

performance-profiler 怎么安装?

在终端执行 npx skills add https://github.com/wyattowalsh/agents --skill performance-profiler。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

performance-profiler 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

performance-profiler 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

performance-profiler 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

performance-profiler 用的人多吗?

公开数据是累计安装 376 次,近一周安装 16 次,下载 132 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

performance-profiler 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
performance-profiler

性能分析器 · 本页

3762需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Performance Profiler

Analysis-based performance review. Every recommendation grounded in evidence. 6-mode pipeline: Analyze, Profile, Cache, Benchmark, Regression, Leak-Patterns.

Scope: Performance analysis and recommendations only. NOT for running profilers, executing load tests, infrastructure monitoring, or actual memory leak detection. This skill provides analysis-based guidance, not measurements.

Canonical Vocabulary

Use these terms exactly throughout all modes:

TermDefinition
complexityBig-O algorithmic classification of a function or code path
hotspotCode region with disproportionate resource consumption (time or memory)
bottleneckSystem constraint limiting overall throughput
profiler outputTextual data from cProfile, py-spy, perf, or similar tools pasted by user
cache strategyEviction policy + write policy + invalidation approach for a caching layer
benchmark skeletonTemplate code for measuring function performance with proper methodology
regression riskLikelihood that a code change degrades performance, scored LOW/MEDIUM/HIGH/CRITICAL
anti-patternKnown performance-harmful code pattern (N+1, unbounded allocation, etc.)
evidenceConcrete proof: AST analysis, profiler data, code pattern match, or external reference
recommendationActionable optimization suggestion with expected impact and trade-offs
flame graphHierarchical visualization of call stack sampling data
wall timeElapsed real time (includes I/O waits) vs CPU time (compute only)

Dispatch

$ARGUMENTSMode
analyze <file/function>Algorithmic complexity analysis, Big-O review
profile <data>Interpret textual profiler output (cProfile, py-spy, perf)
cache <system>Caching strategy design (LRU/LFU/TTL/write-through/write-back)
benchmark <code>Benchmark design and methodology review
regression <diff>Performance regression risk assessment from code diff
leak-patternsCommon memory leak pattern scan (NOT actual detection)
EmptyShow mode menu with examples for each mode

Mode 1: Analyze

Algorithmic complexity analysis for files or functions.

Analyze Step 1: Scan

Run the complexity estimator script:

uv run python skills/performance-profiler/scripts/complexity-estimator.py <path>

Parse JSON output. If script fails, perform manual AST-level analysis.

Analyze Step 2: Classify

For each function in scope:

  1. Identify loop nesting depth, recursion patterns, data structure operations
  2. Map to Big-O classification using references/complexity-patterns.md
  3. Score hotspot risk: nesting depth * call frequency * data size sensitivity
  4. Flag functions with O(n^2) or worse in hot paths

Analyze Step 3: Report

Present findings as a table:

FunctionEstimated ComplexityEvidenceHotspot RiskRecommendation

Include trade-off analysis for each recommendation.

Mode 2: Profile

Interpret textual profiler output pasted by the user.

Profile Step 1: Parse

Run the profile parser script on user-provided data:

uv run python skills/performance-profiler/scripts/profile-parser.py --input <file>

If data is inline, save to temp file first. Parse JSON output.

Profile Step 2: Identify Hotspots

From parsed data:

  1. Rank functions by cumulative time (top 10)
  2. Identify functions with high call count but low per-call time (overhead candidates)
  3. Identify functions with low call count but high per-call time (optimization candidates)
  4. Check for I/O-bound vs CPU-bound patterns (wall time vs CPU time ratio)

Profile Step 3: Recommend

For each hotspot, provide:

  • Root cause hypothesis with evidence from the profiler data
  • Optimization approach with expected impact range
  • Trade-offs and risks of the optimization
  • Reference to relevant anti-patterns from references/anti-patterns.md

Mode 3: Cache

Design caching strategies for a described system.

Cache Step 1: Understand Access Patterns

Ask about or infer from code:

  1. Read/write ratio
  2. Data freshness requirements (TTL tolerance)
  3. Cache size constraints
  4. Consistency requirements (eventual vs strong)
  5. Eviction pressure (working set vs cache capacity)

Cache Step 2: Design Strategy

Use references/caching-strategies.md decision tree:

FactorLRULFUTTLWrite-ThroughWrite-Back
Read-heavy, stable working setGoodBestOK----
Write-heavy------SafeFast
Strict freshness----BestBestRisky
Memory-constrainedBestGoodOK----

Cache Step 3: Specify

Deliver: eviction policy, write policy, invalidation strategy, warm-up approach, monitoring recommendations. Include capacity planning formula.

Mode 4: Benchmark

Design benchmarks and review methodology.

Benchmark Step 1: Generate Skeleton

Run the benchmark designer script:

uv run python skills/performance-profiler/scripts/benchmark-designer.py --function <signature> --language <lang>

Parse JSON output for setup code, benchmark code, iterations, warmup.

Benchmark Step 2: Review Methodology

Validate against benchmark best practices:

  1. Warmup period sufficient to stabilize JIT/caches
  2. Iteration count provides statistical significance
  3. Measurement excludes setup/teardown overhead
  4. Environment controlled (no interference from other processes)
  5. Results include variance/percentiles, not just mean

Benchmark Step 3: Deliver

Provide complete benchmark code with methodology notes, expected metrics, and interpretation guide.

Mode 5: Regression

Assess performance regression risk from a code diff.

Regression Step 1: Collect Diff

If path provided, read the diff. If git range provided, run git diff. Identify changed functions and their call sites.

Regression Step 2: Assess Risk

For each changed function:

Risk FactorWeightCheck
Complexity increase3xLoop nesting added, algorithm changed
Hot path change3xFunction called in request/render path
Data structure change2xCollection type or size assumptions changed
I/O pattern change2xNew network/disk calls, removed batching
Memory allocation1xNew allocations in loops, larger buffers

Risk score = sum of (weight * severity). Map to LOW/MEDIUM/HIGH/CRITICAL.

Regression Step 3: Report

Present regression risk matrix with:

  • Per-function risk assessment with evidence
  • Aggregate risk score for the diff
  • Recommended benchmark targets before merging
  • Specific measurements to validate (what to profile and where)

Mode 6: Leak-Patterns

Scan for common memory leak patterns. Static analysis only -- NOT actual leak detection.

Leak Step 1: Scan

Read target files and check against patterns in references/leak-patterns.md:

  • Event listener accumulation without cleanup
  • Closure-captured references preventing GC
  • Growing collections without bounds (unbounded caches, append-only lists)
  • Circular references in reference-counted languages
  • Resource handles not closed (files, connections, cursors)
  • Global state accumulation

Leak Step 2: Classify

For each potential leak pattern found:

PatternLanguageSeverityFalse Positive Risk

Leak Step 3: Report

Present findings with code citations, explain why each pattern risks leaking, and suggest fixes. Acknowledge that static analysis has high false positive rates -- recommend actual profiling tools for confirmation.

Scaling Strategy

ScopeStrategy
Single functionDirect analysis, inline report
Single file (< 500 LOC)Script-assisted analysis, structured report
Multiple files / moduleParallel subagents per file, consolidated report
Full codebasePrioritize entry points and hot paths, sample-based analysis

Reference Files

Load ONE reference at a time. Do not preload all references into context.

FileContentRead When
references/complexity-patterns.mdCode pattern to Big-O mapping with examplesMode 1 (Analyze)
references/caching-strategies.mdCaching decision tree, eviction policies, trade-offsMode 3 (Cache)
references/anti-patterns.mdPerformance anti-patterns catalog (N+1, unbounded alloc, etc.)Mode 2 (Profile), Mode 5 (Regression), Mode 6 (Leak)
references/leak-patterns.mdMemory leak patterns by language (Python, JS, Go, Java)Mode 6 (Leak-Patterns)
references/profiler-guide.mdProfiler output interpretation, flame graph readingMode 2 (Profile)
references/benchmark-methodology.mdBenchmark design best practices, statistical methodsMode 4 (Benchmark)
ScriptWhen to Run
scripts/complexity-estimator.pyMode 1 — static complexity analysis via AST
scripts/profile-parser.pyMode 2 — parse cProfile/pstats textual output to JSON
scripts/benchmark-designer.pyMode 4 — generate benchmark skeleton from function signature
TemplateWhen to Render
templates/dashboard.htmlAfter any mode — inject results JSON into data tag

Data Files

FileContent
data/complexity-patterns.jsonCode pattern to Big-O mapping (machine-readable)
data/caching-strategies.jsonCaching decision tree (machine-readable)
data/anti-patterns.jsonPerformance anti-patterns catalog (machine-readable)

Critical Rules

  1. Never claim to measure performance — this skill provides analysis, not measurement
  2. Every recommendation must include trade-offs — no "just do X" advice
  3. Always acknowledge uncertainty in complexity estimates — static analysis has limits
  4. Never recommend premature optimization — confirm the code is actually on a hot path first
  5. Profiler output interpretation must cite specific data points, not general principles
  6. Cache strategy recommendations must address invalidation — "cache invalidation is hard" is not a strategy
  7. Benchmark designs must include warmup, statistical significance, and variance reporting
  8. Regression risk assessment must trace to specific code changes, not general concerns
  9. Leak pattern scanning is pattern-matching only — always recommend actual profiling for confirmation
  10. Load ONE reference file at a time — do not preload all references into context
  11. Present findings with evidence before suggesting fixes (approval gate)
  12. Anti-pattern findings require code citation [file:line] — no generic warnings

平台分布

Codex

33.94%
按下载量换算45

Claude

29.19%
按下载量换算39

Cursor

19.32%
按下载量换算26

Gemini CLI

9.36%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills