lee-spec-kit 0.5.2 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -208,6 +208,7 @@ npx lee-spec-kit context F001 --approve A --execute --execute-strict
208
208
  - `primaryActionLabel` / `primaryActionType` / `primaryActionCategory` / `primaryActionOperationType`: metadata for the first atomic action
209
209
  - `selectionFallback`: fallback used when branch auto-detection does not match (`none` | `open_features` | `all_features` | `done_features`)
210
210
  - `workflowPolicy`: current completion policy (`mode`, `requireIssue`, `requireBranch`, `requirePr`, `requireReview`)
211
+ - `prePrReviewPolicy`: pre-PR review policy (`enabled`, `skills`, `fallback`, `blockOnFindings`)
211
212
  - `checkPolicy`: approval validation policy (`hint`, `policyOnly`, `token: "<LABEL>"`, `acceptedTokens`, `tokenPattern`, `validLabels`, `requireExplanationBeforeApproval`, `requiredExplanationFields`, `contextVersion`, ...)
212
213
 
213
214
  Error payloads (`status: "error"`) include `reasonCode` and labeled `suggestions` (`A/B/C`) (e.g. `INVALID_APPROVAL`, `CONTEXT_STALE`, `EXECUTION_FAILED`, `EXECUTION_NOT_COMMAND`).
@@ -335,6 +336,9 @@ npx lee-spec-kit update --templates
335
336
  npx lee-spec-kit update --force
336
337
  ```
337
338
 
339
+ > `agents/skills` and `features/feature-base` are now CLI-managed (SSOT).
340
+ > `update --skills` and `update --templates` are used to clean up legacy copied files in existing docs trees.
341
+
338
342
  ## Configuration
339
343
 
340
344
  ### `.lee-spec-kit.json`
@@ -348,7 +352,11 @@ Running `init` creates `.lee-spec-kit.json` in your docs root (default: `docs/`)
348
352
  "lang": "en",
349
353
  "createdAt": "YYYY-MM-DD",
350
354
  "docsRepo": "embedded",
351
- "workflow": { "mode": "github", "codeDirtyScope": "auto" },
355
+ "workflow": {
356
+ "mode": "github",
357
+ "codeDirtyScope": "auto",
358
+ "prePrReview": { "skills": ["code-review-excellence"] }
359
+ },
352
360
  "pr": { "screenshots": { "upload": false } },
353
361
  "approval": { "mode": "builtin" }
354
362
  }
@@ -365,7 +373,7 @@ Running `init` creates `.lee-spec-kit.json` in your docs root (default: `docs/`)
365
373
  | `pushDocs` | (standalone only) whether to manage/push docs repo as a separate git repo |
366
374
  | `docsRemote` | (standalone + pushDocs) docs repo remote URL |
367
375
  | `projectRoot` | (standalone only) project repo path (single: string, multi: `{ [component]: path }`) |
368
- | `workflow` | (optional) workflow completion policy (`github`/`local`, `codeDirtyScope`) |
376
+ | `workflow` | (optional) workflow completion policy (`github`/`local`, `codeDirtyScope`, `prePrReview`) |
369
377
  | `pr` | (optional) PR artifacts policy (e.g. screenshot upload) |
370
378
  | `approval` | (optional) Override CHECK-required policy in `context` output (for automation/semi-auto) |
371
379
 
@@ -403,12 +411,25 @@ Running `init` creates `.lee-spec-kit.json` in your docs root (default: `docs/`)
403
411
  - `auto`: `single => repo`, `multi => component`
404
412
  - `workflow.componentPaths` (optional): explicit per-component paths for component-scoped checks (e.g. `"web": ["apps/web", "packages/web-ui"]`)
405
413
  - backward compatibility: if omitted, runtime defaults to `repo`
414
+ - `workflow.prePrReview`:
415
+ - `enabled` (optional): enforce pre-PR review stage (default: same as `requirePr`)
416
+ - `skills` (optional): preferred skill names in priority order (default: `["code-review-excellence"]`)
417
+ - `fallback` (optional): fallback policy when no skill can run (default: `"builtin-checklist"`)
418
+ - `blockOnFindings` (optional): require major findings to be resolved/aligned before PR creation (default: `true`)
406
419
 
407
420
  Example:
408
421
 
409
422
  ```json
