一键导入
aidlc-build-and-test
Use when code implementation is complete and needs to be built, tested, and verified before completion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when code implementation is complete and needs to be built, tested, and verified before completion.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
아이디어를 설계로 전환하거나, 새로운 기능을 만들거나, 구현 전 구조화된 설계가 필요한 창의적/탐색적 작업에 사용. Use when turning an idea into a design, creating a new feature, or when any creative/exploratory work needs structured design before implementation.
태스크나 unit 구현이 완료되어 머지 전 코드 리뷰가 필요할 때, 또는 사용자가 명시적으로 코드 리뷰를 요청할 때 사용. Use when a task or unit implementation is complete and needs code review before merging, or when the user explicitly requests a code review on their changes.
설계 문서를 상세 구현 계획으로 변환하거나, "구현 계획 작성", "plan 만들어줘" 요청 시 사용. INCEPTION 워크플로우 계획은 aidlc-workflow-planning 사용. Use when a design document needs to be converted into a detailed implementation plan with task breakdown, or when "구현 계획 작성", "plan 만들어줘" is requested. Not for INCEPTION workflow planning — use aidlc-workflow-planning instead.
Use when user explicitly requests "auto 모드", "자동 모드", "auto mode", or "알아서 만들어줘". 초보자를 위한 완전 자동 devflow. greenfield 전용. 요구사항 입력 → inception → construction → build-test를 자동 진행하며 각 flow 종료 시 멀티에이전트 리뷰 필수.
현재 세션에서 구현 계획을 실행할 때 사용. 독립 태스크별 신규 서브에이전트 컨텍스트 활용. Use when executing an implementation plan in the current session with independent tasks that benefit from fresh subagent context per task.
프로덕션 코드 작성, 버그 수정, 리팩토링 시 사용 — 예외 없이 RED-GREEN-REFACTOR 사이클을 강제. Use when writing any production code, fixing bugs, or refactoring — enforces RED-GREEN-REFACTOR cycle with no exceptions.
| name | aidlc-build-and-test |
| description | Use when code implementation is complete and needs to be built, tested, and verified before completion. |
| metadata | {"version":"0.5.0","author":"Jay","category":"ai-dlc-workflow","invoke_mode":"orchestrator-only","return_behavior":"stop-no-gate","output_path":"devflow-docs/construction/build-and-test/","skill_nature":"compensation","lifecycle":"active","model_dependency":"모델이 빌드/테스트를 실행 없이 '통과'로 선언함"} |
Execute build and full test suite after all units are implemented, then generate reference instructions for future use.
다음을 확인하여 빌드/테스트 환경을 파악한다:
package.json, go.mod, Cargo.toml, pyproject.toml, pom.xml.py, .go, .ts, .js, .rs, .javadevflow-docs/construction/*/code-plan.md에서 생성된 파일 목록devflow-docs/inception/units.md (있으면) — unit 간 통합 포인트devflow-docs/construction/{unit}/code-plan.md의 ## Verification Contract 섹션을 확인한다. 섹션이 있으면 검증 명령을 Step 3에서 우선 사용한다. 섹션이 없으면 기존 동작(프로젝트 타입 자동 감지)을 유지한다. auto-fix 후 재실행 시에도 Verification Contract의 검증 명령 전체를 다시 실행한다.package.json → npm run build (build 스크립트 있으면) 또는 npm installpyproject.toml → pip install -e . 또는 poetry installgo.mod → go build ./...Cargo.toml → cargo buildpom.xml → mvn compile.py → pytest -v 또는 python -m pytest -v.ts/.js → npm testgo.mod → go test ./... -vCargo.toml → cargo testpom.xml → mvn testconstruction-orchestrator가 호출 시 "Brownfield: true" 인라인 전달한 경우에만 실행. 미전달 시 스킵하고 Step 4로.
devflow-state.md의 ## Worktree → branch 확인git diff --name-only main...HEADgit diff --name-only $(git merge-base HEAD origin/main)...HEAD"⚠️ 변경 파일 감지 불가. A) 수동 지정 / B) 전체 스캔"관련 stub 없음:
✅ Stub 잔존 검증 통과 — 변경 파일 내 미구현 stub 없음
→ Step 4로 진행
관련 stub 발견 시 — 조건부 게이트:
⚠️ Stub 잔존 발견 — 변경 파일 내 미구현 stub [N]건
| 파일 | 라인 | 내용 |
|------|------|------|
| [파일경로] | [라인] | [stub 내용] |
A) stub 수정 후 build-and-test 재실행
B) stub을 인지하고 진행 → 사유 입력 요청
A 선택 시: 사용자가 stub 수정 → build-and-test 재실행 (Step 2부터)
B 선택 시: 사유 입력 요청 후, session-summary ## Deferred Stubs 구조화 테이블에 기록:
## Deferred Stubs
| 파일:라인 | stub 내용 | 사유 | 관련 unit | 예상 해결 시점 |
|-----------|----------|------|----------|--------------|
"stub-deferred: [파일:라인] — [사유]" 기록## Deferred Stubs를 감지하여 Stub Scan에 포함스캔 실패 시: 재시도/스킵 게이트 + devflow-audit에 "stub-scan-error" 기록
빌드와 테스트가 모두 성공한 후, 참조용 지침 문서를 생성한다.
devflow-docs/construction/build-and-test/build-instructions.md:
# Build Instructions
## Prerequisites
[빌드에 필요한 도구와 버전]
## Steps
1. [정확한 명령어]
2. [정확한 명령어]
## Expected Output
[성공 시 어떤 결과가 나오는지]
devflow-docs/construction/build-and-test/test-instructions.md:
# Test Instructions
## Unit Tests
Run: `[정확한 명령어]`
Expected: [N]개 테스트 통과
## Integration Tests
Run: `[정확한 명령어]`
## Manual Verification
[자동화할 수 없는 확인 단계가 있으면]
conventions 표준 형식. 반환 필드:
빌드 시스템이 확인되지 않으면 파일 확장자로 추론한다:
.py → pip install -r requirements.txt && python -m pytest.ts/.js → npm install && npm testgo.mod → go build ./... && go test ./...Cargo.toml → cargo build && cargo testdevflow-docs/ 밖에 소스 파일이 없으면: