AgentSkillsCN

Baseline Management

基线管理

SKILL.md

Baseline Management

Skill Purpose: Maintain baselines for regression, performance, and snapshot tests to detect meaningful changes.


Core Skill Pattern

Objective: Define and manage trusted baselines for comparison and alerting.

Universal Pattern:

  1. Establish baseline sources and owners
  2. Version baselines with code changes
  3. Review baseline updates via PR
  4. Automate comparisons in CI
  5. Archive historical baselines

Key Decisions (Project-Specific):

  • Which metrics require baselines
  • Approval process for baseline updates
  • Storage and retention strategy

Project-Specific Implementation Notes

Customize per project:

  • Keep baselines deterministic and reproducible
  • Separate performance and UI snapshot baselines

Example Implementation (Snapshot Testing)

code
# Update snapshots (only when approved)
npm test -- -u

Best Practices

  1. Require review for baseline updates
  2. Store baselines in version control
  3. Document the rationale for changes
  4. Keep baselines small and focused
  5. Avoid updating baselines to hide regressions

Stop Conditions

STOP and escalate if:

  • Baseline changes are unreviewed
  • Baselines are non-deterministic
  • Comparison results are not reproducible

Skill Version: 1.0.0