English
Execution Contract
Default to standard; explicit invocation is required.
Complete one primary task by default. Continue an authorized end-to-end workflow within each Skill's permissions; Router remains recommendation-only. Pause for new material decisions or scope, not authorization already given.
Validate according to actual risk; security, production, migrations, releases and other high-risk work use audit. Read references/execution-modes.en.md only when mode selection is unclear.
Performance Regression Analysis
Analyze one specific performance regression. Keep production code and configuration unchanged.
Boundary
- Require a baseline, workload, metric, or explicit plan to obtain them. Do not claim regression from code appearance alone.
- Route broad code review to
safe-code-review, general health toproject-health-check, test implementation tosafe-test-implementation, and optimization implementation tosafe-fix-implementation. - Do not run unsafe load against production or infer causality from one noisy sample.
Workflow
- Define baseline and candidate versions, environment, workload, dataset, warmup, concurrency, metric, percentile, budget, and measurement method.
- Inspect supplied profiles, benchmarks, traces, logs, query plans, browser traces, or reproducible experiments; record missing controls.
- Compare algorithms, repeated I/O, N+1 behavior, caches, allocation and memory, concurrency and contention, network, database, serialization, and frontend rendering as applicable.
- Separate measured regression, correlated observation, code-based hypothesis, and unknown.
- Check variance, sample size, cold/warm effects, environment drift, and measurement bias before attributing cause.
- Rank hypotheses by impact, evidence, confidence, and experiment cost; propose falsifiable validation experiments and optimization priorities.
- Do not optimize code; report exact evidence, locations, impact, severity/priority, confidence, validation, and unknowns.
Output Contract
- Scope, baseline, workload, and metrics
- Evidence and measurement quality
- Findings with measured/inferred status, severity, impact, and confidence
- Ranked hypotheses and affected locations
- Validation experiments and expected signals
- Optimization priorities without implementation
- Unknowns
简体中文
执行契约
默认使用 standard;仅允许用户显式调用。
默认完成一个主任务。用户已授权完整流程时,在各 Skill 权限内连续完成;Router 仍只推荐。新重大决策或超出授权时暂停,不重复索取已有授权。
按实际风险选择验证;安全、生产、迁移、发布等高风险工作使用 audit。模式不明确时才读取 references/execution-modes.zh-CN.md。
性能回归分析
分析一个具体性能回归,保持生产代码和配置不变。
职责边界
- 需要基线、工作负载、指标或获取它们的明确方案;不得仅凭代码外观声称回归。
- 广泛代码审查交给
safe-code-review,一般体检交给project-health-check,测试实施交给safe-test-implementation,优化实施交给safe-fix-implementation。 - 不对生产执行不安全压力,也不从单个噪声样本推断因果。
工作流程
- 明确基线与候选版本、环境、工作负载、数据集、预热、并发、指标、分位数、预算和测量方法。
- 检查用户提供的 profile、benchmark、trace、日志、查询计划、浏览器 trace 或可复现实验,记录缺失控制变量。
- 按适用情况比较算法、重复 I/O、N+1、缓存、分配与内存、并发与争用、网络、数据库、序列化和前端渲染。
- 分离已测量回归、相关观察、代码假设和未知。
- 归因前检查方差、样本量、冷热效应、环境漂移和测量偏差。
- 按影响、证据、置信度和实验成本排序假设,提出可证伪实验和优化优先级。
- 不优化代码,报告准确证据、位置、影响、严重度/优先级、置信度、验证和未知项。
输出契约
- 范围、基线、工作负载和指标
- 证据与测量质量
- 发现、测量/推断状态、严重度、影响和置信度
- 排序假设与受影响位置
- 验证实验与预期信号
- 不含实施的优化优先级
- 未知项