Agent Skills › yielded-dev/auth › measure-performance

measure-performance

GitHub

用于调查性能问题或验证优化主张的规范。适用于对关键路径有实质性影响的变更,要求建立基线、执行基准测试并对比前后证据,防止性能回退。

.agents/skills/measure-performance/SKILL.md yielded-dev/auth

触发场景

用户要求进行性能工作或优化 提出涉及关键路径的性能主张 变更可能对重要路径产生显著性能影响

安装

npx skills add yielded-dev/auth --skill measure-performance -g -y
更多选项

非标准路径

npx skills add https://github.com/yielded-dev/auth/tree/main/.agents/skills/measure-performance -g -y

不安装直接使用

npx skills use yielded-dev/auth@measure-performance

指定 Agent (Claude Code)

npx skills add yielded-dev/auth --skill measure-performance -a claude-code -g -y

安装 repo 全部 skill

npx skills add yielded-dev/auth --all -g -y

预览 repo 内 skill

npx skills add yielded-dev/auth --list

SKILL.md

Frontmatter
{
    "name": "measure-performance",
    "description": "Investigate performance or verify optimization claims and changes likely to materially affect a demonstrably important, performance-sensitive path. Do not use for routine UI or feature changes solely because they touch an API, agent loop, or shared code."
}

Measure and protect performance

Use this workflow when the user asks for performance work, when making a performance claim, or when there is a concrete reason to expect a material performance impact on an important path. Identify that path and reason before deciding to benchmark. High frequency, user-visible latency, substantial resource cost, or an established performance budget can make a path important; an API, agent loop, prompt, instrumentation, or shared library is not automatically critical just because of its category.

Routine UI and feature changes, small refactors, and changes with no plausible material impact do not require a benchmark, baseline, or performance tradeoff approval. Ordinary correctness checks and sound engineering judgment are enough. If performance risk is uncertain, start with a proportionate inspection or existing evidence; measure only if that reveals a meaningful concern. When explicitly asked to investigate or optimize performance, use the workflow even if the path's importance is not yet established.

Name the affected path, primary outcome, representative workload, and relevant budgets. Inspect added sequential calls, queries, serialization, or scaling work before implementing. Being under an absolute budget does not excuse a meaningful regression. For optimizations, state the improvement sought.

Capture or identify a comparable baseline before changing the path. Iterate with the smallest reusable loop: focused correctness checks, operation counts, and profiles when attribution is needed. Reuse valid evidence while relevant code, workload, and environment remain unchanged; do not rerun the full matrix or recapture profiles after every edit.

  • Defining API/agent-loop metrics or choosing instrumentation: critical paths, then only the relevant observability references.
  • Running, interpreting, or reporting a measurement: comparison, including baselines, noise, completed work, and evidence.
  • Missing, duplicated, or slow verification tooling: feedback-loops.

Measure Cloudflare paths on deployed resources. No idle-laptop waits or global CPU locks; use pre-authorized temporary Alchemy stacks.

Before calling a change complete or ready to land, provide matched before/after evidence for the actual user path. Functional checks and reduced operation counts alone do not prove performance. Early PRs allowed by repository policy must identify the gap.

Fix or drop material regressions. If a material regression is unavoidable, explain the quantified tradeoff and alternatives and seek the user's decision; ordinary measurement noise or a negligible cost does not require approval. Insufficient evidence leaves performance unverified. Revert ineffective optimizations unless another stated benefit justifies them within scope.

版本历史

  • ba456e0 当前 2026-11-02 09:15

    结合 dev-kit 2.2.2 刷新性能指导,明确非例行变更无需基准测试,强调使用临时 Alchemy 栈测量 Cloudflare 路径。

  • 72bfeeb 2026-10-18 15:34

同 Skill 集合

.agents/skills/alchemy/SKILL.md
.agents/skills/cloudflare/SKILL.md
.agents/skills/dev-kit/SKILL.md
.agents/skills/effect/SKILL.md
.agents/skills/feedback-loops/SKILL.md
.agents/skills/library-first/SKILL.md
.agents/skills/o11y/SKILL.md
.agents/skills/project-setup/SKILL.md
.agents/skills/pull-requests/SKILL.md
.agents/skills/show-me/SKILL.md
.agents/skills/simplify/SKILL.md
.agents/skills/testing/SKILL.md

元信息

文件数
0
版本
ba456e0
Hash
4dfccade
收录时间
2026-10-18 15:34

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-02 11:49
浙ICP备14020137号-1