AgentSkillsCN

verify-docs-tests

验证 fe-tools 中的文档与测试。当用户提出检查文档与测试、核对文档与测试,或确保 utils、web-utils、node-utils、canvas-utils 或 ai-utils 中的导出内容与文档保持一致时,可使用此技能。

SKILL.md
--- frontmatter
name: verify-docs-tests
description: Verify documentation and tests in fe-tools. Use when the user asks to检查文档和测试, verify docs/tests, or ensure exports and docs are aligned across utils, web-utils, node-utils, canvas-utils, or ai-utils.

Verify Docs and Tests

Workflow

  1. Check that exported APIs in packages/*/src/index.ts match documentation expectations (focus on the touched package). Use the update-index-exports skill if exports are missing.
  2. Verify new or changed functions have tests in packages/*/__tests__/ for the same package.
  3. Suggest running tests:
    • npm run test for all packages
    • TEST_API=<package> npm run test for a specific package
  4. If docs output is required, suggest npm run docs or use the sync-docs skill.