AgentSkillsCN

qa

运行 QA 回归测试套件并分析结果。适用于被要求运行测试、检查质量、验证变更,或执行回归测试时使用。

SKILL.md
--- frontmatter
name: qa
description: Run QA regression suite and analyze results. Use when asked to run tests, check quality, verify changes, or run regression.

QA Regression Skill

Run the project QA suite and analyze results.

Commands

CommandPurpose
pnpm qa:fastFast regression — Jest tests + lint
pnpm qa:verifyFull verification — qa:fast + lint
pnpm qa:investigateAnalyze last failing run
pnpm qa:repair-last-runAuto-repair last run
pnpm testJest unit tests only
pnpm test:e2ePlaywright E2E tests

Workflow

  1. Run pnpm qa:fast first for a quick check
  2. If failures occur, run pnpm qa:investigate to analyze root causes
  3. Fix the issues identified
  4. Re-run pnpm qa:verify to confirm everything passes
  5. For E2E issues, run pnpm test:e2e separately (requires running dev server)

Scripts Location

All QA scripts are in scripts/qa/:

  • fast-regression.sh — Shell script for fast regression
  • investigate-last-run.ts — TypeScript analyzer for failures
  • repair-last-run.ts — Auto-repair tool