원클릭으로
qfai-atdd
Implement automated acceptance tests (E2E/API/Integration) aligned with US/TC/CON-API obligations from specs and contracts.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Implement automated acceptance tests (E2E/API/Integration) aligned with US/TC/CON-API obligations from specs and contracts.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Triage incoming requirements against existing specs, then create or update layered SDD artifacts (_policies + spec-*) in one workflow.
Analyze the repository and tune qfai.config.yaml (testFileGlobs, exclude globs, optional specSections).
Run structured discussion that defines exploration conditions, evaluation rubric, and anti-goals for downstream prototyping.
Unified implementation skill that orchestrates the full TDD micro-cycle (Red/Green/Refactor) one test at a time using test-list.md as the execution ledger.
Iterate one prototype through up to 10 cycles of generate-capture-review against a frozen DESIGN.md, focusing on information architecture, navigation flow, usability, and functionality.
Run and document quality gates (repo + qfai validate/report), fix until PASS.
| name | qfai-atdd |
| title | QFAI ATDD (Executable acceptance tests) |
| description | Implement automated acceptance tests (E2E/API/Integration) aligned with US/TC/CON-API obligations from specs and contracts. |
| argument-hint | <spec-id> [--auto] |
| allowed-tools | ["Read","Glob","Write","TodoWrite","Task","Bash"] |
| roles | ["orchestrator","delivery-planner","test-design-analyst","qa-strategist","acceptance-test-engineer","devops-ci-engineer","completion-reviewer","qa-gatekeeper","implementation-reviewer"] |
| routing-profile | runtime-heavy |
| mode | execution-focused |
[DRIFT-PROTOCOL:MANDATORY]
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#user-questions-askuserquestion-protocol.
Skill-specific examples:
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#format-ssot-mandatory.
When unsure, read inputs in this order:
.qfai/assistant/constitution/*.qfai/assistant/manifest/* + .qfai/assistant/catalog/*.qfai/specs/<spec-id>/01_Spec.md (Primary SSOT / Consumer View).qfai/specs/<spec-id>/02_User-stories.md (US).qfai/specs/<spec-id>/03_Acceptance-Criteria.md (AC).qfai/specs/<spec-id>/05_Examples.md (EX).qfai/specs/<spec-id>/06_Test-Cases.md (TC).qfai/contracts/api/** (CON-API).qfai/contracts/ui/** and .qfai/contracts/design/** when the target spec is UI-bearing.qfai/specs/<spec-id>/09_delta.md (Decision Records; if no spec yet, state "not applicable").qfai/specs/<spec-id>/scenario.featureDo not read discussion-pack UI/UX sidecars. UI-bearing acceptance tests consume only specs and contracts normalized by /qfai-sdd.
.qfai/specs/<spec-id>/01_Spec.md.qfai/specs/<spec-id>/03_Acceptance-Criteria.md.qfai/specs/<spec-id>/05_Examples.md.qfai/specs/<spec-id>/06_Test-Cases.md01_Spec.md Escalation Hook signals ambiguity / conflict / missing constraint / trade-off.qfai/specs/_policies/01_Objective.md and .qfai/specs/_policies/08_Decisions.md_policies/** by default.Follow .qfai/assistant/constitution/shared-skill-delegation-baseline.md.
Use the shared schema.
test-design-analyst defines coverage and layer ownership.acceptance-test-engineer implements E2E, API, and integration acceptance tests.devops-ci-engineer captures execution evidence when CI/runtime proof is needed.orchestrator consolidates delegated outputs and presents results.completion-reviewer is delegated independently and returns only PASS or REVISE..qfai/assistant/constitution/shared-skill-delegation-baseline.md#reviewer-gate-baseline.completion-reviewer.US, Integration covers TC, API covers CON-API;X cells remain;qfai validate --profile atdd --fail-on error passes;.qfai/assistant/catalog/test-layers.md;scenario.feature and coverage ledgers remain optional legacy inputs, not completion gates..qfai/assistant/manifest/agent-routing.yml.completion-reviewerqa-gatekeeperimplementation-reviewer only when helper/runtime support code changed.PASS.Use the shared template.
Use the shared template.
Status (PASS/REVISE).Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#stage-0---steering-completion-refresh-mandatory.
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#delta-rejected-guard-mandatory.
10_Plan.md is the primary How SSOT for execution phases.10_Plan.md is missing, stop and run owner planning flow before proceeding.qfai validate --profile atdd --fail-on error).tests/e2e/** must cover all required US-*.tests/integration/** must cover all required TC-*.tests/api/** must cover all required CON-API-*.tests/api/** must not contain QFAI:SPEC-XXXX:TC-YYYY.tests/e2e/** must not contain QFAI:SPEC-XXXX:TC-YYYY.US/TC/CON-API not declared) must be treated as errors.scenario.feature or coverage ledgers may exist but are not mandatory inputs for completion..qfai/evidence/ and must not be committed.Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#completion-contract-shared.
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#gate-failure-autorepair-protocol for validate, doctor, and quality-gate failures.
Turn specs/contracts obligations (US / TC / CON-API) into runnable acceptance tests in this repository.
/qfai-implement).references/test-case-depth-checklist.md)US / TC / CON-API)PASS or concrete rework list).qfai/evidence/atdd-<spec-id>.mdUS-*CON-API-*TC-*| Layer | Raw count | Signal | Evidence | Notes |
|---|---|---|---|---|
| E2E | #US | E2E_s | user stories | |
| API | #CON | API_s | API contracts | |
| Integration | #TC | INT_s | test cases |
Every generated ATDD test MUST include QFAI annotations by layer:
tests/e2e/**: QFAI:SPEC-XXXX:US-YYYYtests/integration/**: QFAI:SPEC-XXXX:TC-YYYYtests/api/**: QFAI:CON-API-XXXXNotes:
QFAI:CON-API-* in E2E is not forbidden, but contract guarantee belongs to API tests.US are covered by E2E tests.TC are covered by integration tests.CON-API are covered by API tests.qfai validate --profile atdd --fail-on error.US / TC / CON-API remains uncovered.Create and update: .qfai/evidence/atdd-<spec-id>.md
Required sections:
Template:
# ATDD Evidence: <spec-id>
## Objective
## Inputs reviewed (files/paths)
## Decisions made (with rationale)
## Work performed (what changed, where)
## Commands executed + key outputs
## Test volume estimate
## Coverage obligations checklist
## Work Orders Summary
## Execution logs
## Gaps / Open risks
## Final status (PASS/FAIL) + who confirmed
test-design-analyst evaluates test cases using references/test-case-depth-checklist.md, produces Coverage Depth Matrix, flags gaps in boundary/error/edge coverage.US coverage.CON-API coverage.TC coverage.PASS or REVISE only).Before declaring completion:
Confirm required US / TC / CON-API coverage is complete.
Run:
qfai validate --profile atdd --fail-on error
Run repository standard gates:
Record exact commands and outcomes.
If commands cannot be run due to environment limits, request user execution and do not assume PASS.
When declaring DONE, include:
When this skill is complete, provide a final user-facing completion message and enumerate all actionable next steps.
/qfai-implement.
Action: run unified TDD micro-cycle (Red/Green/Refactor) one test at a time from test-list.md./qfai-atdd.
Action: close uncovered US / TC / CON-API obligations and rerun validation.The skill collapses avoidable per-session prompts to 0-1 by classifying every decision into one of three named buckets:
package.json#version, branch pin)companyNameprimarySpecId (when absent from inputs)A skill MAY narrow the auto-decide bucket (drop entries) but MUST NOT widen it. Widening triggers a Reviewer-Gate finding.
project_memory: