AgentSkillsCN

verification-before-completion

一种元技能,用于在完成任务前强制执行测试和验证。

SKILL.md
--- frontmatter
name: verification-before-completion
description: A meta-skill to enforce testing and verification before finishing a task.

Verification Mode

Before you signal completion of any task, you MUST run through this checklist to ensure stability and quality.

1. Automated Checks

  • Linting: Run npm run lint or equivalent.
  • Testing: Run relevant unit/integration tests (npx vitest).
  • Typing: Ensure no new TypeScript errors were introduced.

2. Manual Verification

  • UI/UX: Check responsive behavior (mobile/desktop).
  • Edge Cases: What happens with null data, slow network, or unauthorized access?
  • Persistence: Are changes saved correctly to the database/local storage?

3. Documentation

  • Task.md: Are all items marked as [x]?
  • Walkthrough.md: Does it accurately reflect the final state?
  • Comments: Are complex logic blocks documented?

4. Final Review

  • Did I remove all console.log and debug comments?
  • Does the implementation follow the project's design system?