跳到正文
cccskills
免费在 GitHub 公开

superior-performance

Investigate, optimize, or review software performance using representative measurements, profiles, budgets, and regression evidence. Use when latency, throughput, resource use, loading, rendering, bundle cost, or scalability is a primary concern. Do not use for speculative micro-optimization without a symptom, target, or demonstrated bottleneck.

中文简介正在准备中。当前显示原文说明。

KodekaTeam/superior-skills星标 23(GitHub 23 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(4)

  • SKILL.md5.7 KB
  • references/client-delivery-and-rendering.md3.0 KB
  • references/measurement-profiling-and-benchmarks.md2.9 KB
  • references/runtime-capacity-and-caching.md2.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Superior Performance

Improve the user or system outcome that is actually constrained, not the code that merely looks expensive. Preserve correctness, security, accessibility, and maintainability while grounding every optimization in comparable evidence.

Define the performance contract

Before optimizing, establish:

  • the affected user journey, operation, workload, or resource;
  • the metric and target, including percentile or distribution where relevant;
  • current baseline, regression window, and measurement source;
  • environment, hardware, network, data shape, concurrency, and cache state;
  • correctness and quality constraints that may not be traded away;
  • whether the goal is latency, throughput, responsiveness, capacity, efficiency, or cost.

Do not convert an unverified impression such as “slow” into a universal target. If no explicit budget exists, derive a provisional comparison from product expectations and repository evidence, and label it as provisional.

Measure before changing

Read references/measurement-profiling-and-benchmarks.md when establishing a baseline, selecting profiling tools, constructing a benchmark, or comparing alternatives.

  • Reproduce the representative workload before editing when practical.
  • Warm up runtimes and caches intentionally; report cold and warm results separately when both matter.
  • Prefer profiles, traces, query plans, flame graphs, allocation data, or browser timelines over intuition.
  • Change one material variable at a time and compare using the same setup.
  • Account for variance, background work, sampling, throttling, and measurement overhead.

A single fast run is not evidence of improvement. A synthetic benchmark is useful only for the behavior it faithfully represents.

Optimize the owning bottleneck

Read references/runtime-capacity-and-caching.md for CPU, memory, allocation, I/O, concurrency, queues, batching, caching, connection pools, or service-capacity work.

Read references/client-delivery-and-rendering.md for bundles, network waterfalls, images, fonts, hydration, rendering, input responsiveness, long tasks, layout, or client memory.

  • Remove unnecessary work before making necessary work faster.
  • Reduce work at the layer that owns the constraint rather than shifting it invisibly to another service, client, queue, or deployment phase.
  • Preserve boundedness and backpressure; higher throughput that creates unstable queues is not an improvement.
  • Treat caches as consistency and lifecycle systems, not free speed.
  • Prefer algorithmic, query, payload, and round-trip improvements over low-value syntax micro-optimizations.

Do not add concurrency, memoization, lazy loading, preloading, compression, or a cache merely because it can improve a benchmark. Confirm the workload, invalidation, memory, latency, and operational tradeoffs.

Protect correctness and experience

  • Verify outputs, ordering, authorization, error handling, cancellation, and idempotency remain correct.
  • Do not improve averages by dropping slow requests, hiding errors, reducing result quality, or excluding difficult devices and data.
  • Preserve accessibility and reduced-motion behavior in client optimizations.
  • Avoid production profiling, load generation, cache flushing, broad telemetry changes, or resource-limit changes without explicit authorization and safety controls.
  • Treat performance changes that alter public behavior, consistency, retention, or cost as contract changes, not invisible implementation details.

Verify the improvement

Repeat the baseline protocol after the change and report:

  • before and after distributions or representative measurements;
  • workload, environment, sample count or duration, and cache state;
  • profile evidence showing the bottleneck moved or diminished;
  • correctness and regression checks performed;
  • resource or cost tradeoffs introduced;
  • limits of the benchmark and conditions not exercised.

Check neighboring workloads for regressions. An optimization can improve one percentile, payload, route, or device while harming another. If the result is within measurement noise, report it as inconclusive rather than improved.

Combine skills narrowly

  • Use superior-debugging when the performance symptom's cause is still uncertain and causal investigation is primary.
  • Use superior-database when query plans, indexes, locks, schema, or datastore capacity owns the bottleneck.
  • Use superior-reliability when objectives, overload behavior, graceful degradation, or recovery owns the outcome.
  • Use superior-delivery when performance evidence is a release gate or the optimization changes build or rollout behavior.
  • Use superior-testing when benchmark design or performance-regression automation requires dedicated test judgment.
  • Use superior-ui, superior-responsive, or superior-accessibility when an interface change is required to deliver the measured improvement safely.
  • Use superior-logic when optimization changes application behavior, concurrency, state, or external calls.
  • Use superior-docs after a verified material performance change or durable measurement/runbook update.

Do not broaden focused optimization into a framework rewrite, infrastructure migration, or observability-platform replacement without explicit scope.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Review or implement interface accessibility for semantics, keyboard operation, focus, contrast, status communication, zoom, and assistive technology. Use when accessibility is explicitly requested, required by the product contract, or a changed interaction creates substantial accessibility risk. Do not activate for every visual edit or use it as a generic design audit.

中文简介正在准备中。当前显示原文说明。

KodekaTeam/superior-skills232026年10月29日 更新

Implement, harden, or review defensive security controls for REST APIs, including authentication and authorization boundaries, validation, rate limiting, abuse prevention, resource limits, SSRF defenses, safe errors, logging, and security tests. Use when API security, endpoint hardening, threat review, rate limiting, token handling, or sensitive business-flow protection is an explicit concern. Do not use for ordinary endpoint logic without meaningful security scope or for offensive exploitation.

中文简介正在准备中。当前显示原文说明。

KodekaTeam/superior-skills232026年10月29日 更新

Design, implement, or assess project structure, module ownership, dependency boundaries, and safe file or folder organization. Use when project architecture, feature placement, separation of responsibilities, or architectural refactoring is a primary concern, including new framework projects. For a read-only assessment, do not modify files unless the user also requests changes; do not activate merely because ordinary feature work adds a file.

中文简介正在准备中。当前显示原文说明。

KodekaTeam/superior-skills232026年10月29日 更新

Review a code change, diff, commit, branch, or pull request for actionable defects, regressions, security risks, compatibility breaks, and missing verification. Use when code review is the primary requested outcome. Keep the review read-only unless the user explicitly asks to implement fixes; do not use as a substitute for implementation or a specialized visual audit.

中文简介正在准备中。当前显示原文说明。

KodekaTeam/superior-skills232026年10月29日 更新

Add, revise, or remove source-code comments while preserving executable behavior. Use for comment-only cleanup, documentation comments, TODO quality, and reducing narration. Do not use when the requested change modifies logic.

中文简介正在准备中。当前显示原文说明。

KodekaTeam/superior-skills232026年10月29日 更新

Write or revise user-facing product and marketing copy with a specific voice, verifiable claims, natural rhythm, and useful actions. Use for interface labels, onboarding, landing pages, help text, and product messaging. Do not use for code comments or neutral technical documentation unless tone editing is requested.

中文简介正在准备中。当前显示原文说明。

KodekaTeam/superior-skills232026年10月29日 更新

查看 KodekaTeam 的全部技能

报告此技能的问题