Ling: Skill for Claude Code

.agents/skills/performance-profiling/SKILL.md

performance-profiling is a skill for Claude Code from MisonL/Ling. It costs 17 tokens per session (1,420 once invoked), scanned A, original, MIT.

Guidance for measuring and improving application speed. It uses tools such as Lighthouse, which audits web pages, and browser developer tools for inspecting runtime behavior.

In plain words
What is it for?
Investigating slow page loads, large build files, runtime delays, memory use, network requests, and key web experience measures such as loading, interaction, and layout stability.
Why use it?
It prevents guesswork by requiring a baseline measurement, identification of the bottleneck, a targeted change, and a follow-up check.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is MisonL/Ling's own configuration. It tells Claude Code how to work on Ling itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Ling configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MisonL/Ling. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MisonL/Ling/main/.agents/skills/performance-profiling/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MisonL/Ling

Made for: Claude Code.

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-profiling

README.md
[![agentmods](https://agentmods.dev/badge/skills/misonl/ling/performance-profiling/github.svg)](https://agentmods.dev/skills/misonl/ling/performance-profiling)
Your own site
<a href="https://agentmods.dev/skills/misonl/ling/performance-profiling"><img src="https://agentmods.dev/badge/skills/misonl/ling/performance-profiling/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-profiling

Your own site · 80×15
<a href="https://agentmods.dev/skills/misonl/ling/performance-profiling"><img src="https://agentmods.dev/badge/skills/misonl/ling/performance-profiling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,420 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.
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.00017 $0.01420
Opus 5.5 $0.00007 $0.00568
Sonnet 5.5 $0.00003 $0.00284
Haiku 4.5 $0.00002 $0.00142

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

Security

Grade A, and why

performance-profiling 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/lighthouse_audit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/performance-profiling/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

性能分析

测量、分析、优化 —— 必须严格遵循此顺序。


运行脚本

执行以下脚本进行自动化性能分析:

脚本 用途 执行命令
scripts/lighthouse_audit.py Lighthouse(性能审计工具)审计 python scripts/lighthouse_audit.py https://example.com

1. 核心 Web 指标

核心 Web 指标(Core Web Vitals)用于衡量加载与交互质量。

目标值

指标 优(Good) 劣(Poor) 衡量维度
LCP < 2.5s > 4.0s 加载体验
INP < 200ms > 500ms 交互响应
CLS < 0.1 > 0.25 视觉稳定性

何时进行测量

阶段 工具选择
开发环境(Development) 本地 Lighthouse
CI/CD 流程 Lighthouse CI(持续集成)
生产环境(Production) RUM(真实用户监控,Real User Monitoring)

2. 性能分析工作流

四步走流程

1. 建立基准(Baseline)-> 测量当前状态
2. 识别瓶颈(Identify)-> 找出性能卡点
3. 实施修复(Fix)     -> 进行针对性改动
4. 验证改进(Validate)-> 确认性能提升

分析工具选择建议

待解决问题 推荐工具
页面加载速度 Lighthouse
打包体积(Bundle size) Bundle analyzer(包分析器)
运行时性能 DevTools(开发者工具)Performance(性能)面板
内存占用 DevTools(开发者工具)Memory(内存)面板
网络请求 DevTools(开发者工具)Network(网络)面板

3. 打包产物分析

观察重点

潜在问题 识别指标
巨大的外部依赖 位于打包产物顶部
冗余/重复代码 存在于多个 Chunk(代码块)中
未使用的代码 低覆盖率(Coverage)
缺失分包(Splitting) 产物呈现为一个巨大的单体文件

优化手段

发现的问题 对应动作
库文件过大 按需导入(Import specific modules)
依赖项重复 去重(Dedupe)、更新版本
主包代码包含路由逻辑 实施代码分割(Code split)
存在未引用的导出 启用 Tree shake(摇树优化)

Read the full file on GitHub · 150 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 150 lines · 17 tokens per session scan A f675493c20eb

Subscribe to this mod's changes

performance-profiling is a skill published in the GitHub repository MisonL/Ling (8 stars, last pushed 7mo ago), licensed MIT. It adds 17 tokens to every session and 1,420 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

cwv-optimizer

Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…

adobe/skills · 112 tokens

incident-response-incident-response

Coordinate production incident triage, mitigation, investigation, recovery, and follow-up. Use when responding to outages or other incidents that require structured operational coordination.

rmyndharis/antigravity-skills · 36 tokens

ci-fixer

CI failures - read error, minimal fix, verify.

sipyourdrink-ltd/bernstein · 15 tokens