maskweaver 0.9.2 → 0.9.4
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.ko.md +279 -325
- package/README.md +109 -113
- package/assets/commands/build.md +17 -0
- package/assets/commands/meta/commands.json +34 -34
- package/assets/commands/weave-agents.md +12 -52
- package/assets/commands/weave-approve.md +12 -51
- package/assets/commands/weave-archive.md +21 -0
- package/assets/commands/weave-build.md +20 -89
- package/assets/commands/weave-craft.md +22 -43
- package/assets/commands/weave-help.md +37 -106
- package/assets/commands/weave-init.md +26 -108
- package/assets/commands/weave-interview.md +13 -111
- package/assets/commands/weave-map.md +13 -99
- package/assets/commands/weave-prepare.md +23 -69
- package/assets/commands/weave-refine-plan.md +26 -59
- package/assets/commands/weave-repair.md +22 -70
- package/assets/commands/weave-status.md +22 -155
- package/assets/commands/weave-troubleshoot.md +11 -47
- package/assets/commands/weave-verify.md +23 -44
- package/assets/commands/weave-worktree.md +27 -69
- package/dist/plugin/index.js +21 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,114 +1,45 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Show weave workflow help
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /weave-help
|
|
5
|
+
# /weave-help
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Weave is Maskweaver's phase-driven workflow for moving from requirements to verified implementation.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Main Flow
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
| CLI | `maskweaver --version` 또는 `maskweaver -V` |
|
|
23
|
-
| npm | `npm list maskweaver` |
|
|
24
|
-
| 채팅 내 | `maskweaver_status` 도구 사용 |
|
|
25
|
-
| Weave | `/weave help` |
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 핵심 철학
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
1. 테스트 먼저 (Protect Before Change)
|
|
33
|
-
2. 작게 자주 (Small & Often)
|
|
34
|
-
3. 동작이 정답 (Working > Perfect)
|
|
11
|
+
```txt
|
|
12
|
+
/weave-init
|
|
13
|
+
/weave-map
|
|
14
|
+
/weave-interview
|
|
15
|
+
/weave-prepare
|
|
16
|
+
/weave-refine-plan
|
|
17
|
+
/weave-approve
|
|
18
|
+
/weave-craft
|
|
19
|
+
/build
|
|
20
|
+
/weave-verify
|
|
21
|
+
/weave-archive
|
|
35
22
|
```
|
|
36
23
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
|
42
|
-
|
|
43
|
-
| `/weave-
|
|
44
|
-
| `/weave-
|
|
45
|
-
| `/weave-
|
|
46
|
-
| `/weave-
|
|
47
|
-
| `/weave-
|
|
48
|
-
| `/
|
|
49
|
-
| `/weave-
|
|
50
|
-
| `/weave-
|
|
51
|
-
| `/weave-
|
|
52
|
-
| `/weave-
|
|
53
|
-
| `/weave-
|
|
54
|
-
| `/weave-
|
|
55
|
-
| `/weave-
|
|
56
|
-
| `/weave-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
## 워크플로우
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
/weave-init ← 프로젝트 초기화 (1회)
|
|
66
|
-
↓
|
|
67
|
-
/weave-prepare docs/ ← research + spec + plan 한 번에 생성
|
|
68
|
-
↓
|
|
69
|
-
/weave-refine-plan ← (선택) plan-notes 기반 자동 정제
|
|
70
|
-
↓
|
|
71
|
-
/weave-approve ← 구현 전 계획 승인 (필수)
|
|
72
|
-
↓
|
|
73
|
-
/weave-craft ← 다음 Phase 자동 선택 실행 준비
|
|
74
|
-
↓
|
|
75
|
-
/weave-build ← 자율 빌드 루프 실행
|
|
76
|
-
↓
|
|
77
|
-
/weave-verify ← 검증
|
|
78
|
-
↓
|
|
79
|
-
/weave-archive ← 아카이브
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## 파일 구조
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
.opencode/weave/
|
|
88
|
-
├── state.yaml ← 활성 플랜 추적
|
|
89
|
-
├── specs/
|
|
90
|
-
│ └── *.yaml ← baseline spec
|
|
91
|
-
└── plans/
|
|
92
|
-
└── *.yaml ← 플랜
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
## 마이그레이션 노트 (v0.9)
|
|
98
|
-
|
|
99
|
-
| 기존 명령어 | 새 명령어 | 비고 |
|
|
100
|
-
|-------------|-----------|------|
|
|
101
|
-
| `approve-plan` | `approve` | alias로 v0.9까지 동작 |
|
|
102
|
-
| `build-resume` | `build --resume` | alias로 v0.9까지 동작 |
|
|
103
|
-
| `loop-run` | `build` | alias로 v0.9까지 동작 |
|
|
104
|
-
| `loop-status` | `build --status` | alias로 v0.9까지 동작 |
|
|
105
|
-
| `loop-stop` | `build --stop` | alias로 v0.9까지 동작 |
|
|
106
|
-
| `loop-list` | `build --list` | alias로 v0.9까지 동작 |
|
|
107
|
-
| `loop-sync` | `build --sync` | alias로 v0.9까지 동작 |
|
|
108
|
-
| `record` | `troubleshoot --record` | alias로 v0.9까지 동작 |
|
|
109
|
-
| `sync-agents` | `agents --sync` | alias로 v0.9까지 동작 |
|
|
110
|
-
| `init-config` | `agents --init` | alias로 v0.9까지 동작 |
|
|
111
|
-
| `research` | `prepare` | deprecated alias (v0.9 경고) |
|
|
112
|
-
| `spec` | `prepare` | deprecated alias (v0.9 경고) |
|
|
113
|
-
| `design` | `prepare` | deprecated alias (v0.9 경고) |
|
|
114
|
-
| `flow` | `prepare` → `approve` → `craft` | deprecated alias (v0.9 경고) |
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
| Command | Purpose |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| `/weave-init` | Initialize workspace files and probe GDC integration |
|
|
29
|
+
| `/weave-map` | Analyze codebase structure |
|
|
30
|
+
| `/weave-interview` | Clarify requirements before planning |
|
|
31
|
+
| `/weave-prepare` | Create research, spec, and plan artifacts |
|
|
32
|
+
| `/weave-refine-plan` | Apply structured notes to the active plan |
|
|
33
|
+
| `/weave-approve` | Approve a plan or finalize a verified phase |
|
|
34
|
+
| `/weave-craft` | Prepare phase execution context |
|
|
35
|
+
| `/build` | Run or manage the autonomous build loop |
|
|
36
|
+
| `/weave-build` | Long-form build command |
|
|
37
|
+
| `/weave-status` | View plan and phase progress |
|
|
38
|
+
| `/weave-worktree` | Manage git worktrees for parallel work |
|
|
39
|
+
| `/weave-verify` | Run build/test verification |
|
|
40
|
+
| `/weave-archive` | Archive a verified active change |
|
|
41
|
+
| `/weave-troubleshoot` | Search or record solution knowledge |
|
|
42
|
+
| `/weave-repair` | Repair corrupted plan YAML |
|
|
43
|
+
| `/weave-agents` | Sync generated agent files and config |
|
|
44
|
+
|
|
45
|
+
Use `/build` for the common autonomous build path. Keep `/weave-*` for workflow commands so opencode built-in commands stay clear.
|
|
@@ -1,108 +1,26 @@
|
|
|
1
|
-
---
|
|
2
|
-
description:
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# /weave-init
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# Allow AI tools to access weave plans (overrides .gitignore)
|
|
28
|
-
!.opencode/weave/
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
만약 `.ignore` 파일이 이미 있다면, `!.opencode/weave/` 줄만 추가합니다 (중복 방지).
|
|
32
|
-
|
|
33
|
-
### 2. 디렉토리 구조 생성
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
mkdir -p .opencode/weave/plans
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 3. `state.yaml` 초기화
|
|
40
|
-
|
|
41
|
-
`.opencode/weave/state.yaml` 파일을 생성합니다:
|
|
42
|
-
|
|
43
|
-
```yaml
|
|
44
|
-
# Weave Multi-Plan State
|
|
45
|
-
# 이 파일은 활성 플랜을 추적합니다
|
|
46
|
-
active_plan: null
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### 4. 기존 PLAN.yaml 마이그레이션 (해당 시)
|
|
50
|
-
|
|
51
|
-
만약 `.opencode/weave/PLAN.yaml` (구버전 단일 플랜)이 존재하면:
|
|
52
|
-
1. 기존 PLAN을 읽어 multi-plan 포맷으로 저장
|
|
53
|
-
2. `state.yaml`의 `active_plan`을 해당 플랜으로 설정
|
|
54
|
-
3. 기존 PLAN.yaml 삭제 (가능한 경우)
|
|
55
|
-
|
|
56
|
-
### 5. GDC 연동 점검 및 그래프 동기화
|
|
57
|
-
|
|
58
|
-
`weave init`은 GDC 연동 상태를 확인합니다.
|
|
59
|
-
|
|
60
|
-
- `.gdc` 워크스페이스 미감지 시:
|
|
61
|
-
- 안내 메시지 출력 (`gdc init --language <lang>`)
|
|
62
|
-
- 감지 + 연동 활성화 시:
|
|
63
|
-
- `gdc version --machine`
|
|
64
|
-
- `gdc sync --machine`
|
|
65
|
-
- `gdc check --machine`
|
|
66
|
-
- `gdc stats --machine`
|
|
67
|
-
|
|
68
|
-
이 단계는 **정보 제공 및 부트스트랩 목적**이며, 실패해도 Weave 초기화 자체는 완료됩니다.
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## 완료 메시지
|
|
73
|
-
|
|
74
|
-
```markdown
|
|
75
|
-
## ✅ Weave 초기화 완료!
|
|
76
|
-
|
|
77
|
-
### 생성된 파일
|
|
78
|
-
- `.ignore` — AI 도구 접근 허용 설정
|
|
79
|
-
- `.opencode/weave/state.yaml` — 플랜 상태 추적
|
|
80
|
-
- `.opencode/weave/plans/` — 플랜 저장 디렉토리
|
|
81
|
-
|
|
82
|
-
### 다음 단계
|
|
83
|
-
프로젝트 계획을 세우려면:
|
|
84
|
-
`weave command=prepare docsPath="docs/"`
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## 이미 초기화된 경우
|
|
90
|
-
|
|
91
|
-
`.opencode/weave/state.yaml`이 이미 존재하면:
|
|
92
|
-
|
|
93
|
-
```markdown
|
|
94
|
-
ℹ️ 이미 Weave가 초기화되어 있습니다.
|
|
95
|
-
|
|
96
|
-
활성 플랜: {active_plan 또는 "없음"}
|
|
97
|
-
전체 플랜 수: {plans/ 내 yaml 파일 수}
|
|
98
|
-
|
|
99
|
-
상태 확인: `/weave-status`
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## 주의사항
|
|
105
|
-
|
|
106
|
-
- `.ignore` 파일은 `.gitignore`와 **같은 레벨(프로젝트 루트)**에 생성합니다
|
|
107
|
-
- `.ignore`는 Git이 아니라 ripgrep만 참조하므로 Git 추적에 영향 없음
|
|
108
|
-
- `.ignore` 파일 자체는 `.gitignore`에 넣지 마세요 (AI가 읽어야 하므로)
|
|
1
|
+
---
|
|
2
|
+
description: Initialize weave workspace files and probe GDC integration
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /weave-init
|
|
6
|
+
|
|
7
|
+
Initialize the Weave workspace for the current project.
|
|
8
|
+
|
|
9
|
+
Use the `weave` tool:
|
|
10
|
+
|
|
11
|
+
```txt
|
|
12
|
+
weave command=init
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## What It Creates
|
|
16
|
+
|
|
17
|
+
- `.opencode/weave/state.yaml`
|
|
18
|
+
- `.opencode/weave/plans/`
|
|
19
|
+
- `.opencode/weave/specs/`
|
|
20
|
+
- `.ignore` entry that lets AI tools read `.opencode/weave/` even when `.opencode/` is gitignored
|
|
21
|
+
|
|
22
|
+
## GDC Probe
|
|
23
|
+
|
|
24
|
+
When GDC is present, init probes the workspace and reports status. Missing or unavailable GDC should be reported as a setup hint, not as a failed Weave initialization.
|
|
25
|
+
|
|
26
|
+
Run this once per project root. Worktrees should be created with `/weave-worktree` so Weave artifacts are bootstrapped correctly.
|
|
@@ -1,121 +1,23 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Ask clarifying questions until requirements and structural changes are clear
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /weave-interview
|
|
5
|
+
# /weave-interview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Use codebase context and optional requirement documents to ask the questions needed before planning.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
코드베이스의 현재 상태와 구조적 변경 가능성을 파악하고, 명확해질 때까지 질문을 반복합니다.
|
|
9
|
+
Use the `weave` tool:
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## 데이터 로드 방법 (필수)
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
1. .opencode/weave/maps/map-result.yaml 로드 (map 먼저 실행되어 있어야 함)
|
|
22
|
-
2. map 결과가 없으면: 자동으로 기본 map 분석 수행 후 진행
|
|
23
|
-
3. (선택) docsPath의 문서 로드
|
|
24
|
-
4. 코드베이스 기술 스택 및 구조적 이슈 확인
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 입력
|
|
30
|
-
|
|
31
|
-
```yaml
|
|
32
|
-
docsPath: "docs/" # (선택) 요구사항 문서 경로
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 동작 흐름
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
1. 코드베이스 맵 결과 로드 (없으면 자동 생성)
|
|
41
|
-
2. 구조적 변경 감지 (structural changes)
|
|
42
|
-
- 현재 상태 vs 제안된 변경
|
|
43
|
-
- Breaking change 여부
|
|
44
|
-
- 영향받는 파일 목록
|
|
45
|
-
3. 사용자에게 질문 생성
|
|
46
|
-
- 변경 영역에 대한 의도 확인
|
|
47
|
-
- 우선순위 및 범위 조정
|
|
48
|
-
4. 충분한 명확성 달성 시 인터뷰 종료
|
|
49
|
-
- 종료 기준: 모든 structural changes에 대해 agreed 상태
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## 출력 예시
|
|
55
|
-
|
|
56
|
-
### 인터뷰 진행 중
|
|
57
|
-
|
|
58
|
-
```markdown
|
|
59
|
-
## 🎤 Weave Interview
|
|
60
|
-
|
|
61
|
-
**기반 맵**: `map-20250428-a1b2`
|
|
62
|
-
**프로젝트 타입**: TypeScript / React
|
|
63
|
-
|
|
64
|
-
### 감지된 구조적 변경
|
|
65
|
-
|
|
66
|
-
1. **Auth 모듈 분리**
|
|
67
|
-
- 현재: `src/lib/auth.ts` (단일 파일)
|
|
68
|
-
- 제안: `src/auth/` 디렉토리로 분리
|
|
69
|
-
- 영향: 8개 파일
|
|
70
|
-
- Breaking: ❌ 아니오
|
|
71
|
-
|
|
72
|
-
2. **Prisma → Drizzle 마이그레이션**
|
|
73
|
-
- 현재: Prisma ORM
|
|
74
|
-
- 제안: Drizzle ORM으로 전환
|
|
75
|
-
- 영향: 15개 파일
|
|
76
|
-
- Breaking: ⚠️ 예 (DB 스키마 변경)
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
### 질문
|
|
81
|
-
|
|
82
|
-
> **Q1**: Auth 모듈 분리는 단순 코드 구조 개선인가요, 아니면 새로운 인증 기능(예: OAuth) 추가를 위한 준비인가요?
|
|
83
|
-
>
|
|
84
|
-
> 답변 후 다음 질문으로 진행합니다.
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### 인터뷰 완료
|
|
88
|
-
|
|
89
|
-
```markdown
|
|
90
|
-
## ✅ Interview Complete
|
|
91
|
-
|
|
92
|
-
**모든 구조적 변경이 명확해졌습니다.**
|
|
93
|
-
|
|
94
|
-
| 변경 영역 | 상태 | 결정 |
|
|
95
|
-
|-----------|------|------|
|
|
96
|
-
| Auth 모듈 분리 | ✅ Agreed | 디렉토리 분리 + OAuth 확장 준비 |
|
|
97
|
-
| Prisma → Drizzle | ⏳ Pending | Phase 2로 연기 (현재는 Prisma 유지) |
|
|
98
|
-
|
|
99
|
-
### 다음 단계
|
|
100
|
-
- `/weave-design` — 결정사항을 바탕으로 계획 수립
|
|
101
|
-
- `/weave-prepare` — research + spec + plan 한 번에 생성
|
|
11
|
+
```txt
|
|
12
|
+
weave command=interview
|
|
13
|
+
weave command=interview docsPath="docs/"
|
|
102
14
|
```
|
|
103
15
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## 아티팩트 저장 위치
|
|
107
|
-
|
|
108
|
-
인터뷰 결과는 `.opencode/weave/interviews/`에 저장됩니다:
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
.opencode/weave/interviews/
|
|
112
|
-
└── interview-{id}.yaml # 질문-답변 기록 및 structural changes 상태
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
---
|
|
16
|
+
## Goal
|
|
116
17
|
|
|
117
|
-
|
|
18
|
+
- Identify unclear requirements.
|
|
19
|
+
- Detect structural changes that need explicit agreement.
|
|
20
|
+
- Separate must-have scope from later work.
|
|
21
|
+
- Produce enough clarity for `/weave-prepare`.
|
|
118
22
|
|
|
119
|
-
|
|
120
|
-
- `/weave-design` — 인터뷰 결과를 바탕으로 계획 수립
|
|
121
|
-
- `/weave-prepare` — 전체 워크플로우 한 번에 실행
|
|
23
|
+
Use this before planning when requirements are fuzzy, architectural impact is likely, or multiple stakeholders need their assumptions surfaced.
|
|
@@ -1,109 +1,23 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Analyze codebase structure via GDC and optional Graphify
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# /weave-map
|
|
5
|
+
# /weave-map
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Map the current codebase before requirements interviews or planning.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
`deep` 옵션 사용 시 `graphify-windows` 스킬을 활용한 딥 그래프 분석도 수행합니다.
|
|
9
|
+
Use the `weave` tool:
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## 데이터 로드 방법 (필수)
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
1. 프로젝트 루트의 package.json, tsconfig.json, Cargo.toml, go.mod 등 탐지
|
|
22
|
-
2. GDC 설정 확인 (.gdc/config.yaml 또는 .opencode/gdc/)
|
|
23
|
-
3. GDC 활성화 시: gdc graph + gdc stats 명령 실행
|
|
24
|
-
4. deep 옵션 시: graphify-windows 스킬 실행
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 입력
|
|
30
|
-
|
|
31
|
-
```yaml
|
|
32
|
-
deep: false # (선택) true 시 graphify-windows 딥 분석 실행
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 출력 예시
|
|
38
|
-
|
|
39
|
-
### 기본 분석
|
|
40
|
-
|
|
41
|
-
```markdown
|
|
42
|
-
## 🗺️ Codebase Map
|
|
43
|
-
|
|
44
|
-
**프로젝트 타입**: TypeScript / Node.js
|
|
45
|
-
**기술 스택**: React, Next.js, Prisma, Tailwind
|
|
46
|
-
|
|
47
|
-
### 디렉토리 구조
|
|
48
|
-
```
|
|
49
|
-
src/
|
|
50
|
-
├── app/ # Next.js App Router
|
|
51
|
-
├── components/ # React 컴포넌트
|
|
52
|
-
├── lib/ # 유틸리티
|
|
53
|
-
└── db/ # Prisma 스키마
|
|
11
|
+
```txt
|
|
12
|
+
weave command=map
|
|
13
|
+
weave command=map deep=true
|
|
54
14
|
```
|
|
55
15
|
|
|
56
|
-
|
|
57
|
-
- **노드**: 42개
|
|
58
|
-
- **엣지**: 78개
|
|
59
|
-
- **커버리지**: 85% 구현, 60% 테스트
|
|
60
|
-
|
|
61
|
-
### 주요 의존성
|
|
62
|
-
- next: ^14.0
|
|
63
|
-
- react: ^18.2
|
|
64
|
-
- @prisma/client: ^5.0
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### 심층 분석 (deep)
|
|
68
|
-
|
|
69
|
-
```markdown
|
|
70
|
-
## 🗺️ Codebase Map (Deep)
|
|
71
|
-
|
|
72
|
-
**그래프 분석 완료**
|
|
73
|
-
|
|
74
|
-
### 커뮤니티 클러스터
|
|
75
|
-
| 클러스터 | 파일 수 | 핵심 엔티티 |
|
|
76
|
-
|----------|--------|------------|
|
|
77
|
-
| C1 | 12 | User, Auth, Session |
|
|
78
|
-
| C2 | 8 | Post, Comment, Feed |
|
|
79
|
-
| C3 | 6 | Payment, Subscription |
|
|
80
|
-
|
|
81
|
-
### 구조적 이슈
|
|
82
|
-
- ⚠️ 순환 의존성: `src/lib/api.ts` ↔ `src/lib/auth.ts`
|
|
83
|
-
- ⚠️ 고립 노드: `src/utils/legacy-helpers.ts` (참조 없음)
|
|
84
|
-
|
|
85
|
-
### 추천 리팩토링
|
|
86
|
-
1. `api.ts`와 `auth.ts` 순환 의존성 해소
|
|
87
|
-
2. `legacy-helpers.ts` 제거 또는 통합
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## 아티팩트 저장 위치
|
|
93
|
-
|
|
94
|
-
분석 결과는 `.opencode/weave/maps/`에 저장됩니다:
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
.opencode/weave/maps/
|
|
98
|
-
├── map-report.yaml # 구조 분석 요약
|
|
99
|
-
├── map-result.yaml # GDC 연동 결과
|
|
100
|
-
└── graphify-report.html # deep 분석 시 생성
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
---
|
|
16
|
+
## Behavior
|
|
104
17
|
|
|
105
|
-
|
|
18
|
+
- Detects project type and important configuration files.
|
|
19
|
+
- Uses GDC when available for structural context.
|
|
20
|
+
- Uses deeper Graphify analysis when `deep=true` and the environment supports it.
|
|
21
|
+
- Saves map artifacts under `.opencode/weave/maps/`.
|
|
106
22
|
|
|
107
|
-
|
|
108
|
-
- `/weave-design` — 분석 결과를 바탕으로 계획 수립
|
|
109
|
-
- `/weave-init` — weave 워크스페이스 초기화
|
|
23
|
+
This command is for understanding structure. It should not replace builds, tests, or smoke checks.
|
|
@@ -1,69 +1,23 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: research
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# /weave-prepare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## 사용법
|
|
25
|
-
|
|
26
|
-
**사용법**: `/weave-prepare $ARGUMENTS`
|
|
27
|
-
- `$ARGUMENTS` = 문서 경로 (예: `docs/`, `wiki/spec.md`)
|
|
28
|
-
|
|
29
|
-
예시:
|
|
30
|
-
- `/weave-prepare docs/`
|
|
31
|
-
- `/weave-prepare wiki/spec.md`
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## 실행
|
|
36
|
-
|
|
37
|
-
아래 weave tool 호출을 수행합니다:
|
|
38
|
-
|
|
39
|
-
```txt
|
|
40
|
-
weave command=prepare docsPath="$ARGUMENTS"
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
옵션(필요 시):
|
|
44
|
-
|
|
45
|
-
```txt
|
|
46
|
-
weave command=prepare docsPath="$ARGUMENTS" projectName="My Project" planName="emotion-diary"
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## 생성되는 산출물(기본)
|
|
52
|
-
|
|
53
|
-
- Research: `tasks/research.md`
|
|
54
|
-
- Spec: `.opencode/weave/specs/{planName}.yaml`
|
|
55
|
-
- Plan: `.opencode/weave/plans/{planName}.yaml` 또는 `.opencode/weave/plans/{planName}-s*.yaml`
|
|
56
|
-
|
|
57
|
-
> 주의: `.opencode/`가 gitignore 대상일 수 있으므로, AI 도구가 파일을 읽을 수 있게 `/weave-init`의 `.ignore` 설정을 권장합니다.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## 다음 단계
|
|
62
|
-
|
|
63
|
-
준비가 끝나면:
|
|
64
|
-
|
|
65
|
-
```txt
|
|
66
|
-
weave command=refine-plan # (선택) plan-notes 반영
|
|
67
|
-
weave command=approve-plan
|
|
68
|
-
weave craft P1
|
|
69
|
-
```
|
|
1
|
+
---
|
|
2
|
+
description: Create research, spec, and phase plan artifacts from requirements
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /weave-prepare
|
|
6
|
+
|
|
7
|
+
Create the planning artifacts needed for phase-driven implementation.
|
|
8
|
+
|
|
9
|
+
Use the `weave` tool:
|
|
10
|
+
|
|
11
|
+
```txt
|
|
12
|
+
weave command=prepare docsPath="docs/"
|
|
13
|
+
weave command=prepare docsPath="docs/" planName="emotion-diary"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Outputs
|
|
17
|
+
|
|
18
|
+
- Research notes from the provided documents or project context.
|
|
19
|
+
- Baseline spec under `.opencode/weave/specs/`.
|
|
20
|
+
- Phase plan under `.opencode/weave/plans/`.
|
|
21
|
+
- Sharded plans when a plan is too large and `splitPlans=true`.
|
|
22
|
+
|
|
23
|
+
After prepare, review the generated plan, optionally run `/weave-refine-plan`, then approve with `/weave-approve`.
|