lee-spec-kit 0.6.14 โ†’ 0.6.16

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
@@ -56,6 +56,44 @@ npx lee-spec-kit status
56
56
  npx lee-spec-kit doctor
57
57
  ```
58
58
 
59
+ ## New Project Start Order
60
+
61
+ For a brand-new project, scaffold the **codebase first**, then initialize docs.
62
+ This sequence assumes the default `docsRepo: embedded` mode.
63
+
64
+ ```bash
65
+ # 0) Create/init the code project first (example: Next.js)
66
+ npx create-next-app@latest my-app
67
+ cd my-app
68
+
69
+ # 1) Initialize docs structure
70
+ npx lee-spec-kit init
71
+
72
+ # 2) Detect project (agent entrypoint)
73
+ npx lee-spec-kit detect --json
74
+
75
+ # 3) Create feature and start workflow
76
+ npx lee-spec-kit feature user-auth
77
+ npx lee-spec-kit context --json
78
+ ```
79
+
80
+ - Apply lee-spec-kit workflow only when `detect --json` returns `isLeeSpecKitProject: true`.
81
+ - If `isLeeSpecKitProject: false`, continue with normal non-lee-spec-kit workflow.
82
+ - If you use `standalone` docs, run commands against the docs repo location (`--dir` or `LEE_SPEC_KIT_DOCS_DIR`).
83
+
84
+ ## Agent Kickoff Prompt
85
+
86
+ You can paste the following as an agent session-start instruction.
87
+
88
+ ```text
89
+ Start procedure:
90
+ 1) Run npx lee-spec-kit detect --json
91
+ 2) If isLeeSpecKitProject === true, run npx lee-spec-kit context --json
92
+ 3) If actionOptions exist, show approvalPrompt and finalPrompt exactly as provided, then wait for user approval (<LABEL> or <LABEL> OK)
93
+ 4) Do not execute before approval; execute requiresUserCheck=true actions only after approval
94
+ 5) If isLeeSpecKitProject === false, skip lee-spec-kit-specific flow and continue with normal workflow
95
+ ```
96
+
59
97
  ## Features
60
98
 
61
99
  ### ๐Ÿ“ Project initialization
@@ -472,7 +510,8 @@ Running `init` creates `.lee-spec-kit.json` in your docs root (default: `docs/`)
472
510
  - `workflow.prePrReview`:
473
511
  - `enabled` (optional): enforce pre-PR review stage (default: same as `requirePr`)
474
512
  - `skills` (optional): preferred skill names in priority order (default: `["code-review-excellence"]`)
475
- - `fallback` (optional): fallback policy when no skill can run (default: `"builtin-checklist"`)
513
+ - `fallback` (optional): baseline review policy (default: `"builtin-checklist"`)
514
+ - Use the `Pre-PR Baseline Checklist` section in `docs get create-pr --json` as the single source of truth
476
515
  - `blockOnFindings` (optional): require major findings to be resolved/aligned before PR creation (default: `true`)
477
516
  - `minorPolicy` (optional): minor findings policy (`warn` | `block`, default: `warn`)
478
517
 
package/README.md CHANGED
@@ -37,6 +37,8 @@
37
37
  ## ๋ชฉ์ฐจ
38
38
 
39
39
  - [Quick Start](#quick-start)
40
+ - [์‹ ๊ทœ ํ”„๋กœ์ ํŠธ ์‹œ์ž‘ ์ˆœ์„œ](#์‹ ๊ทœ-ํ”„๋กœ์ ํŠธ-์‹œ์ž‘-์ˆœ์„œ)
41
+ - [์—์ด์ „ํŠธ ํ‚ฅ์˜คํ”„ ํ”„๋กฌํ”„ํŠธ](#์—์ด์ „ํŠธ-ํ‚ฅ์˜คํ”„-ํ”„๋กฌํ”„ํŠธ)
40
42
  - [์ฃผ์š” ๊ธฐ๋Šฅ](#์ฃผ์š”-๊ธฐ๋Šฅ)
41
43
  - [์‚ฌ์šฉ๋ฒ•](#์‚ฌ์šฉ๋ฒ•)
42
44
  - [์„ค์ • ํŒŒ์ผ](#์„ค์ •-ํŒŒ์ผ)
@@ -69,6 +71,44 @@ npx lee-spec-kit status
69
71
  npx lee-spec-kit doctor
70
72
  ```
71
73
 
