sdd-android 0.0.0-stage → 0.5.0

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.
Files changed (32) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +92 -2
  3. package/dist/CHANGELOG.md +100 -0
  4. package/dist/assets/ko/skills/analyze/SKILL.md +154 -0
  5. package/dist/assets/ko/skills/blueprint/SKILL.md +229 -0
  6. package/dist/assets/ko/skills/breakdown/SKILL.md +208 -0
  7. package/dist/assets/ko/skills/clarify/SKILL.md +164 -0
  8. package/dist/assets/ko/skills/constitution/SKILL.md +184 -0
  9. package/dist/assets/ko/skills/create-logic/SKILL.md +92 -0
  10. package/dist/assets/ko/skills/create-structure/SKILL.md +93 -0
  11. package/dist/assets/ko/skills/create-test/SKILL.md +95 -0
  12. package/dist/assets/ko/skills/create-ui/SKILL.md +108 -0
  13. package/dist/assets/ko/skills/design-inspector/SKILL.md +124 -0
  14. package/dist/assets/ko/skills/fix/SKILL.md +133 -0
  15. package/dist/assets/ko/skills/heal-build/SKILL.md +67 -0
  16. package/dist/assets/ko/skills/heal-test/SKILL.md +68 -0
  17. package/dist/assets/ko/skills/impl-orchestrator/SKILL.md +182 -0
  18. package/dist/assets/ko/skills/prd/SKILL.md +185 -0
  19. package/dist/assets/ko/skills/spec/SKILL.md +225 -0
  20. package/dist/assets/ko/skills/sync-rules/SKILL.md +90 -0
  21. package/dist/assets/ko/skills/verify-build/SKILL.md +80 -0
  22. package/dist/assets/ko/skills/verify-principles/SKILL.md +84 -0
  23. package/dist/assets/ko/skills/verify-ui/SKILL.md +102 -0
  24. package/dist/assets/ko/templates/blueprint.md +87 -0
  25. package/dist/assets/ko/templates/breakdown.md +96 -0
  26. package/dist/assets/ko/templates/checklist.md +30 -0
  27. package/dist/assets/ko/templates/constitution.md +54 -0
  28. package/dist/assets/ko/templates/prd.md +137 -0
  29. package/dist/assets/ko/templates/research.md +14 -0
  30. package/dist/assets/ko/templates/spec.md +99 -0
  31. package/dist/sdd-android.mjs +11660 -0
  32. package/package.json +34 -4
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,93 @@
1
- # Temporary Holding Version
1
+ # sdd-android
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 문서 확정에서 구현까지를 버전 체인으로 이어 주는 SDD(Spec-Driven Development) 워크플로 CLI다. Claude Code를 쓰는 Android 저장소(Kotlin, Gradle, Jetpack Compose)에 명령 한 줄로 설치한다.
4
+
5
+ ## 무엇을 하나
6
+
7
+ - 기능을 바로 만들지 않고 constitution → prd → spec → blueprint → breakdown 순서로 문서를 확정한 뒤, 그 문서를 따라 구현한다. 앞 단계의 산출물이 다음 단계의 유일한 입력이다.
8
+ - 문서마다 frontmatter에 상위 문서의 기준 버전을 적는다(버전 체인). 상위 문서가 개정되면 하위 문서는 뒤처진 것으로 판정되고, 뒤처진 문서로는 다음 단계를 시작할 수 없다(착수 게이트).
9
+ - 같은 단계를 다시 실행하면 기존 문서 위에서 개정한다. 개정 등급(MAJOR, MINOR, PATCH)은 사용자가 승인한다.
10
+ - 템플릿 복사, 버전 대조, 변경 감지, 체크 집계처럼 계산으로 끝나는 일은 CLI가 한다. LLM은 읽고 쓰고 판단하는 일만 한다.
11
+
12
+ ## 요구 사항
13
+
14
+ - Node.js 22 이상, git
15
+ - Claude Code
16
+ - 설치 대상은 git 저장소의 루트다. 모노레포의 하위 프로젝트에만 설치하는 것은 지원하지 않는다.
17
+
18
+ ## 설치
19
+
20
+ ```sh
21
+ npx sdd-android init # 문서 단계부터 구현 단계까지
22
+ npx sdd-android impl setup --lint "./gradlew {module}:detekt" # 구현 단계가 돌릴 검사 명령 (Lint가 없으면 --lint none)
23
+ npx sdd-android@latest upgrade # 새 버전으로 올린다
24
+ ```
25
+
26
+ 설치되는 곳은 두 군데다. 둘 다 커밋한다.
27
+
28
+ | 위치 | 내용 |
29
+ |---|---|
30
+ | `.claude/skills/` | 단계 스킬. 슬래시 커맨드가 된다 |
31
+ | `.sdd-android/` | CLI 번들, 템플릿, 설정, 설치 기록, 본문 해시 |
32
+
33
+ `init`은 이미 있는 파일을 덮어쓰지 않는다. 겹치는 스킬이 있으면 접두사를 붙이거나 백업한 뒤 설치하거나 그만두는 것 가운데 고른다. `--prefix sdd`로 설치하면 모든 스킬이 `/sdd-spec`처럼 접두사를 갖는다.
34
+
35
+ ## 단계
36
+
37
+ | 순서 | 슬래시 커맨드 | 산출물 | 하는 일 |
38
+ |---|---|---|---|
39
+ | 1 | `/constitution` | `docs/constitution.md` | 프로젝트의 타협 불가한 원칙 |
40
+ | 2 | `/prd` | `docs/prd.md` | 제품의 목표, 범위, 항목별 요구 |
41
+ | 3 | `/spec` | `docs/specs/{feature}/spec.md`, `checklist.md` | 기능 하나의 요구사항과 검증 체크리스트 |
42
+ | 4 | `/clarify` (선택) | 없음 | spec의 모호성과 상위 문서와의 정합성을 보고 |
43
+ | 5 | `/blueprint` | `docs/specs/{feature}/blueprint.md`, `research.md` | 설계와 리서치 기록 |
44
+ | 6 | `/breakdown` | `docs/specs/{feature}/breakdown.md` | 순서가 정해진 작업 목록 |
45
+ | 7 | `/analyze` (선택) | 없음 | spec, blueprint, breakdown 사이의 누락과 모순을 보고 |
46
+ | 8 | `/impl-orchestrator` | 코드, `failures.md` | breakdown의 작업을 구현, 검증, 치유 |
47
+ | 뒤 | `/fix` | spec(PATCH), breakdown의 수정 단위 | 구현이 끝난 feature의 버그 수정과 작은 변경. 범위는 CLI가 판정하고, 넘으면 정식 경로로 돌려보낸다 |
48
+
49
+ feature는 `docs/specs/` 아래의 디렉터리 하나다. `/spec 로그인`처럼 입력을 주면 그 feature를 대상으로 하고, 입력이 없으면 목록에서 고른다.
50
+
51
+ ## 사람이 치는 명령
52
+
53
+ ```sh
54
+ npx sdd-android status [feature] # 진행 상태와 버전 체인 판정
55
+ npx sdd-android check # 설치와 문서의 깨진 곳. CI에서 종료 코드로 쓴다
56
+ ```
57
+
58
+ 그 밖의 명령(`doc`, `gate`, `impl` 등)은 스킬이 부른다. 전체 목록은 [CLI와 설정 파일](guide/cli.md)에 있다.
59
+
60
+ ## OpenAPI 대조 (선택)
61
+
62
+ 서버 API를 쓰는 프로젝트면 출처를 적어 둔다. blueprint가 그 문서를 조회해 인터페이스 계약의 근거로 삼는다. 출처가 없으면 이 절차를 건너뛴다.
63
+
64
+ ```sh
65
+ npx sdd-android openapi add mino --url https://api.example.com/v3/api-docs
66
+ ```
67
+
68
+ 자세한 것은 [OpenAPI 대조](guide/openapi.md)에 있다.
69
+
70
+ ## Figma (선택)
71
+
72
+ spec에 Figma 화면 링크를 적을 때만 필요하다.
73
+
74
+ ```sh
75
+ npx sdd-android figma setup --server desktop --name figma-desktop
76
+ ```
77
+
78
+ 이 명령은 개인 설정 파일 두 개(`.sdd-android/config.local.yaml`, `.claude/settings.local.json`)만 고친다. 자세한 것은 [Figma 설정](guide/figma.md)에 있다.
79
+
80
+ ## 가이드
81
+
82
+ - [워크플로](guide/workflow.md): 단계의 흐름, 착수 게이트, 개정, 병합 뒤 정리, 갱신
83
+ - [문서 형식](guide/documents.md): frontmatter, 항목 ID, 변경의 판정, breakdown 작업 줄
84
+ - [CLI와 설정 파일](guide/cli.md): 명령 전체와 `.sdd-android/`의 파일
85
+ - [구현 단계](guide/implementation.md): 구현 스킬과 흐름
86
+ - [OpenAPI 대조](guide/openapi.md): 출처 설정과 조회
87
+ - [Figma 설정](guide/figma.md): 서버 선택, 권한, 캡처 환경
88
+
89
+ 변경 내역은 [CHANGELOG.md](CHANGELOG.md)에 있다.
90
+
91
+ ## 라이선스
92
+
93
+ Apache-2.0
@@ -0,0 +1,100 @@
1
+ # Changelog
2
+
3
+ 버전마다 사용하면서 달라지는 점을 적는다. `npx sdd-android@latest upgrade`로 올리면 설치된 버전 다음부터 새 버전까지의 항목을 보여 준다.
4
+
5
+ <!--
6
+ 작성 규칙
7
+ - 제목은 `## [X.Y.Z] - YYYY-MM-DD`, 최신 버전이 위다. upgrade가 이 제목으로 항목을 고른다.
8
+ - 분류는 Added(새 기능), Changed(바뀐 동작), Removed(없앤 기능), Fixed(고친 문제) 순서로, 해당하는 것만 쓴다.
9
+ - 사용자가 보고 겪는 것을 쓴다. 내부 구현이나 코드 구조는 쓰지 않는다.
10
+ - 올린 뒤 사용자가 해야 할 일이 있으면 버전 제목 바로 아래에 인용으로 먼저 적는다.
11
+ -->
12
+
13
+ ## [0.5.0] - 2026-11-10
14
+
15
+ > 올린 뒤: 구현 단계를 시작하려면 검사 명령을 한 번 정해야 한다. `npx sdd-android impl setup`을 인자 없이 실행하면 프로젝트에서 찾은 Lint 도구를 알려 주고, `--lint "<명령>"`(Lint 도구가 없으면 `--lint none`)으로 정한다.
16
+
17
+ ### Added
18
+
19
+ - 구현 단계의 빌드, Lint, 테스트를 CLI가 직접 돌려 판정한다. AI가 결과를 잘못 보고해도 실패한 작업이 체크되지 않는다. 로그는 `.sdd-android/impl/{feature}/logs/`에서 볼 수 있다.
20
+ - `impl setup`: 구현 단계가 돌릴 검사 명령을 `config.yaml`에 적는다. 빌드와 테스트는 기본값이 있어 Lint만 정하면 된다.
21
+ - `impl setup`이 프로젝트의 Gradle 설정을 읽어, 쓰고 있는 Lint 도구(detekt, ktlint, kotlinter, spotless), Konsist, product flavor, Android가 아닌 Kotlin/JVM 모듈에 맞는 명령을 제안한다. 모듈마다 명령이 달라야 하면 `config.yaml`에 붙여 넣을 설정을 보여 준다. 제안은 저절로 적히지 않는다.
22
+ - 구현 스킬이 작업을 넘기기 전에 프로젝트에 정한 명령으로 스스로 확인한다. detekt를 쓰거나 flavor가 있는 프로젝트에서도 자체 확인과 판정이 같은 명령으로 돈다.
23
+ - `/fix`: 구현이 끝난 feature의 버그 수정과 작은 변경을 처리한다. 범위를 계산해 정식 단계가 필요한 변경이면 그쪽으로 안내하고, 구현은 `/impl-orchestrator {feature} --fix FIX-001`로 그 수정만 한다.
24
+ - constitution 원칙마다 지키는 방법을 적는다. 도구로 검사하면 `**검사**: 도구 \`규칙\` (설정 파일)`, 사람이나 AI가 살피면 `**검사**: 감사`. `check`가 도구 규칙이 설정 파일에 켜져 있는지 확인하고, `status`가 방법별 원칙 수를 보여 준다.
25
+ - `/sync-rules`: constitution 원칙을 detekt, ktlint, Konsist 규칙으로 옮긴다.
26
+ - 선택 검사 `rules`: Konsist처럼 Lint와 따로 도는 규칙 도구를 작업마다 돌린다. `impl setup --rules "<명령>"`으로 정한다.
27
+ - breakdown의 작업 줄 끝에 그 작업이 그리는 화면의 Figma 링크(`[화면 이름](Figma URL)`)를 적을 수 있다. 구현 단계가 그 화면을 디자인의 기준으로 쓴다.
28
+ - blueprint의 「인터페이스 계약」 섹션: API 계약을 서버의 OpenAPI 문서와 대조한 결과와, 대조하지 못한 계약을 적는다.
29
+
30
+ ### Changed
31
+
32
+ - Android 전용이 됐다. `init` 한 번으로 문서 단계부터 구현 단계까지의 스킬이 모두 설치된다. 확장을 따로 더하지 않는다.
33
+ - OpenAPI 대조가 기본 기능이 됐다. `openapi add`로 출처를 등록하면 blueprint가 대조하고, 출처가 없으면 건너뛴다. 조회는 `openapi operations`와 `openapi show`로 한다.
34
+ - 검사 명령이 정해져 있지 않으면 구현 단계를 시작하지 않는다. 이미 진행 중이던 구현은 그대로 이어진다.
35
+ - Lint를 건너뛰려면 설정에 `lint: none`을 적는다. 검사 결과나 건너뜀을 명령 인자로 넘기는 방법은 없어졌다.
36
+ - 검사한 뒤 코드가 바뀌면 그 결과로 작업을 체크하지 않고 다시 검사하게 한다.
37
+ - breakdown에서 한 스토리의 작업이 다른 스토리 뒤에 다시 나오면 `check`가 오류로 알린다. 끝난 스토리에 작업을 더할 때는 그 스토리 섹션 안에 넣거나 `/fix`를 쓴다.
38
+ - 어느 작업에도 속하지 않는 파일에서 검사가 실패하면 구현 중에도 `failures.md`에 사람에게 넘긴 것으로 적는다. 전에는 마지막 확인에서만 적었다.
39
+ - `check`가 `config.local.yaml`을 읽지 못해도 멈추지 않고 그 문제를 알린 뒤 나머지를 점검한다. `figma show`도 이때 기본값으로 동작하며 이유를 알린다.
40
+ - `verify-principles`가 도구로 검사하지 않는 원칙만 살피고, 원칙마다 확인한 곳이나 확인하지 못한 이유를 보고한다.
41
+ - `impl.checks`의 모듈별 명령 안에는 `none`을 쓸 수 없다. 한 모듈에만 도구가 없으면 그 모듈에서 성공하는 명령을 적는다.
42
+
43
+ ### Removed
44
+
45
+ - 확장 체계: `init --extension`, `extension`, `preset`, `directives`, `run` 명령과 `.sdd-android/extensions/` 디렉터리.
46
+
47
+ ### Fixed
48
+
49
+ - 컴퓨터에서 `node`를 찾지 못할 때 Figma를 읽는 스킬이 로드되지 않던 문제.
50
+ - breakdown 템플릿의 주석에 남은 예시가 작업으로 읽히던 문제.
51
+ - `/fix`의 마지막 확인이 수정 범위 밖의 모듈까지 검사하던 문제.
52
+ - `/impl-orchestrator`가 UI 검증에 feature를 넘기지 않던 문제.
53
+ - 구현 스킬의 컴파일 명령이 모듈 경로에 콜론을 하나 더 붙여 실패하던 문제.
54
+ - `check`에 오류가 있으면 `/sync-rules`가 실행되지 않던 문제.
55
+ - 스킬 접두사를 설정한 저장소에서 안내에 나오는 스킬 이름에 접두사가 빠지던 문제.
56
+
57
+ ## [0.4.0] - 2026-10-27
58
+
59
+ ### Added
60
+
61
+ - 내장 확장 `openapi`: blueprint가 서버의 OpenAPI 문서를 조회해 API 계약의 근거로 삼는다.
62
+ - `openapi list|add|remove`: OpenAPI 출처를 등록하고 지운다. Swagger UI 페이지 주소를 주면 그 페이지가 읽는 문서의 주소를 찾아 저장한다. 설정 파일의 다른 내용과 주석은 그대로 둔다.
63
+ - `run <확장> <스크립트>`: 확장이 제공하는 스크립트를 실행한다.
64
+ - `check`가 OpenAPI 출처 설정의 형식을 점검한다.
65
+
66
+ ## [0.3.0] - 2026-10-08
67
+
68
+ ### Added
69
+
70
+ - 구현 단계: 내장 확장 `android`가 스킬 열한 개를 설치한다. `/impl-orchestrator`가 작업을 나눠 맡기고, `create-*`가 구현하고, `verify-*`가 검증하고, `heal-*`가 실패를 고친다. `init --extension android`로 함께 설치하거나, 이미 설치한 저장소에 `extension add android`로 더한다.
71
+ - 구현의 진행 상황을 `.sdd-android/impl/`에 저장해, 중단돼도 이어서 진행한다. 구현을 시작하기 전의 확인 `gate implement`.
72
+ - 구현 중 실패를 `docs/specs/{feature}/failures.md`에 기록한다.
73
+ - `figma show|setup`: 구현 단계가 쓸 Figma 서버를 설정한다. 개인 설정은 `.sdd-android/config.local.yaml`에 두고, `.claude/settings.local.json`에 읽기 도구 권한을 더한다.
74
+ - `status`가 feature의 구현 완료와 구현 중을 보여 준다.
75
+
76
+ ### Changed
77
+
78
+ - breakdown을 개정해 작업이 더해지면 마지막 확인의 체크가 풀린다. `check`가 맞지 않는 마지막 확인을 오류로 알린다.
79
+
80
+ ## [0.2.0] - 2026-10-07
81
+
82
+ ### Added
83
+
84
+ - `upgrade`: 설치한 파일을 새 버전으로 올린다. 직접 고친 파일은 덮어쓰지 않고 새 버전을 `.new`로 옆에 둔다.
85
+ - clarify 단계: spec의 모호한 곳과 상위 문서와 어긋나는 곳을 찾아 묻는다. 파일을 고치지 않는다.
86
+ - analyze 단계: spec, blueprint, breakdown을 맞대어 요구사항이 설계와 작업에 빠짐없이 반영되었는지 본다. 파일을 고치지 않는다.
87
+ - `doc restore`: 브랜치를 병합한 뒤 문서를 정리하고, 번호가 겹친 항목을 가려낸다.
88
+ - 확장 체계: `extension`과 `preset`의 설치와 제거, 단계별 지시(`directives`).
89
+ - 실행 스크립트 `.sdd-android/bin/sdd-android`: IDE처럼 로그인 셸이 아닌 곳에서도 `node`를 찾는다.
90
+
91
+ ### Changed
92
+
93
+ - 설치되는 파일의 줄바꿈이 LF로 통일된다.
94
+
95
+ ## [0.1.0] - 2026-10-04
96
+
97
+ ### Added
98
+
99
+ - 첫 버전. 문서 단계의 스킬 다섯 개(constitution, prd, spec, blueprint, breakdown)와 명령 `init`, `status`, `check`, `gate`, `doc`, `hook`.
100
+ - 문서 사이의 버전 연결을 판정해, 앞 단계 문서가 확정되지 않았거나 바뀌었으면 다음 단계를 시작하지 않는다. 확정한 문서를 고치는 개정 모드.
@@ -0,0 +1,154 @@
1
+ ---
2
+ name: {{skill:analyze}}
3
+ description: "SDD의 analyze 단계. spec, blueprint, breakdown 세 문서를 맞대어 요구사항이 설계와 작업에 빠짐없이 반영되었는지 본다. 파일을 고치지 않는다"
4
+ argument-hint: "분석할 feature의 이름과, 집중해서 볼 영역(선택)"
5
+ allowed-tools: Bash(sh *)
6
+ context: fork
7
+ agent: Explore
8
+ ---
9
+
10
+ # analyze 단계
11
+
12
+ 구현에 들어가기 전에 feature 하나의 `spec.md`, `blueprint.md`, `breakdown.md`를 맞대어 커버리지의 공백, 중복, 비일관성을 찾는다. 건너뛸 수 있는 단계다. breakdown이 끝난 뒤에 쓴다.
13
+
14
+ 이 단계는 격리된 실행으로 돈다. 사용자에게 물을 수 없으므로, 판단이 갈리는 곳은 묻지 않고 보고에 적는다.
15
+
16
+ ## 입력
17
+
18
+ ```text
19
+ $ARGUMENTS
20
+ ```
21
+
22
+ 위 코드 블록에 달러 기호와 `ARGUMENTS`라는 낱말로 된 자리표시자가 채워지지 않은 채 보이면, 스킬을 호출한 사용자 메시지를 입력으로 삼는다.
23
+
24
+ 입력은 무엇을 쓸지에 대한 힌트다. 근거는 문서에 적힌 것만이다. 입력이 비어 있으면 무엇을 쓰거나 고칠지 사용자에게 묻는다. 격리된 실행으로 도는 단계는 묻지 않고 「대상 feature」를 따른다.
25
+
26
+ ## 읽기 전용
27
+
28
+ 이 단계는 산출물이 없다. 어떤 파일도 만들거나 고치거나 지우지 않는다. 결과는 대화에 보고로만 낸다.
29
+
30
+ - 문제를 발견해도 고치지 않는다. 무엇이 문제이고 어느 단계를 다시 실행해야 풀리는지를 보고한다. 고치는 것은 그 문서의 단계가 한다.
31
+ - 이 자리에서 고쳐 달라는 요청이 있어도 고치지 않고, 그 문서의 단계를 다시 실행하도록 안내한다.
32
+ - CLI는 판정을 읽는 명령(`status`, `gate`, `check`, `doc changes`)과 이 스킬의 본문이 따로 정한 명령만 부른다. 문서를 기록하는 명령(`doc new`, `doc complete`, `doc revise`, `doc confirm`, `doc checklist`)은 부르지 않는다.
33
+ - 없는 섹션이나 내용을 지어내지 않는다. 없으면 없다고 보고한다.
34
+
35
+ ## CLI
36
+
37
+ 아래에서 `sdd-android <명령>`이라고 적은 것은 모두 다음 형태로 부른다. 어느 디렉터리에서 불러도 된다.
38
+
39
+ ```bash
40
+ sh "$(git rev-parse --show-toplevel)/.sdd-android/bin/sdd-android" <명령>
41
+ ```
42
+
43
+ - 문서 맨 위의 frontmatter(`version`, `status`, `based_on`, `revisions`, 날짜)는 CLI만 고친다. 직접 쓰거나 고치지 않는다. 본문에 버전이나 날짜를 다시 적지도 않는다.
44
+ - 템플릿 복사, 완료 기록, 버전 증가는 CLI 명령으로만 한다. 문서 파일을 직접 새로 만들지 않는다.
45
+ - CLI가 거부하면 그 메시지를 사용자에게 그대로 전하고, 메시지가 안내하는 조치를 따른다. 인자를 바꿔 가며 다시 시도해 거부를 피해 가지 않는다.
46
+ - 「현재 상태」에 판정 대신 "Node.js를 찾지 못했다"가 나오면 아무것도 만들거나 고치지 않는다. 그 안내를 사용자에게 그대로 전하고 끝낸다.
47
+
48
+ ## 위치
49
+
50
+ - **읽는 것**: `docs/specs/{feature}/` 아래의 `spec.md`, `blueprint.md`, `breakdown.md`와 있으면 `research.md`, `data-model.md`, `contracts/`, `quickstart.md`. 있으면 `docs/constitution.md`.
51
+ - **쓰는 것**: 없다.
52
+
53
+ ## 현재 상태
54
+
55
+ !`sh "$(git rev-parse --show-toplevel)/.sdd-android/bin/sdd-android" status`
56
+
57
+ 위에 상태 대신 명령이 글자 그대로 보이면 `sdd-android status`를 직접 불러 확인한다.
58
+
59
+ ## 대상 feature
60
+
61
+ 입력에서 대상 feature를 정한다. 입력이 대상을 지목하지 않았을 때, 세 문서가 모두 완료된 feature가 하나뿐이면 그것을 대상으로 삼는다. 여럿이면 분석하지 않고 그 목록을 보고해 이름을 주어 다시 실행하게 한다. 이름을 추측하지 않는다.
62
+
63
+ ## 시작할 수 있는지
64
+
65
+ 「현재 상태」에서 대상 feature를 본다.
66
+
67
+ - **세 문서 가운데 없는 것이 있거나 `draft`인 것이 있으면** 분석하지 않는다. 어느 단계를 먼저 실행해야 하는지 보고하고 끝낸다.
68
+ - **MAJOR 뒤처짐, 상위 미해결, 기준 버전이 상위보다 높음이 있으면** 분석하지 않는다. 뒤처진 문서를 다시 실행하면 내용이 바뀌므로, 지금 맞대어 나오는 발견은 대부분 사라질 것이다. 어느 단계부터 다시 실행해야 하는지 보고하고 끝낸다.
69
+ - **MINOR 뒤처짐이나 미기록 변경이 있으면** 분석하되, 보고의 맨 앞에 어느 문서가 뒤처진 상태에서 한 분석인지 밝히고, 그 문서에서 나온 발견에 표시한다.
70
+ - **PATCH 뒤처짐이나 일치이면** 그대로 분석한다.
71
+ - spec과 prd, blueprint와 constitution의 관계는 보고만 하는 관계다. 이 관계의 뒤처짐은 시작을 막지 않고 보고에 싣는다.
72
+
73
+ 분석하지 않고 끝낼 때는 발견 표나 지표를 내지 않는다. 분석하지 않은 것을 한 것처럼 꾸미지 않는다.
74
+
75
+ ## 1. 읽기
76
+
77
+ 필요한 부분만 읽는다.
78
+
79
+ - **spec**: 사용자 스토리(`US1` …)와 그 테스트 시나리오, 기능 요구사항(`FR-…`), UX 규칙(`UX-…`), 성공 기준(`SC-…`), 엣지 케이스.
80
+ - **blueprint**: 기술 컨텍스트, 구조, 구성 요소와 맡은 요구사항, 헌법 준수 확인, 부속 산출물의 목록.
81
+ - **breakdown**: 작업 ID, 설명, 단계, `[US…]`, `[until:…]`, 줄 끝의 경로.
82
+ - **헌법**: 원칙의 ID와 규칙. 반드시 지켜야 하는 것과 권장을 구분한다.
83
+
84
+ `sdd-android check`를 불러 작업 줄의 형식 오류를 받는다. 형식은 직접 검사하지 않고 이 결과를 쓴다.
85
+
86
+ ## 2. 대응 관계 만들기
87
+
88
+ - **요구사항 목록**: `FR-…`, `UX-…`, `SC-…`마다 한 줄. 성공 기준은 만들어야 하는 것이 있는 것만 넣는다(성능 측정, 보안 점검). 출시 뒤의 사업 지표는 뺀다.
89
+ - **요구사항 → 구성 요소**: blueprint의 어느 구성 요소가 맡는지.
90
+ - **요구사항 → 작업**: breakdown의 어느 작업이 만드는지. 작업의 설명에 적힌 ID, 스토리 표시, 경로와 구성 요소의 위치로 잇는다.
91
+ - **작업 → 근거**: 작업마다 어느 요구사항이나 구성 요소에서 나왔는지.
92
+
93
+ ## 3. 찾는 것
94
+
95
+ 신호가 강한 것에 집중한다. 발견은 50개까지 내고 넘으면 나머지는 종류별 개수로 요약한다.
96
+
97
+ - **A. 커버리지의 공백**
98
+ - 맡는 구성 요소가 없는 요구사항.
99
+ - 만드는 작업이 없는 요구사항.
100
+ - 근거가 되는 요구사항이나 구성 요소가 없는 작업.
101
+ - 작업이 없는 구성 요소, 엔티티, 계약.
102
+ - 대응하는 테스트 작업이 없는 테스트 시나리오(테스트 작업을 두는 feature에서만).
103
+ - **B. 중복**
104
+ - 거의 같은 요구사항 둘.
105
+ - 같은 파일에 같은 것을 만드는 작업 둘.
106
+ - **C. 명세 부족**
107
+ - 무엇을 하는지는 있는데 대상이나 판정할 수 있는 결과가 빠진 요구사항.
108
+ - blueprint에 정의되지 않은 파일이나 구성 요소를 가리키는 작업.
109
+ - 완료 조건과 이어지지 않는 사용자 스토리.
110
+ - **D. 헌법과의 어긋남**
111
+ - 반드시 지켜야 하는 원칙과 충돌하는 요구사항, 설계, 작업.
112
+ - blueprint의 헌법 준수 확인에서 지킨다고 했지만 설계나 작업이 그렇지 않은 곳.
113
+ - **E. 비일관성**
114
+ - 같은 개념이 문서마다 다른 이름으로 불린다.
115
+ - blueprint에는 있고 spec에는 없는 엔티티, 또는 그 반대.
116
+ - 순서의 모순. 뒤의 작업이 만드는 것을 앞의 작업이 쓴다. 테스트 작업이 연결된 구현 작업보다 뒤에 있다.
117
+ - 서로 맞지 않는 결정(spec과 blueprint가 다른 것을 요구한다).
118
+
119
+ spec의 모호성(수치 없는 형용사, 남은 `TBD:`)은 이 단계에서 찾지 않는다. `/{{skill:clarify}}`의 몫이다. 눈에 띄면 그 단계를 권한다고만 적는다.
120
+
121
+ ## 4. 심각도
122
+
123
+ - **CRITICAL**: 반드시 지켜야 하는 헌법 원칙의 위반. 기본 기능을 막는, 작업이 하나도 없는 요구사항. 서로 맞지 않는 결정.
124
+ - **HIGH**: 중복되거나 충돌하는 요구사항. 근거 없는 작업. 순서의 모순. 판정할 수 없는 완료 조건.
125
+ - **MEDIUM**: 용어의 어긋남. 비기능 요구사항의 작업 누락. 명세가 부족한 엣지 케이스.
126
+ - **LOW**: 표현의 개선. 실행에 영향이 없는 사소한 중복.
127
+
128
+ ## 5. 보고
129
+
130
+ 파일로 쓰지 않고 대화에 낸다.
131
+
132
+ 1. **상태**: 「현재 상태」에서 대상 feature의 문서 상태와 뒤처짐. 뒤처진 상태에서 한 분석이면 맨 앞에 밝힌다.
133
+ 2. **발견**
134
+
135
+ | ID | 종류 | 심각도 | 위치 | 발견 | 권고 | 푸는 곳 |
136
+ |---|---|---|---|---|---|---|
137
+ | A1 | 커버리지 | HIGH | FR-007 | 만드는 작업이 없다 | US2 단계에 작업을 더한다 | `/{{skill:breakdown}}` |
138
+
139
+ ID는 종류의 글자와 번호다. 같은 문서를 다시 분석하면 같은 ID와 같은 수가 나와야 한다. 위치는 요구사항 ID, 작업 ID, 섹션 이름으로 적는다. 일반론이 아니라 구체적인 사례를 인용한다.
140
+
141
+ 3. **커버리지**
142
+
143
+ | 요구사항 | 구성 요소 | 작업 | 비고 |
144
+ |---|---|---|---|
145
+ | FR-001 | 저장소 | T003, T005 | |
146
+
147
+ 4. **근거 없는 작업**: 있으면 목록.
148
+ 5. **형식 오류**: `check`가 이 feature의 문서에 대해 낸 오류. 없으면 없다고 적는다.
149
+ 6. **지표**: 요구사항의 수, 작업의 수, 작업이 하나 이상 있는 요구사항의 비율, 심각도별 발견의 수.
150
+ 7. **다음 단계**
151
+ - 발견을 푸는 단계를 **위의 문서부터** 적는다. spec을 고쳐야 하면 `/{{skill:spec}}`, 설계를 고쳐야 하면 `/{{skill:blueprint}}`, 작업만 고치면 `/{{skill:breakdown}}`. 위의 문서를 고치면 아래 문서도 다시 실행해야 한다는 것을 알린다.
152
+ - 상위 발견 몇 개에 대해서는 그 단계에 넘길 입력 문장을 만들어 준다.
153
+ - CRITICAL이 있으면 구현 전에 풀기를 권한다. LOW와 MEDIUM만 있으면 진행해도 된다고 알린다.
154
+ - 발견이 없으면 커버리지와 지표와 함께 그대로 보고한다.