AgentSkillsCN

red-acceptance

按照TDD(红灯阶段)编写一项适配器测试。第一个参数为适配器名称(与后端/adapters/下的目录相匹配),随后是故事与场景。在用户想要编写适配器测试,或提及“/red-adapter”命令时使用此功能。

SKILL.md
--- frontmatter
name: red-acceptance
description: Write ONE acceptance test following TDD (red phase). Creates disabled test using 3-tier DSL architecture. Use when user wants to create acceptance tests or mentions /red-acceptance command.

/red-acceptance - Write Acceptance Test (Red Phase)

Usage

code
/red-acceptance "Story name" "Scenario name"
/red-acceptance 4 "Login fails with incorrect password"
/red-acceptance                                        # Interactive selection

Workflow

  1. Load .claude/agents/red-agent.md + .claude/templates/acceptance/test-class.md
  2. Read story and API spec from ProductSpecification/
  3. Analyze existing tests in acceptance/app-acceptance/
  4. Write ONE test with @Disabled, create/update Statements and DTOs as needed
  5. Verify test compiles

Test Types

TypeBase ClassTag
Backend APIAbstractBackendTest@Tag("backend")
Frontend UIAbstractUiTest@Tag("frontend")

Story mapping: see .claude/shared/story-mapping.md

Next step: Implement all layers, then /green-acceptance