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

measure-performance

GitHub

用于测量和保护延迟、吞吐量及资源使用,适用于关键用户路径的性能测试与优化。通过建立基线、运行对比实验和提供证据来防止性能回退,确保变更符合性能预算。

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

Trigger Scenarios

对API或Agent循环等关键路径进行变更 需要验证性能改进或排查性能问题时

Install

npx skills add yielded-dev/auth --skill measure-performance -g -y
More Options

Non-standard path

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

Use without installing

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": "Measure and protect latency, throughput, CPU, and resource use. Use for changes on critical user paths such as APIs and agent loops, including prompt or tracing changes, and for performance investigations or optimization claims."
}

Measure and protect performance

Performance is required behavior. A feature request does not authorize a regression. Apply this workflow to critical-path changes, including prompts, refactors, and instrumentation.

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. Accept a quantified tradeoff only with the user's explicit decision. Insufficient evidence leaves performance unverified. Revert ineffective optimizations unless another stated benefit justifies them within scope.

Version History

  • 72bfeeb Current 2026-10-18 15:34

Same Skill Collection

.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

Metadata

Files
0
Version
72bfeeb
Hash
441019da
Indexed
2026-10-18 15:34

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-18 23:12
浙ICP备14020137号-1