410
423
  {
411
- "workflow": { "mode": "local", "codeDirtyScope": "auto" }
424
+ "workflow": {
425
+ "mode": "github",
426
+ "codeDirtyScope": "auto",
427
+ "prePrReview": {
428
+ "skills": ["code-review-excellence"],
429
+ "fallback": "builtin-checklist",
430
+ "blockOnFindings": true
431
+ }
432
+ }
412
433
  }
413
434
  ```
414
435
 
@@ -506,4 +527,4 @@ For the full code list and meanings, see `errors.en.md` (English) or `errors.md`
506
527
 
507
528
  See the Korean README for the full tree examples and workflow details: `README.md`.
508
529
 
509
- Note: generated docs include `agents/custom.md`, `agents/skills/`, and `scripts/` by default.
530
+ Note: generated docs keep project-scoped policy docs (`agents/custom.md`, `agents/constitution.md`) and do not sync CLI-managed docs (`agents.md`, `agents/skills/*`, `git-workflow.md`, `issue-template.md`, `pr-template.md`, `features/feature-base/*`).
package/README.md CHANGED
@@ -229,6 +229,7 @@ npx lee-spec-kit context F001 --approve A --execute --execute-strict
229
229
  - `category`: 액션 분류 (자동화/반자동용 `approval.mode: "category"`에서 사용)
230
230
  - `requiresUserCheck`: 사용자 확인 필요 여부 (에이전트는 **사용자 응답을 `<라벨>` 또는 `<라벨> OK` 형식(예: `A`, `A OK`)으로 제한**하는 것을 권장 / 설정의 `approval`로 오버라이드 가능)
231
231
  - `workflowPolicy`: 현재 완료 조건 정책 (`mode`, `requireIssue`, `requireBranch`, `requirePr`, `requireReview`)
232
+ - `prePrReviewPolicy`: pre-PR 리뷰 정책 (`enabled`, `skills`, `fallback`, `blockOnFindings`)
232
233
 
233
234
  또한 `checkPolicy`가 포함되어, 에이전트가 사용자 확인 정책을 적용할 때 참고할 수 있습니다. (`docPath`, `hint`, `policyOnly`, `token: "<LABEL>"`, `acceptedTokens`, `tokenPattern`, `validLabels`, `requireExplanationBeforeApproval`, `requiredExplanationFields`, `contextVersion`, `config`)
234
235
 
@@ -387,6 +388,9 @@ npx lee-spec-kit update --templates
387
388
  npx lee-spec-kit update --force
388
389
  ```
389
390
 
391
+ > `agents/skills`와 `features/feature-base`는 CLI 내장(SSOT)으로 관리됩니다.
392
+ > `update --skills`, `update --templates`는 기존 프로젝트의 레거시 복사본을 정리하는 용도로 동작합니다.
393
+
390
394
  ## 설정 파일
391
395
 
392
396
  ### `.lee-spec-kit.json`
@@ -400,7 +404,11 @@ npx lee-spec-kit update --force
400
404
  "lang": "ko",
401
405
  "createdAt": "YYYY-MM-DD",
402
406
  "docsRepo": "embedded",
403
- "workflow": { "mode": "github", "codeDirtyScope": "auto" },
407
+ "workflow": {
408
+ "mode": "github",
409
+ "codeDirtyScope": "auto",
410
+ "prePrReview": { "skills": ["code-review-excellence"] }
411
+ },
404
412
  "pr": { "screenshots": { "upload": false } },
405
413
  "approval": { "mode": "builtin" }
406
414
  }
@@ -417,7 +425,7 @@ npx lee-spec-kit update --force
417
425
  | `pushDocs` | (standalone만) docs 레포를 별도 Git으로 관리/푸시할지 여부 |
418
426
  | `docsRemote` | (standalone+pushDocs) docs 레포 remote URL |
419
427
  | `projectRoot` | (standalone만) 프로젝트 레포지토리 경로 (single: string, multi: `{ [component]: path }`) |
420
- | `workflow` | (선택) 워크플로우 요구사항 정책 (`github`/`local`, `codeDirtyScope`) |
428
+ | `workflow` | (선택) 워크플로우 요구사항 정책 (`github`/`local`, `codeDirtyScope`, `prePrReview`) |
421
429
  | `pr` | (선택) PR 결과물 정책 (예: 스크린샷 업로드 여부) |
422
430
  | `approval` | (선택) `context` 출력의 `[확인 필요]`/`requiresUserCheck` 정책 오버라이드 (자동화/반자동용) |
423
431
 
@@ -455,12 +463,25 @@ npx lee-spec-kit update --force
455
463
  - `auto`: `single => repo`, `multi => component`
456
464
  - `workflow.componentPaths`(선택): component 판정 경로를 컴포넌트별로 명시 (예: `"web": ["apps/web", "packages/web-ui"]`)
457
465
  - 하위 호환: 값이 없으면 기존 동작인 `repo`로 처리
466
+ - `workflow.prePrReview`:
467
+ - `enabled` (선택): pre-PR 리뷰 단계를 강제할지 여부 (기본: `requirePr`와 동일)
468
+ - `skills` (선택): 우선순위 스킬 목록 (기본: `["code-review-excellence"]`)
469
+ - `fallback` (선택): 스킬 미사용 시 폴백 정책 (기본: `"builtin-checklist"`)
470
+ - `blockOnFindings` (선택): 주요 이슈 발견 시 PR 생성 전 해결/합의를 요구할지 여부 (기본: `true`)
458
471
 
459
472
  예시:
460
473
 
461
474
  ```json
462
475
  {
463
- "workflow": { "mode": "local", "codeDirtyScope": "auto" }
476
+ "workflow": {
477
+ "mode": "github",
478
+ "codeDirtyScope": "auto",
479
+ "prePrReview": {
480
+ "skills": ["code-review-excellence"],
481
+ "fallback": "builtin-checklist",
482
+ "blockOnFindings": true
483
+ }
484
+ }
464
485
  }
465
486
  ```
466
487
 
@@ -591,13 +612,8 @@ npx lee-spec-kit config --project-root /new/fe/path --repo fe --non-interactive
591
612
  docs/
592
613
  ├── README.md
593
614
  ├── agents/
594
- │ ├── agents.md # 에이전트 운영 규칙
595
615
  │ ├── constitution.md # 프로젝트 원칙
596
616
  │ ├── custom.md # 프로젝트별 추가 규칙
597
- │ ├── git-workflow.md # Git 자동화 규칙
598
- │ ├── issue-template.md
599
- │ ├── pr-template.md
600
- │ └── skills/ # 에이전트 실행 가이드
601
617
  ├── designs/ # 디자인 참고 자료
602
618
  ├── ideas/ # 아이디어/To-do (Feature 승격 전)
603
619
  ├── prd/
@@ -606,7 +622,6 @@ docs/
606
622
  │ └── README.md
607
623
  └── features/
608
624
  ├── README.md
609
- ├── feature-base/ # 공용 템플릿
610
625
  ├── be/ # Backend Features
611
626
  └── fe/ # Frontend Features
612
627
  ```
@@ -617,14 +632,13 @@ docs/
617
632
  docs/
618
633
  ├── README.md
619
634
  ├── agents/
635
+ │ ├── constitution.md
620
636
  │ ├── custom.md
621
- │ └── skills/
622
637
  ├── designs/
623
638
  ├── ideas/
624
639
  ├── prd/
625
640
  ├── scripts/
626
641
  └── features/
627
- ├── feature-base/
628
642
  └── F001-feature/ # 개별 기능
629
643
  ```
630
644