AgentSkillsCN

logics-acceptance-to-tests

将验收标准转化为具体的验证/测试方案。当 Codex 应将待办事项/规格中的验收标准转化为单元测试、集成测试或端到端测试的思路,并用相关命令更新任务/规格的验证部分时使用。

SKILL.md
--- frontmatter
name: logics-acceptance-to-tests
description: Convert acceptance criteria into a concrete validation/test plan. Use when Codex should turn backlog/spec acceptance criteria into unit/integration/e2e test ideas and update the task/spec validation section with relevant commands.

Acceptance → Tests

Do

  • Rewrite each acceptance criterion as a verifiable check.
  • Map checks to test types:
    • Unit: pure logic and edge cases
    • Integration: components + state + API boundaries
    • E2E: user flows and regressions
  • Update the # Validation section in tasks with the most relevant commands:
    • npm run lint
    • npm run tests
    • npm run typecheck
    • npm run build