AgentSkillsCN

Verify Changes

Markdown 文档标准,用于 LLM 优化架构,包括 Pandoc PDF 生成的章节编号规则。当编写 markdown 文档、创建技能,或创作可能转换为 PDF 的内容时,使用此技能。

SKILL.md
--- frontmatter
name: Verify Changes
description: Use this skill after implementing code to verify correctness before notifying the user.

Verify Changes (QA Protocol)

Use this skill after code changes to meet the AGENTS.md “definition of done”.

When to use

  • After any change that can affect build/runtime behavior.
  • Always after UI/interaction changes (run UI smoke).

Standard checks (run from repo root)

Run these in order; if one fails, fix it before continuing:

  1. Typecheck + minimal lint
bash
npm run check
  1. Backend tests (includes smoke)
bash
npm test
  1. Build bundle (catches bundler/runtime issues)
bash
npm run build

UI smoke (required when UI/interaction changed)

Pre-reqs:

  1. Build the frontend:
bash
npm run build
  1. Start the backend serving dist/ on :4800:
bash
npm run backend:start

Then run:

bash
npm run test:ui:smoke

Notes

  • If you only changed documentation, you can skip these commands.