2.7 KiB
2.7 KiB
name, description, argument-hint, user-invocable
| name | description | argument-hint | user-invocable |
|---|---|---|---|
| draft-batch | Use when: creating a new batch from approved REQ IDs, running /draft-batch with one or more req IDs, scaffolding docs/batches/<BAT_ID>/ files, or updating docs/batches/index.md for a new delivery unit. | 예: req-001 req-002 req-003 | true |
Purpose
This skill creates a new batch delivery unit from approved requirements, chooses the right delivery profile, scaffolds its folder and documents, and updates the batch register.
Inputs
- Approved
REQ-ID목록 - 선택 입력
- batch profile 힌트 (
standard|batch-lite|minor-change)
- batch profile 힌트 (
docs/srs/index.md- 대상 REQ 문서들
docs/batches/index.md.github/templates/batches/아래 템플릿
Core Rules
Approved상태가 아닌 REQ는 batch에 포함하지 않는다.- 새 batch 폴더는
docs/batches/bat-XXX_YYYYMMDD_scope/형식을 사용한다. - 새 batch는
standard또는batch-liteprofile 중 하나를 가진다. - 입력이 정확히 1개의
ApprovedREQ이고 범위가 국소적이며 구조/인터페이스/런타임 흐름 변경이 없으면minor-changefast path를 사용할 수 있다. 이 경우 결과 batch profile은batch-lite로 기록한다. standardbatch는 생성 시 아래 파일을 함께 만든다.index.mdplanning.mddesign.mdimplementation.mdverification.md
batch-lite는 생성 시 아래 파일만 먼저 만든다.index.mdplanning.md
batch-lite의implementation.md와verification.md는 해당 단계 진입 시 생성한다.batch-lite라도 구조/인터페이스/흐름 영향이 생기면design.md를 추가하고 사실상 standard depth로 다룬다.docs/batches/index.md의 register를 함께 갱신하며, 가능하면 profile도 함께 기록한다.
Execution Procedure
- 입력된 REQ 경로와 상태를 확인한다.
- REQ 수, 영향 범위, 구조/인터페이스/런타임 영향 여부를 기준으로
standard또는batch-liteprofile을 결정한다. - 배치 제목과 slug를 결정하고 다음
BAT-ID를 계산한다. - 템플릿 기반으로 batch 폴더와 profile에 맞는 문서를 생성한다.
index.md에Profile, 포함 REQ, source discovery, 공통 범위를 채운다.planning.md에Design Gate를 기록해 design이 즉시 필요한지 여부를 남긴다.docs/batches/index.md에 새 register 행을 추가한다.
Validation
- 포함 REQ가 모두
Approved인지 확인한다. standard면 5개 문서가 모두 생성되었는지 확인한다.batch-lite면index.md,planning.md가 생성되었고Profile: batch-lite가 기록되었는지 확인한다.docs/batches/index.md에 새 batch 행이 추가되었는지 확인한다.