74
+ ## ์‹ ๊ทœ ํ”„๋กœ์ ํŠธ ์‹œ์ž‘ ์ˆœ์„œ
75
+
76
+ ์‹ ๊ทœ ํ”„๋กœ์ ํŠธ์—์„œ๋Š” **์ฝ”๋“œ ์Šค์บํด๋”ฉ์„ ๋จผ์ €** ํ•˜๊ณ , ๊ทธ ๋‹ค์Œ docs๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜์„ธ์š”.
77
+ ์ด ์ˆœ์„œ๋Š” ๊ธฐ๋ณธ๊ฐ’์ธ `docsRepo: embedded` ๊ธฐ์ค€์ž…๋‹ˆ๋‹ค.
78
+
79
+ ```bash
80
+ # 0. ์ฝ”๋“œ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ/์ดˆ๊ธฐํ™” (์˜ˆ: Next.js)
81
+ npx create-next-app@latest my-app
82
+ cd my-app
83
+
84
+ # 1. docs ๊ตฌ์กฐ ์ดˆ๊ธฐํ™”
85
+ npx lee-spec-kit init
86
+
87
+ # 2. ๊ฐ์ง€ ํ™•์ธ (์—์ด์ „ํŠธ ์‹œ์ž‘์ )
88
+ npx lee-spec-kit detect --json
89
+
90
+ # 3. Feature ์ƒ์„ฑ ํ›„ ์ž‘์—… ์‹œ์ž‘
91
+ npx lee-spec-kit feature user-auth
92
+ npx lee-spec-kit context --json
93
+ ```
94
+
95
+ - `detect --json` ๊ฒฐ๊ณผ๊ฐ€ `isLeeSpecKitProject: true`์ผ ๋•Œ lee-spec-kit ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์ ์šฉํ•˜์„ธ์š”.
96
+ - `isLeeSpecKitProject: false`๋ฉด ์ผ๋ฐ˜ ํ”„๋กœ์ ํŠธ ์›Œํฌํ”Œ๋กœ์šฐ๋กœ ์ง„ํ–‰ํ•˜์„ธ์š”.
97
+ - `standalone`์œผ๋กœ docs๋ฅผ ๋ถ„๋ฆฌํ•œ ๊ฒฝ์šฐ์—๋Š” docs ๋ ˆํฌ ์œ„์น˜(`--dir` ๋˜๋Š” `LEE_SPEC_KIT_DOCS_DIR`) ๊ธฐ์ค€์œผ๋กœ ์‹คํ–‰ํ•˜์„ธ์š”.
98
+
99
+ ## ์—์ด์ „ํŠธ ํ‚ฅ์˜คํ”„ ํ”„๋กฌํ”„ํŠธ
100
+
101
+ ์•„๋ž˜ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์—์ด์ „ํŠธ ์‹œ์ž‘ ๋ฉ”์‹œ์ง€๋กœ ๊ทธ๋Œ€๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
102
+
103
+ ```text
104
+ ์ž‘์—… ์‹œ์ž‘ ์ ˆ์ฐจ:
105
+ 1) npx lee-spec-kit detect --json
106
+ 2) isLeeSpecKitProject === true ์ด๋ฉด npx lee-spec-kit context --json ์‹คํ–‰
107
+ 3) actionOptions๊ฐ€ ์žˆ์œผ๋ฉด approvalPrompt์™€ finalPrompt๋ฅผ ๊ทธ๋Œ€๋กœ ์‚ฌ์šฉ์ž์—๊ฒŒ ์ œ์‹œํ•˜๊ณ  ์Šน์ธ(<LABEL> ๋˜๋Š” <LABEL> OK) ๋Œ€๊ธฐ
108
+ 4) ์Šน์ธ ์ „์—๋Š” ์‹คํ–‰ํ•˜์ง€ ๋ง๊ณ , requiresUserCheck=true ์•ก์…˜์€ ์Šน์ธ ํ›„์—๋งŒ ์‹คํ–‰
109
+ 5) isLeeSpecKitProject === false ์ด๋ฉด lee-spec-kit ์ „์šฉ ์ ˆ์ฐจ๋ฅผ ๊ฑด๋„ˆ๋›ฐ๊ณ  ์ผ๋ฐ˜ ์›Œํฌํ”Œ๋กœ์šฐ๋กœ ์ง„ํ–‰
110
+ ```
111
+
72
112
  ## ์ฃผ์š” ๊ธฐ๋Šฅ
73
113
 
74
114
  ### ๐Ÿ“ ํ”„๋กœ์ ํŠธ ์ดˆ๊ธฐํ™”
@@ -518,7 +558,8 @@ npx lee-spec-kit update --force
518
558
  - `workflow.prePrReview`:
519
559
  - `enabled` (์„ ํƒ): pre-PR ๋ฆฌ๋ทฐ ๋‹จ๊ณ„๋ฅผ ๊ฐ•์ œํ• ์ง€ ์—ฌ๋ถ€ (๊ธฐ๋ณธ: `requirePr`์™€ ๋™์ผ)
520
560
  - `skills` (์„ ํƒ): ์šฐ์„ ์ˆœ์œ„ ์Šคํ‚ฌ ๋ชฉ๋ก (๊ธฐ๋ณธ: `["code-review-excellence"]`)
521
- - `fallback` (์„ ํƒ): ์Šคํ‚ฌ ๋ฏธ์‚ฌ์šฉ ์‹œ ํด๋ฐฑ ์ •์ฑ… (๊ธฐ๋ณธ: `"builtin-checklist"`)
561
+ - `fallback` (์„ ํƒ): ๊ธฐ๋ณธ ๋ฒ ์ด์Šค๋ผ์ธ ์ •์ฑ… (๊ธฐ๋ณธ: `"builtin-checklist"`)
562
+ - ์ƒ์„ธ ๊ธฐ์ค€์€ `docs get create-pr --json`์˜ `Pre-PR ๊ธฐ๋ณธ ์ฒดํฌ๋ฆฌ์ŠคํŠธ` ์„น์…˜์„ ๋‹จ์ผ ๊ธฐ์ค€์œผ๋กœ ์‚ฌ์šฉ
522
563
  - `blockOnFindings` (์„ ํƒ): ์ฃผ์š” ์ด์Šˆ ๋ฐœ๊ฒฌ ์‹œ PR ์ƒ์„ฑ ์ „ ํ•ด๊ฒฐ/ํ•ฉ์˜๋ฅผ ์š”๊ตฌํ• ์ง€ ์—ฌ๋ถ€ (๊ธฐ๋ณธ: `true`)
523
564
  - `minorPolicy` (์„ ํƒ): minor ์ด์Šˆ ์ •์ฑ… (`warn` | `block`, ๊ธฐ๋ณธ: `warn`)
524
565