performance-optimize

Tool or module for improving system or application performance, aimed at enhancing execution efficiency and responsiveness.

Last repository push
GitHub Stars
194
Forks
13
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "performance-optimize" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-38b7d46a420ec0b3c5e43dae34c141d97ecf0f9751db25836b47aa46f2d9ef4d. Verify the upstream source and version against https://github.com/jasonswett/llm-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Tool or module for improving system or application performance, aimed at enhancing execution efficiency and responsiveness.

0 Downloads

Introduction source: third_party · jasonswett · 0.0.1 Reference

SkillPi interpretation

Tasks
Performance engineer loop — speed, memory, scalability, extra rendering. Find the bottleneck, then ship a measured fix against an explicit target.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: performance-optimize
description: "Performance engineer loop — speed, memory, scalability, extra rendering. Find the bottleneck, then ship a measured fix against an explicit target."
disable-model-invocation: true
argument-hint: "[path] [--report-only]"

Performance optimize

Slowness, memory, or extra rendering with a measurable target. No target → agree one before changing code.

$ARGUMENTS is the scope (path / surface) and/or --report-only. --report-only baselines and names the bottleneck; it does not edit.

Hard gates

  • Measure first. A story about what is slow is not a baseline.
  • Fix the bottleneck you measured, not a neighboring one that looks ugly.
  • Re-measure the same probe after the fix. If the number did not move, revert.
  • Do not trade correctness or a hard product rule for a faster path.
  • Do not add a library that duplicates one already in the repo.

1. Target

Write one line before any profile:

  • What is slow / fat / over-rendering (user-visible or a named job)
  • Probe (command, trace, log field, heap snapshot — the thing you will run twice)
  • Number (p50/p95 latency, RSS, allocs, render count, LCP/INP/CLS, query count, CPU-ms)
  • Budget (good enough). If the user did not give one, pick a conservative budget from the probe and state it.

No probe you can run in this environment → say so and stop, or switch to a probe you can run. Do not ship an unmeasured “should be faster.”

2. Baseline

Run the probe. Record: command, environment, n, result. That number is the only “before.”

Frontend: DevTools/Lighthouse/trace, render counts, bundle bytes. Backend/jobs: timing around the hot function, query logs, heap, CPU profile. Rendering: how many times the expensive component/function ran per user action.

3. Find the bottleneck

Use the symptom tree; do not skip to a rewrite:

What is slow?
├── First load / TTFB / LCP     → bytes, blocking, server wait, images
├── Interaction / INP / jank    → long tasks, extra renders, layout thrash
├── After navigation            → waterfalls, refetch, cache miss
├── One API / job               → queries, locks, sync CPU, N+1, huge payloads
├── Memory growth               → unbounded cache, retained DOM/closures, giant JSON
└── Scale (n items / n markets) → O(n²), full-table walks, no pagination

Name one dominant cost with evidence (stack, query, flame, render reason). Secondary issues go on a parked list.

4. Report

Print: target, baseline, bottleneck + evidence, proposed fix, parked list, how you will re-measure.

--report-only ends here.

5. Fix (not --report-only)

Change only what the bottleneck requires. Typical moves, only when the profile points here:

  • Cut extra renders (stable props, split state, skip work off-screen)
  • Cut bytes / parse cost (smaller payload, less JSON, fewer round trips)
  • Cut queries (batch, index, stop N+1)
  • Bound memory (caps, streaming, drop caches that grow with the slate)
  • Move work off the critical path (cache, defer, compute once)

No speculative memoization. No new abstraction “for later.”

6. Verify

Run the same probe. Report before → after vs budget. If it missed, either a second evidence-backed pass on the same bottleneck or revert. Add a guard when cheap (test that counts queries/renders, CI budget, log).

Done

Target, before, after, and whether the budget cleared. Parked items named, not silently “fixed.”

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供端到端性能工程闭环:从目标设定、基线测量到瓶颈定位与验证
  • 覆盖前端、后端、内存、渲染等多维度优化场景,实用性强
Trigger Precision65/100

Areas to improve

  • 缺少自然语言触发词描述 Reported severity: Minor

    description 侧重技术术语,未显式列出用户可能使用的口语化触发指令

    Recommendation: 在 frontmatter 或开头补充常见触发短语,如“帮我优化性能”“分析页面卡顿原因”

Highlights

  • argument-hint 提供了命令行参数提示,有助于精确匹配
Structure and Standards90/100

Highlights

  • Phase 划分清晰,含硬门控规则和可执行步骤
  • 文档结构完整,frontmatter 规范,长度适中
Execution Reliability68/100

Areas to improve

  • 缺乏对不可逆操作的确认机制 Reported severity: Major

    Fix 阶段涉及代码修改,但未要求用户确认或提供回滚保障

    Recommendation: 在执行实际修改前增加确认提示,并建议备份或生成 diff 预览

  • 探针执行失败时缺乏 fallback 方案 Reported severity: Major

    当环境无法运行指定探针时仅建议停止,未提供替代测量方法

    Recommendation: 增加常见探针的替代方案说明,或引导用户提供可运行的测量方式

Highlights

  • 强调‘Measure first’和‘Re-measure’,确保修改有据可依
  • 包含 revert 机制和 parked list,避免过度修改
Evidence Verifiability (mean of the first four)75/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.