AgentSkillsCN

verify

运行质量检测循环(代码风格检查 + 测试),以验证代码质量和正确性。适用于在完成任何代码更改后、提交前,或在被要求检查/验证项目是否正常运行时使用。

SKILL.md
--- frontmatter
name: verify
description: Run the quality loop (lint + tests) to verify code quality and correctness. Use after making any code changes, before committing, or when asked to check/verify the project works.

Verify Skill

Run lint → tests and report results.

Steps

  1. Run npm run lint to check code quality (read-only, no auto-fix)
  2. Run npm test to run all tests
  3. Summarize results:
    • ✅ All checks passed → ready to commit
    • ❌ Some checks failed → show what failed and suggest next action

Notes

  • Use npm run lint (not npm run lint:fix) — lint:fix auto-fixes files which is not suitable for verification
  • Does not run tests in watch mode (use npm run test:watch manually for that)
  • Does not run coverage (use npm run test:coverage manually for that)
  • Does not commit or push changes