AgentSkillsCN

verify

运行仓库质量检查(lint、格式化、类型检查、测试)。使用/verify运行所有检查,或/verify lint、/verify 格式化、/verify 测试、/verify e2e单独运行。在代码更改后或提交前使用。

SKILL.md
--- frontmatter
name: verify
description: Run repository quality checks (lint, format, type check, test). Use /verify to run all checks, or /verify lint, /verify format, /verify test, /verify e2e to run individually. Use after code changes or before commits.

Verify Skill

Run quality checks for this repository.

Run All Checks

/verify runs the following in order (E2E not included):

  1. pnpm format:check - Format check
  2. pnpm lint - ESLint
  3. pnpm exec tsc --noEmit - Type check
  4. pnpm test - Unit tests

Run Individual Checks

ArgumentCommand
formatpnpm format:check
lintpnpm lint
typepnpm exec tsc --noEmit
testpnpm test
e2epnpm e2e
fixpnpm format && pnpm lint:fix

Error Handling

  • Format errors: Auto-fix with pnpm format
  • Lint errors: Auto-fix where possible with pnpm lint:fix
  • Type errors: Manually fix the code
  • Test errors: Review and fix failing tests